Hello,
I am new to AS 3 and I tried to solve this (probably really simple) problem, but I couldn’t, so I gotta ask here.
All I did was create a child through a function in my document class. It is in fact an altered version of the rotate circles tutorial from kirupa.
function makeCircle (e:Event):void {
var circle:BlueCircle=new BlueCircle ;
circle.x=Math.random()*this.stage.stageWidth;
this.addChild (circle);
}
Now all I want to do is increase the child’s x value by another function in the document class. But I don’t know how I can “adress” the created child. What do I need to write instead just “circle.x ++”.
Thank you.