Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining SWF files

Status
Not open for further replies.
Jan 26, 2001
550
GB
Could anyone help me?:I am making a virtual bar (1 swf file) with a computer game within it (another swf file). I can load the game into the main file and play it (using the load movie script) but i can't unload it when i want to return to the main movie. i have tried unload movie, loading the main movie again, and experimented with the tell target controls but to no avail. Can anyone help????
 
Flash 4 or 5?

Depending on your concept...
Do you still see the virtual bar when you load the game?
If so, in Flash 5, design 2 buttons in your bar movie(load, unload, next, back, game, menu... whatever!) and load your game movie with one button:

on (press, release) {
loadMovieNum ("game.swf", 1);
}

You can unload it with the other button:

on (press, release) {
unloadMovieNum (1);
}

If your game covers your bar completely, design a close, back, return... whatever button in your game movie, and apply this action to it:

on (press, release) {
unloadMovieNum (1);
}

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top