Yes, but what I was getting at, if it's a component, why does it need to
have access to the main timeline?  Components normally shouldn't be that
tightly coupled. 

Could you instead pass a reference to a public property in the component
of the filename instead of trying to access the filename from the
component itself?

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate 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, August 27, 2008 4:31 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Access MainTimeline reference from within a
component

Good question...
If you use the methtod describeType for the main timeline you are able
to
extract the file name you are working with.

//something like this:
trace(describeType(root));
<type name="Untitled_fla::MainTimeline"

Now this has to be done on the timeline, once you try to do
describeType(root) from within a movieclip (or a component) you will get
the
following:

trace(describeType(root));
<type name="flash.display::MovieClip"

So I am trying to extract the file name by targeting the
"MainTimeline"....
does that makes sense?

On Wed, Aug 27, 2008 at 3:13 PM, Merrill, Jason <
[EMAIL PROTECTED]> wrote:

> OK, I'll be the one to ask this.  So just curious, since components
> normally should be decoupled from objects outside themselves (i.e. the
> main timeline) - what is driving this - is there a better way to
> re-think this overall or must you really target the main timeline?
>
> Jason Merrill
> Bank of America
> Enterprise Technology & Global Risk L&LD
> Instructional Technology & Media
>
> Join the Bank of America Flash Platform Developer Community
>
> Are you a Bank of America associate 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, 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, 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 PROTECTED]>wrote:
>
> > 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/
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> ...helmut
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
...helmut
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to