PDA

View Full Version : Child variables



stupidsaint
June 7th, 2009, 07:38 AM
I have started as3 two days ago and havnt been able to work this one out.

I have set a for statement that will attach movie clip to the stage. Now all i want to do is link the movieclip to an id.

for(var i=0;i<5;i++){
var movier = new cliper()
movier.idNumber = i//<<<<<< this doesnt work
addChild(movier)
}

later on i added a click listener and wanted to recall its id number but couldn't.

Is there anyway to do this

JonnyR
June 7th, 2009, 11:27 AM
Saint,

I think you are going to have to post a little bit more code so we can understand what the problem is, please post the event listner which is not "recalling the id number" and wrap your code in [ as ] [ /as ] blocks to get pretty formatting.

Jonny.