: [Flashcoders] Yes or no: Moving one MC into another (AS2)
That would do it, Bob, thanks, but my clips aren't even in the library.
(It's all generated by code.)
I'm wondering, isn't this issue solved in AS3 with addChild()?
- MM
I'm not sure at what point in your runtime you want to make the copy
you swap around galore with the AS3 displayObject model yes.
On Feb 7, 2008 2:13 PM, Mendelsohn, Michael [EMAIL PROTECTED]
wrote:
That would do it, Bob, thanks, but my clips aren't even in the library.
(It's all generated by code.)
I'm wondering, isn't this issue solved in AS3 with
Great idea Jesse, thanks!
- MM
function getMCData ( mc:MovieClip ):Object
{
return { _x:mc._x, _y:mc._y, _width:mc._width,
_height:mc._height,
_xscale:mc._xscale, _yscale:mc._yscale };
}
mcB.Y = mcB.attachMovie ( myMovie, Y, mcB.getNextHighestDepth(),
getMCData ( mcA.X ) );
Hi Michael,
I'm not sure at what point in your runtime you want to make the copy,
but if these clips are all library symbols in the same fla and are
exported for Actionscript, wouldn't this do it?
B.attachMovie(A, myA, B.getNextHighestDepth());
B.myA.attachMovie(X, myX,
Thanks, gents.
I've just started reading Moock's AS3 book. I'm sleeping better
already.
- MM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
That would do it, Bob, thanks, but my clips aren't even in the library.
(It's all generated by code.)
I'm wondering, isn't this issue solved in AS3 with addChild()?
- MM
I'm not sure at what point in your runtime you want to make the copy,
but if these clips are all library symbols in the
Michael,
From what I understand, NO - although there are still a couple workarounds.
var mcA:MovieClip = this.attachMovie ( myMovie, mcA,
this.getNextHighestDepth() );
mcA.X = mcA.attachMovie ( myMovie, X, mcA.getNextHighestDepth(),
{_x:100, _xscale:120, _yscale:20 } );
var mcB:MovieClip =
7 matches
Mail list logo