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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load movie problem

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

I have following files in a folder
movie2.swf
movie2.fla
Main.fla
Main.swf

In Main.fla I have created menus. When I click on sub-menu it should display movie2. I'm using following code for menu item button:

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

With this code I can see the movie1 (main.fla) as well as movie2. It is like move2 overlapping ( transparent ) on move1. Is there any way we can unload the movie1.

Thanks in advance
 
DK,
If you load movie2 on level 0, it should replace your main movie. But you will loose it unless you have a button in movie 2 that loads back movie main.
You could also add a background to movie 2 (a filled rectangle the size of your movie). This background will hide movie main from view, but I believe buttons from movie main, will still be operative even if you don't see them.
The easiest would be simply to work with scenes, your main movie being scene 1, and your others movies... Scene 2,3,4,etc. Rather than loading movies on new levels, your main movie buttons just send you to the right scene. A return button in those scenes then send you back to your main menu scene.

;-)
 
Thank you....
I will certainly try using scenes instead of individual movies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top