Take the code out of the movieclip and put everything in a class that is 
associated with that movieclip (Linkage+Class) through the 
library.

regards,
Muzak

----- Original Message ----- 
From: "Jiri Heitlager | dadata.org" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 18, 2007 9:34 PM
Subject: Re: [Flashcoders] Init generic clip


>
> Thnks for the posts
>
> Both suggested solutions don't work, altough the first one by Gilles does 
> work. But I want the button to be selfcontained, no 
> external initFunctions. Just a MovieClip onStage called btn and on the parent 
> timeline of btn something like
> btn.setLabel('hello world')
>
> The onLoad suggestion I dont get working.
> btn.onLoad = function(){
> this.setLabel('hello world')
> }
> this is actual the same as the onEnterFrame. It is not that I have a problem 
> with the onEnterFrame, I just dont understand how 
> Flash VM works.  Basically I would like the enclosed script to be executed 
> before the frame of the timeline it is seen on is 
> started. Is this possible.
>
> For more light on what I am trying to achive, the file can be downloaded here:
> playground.dadata.org/initButtonWoo.fla
>
> Jiri Heitlager | dadata.org wrote:


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to