This is what I did to use flashvars:

AS
for (var i:String in Application.application.parameters) {
if (i=='woo')
        woo=Application.application.parameters[i];
}

html
AC_FL_RunContent(
...
"flashvars",'woo=jabadabaduu&historyUrl=history.htm%3F&lconid=' + 
lc_id + '',
...
)


--- In flexcoders@yahoogroups.com, "Dennis Falling" <[EMAIL PROTECTED]> 
wrote:
>
> No, I'm doing it with the template html file.  I've double-checked 
the html
> source in my browser after running and they're all there.  I've 
added the
> url=woo code in four places: the AC_FL function, the embed
> src="...swf?url=woo", the <param "flashvars" value="url=woo...", 
and the
> FlashVars="url=woo".
> 
> I'm sure it's probably not supposed to be in that many places, but 
I kept
> seeing different instructions and none of them have worked as of 
yet.  I'm
> using Flex 3.
> 
> 
> 
> On Wed, Apr 2, 2008 at 12:35 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> 
> >    It looks like you are doing this manually.  I always start 
with a
> > wrapper generated by FlexBuilder, and edit the AC_FL_RunContent 
function as
> > Rick suggests.  I have never had any problems.
> >
> > Tracy
> >
> >
> >  ------------------------------
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *dfalling
> > *Sent:* Wednesday, April 02, 2008 1:10 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] flashvars hate me
> >
> >
> >
> > I can't get flashvars to work... It seems pretty basic, but no 
mater
> > what I do they don't seem to show up in flex.
> >
> > AS:
> > woo = Application.application.parameters.url;
> >
> > HTML:
> > <param name="FlashVars" value="url=woo" />
> >
> > <embed ...
> > flashvars="url=woo">
> > </embed>
> >
> > What am I missing?
> >
> > Thanks!
> >
> >  
> >
>


Reply via email to