473,774 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simulate the "Swap instance button" in ActionScript

2 New Member
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 4274
Atran
319 Contributor
Try this link:
http://www.adobe.com/support/flash/a...ionary389.html
Jun 25 '07 #2
groovymovin
2 New Member
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
bmusson
1 New Member
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
4227
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 HREF="http://www.familytreedna.com/surname_join.asp?code=Q17978" STYLE="TEXT-DECORATION: NONE;"> <FONT COLOR="RED" FACE="COPPERPLATE GOTHIC BOLD">Right Here</FONT></A></BUTTON></CENTER></P>
1
1907
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 href="javascript:submit();" onMouseOver="MM_swapImage('Image1221','','images/btn_green_on.gif',1)" onMouseOut="MM_swapImgRestore()" id="A1" runat="server"> Next <img src="images/btn_green.gif" alt="Next" name="Image1221" width="16" height="16"...
1
8077
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 configure tivoli inventory and its all *@#$ up because of this confusion. Can someone please clarify which is which? TIA c:\DB2>wgetrim invdh_1 RIM Host: user88 RDBMS User: user881 RDBMS Vendor: DB2
15
5282
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 type(myDictionary) I get that the type is "instance", which makes no sense to me. What does that mean? Thanks
28
2857
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 apply. Can somebody tell me why? Thanks, Jess
3
2001
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 clearer: class C1 and C2 both have some area in memory that holds their B-Part - i guess there must be somewhere in class C1 and C2 a kind of pointer to that baseclasses. Eg. if you do a (B*) this inside C1 you get it. What i want to do is swap...
1
1600
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 and I'm getting bizarre results. This is not the actual code. I did what I had to do to make it independent from the website I'm working on and to "reduce" the problem to the bare minimum factors. <style type="text/css"> div.btn { width: 80px;...
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10040
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.