var myContent:MovieClip = loadEvent.currentTarget.content as MovieClip;

...

then later...

myContent.myVar = something;


On 4 June 2010 18:46, Lehr, Theodore <ted_l...@federal.dell.com> wrote:

> What would it's instance name be?
>
> my last line is:
>
> addChild(loadEvent.currentTarget.content);
>
> ________________________________________
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [
> he...@henke37.cjb.net]
> Sent: Friday, June 04, 2010 12:39 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] setting variable
>
> Lehr, Theodore wrote:
> > So I am loading a swf - How can I set a value of a variable in that swf
> from the parent?
>
> Same as if it was a mc that you hadn't loaded separately.
> _______________________________________________
> 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
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to