Did you get a compile error, or something else?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason The Saj
Sent: Tuesday, August 28, 2007 10:49 AM
To: [email protected]
Subject: [flexcoders] Re: Setting flashVars via SWFloader

 

I tried doing that in Flex but it balked.

<mx:SWFLoader source="mymovie.swf?testVar=foo"/>

Is this what you mean, or is there something else to it? Because the
above did not work for me. Nor did assigning it in ActionScript.

- Jason

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Instead of setting the FlashVars in the HTML wrapper, you can set URL
> parameters:
> 
> http://www.jasonthesaj.com/myswf.swf?foo=1&bar=2
<http://www.jasonthesaj.com/myswf.swf?foo=1&bar=2> 
> 
> Both FlashVars and URL parameters end up setting name/value pairs on
the
> Application.application.parameters Object.
> 
> - Gordon
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Jason The Saj
> Sent: Monday, August 27, 2007 2:25 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Setting flashVars via SWFloader
> 
> 
> 
> I have a .swf file created by Flex. Normally, this app is loaded into
> an HTML page and passed a number settings via flashVars.
> 
> I've written a second app which facilitates the configuring of these
> custom settings. I've tried to load the first Flex .swf into the
> second application via "SWFloader" with the intent of showing the
> result of the various settings.
> 
> I am able to pull the swf file in. But I need to be able to set the
> values for the flashVars, or if that is not possible - set the values
> for the corresponding internal variables.
> 
> --
> 
> Any one done this? Even a simple example of on Flex .swf loading
> another. And setting the .text value of a textArea component in a
> second .swf would be exceedingly helpful.
> 
> Sincerely,
> Jason
>

 

Reply via email to