cdugga
cdugga

Reputation: 3859

flashVars flex3

hi im trying to using flashVars however for some reason there not getting sent to my flex app.

Im embedding my object in a velocity file and here is the object embed code;

<object width="$!WIDTH" height="$!HEIGHT">
    <param name="flashVars" value="maximizeUrl=http://maximizeUrl"/>       
    <param name="movie" value="$!SRC"/>
    <embed src="$!SRC" width="$!WIDTH" height="$!HEIGHT"/>
</object>

any ideas why this is not happening for me?

Upvotes: 1

Views: 871

Answers (2)

kenneth
kenneth

Reputation: 1065

I agree with the answer from David, use SWFObject or prefreably use the code that comes with flexbuilder. check out my answer for this question https://stackoverflow.com/questions/452402/how-to-make-javascript-talk-to-flash-ac3-embedded-with-swfobject-2-0#461727

Upvotes: 0

David Hanak
David Hanak

Reputation: 10974

I assume you're having problems with Firefox, which ignores the object tag, and uses the embed tag instead. You need to add the flashvars parameter as an attribute there as well:

<object width="$!WIDTH" height="$!HEIGHT">
        <param name="flashVars" value="maximizeUrl=http://maximizeUrl"/>       
    <param name="movie" value="$!SRC"/>
    <embed src="$!SRC" width="$!WIDTH" height="$!HEIGHT" flashVars="maximizeUrl=http://maximizeUrl"/>
</object>

Alternatively, you could use SWFObject to dynamically generate the embedding code.

Upvotes: 2

Related Questions