Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Fav Football Team?
11-19-2008 03:58 PM
by shep
Last post by sarhan
Today 08:31 PM
12 Replies, 52 Views
Go to first new post Favorite Junkfood?
10-26-2008 01:36 PM
Last post by sarhan
Today 08:31 PM
136 Replies, 684 Views
Go to first new post Heather wants to kill a...
Today 06:49 PM
Last post by .BloodyNightmare
Today 08:30 PM
18 Replies, 72 Views
Go to first new post Gaia Online.
Today 08:48 AM
by ~Bloo~
Last post by sarhan
Today 08:29 PM
2 Replies, 11 Views
Go to first new post Plastic Surgery Hell
Today 08:02 PM
by Li-Shun
Last post by Unregenerate Passion
Today 08:28 PM
8 Replies, 22 Views
Reply
 
LinkBack Thread Tools Display Modes

 Gaia Complete jigsaw puzzle (vb6)
Old 06-12-2008, 07:14 AM   #1 (permalink)
Underground

raredaredevil is offline
 
Join Date: Jul 2007
Posts: 180
GPoints: 812
iTrader: 1 / 100%
raredaredevil Is Amongst Royaltyraredaredevil Is Amongst Royalty
Rep Power: 6
Gaia Complete jigsaw puzzle (vb6)

First make sure your shockwaveflash contol is called "swf"

Now add this code:

PHP Code:
Private Sub swf_FSCommand(ByVal command As StringByVal args As String)
On Error Resume Next
'MsgBox (command)
'
Exit Sub
'Call Form1.SetFocus
DoEvents

gridx = swf.GetVariable("_level0.mcBoard.mcPiece0_0.pGameController.gridUnitX")
gridy = swf.GetVariable("_level0.mcBoard.mcPiece0_0.pGameController.gridUnitY")

temper = command
temp = Replace(temper, "_level0.mcBoard.mcPiece", "")
temp2 = Split(temp, "_")
PuzzleLeftToRight = temp2(0)
PuzzleUpToDown = temp2(1)
DoEvents
temp3 = 64

Call swf.SetVariable(temper & "._x", PuzzleLeftToRight * gridx)
Call swf.SetVariable(temper & "._y", PuzzleUpToDown * gridy + 30)


End Sub 

Now open macromedia flash and make a new .fla project insert this code:

PHP Code:
var _loc3 0;
while (
_loc3 _level0.gGameController.piecesArr.length)
{
FSCommand(_level0.gGameController.piecesArr[_loc3]);
    ++
_loc3;
    
    

publish this file and call it test.swf and put it in the same folder as ur vb6 project files.

Now add a command button to ur project that we will use to solve the game add this code:


PHP Code:
Call swf.LoadMovie(99App.Path "\test.swf"
Done

Last edited by raredaredevil; 06-12-2008 at 07:18 AM.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 08:34 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.09310198 seconds (100.00% PHP - 0% MySQL) with 19 queries