This works:
(parent.root as Cardgenerator).makeglow();

Thanks, guys!

----- Original Message -----
From: Piers Cowburn <[EMAIL PROTECTED]>
Date: Tuesday, January 29, 2008 9:22 am
Subject: Re: [Flashcoders] dynaically generated mc reference to class that 
created it
To: Flash Coders List <flashcoders@chattyfig.figleaf.com>

> Is the movieclip on the display list? If so you should be able 
> to do  
> root.makeglow()
> 
> Piers
> 
> On 29 Jan 2008, at 14:54, BOYD SPEER wrote:
> 
> > Using AS3 I have a movieclip made (dynamically made) of a 
> class  
> > called "Dragon". Inside its main timeline in a frame script I 
> want  
> > to tell the object (the main class called Cardgenerator) 
> that  
> > created it to run a function called "makeglow". But I can't 
> seem to  
> > call a function there..any suggestions greatly appreciated. :)
> >
> > -Boyd
> >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> [EMAIL PROTECTED]
> 0207 631 3278
> 
> 
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to