fazelit
Member
سلام من کد زیر رو نوشتم
[PHPS]
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
function showChildren1(dispObj
isplayObject):void{
trace(dispObj);
for(var i:int=0; i< Object(this).dispObj.numChildren; i++){
//var obj
isplayObject= Object(this).dispObj.getChildAt(i);
/*if(obj is DisplayObjectContainer){
trace(obj.name , obj);
showChildren(obj);
}
else{
trace(obj);
}*/
}
}
showChildren1(stage);
[/PHPS]
من توی stage یه موی کلیپ و داخل اون هم چند موی کلیپ ساختم
اما خطای
[PHPS]
[object Stage]
TypeError: Error #1010: A term is undefined and has no properties.
at child_fla::MainTimeline/showChildren1()
at child_fla::MainTimeline/frame1()
[/PHPS]
میده.
مشکل از کجاست؟
[PHPS]
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
function showChildren1(dispObj
trace(dispObj);
for(var i:int=0; i< Object(this).dispObj.numChildren; i++){
//var obj
/*if(obj is DisplayObjectContainer){
trace(obj.name , obj);
showChildren(obj);
}
else{
trace(obj);
}*/
}
}
showChildren1(stage);
[/PHPS]
من توی stage یه موی کلیپ و داخل اون هم چند موی کلیپ ساختم
اما خطای
[PHPS]
[object Stage]
TypeError: Error #1010: A term is undefined and has no properties.
at child_fla::MainTimeline/showChildren1()
at child_fla::MainTimeline/frame1()
[/PHPS]
میده.
مشکل از کجاست؟