Actually this is no lockroot problem, like I thought it was for a moment. A friend told me it might be that but after a little thinking its clear that it isn´t . cause "this" gets the same movieclip. it is then really weird for me why does it returns different number of children .... ok i´ve solved the problem.
this function was called by the "top.swf" timeline as: infoBox.intro(); when running top.swf ok. but when running preloader.swf that will load top.swf, it didn´t work. What is the problem in calling a function (from main time line of swf Y) that is in a movieclipZ ( that´s inside the maintime line of Y), and then have a swf X loading the swf Y?? Thanks! > Hi fellows, I´m having a weird problem here: > > This code is inside the movieclip "Info_1", which is a child of the stage > in > top.swf. > > function intro():void{ > trace ("this: " + this); > trace ("thischldren: " + this.numChildren); > trace ("child 0: " + this.getChildAt(0)); > trace ("child 0name: " + this.getChildAt(0).name); > (...) > > and i-m using is a preloader.swf that loads top.swf. > when running top.swf it traces: > > this: [object Info_1] > thischldren: 9 > child 0: [object MovieClip] > child 0name: faixa > 12988 > > when running preloader.swf it traces: > > this: [object Info_1] > thischldren: 1 > child 0: [object Shape] > child 0name: instance6 > 18669 > > as you can see, the object "faixa" as well as many others are unacessible > when I execute preloader.swf. > any clue why that happens ?? > thanks !! > isaac > > > ------------------------------ > > Message: 4 > Date: Thu, 23 Jul 2009 15:17:45 -0300 > From: Isaac Alves <isaacal...@gmail.com> > Subject: [Flashcoders] accessing movieclips, problem using preloader > To: flashcoders@chattyfig.figleaf.com > Message-ID: > <9719fa510907231117p5865f79ay15f24b66b0a53...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > it worked with MovieClip(parent). > > im looking now for something like lockRoot for as3 > any clue how could I handle this? > > thanks! > isaac > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders