Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Media Server

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-04-2004, 08:57 AM   #1
artane
Registered User
 
Join Date: Aug 2003
Posts: 62
Default 2 component instances, I want to edit just one

hey guys,

I've got a movie that uses 2 instances of the AVPresence component. I want to edit the script in one of them and leave the other the way it is. The problem is, whatever changes I make to one of them, show up in the other as well.

How can I edit the script in one instance of the component without affecting the other instance?

Is it possible to drag 2 seperate, self-contained AVPresence components to the stage and modify each one seperately?

Thanks very much!

artane
artane is offline   Reply With Quote
Old 06-25-2004, 04:01 AM   #2
thumbling
Registered User
 
Join Date: Jun 2004
Posts: 21
Default

I'd advice you to change as little as possible to the actual components. Of course, some changes are needed sometimes... To add some actionscript, I usually add the required calls to some place, but let them call not the AVPresence itself, but the parent underneath.
For example, in the root of an AVPresence I'd add
ActionScript Code:
this._parent.doWhateverIWant();
to the connect function, if I want AVPresence to do whatever I want while connecting.

If you'd want them to be visually different, you can go through adding the AVPresence to a temp. fla file, renaming the Symbol in the library and then dragging the symbol from your temp. fla's library to your real fla's library. Note that it'd then still use a lot of assets, shared accross all AVPresence's or even other components. Of course you can perform the same trick on them, remember to 'swap' to the correct symbol then.

Hope it helps, .. though your question is already fairly two months old .
thumbling is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.