Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
dprovidenti webforumsuser@macromedia.com #1
Swap Depths of Target Loaded Movie Clips
Can anyone help?
I'm using buttons to load external draggable mc's into the movie where the buttons are located. I'm trying to swapDepths of these mc's with no luck. I've tried coding the external mc's root timeline, the mc's themselves, I even tried making the mc's buttons and coding them, and nothing.
If the movies aren't loaded, everything works fine. Swapping depths is relatively easy to do... but for some reason I can't get it to work on target loaded mc's.
I could easily load these movies onto levels, but this causes printing issues.
Anyone have a solution?
Thanks
dprovidenti webforumsuser@macromedia.com Guest
-
Swap Flash Movie
Hi All, Is there a way to have a button on a HTML page swap the SWF for another SWF on the mouse Click? So I have a small flash movie taking up... -
Movie clips
Need help with something. When using the Actions to show a movie when hitting a button I want to show a movie stopping at the end and you have... -
Loading Movie Clips into other movie Clips
I know I have done this before (or at least something like unto it) but can't find a clear explanation of how to or if it can be done: I have an... -
Having a loaded movie talk back to main timeline/movie?
Ok, here?s the situation: I have a main movie named ?scheduled_reports.swf?. It is made up of 12 frames. Each frame has an action to load a swf... -
Help with Multiple Movie Clips
Hi I have drawn on paper some simple line-art sprites.. I scanned and Trace Bitmap'd them individually.. and by pasting them on different... -
kglad webforumsuser@macromedia.com #2
Re: Swap Depths of Target Loaded Movie Clips
there shouldn't be any problem unless you have a coding error or are trying to do something before your movies load that require you to wait until loading has completed.
kglad webforumsuser@macromedia.com Guest
-
dprovidenti webforumsuser@macromedia.com #3
Re: Swap Depths of Target Loaded Movie Clips
thanks for the reply but...
here's the code I've tried on the clip itself -- doesn't work when it's loaded into a target
on (press) {
startDrag(this);
this.swapDepths(2);
}
on (release) {
stopDrag();
}
then I tried this on the first frame of the clip's timeline --- doesn't work either if the mc is loaded:
red.onPress = function() {
startDrag(this, true);
this.swapDepths(2);
};
red.onRelease = function() {
stopDrag();
};
blue.onPress = function() {
startDrag(this, true);
this.swapDepths(2);
};
blue.onRelease = function() {
stopDrag();
};
dprovidenti webforumsuser@macromedia.com Guest
-
dprovidenti webforumsuser@macromedia.com #4
Figued it out...
this code has to be attached to the "target" mc where you're loading into
the loading mc doesn't have to have it anywhere
on (press) {
startDrag(this);
this.swapDepths(2);
}
on (release) {
stopDrag();
}
dprovidenti webforumsuser@macromedia.com Guest



Reply With Quote

