View previous topic :: View next topic |
Author |
Message |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Mon May 19, 2008 1:01 am Post subject: Help plz |
|
|
Okay im trying to make an all game loader, and i got the swfs for the games i want but i need to know how to make a button click event for it to load a swf
XP im using visual basi 2008 any help would be appreciated
_________________
|
|
Back to top |
|
 |
Typhoon808 Expert Cheater
Reputation: 0
Joined: 27 Mar 2008 Posts: 175 Location: Wales
|
Posted: Mon May 19, 2008 3:11 am Post subject: |
|
|
I'm not sure I know what you mean, but you will need to add ShockwaveFlash component to the form. To do this, right click on the toolbox and click Choose Items. Click on the COM Components tab and then from the list, scroll down until you find Shockwave Flash Object. Tick the box and hit OK.
Now you should have the Shockwave flash object on the toolbox. Drag it onto your form (resize it to a suitable size for the SWF).
Get the directory of the SWF (e.g C:\Documents and Settings\USERNAME\My Documents\flashgame1.swf) and enter it in the Movie and Base property of the flash component.
Using buttons, just change the base and movie property through the code to switch games. Maybe use a BrowseFileDialog to select one from your computer.
|
|
Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Thu May 22, 2008 12:22 am Post subject: |
|
|
okay ive done that and it still isnt working, do i need to make code for it to start the movie on form load, because in my first form i click Button Start Flash Movie
then it brings up a new form
would i have to put the code into form1 or form2?
if i even need a code
_________________
|
|
Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Thu May 22, 2008 1:13 am Post subject: |
|
|
I highly suggest you to learn the basics of VB.
And use proper grammar.
|
|
Back to top |
|
 |
|