I am running an swf preview.swf, How can i change the value of flash variable mode using jquery ??
I have code something like
AC_FL_RunContent(
"src", "preview",
"width", "378",
"height", "550",
"align", "middle",
"id", "preview",
"quality", "high",
"bgcolor", "#FFFFFF",
"name", "monogram_preview",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"FlashVars", "mode=0",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
You can use JavaScript’s Function.apply() method:
That being said, consider utilize SWFObject or some other modern way of embedding Flash.