This content has been marked as final. Show 19 replies
you can use depths to control the z-axis layering. items placed on-stage in the authoring environment are at approximately depth - 2**16.
you can convert items to movieclips and use swapDepths() to more easily control the z-layering.
Thanks for your reply!
I'm just having trouble making it work (and finding information regarding its usage for the loadMovie action). I don't really understand what I'm doing sorry.
I've been trying:
loadMovie(" http://www.5678.co.nz/highlands/augsep2007/1/pic1.swf", _root.pictarget, depth-10);
loadMovie(" http://www.5678.co.nz/highlands/augsep2007/1/pic1.swf", _root.pictarget, depth1);
loadMovie(" http://www.5678.co.nz/highlands/augsep2007/1/pic1.swf", _depth-1);
If I put in:
loadMovie(" http://www.5678.co.nz/highlands/augsep2007/1/pic1.swf", _depth1);
The movie plays but over my button object as the curser doesn't change when mousing over.
If I use:
loadMovie(" http://www.5678.co.nz/highlands/augsep2007/1/pic1.swf", _depth-20);
The cursr changes but the movie doesn't play.
you can't load into a depth. you can load into a _level, but that's a topic likely to confuse you more than you already are confused.
load your swf into a target movieclip. if you only need to position that swf below your text try:
Sorry about this, I just can't get my head around the sytax or how to add extra modifiers on the end of a command.
loadMovie(" http://www.5678.co.nz/matarangi/sept2007/1/movie1.swf", _root.pictarget.swapDepths(-16273);
loadMovie(" http://www.5678.co.nz/matarangi/sept2007/1/movie1.swf", _root.pictarget, swapDepths(-16273);
loadMovie(" http://www.5678.co.nz/matarangi/sept2007/1/movie1.swf", _pictarget.swapDepths(-16273);
Unfortunately, it still doesn't work. Maybe I'm going about this all wrong.
I have a movie that has all the text, images and animation:
I then have another flash file that has 3 layers in it.
- Bottom Layer: the action that loads the above movie
- Middle Layer: the pictarget = target for movie that loads in
- Top Layer: the button target with a standard "getURL (clickTAG, "_blank");" script on it.
I'm trying to get the external movie to load under the button layer so users can use the getURL button.
Putting the button into the first movie (the one with all the animation) works but as this is not the file that will be supplied to the website, they'll probably reject it because it doesn't have a clickTAG in it.
Hopefully what I'm doing is easy - for some reason I think it should be!
Any help would be very much appreciated.
When you say 'load target", is that the symbol in my movie called "pictarget" or is that the actual movie I'm loading? i.e: "movie2.swf"
convert your text to a movieclip and give it an instance name, say textMC. _root.pictarget is the load target. you can use:
OK, I decided to put all the text onto the pictures or into the movie I'm loading. The only issue I'm having now, is that the movie I'm loading in, is loading over the top of the button that has the clickTag.
I followed your seggestion and gave my button symbol an instance name of 'buttonMC' then used the following code but the button dosn't seem visable:
If you're just trying to get the button instance on top of the movie clip instance, I think something like this should work:
I guess I'm not applying the instance name correctly?
I clicked on the button in the time line and in the properties inspector, named it "buttonMC".
Thanks for the reply. I realized that my movie target didn't have an instance name as it was a graphic.
After converting it to a movie, the movie now loads under the button - thanks! Unfortunately, the movie loads in all screwed up - stretched and cropped - any suggestions?
Ah so it displays correctly now, good.
Got it, my movie target was a different size within the symbol, so was stretched on the stage.
Thanks for all your help guys - very much appreciated!
Anyone know how you would do this using Flash v5 compatible scripting?
swapDepths() is compatible with flash 5.