[Flashcoders] duplicating a movie clip into a new parent

2006-02-25 Thread Justin Bishop
let's say i have an instance already on the stage, call myClip.

I'd like to create a new movie clip:
createEmptyMovieClip(newClip, getNextHighestDepth());

and then duplicate myClip so that it's duplicate is a _child_ of
newclip.  i cannot find in the asdictionary anyway to essentially
alter the parent of a movie clip that is already on the stage or to
duplicate a movie clip into a new parent.

obviously if the movie clip is defined in the library i can attach a
new instance of it wherever with attachMovie, but this does not help
me.

duplicateMovieClip()'s parameter's don't seem to support any way to
alter who the parent of the new clip is going to be.  you can only
execute it within the scope of where the original clip is, and you can
only create the new clip within that same scope...is that correct?

Thanks for your help.

-Justin Bishop
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] duplicating a movie clip into a new parent

2006-02-25 Thread JesterXL
You can create MovieClip's in any scope/timeline.  However, no, you cannot 
re-parent them in Flash Player 8 and below, only Flash Player 8.5.

One alternative if you must use Flash 8 is to:
- copy the state
- remove the movieclip
- attach a new movieclip in the desired scope
- update the state of it from the copied state

- Original Message - 
From: Justin Bishop [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, February 25, 2006 4:08 PM
Subject: [Flashcoders] duplicating a movie clip into a new parent


let's say i have an instance already on the stage, call myClip.

I'd like to create a new movie clip:
createEmptyMovieClip(newClip, getNextHighestDepth());

and then duplicate myClip so that it's duplicate is a _child_ of
newclip.  i cannot find in the asdictionary anyway to essentially
alter the parent of a movie clip that is already on the stage or to
duplicate a movie clip into a new parent.

obviously if the movie clip is defined in the library i can attach a
new instance of it wherever with attachMovie, but this does not help
me.

duplicateMovieClip()'s parameter's don't seem to support any way to
alter who the parent of the new clip is going to be.  you can only
execute it within the scope of where the original clip is, and you can
only create the new clip within that same scope...is that correct?

Thanks for your help.

-Justin Bishop
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com