Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
e interested in innovative learning > ideas and technologies? > Check out our internal Innovative Learning Blog & subscribe. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Helmut > Granda > Sent: Wednesday, Aug

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
I dont think it is hack-is if you get the file name as a reference right before the file is being compiled. IMO... On Wed, Aug 27, 2008 at 3:50 PM, Eduardo Omine <[EMAIL PROTECTED]>wrote: > I think the question is: what do you need the FLA filename for? > Relying on filename seems very hack-ish a

RE: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Merrill, Jason
& subscribe. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Helmut > Granda > Sent: Wednesday, August 27, 2008 4:04 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Access MainTimeline reference from within a >

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Eduardo Omine
I think the question is: what do you need the FLA filename for? Relying on filename seems very hack-ish and unreliable -- it's common to have files renamed during the development process and for testing purposes. -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ __

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Helmut > Granda > Sent: Wednesday, August 27, 2008 4:04 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Access MainTimeline reference from within a > component > > Ok, s

RE: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Merrill, Jason
Blog & subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Wednesday, August 27, 2008 4:04 PM To: Flash Coders List Subject: Re: [Flashcoders] Access MainTimeline reference from within a component Ok, so my component is b

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
Ok, so my component is being added to a blank FLA, which then it would have MainTimeline as the default name since there is no Document Class. Is there anyway to access the MainTimeline information from a blank FLA from within a component? On Wed, Aug 27, 2008 at 2:45 PM, Eduardo Omine <[EMAIL PR

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Eduardo Omine
I understand that Flash prepends the filename to "MainTimeline" as a convenience because there's no DocumentClass. "MainTimeline" is not a class or type definition, it's simply a default name. -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ __

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
Thanks Leandro... this still gives me the following: [class Stage] [object MovieClip] hum On Wed, Aug 27, 2008 at 12:27 PM, Leandro Amano <[EMAIL PROTECTED]>wrote: > Hi Helmut, try: > > for(var i:uint; i trace(stage.getChildAt(i)); > } > > best regards > -- > Leandro Amano > Digital Bug > C

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Leandro Amano
Hi Helmut, try: for(var i:uint; i wrote: > > yeah, still get [object LivePreviewParent]... > > On Wed, Aug 27, 2008 at 12:00 AM, poste9 <[EMAIL PROTECTED]> wrote: > > > have u tried this.root ? > > > > 2008/8/27 Helmut Granda <[EMAIL PROTECTED]> > > > > > Is it possible to access the MainTimeline

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-27 Thread Helmut Granda
yeah, still get [object LivePreviewParent]... On Wed, Aug 27, 2008 at 12:00 AM, poste9 <[EMAIL PROTECTED]> wrote: > have u tried this.root ? > > 2008/8/27 Helmut Granda <[EMAIL PROTECTED]> > > > Is it possible to access the MainTimeline from within a component? So far > I > > havent been able to

Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-26 Thread poste9
have u tried this.root ? 2008/8/27 Helmut Granda <[EMAIL PROTECTED]> > Is it possible to access the MainTimeline from within a component? So far I > havent been able to access it trying different methods. Most times I get > the > same result: > trace(parent); > trace(root); > trace(this.parent);

[Flashcoders] Access MainTimeline reference from within a component

2008-08-26 Thread Helmut Granda
Is it possible to access the MainTimeline from within a component? So far I havent been able to access it trying different methods. Most times I get the same result: trace(parent); trace(root); trace(this.parent); trace(this); trace(this.parent.parent); [object LivePreviewParent] [object LivePrevi