[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Dynamic FlashVars and Foxfire

Posted on 2006-03-26
1
Medium Priority
?
546 Views
Last Modified: 2008-02-01
I using Javascript to parseout values to send via FlashVars so I'm using the 'document.write' method to construct the Flash related stuff. It works fine for ie but Foxfire chokes on opening. Clearly it has to do with escaping the quotes properly...can someone point me to a working sample?

<script language="JavaScript">
      document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" WIDTH=100% HEIGHT=100% name=\"campus\" id=\"campus\" >");
      document.write("<param name=movie value=campus4.swf>");
      document.write("<PARAM NAME=FlashVars VALUE=" + parseData() + ">");
      document.write("<param name=menu value=false>");
      document.write("<param name=quality value=high>");
      document.write("<embed src=campus4.swf\" menu=false FlashVars=" + parseData() + " name=\"campus\" swliveconnect=true  quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash >");
            document.write("</embed></object>");

0
Comment
Question by:juststeve
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 1000 total points
ID: 16296924
I found an issue in your code ..


quote is missing just before the SWF name...
----------------
embed src=\"campus4.swf\"
-----------------

and one missing quote will effect the all further codes..

check it if it fix the issue..

Rgds
Aneesh
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month19 days, 22 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question