469,289 Members | 2,214 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Simulate the "Swap instance button" in ActionScript

Hi there,

I am a newbee. searched intensively for a quite simple problem but couldnt find an answer. Here is my problem:

I have two layers with 2 movie clips. The movie clip on layer 1 stays static, the movie clip on layer 2 fades in on a few frames, thus I crossfade from clip 1 to clip 2 (actually it is a bit more complicated what I am trying to do). At the end of the fade, i would like to replace the movie clip on layer 1 with the movie clip on layer two (that is I want the instance on layer 1 to point to the "parent" on the instance on layer 2. Then I want to move back to the beginning frame and place a different movie onto layer 2. All this so I can reuse my crossfading routine again now fading to a third, forth, fifth... movieclip.
Or put differently, I want to simulate the "Swap..." button below the "instance of:..." text in ActionScript.
AttachMovie to my little knowledge seems to do something different.
Confusing? Silly?
Any help appreciated. Thanks in advance!
Jun 24 '07 #1
3 4139
Hi Atran,

thank you for your reply! It wasn't exactly what I was looking for, but I managed anyway to solve my problem. I had to use AttachMovieClip, just needed to go one level further down. typical beginners mistake. Thank you anyway for your help!
Jun 28 '07 #3
so... what was your solution?
Nov 12 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

15 posts views Thread by Cruella DeVille | last post: by
3 posts views Thread by .rhavin grobert | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.