243 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Located in Europe
creativestuff says

hi, actually I am making a banner rotator using an external XML file which is given to the flash in HTML like this

<object> . . . <embed src="flashfile.swf?xmlFile=data.xml" ...... </object>

in FF is working well, in IE the parameter isn’t sent, becomes UNDEFINED

I don’t use any swfObject…

can somebody give me an HTML file working good with any kind of browser :(

243 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Located in Europe
creativestuff says

resolved the problem… sry for the post… please delete it :)

1955 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni says

How about you share what you found? When someone comes along with the same problem, he/she can see the solution :)

243 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Located in Europe
creativestuff says
How about you share what you found? When someone comes along with the same problem, he/she can see the solution :)

yeah … true…

so my problem was that I wanted to add an external variable for flash

In Firefox is enough to write:

<object height="289" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="505"> <param name="movie" value="index.swf" /> <param name="quality" value="high" /> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="index.swf?xmlFile=data.xml" height="289" quality="high" width="505"></embed> </object>

In IE you must add FlashVars:

<object height="289" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="505"> <param name="movie" value="index.swf" /> <param name="quality" value="high" /> <param name="FlashVars" value="xmlFile=data.xml" /> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="index.swf" flashvars="xmlFile=data.xml" height="289" xmlfile="data.xml" quality="high" width="505"></embed> </object>

So if you don’t use flashvars in FF will work ok but in IE the value of the xmlFile variable will be UNDEFINED

(BTW… the xmlFile variable will be assigned on the _root level in the flash)

Animated_Creativity
Animated_Creativity Recent Posts Threads Started
480 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Animated_Creativity says

Do not use FlashVars.

Use the same code that you are using for FireFox. But, do just one change.

<object height="289" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="505"> <param name="movie" value="index.swf?xmlFile=data.xml" /> <param name="quality" value="high" /> <embed src="index.swf?xmlFile=data.xml" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="289" quality="high" width="505"></embed> </object>

The change is…

You were specifying “index.swf” at 2 places. But, you were feeding the “xmlFile=data.xml” only at one place.

I use this solution since I know flash.

1 post
  • Has been part of the Envato Community for over 3 years
sg123 says

I’m working on a project that’s calling for external variables. Variable 1 is a simple text phrase, variable 2 is a text block of html code, variable 3 is a link and variable 4 is a color hexcode. In that XML file you refer to, that “data.xml”, how would I set up the list of variables? And how would I call those into the AS2 project?

Thanks
~SG

by
by
by
by
by
by