PDA

View Full Version : check this



blox
January 30th, 2003, 06:57 AM
hi..

1-i use flash mx

2-i made 2 swf files : main.swf as a main menu : which containes : 3 categories ( a - b - c ).
when we click on any of the 3 categories button it runs a movie clip
[a_mc] , [b_mc] , [c_mc]

using : tellTarget(*_mc){play();}

3-each movie clip contains a sub menu :

[a_mc] : item1 - item2 - item3 / a categorie. and so on...


4-when we select any item it loads an external swf file:
so if we select the first item in [a_mc] it will runs : [item1/a.swf]

using : on (release) {
loadMovie("item1/a.swf", 0);

}
5-i use an external swf for each item because i want this swfto be 800x600 and the main movie
is 800x 300 and also it will be better to control each swf Separately.


6-we have back button inside each external.swf file to retrun back to the sub menu: i use on (release) {
loadMovie("main.swf", 0);
}

the back button in [item1/a.swf] must return back to the sub menu of [a_mc] and not to the main menu.




7-i don't know how to call the [a_mc] which it is inside main.swf from the external swf file [item1/a.swf]

8-i put now on the back button : loadmovie("main.swf",o) but this returns to the main menu and the client must go inside the [ a categorie ] using the [ a_mc ]
to select another item and so on for the rest of the categories and it's sub item .



9-how can i call a movie clip which it is inside an swf from another swf file.??

10- i attached a simple source file demo of the .


thank you .

blox
January 30th, 2003, 03:18 PM
Hey

Do you think that my question is very difficult to answer ?


:stunned:

comicGeek
January 31st, 2003, 05:24 AM
Instead of loading the second SWF on level0 load it at level1. The 2nd SWF will just cover the first since it is larger.



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


The script on the button of the second SWF will have:



on (release) {
unloadMovie(1); //This remove the 2nd SWF thus bringing
//you back to the previous menu.
}



Hope this helps!

comicGeek