Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2008



Tip: Looking for answers? Try searching our database.

movie level

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angel3m - 08 Jul 2008 22:19 GMT
hi,
i have made 1 file named menu. there are 2 menu clips, left and right.
inside each MC, there are buttons. each button contains the following code:

on (release) {
this.swapDepths(1);
this.createEmptyMovieClip("target_mc1", this.getNextHighestDepth());
target_mc1._x = -600;
target_mc1._y = -150;
target_mc1.loadMovie("1.swf");
}

the problem im facing is the external movie loads on the top of the right
menu, the left menu is still on the top of that external movie.

anyone can help plz?

Regards
kglad - 08 Jul 2008 22:35 GMT
and what is it that you want?
Angel3m - 09 Jul 2008 07:38 GMT
i want that when the external movie loads,
it should load on top of all other movies.
clbeech - 09 Jul 2008 14:29 GMT
the button code you have is attaching the mc to itself - in other words it is
becoming 'part' of the button instance within the 'menu' mc.  instead you
should target the _root timeline with the createEmptyMovieClip call - in that
case it will go to the top level because of the getNextHighestDepth method.
Angel3m - 09 Jul 2008 21:08 GMT
thank you for the reply clbeech

im not that expert in flash. can u tell me the exact code that i have to place
in the timeline?
that wud be highly appreciated.
i wud like to put the structure of the menu mc here.

1. main container of left and rite menu, single layer

2. 2 layers. down layer -> right menu. up layer -> left.

Now if we enter in right menu mc....

3. animation of right menu

4. in animation mc there are 4 buttons animation tweening

5. button container with actionScript on button

6. Button

i hope this may clear more...

Thank you
kglad - 10 Jul 2008 01:53 GMT
on (release) {
// this.swapDepths(1);
_root.createEmptyMovieClip("target_mc1",_root.getNextHighestDepth());
_root.target_mc1._x = -600;
_root.target_mc1._y = -150;
_root.target_mc1.loadMovie("1.swf");
}
Angel3m - 10 Jul 2008 12:45 GMT
wow! it Worked.

Superb!!!!!!!!

Thnx alot clbeech & kGlad!

:cool;
kglad - 10 Jul 2008 15:11 GMT
you're welcome.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.