View Full Version : dynamic loading pics - then tween

08-27-2004, 06:37 AM
hi all ya,

I am working on a project where I dynamically load a jpg into a movieClip and then motion tween it. Then I want to use the same tween, to load another jpg, so that it slides in front of the first and so on. My problem is that I can't load another jpg unless I have at least one keyframe at the end that does not contain the movieClip with the jpg. Is there a way to swap depths or levels of the first one, then copy it to another clip (without the picture flashing or having to reload) so that I can use the same tween for multiple jpgs??
I hope this doesn't sound to complicated. I messed around with MovieClip.duplicateMovieClip() and MovieClip.swapDepths() but I couldn't get any good results. Maybe this combination of tweening and scripting isn't such a good idea but I think it should work somehow...

Can anyone help? Thanx. S.

P.S.: the code I use to load the jpgs is generally something like this..:

this.createEmptyMovieClip("myImage", myDepth);