Hello everyone…is there any known bugs with the .name property?
Check out my problem… I created a movieclip and added it to the stage via addchild. Here’s the code:
var myChoice:choice=new choice();
myChoice.x=100.0;
myChoice.y=100.0;
myChoice.name=“extravagant”;
addChild(myChoice);
trace(myChoice.name);
the trace statement shows that myChoice name is in fact “extravagant”. So is “extravagant” my instance name? I don’t know, because when I try to use extravagant as the instance name for a button the compiler says extravagant is undefined.
Here’s the complete code…
var myChoice:choice=new choice();
myChoice.x=100.0;
myChoice.y=100.0;
myChoice.name=“extravagant”;
addChild(myChoice);
trace(myChoice.name);
extravagant.addEventListener(MouseEvent.CLICK,moveSafe,false,0,true);
function moveSafe(event:MouseEvent):void
{
trace(“name change successful”);
}
when I test movie, I’m getting this error:
1120: Access of undefined property extravagant.
Is this is a bug or it’s me? as 3 is so strict and strange at times…jesus christ help me…
thanks…
x lisa x