-
Under MC
Hi all,
When I load external swf in to my project and I want to attach from library some MC, it is always under the loaded external swf. I need the attached MC to be on top of the loaded swf. How can I make it?
Thanks for help...
-
swapDepths() in the AS dictionary.
-
I have used a code:
container_mc.attachMovie("card", "clip_1", 2);
It doesn't work and - my_mc.swapDepths(depth) - to I don't understand so much. Attached clip is still under swf.
-
Where did you load your external .swf? In a container clip?
What's it's nstance name?
-
I load external swf with action:
loadMovieNum("thumbs.swf", 1");
and I attach MC with action:
function func3(){
_root.attachMovie("ID1","myClip1", 2 );
_root.myClip1._x=383
_root.myClip1._y=394
}
I have tried it also the other way, but nothing's working...
-
Attached movie clips are attached on the _root level (_level0), and anything loaded on another higher level (as your movie loaded on level 1) will ALLWAYS appear on top of whatever is on level0.
You should try loading your external movie in a container clip on stage, and then swap depths on those 2 clips, your loaded one and the attached one.
-
I am still triyng it, but it doesn't work.
I have done a small example. Blue sq are on main movie, where the pink sq (external swf) are loading to. When click on the blue sq the clip (violet sq) attaches, which is under. But I need this to be on top.
-
Last edited by oldnewbie; 12-03-2004 at 04:54 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|