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 access it

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

2008-08-27 Thread Leandro Amano
Hi Helmut, try: for(var i:uint; istage.numChildren; i++){ trace(stage.getChildAt(i)); } best regards -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 8/27/08, Helmut Granda [EMAIL PROTECTED] wrote: yeah, still

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; istage.numChildren; i++){ trace(stage.getChildAt(i)); } best regards -- Leandro Amano

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
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

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

2008-08-27 Thread Merrill, Jason
. -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 being added to a blank FLA

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

2008-08-27 Thread Helmut Granda
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

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 Merrill, Jason
internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Wednesday, August 27, 2008 4:31 PM To: Flash Coders List Subject: Re: [Flashcoders] Access MainTimeline reference from within a component

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 and

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

2008-08-27 Thread Helmut Granda
subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Wednesday, August 27, 2008 4:31 PM To: Flash Coders List Subject: Re: [Flashcoders] Access MainTimeline reference from within a component Good question... If you

[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

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);