Hello Adrian.
Yes, my class extends MovieClip so code is properly. The issue is it creates and draws rectangle as child in my MovieClip, but it's name "
NaN_mc".
Regards,
Igor
On 3/24/06, Adrian Park <[EMAIL PROTECTED]> wrote:
Hi Igor,
Perhaps a dumb/obvious question but, is this code sitting on a MoveClip instance? i.e. does 'this' in your Rectangle constructor refer to a MovieClip? If not, that could be the problem? I've used the Rectangle class in AP a fair bit and haven't encountered this issue.
Either way, I agree that it seems odd to get a MovieClip instance name of NaN_mc!
Regards, Adrian P
On 3/24/06, Igor Sadovskiy < [EMAIL PROTECTED]> wrote:Hello Alex.I'm using AnimationPackage to create Rectangle:objRectangle = new Rectangle(this, 0, 0, numWidth, numHeight);
objRectangle.lineStyle(0, 0x000000, 100);
objRectangle.fillStyle();
objRectangle.setRegistrationPoint(new CPoint(0,0));
objRectangle.draw ();
trace(objRectangle.movieclip);
Trace returns "_level10.mcMyClip.NaN_mc".I think it should be fixed.Regards,Igor
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
