473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 4256
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

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

Similar topics

3
by: Hodad | last post by:
I would like to adapt, as much as possible, the appearance and color red of the font in this button: <P><CENTER><BUTTON VALUE="SUBMIT"><A...
1
by: charliewest | last post by:
I am trying use server controls or web controls to simulate the following behavior. I've an image wrapped w/in a link to create a rollover effect as if both elements we're one graphic: <a...
1
by: Kenjis Kaan | last post by:
I had to run DB2 on Win2k. After installation it puts a directory under c:\DB2 and c:\DB2Log and C:\Program Files\SQLLIB Now am all confused which is instance home, db2 home etc. I had to...
15
by: Cruella DeVille | last post by:
I'm trying to implement a bookmark-url program, which accepts user input and puts the strings in a dictionary. Somehow I'm not able to iterate myDictionary of type Dict{} When I write print...
28
by: Jess | last post by:
Hello, It is said that if I implement a "swap" member function, then it should never throw any exception. However, if I implement "swap" non- member function, then the restriction doesn't...
3
by: .rhavin grobert | last post by:
guess you have two classes (A and B) and you have two objects (C1 and C2) of a class C that is defined as class C: public A, public B can I *somehow* swap B of C1 and B of C2? To make myself...
1
by: DelphiCoder | last post by:
I'm trying to simulate buttons using images. I tried many ways and I don't seem to get it to work as far as the button label is concerned. I tried manipulating "top" and "left" and now the margins...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.