Variables in JS/HTML not getting passed to SWF on 1struntime.

This is a discussion on Variables in JS/HTML not getting passed to SWF on 1struntime. within the Macromedia Flash forums in Adobe Tools category; I'm having an issue with getting variables to pass from a query string, to JS/HTML, to Flash on 1st runtime; 2nd, 3rd, ..., Nth runtimes work fine. Here's a the step-by-step explanation of how I am doing this: [bullet]Starting out on the http://www.deforestarchitects.com/pages/clients.htm page, if you click on one of the "See their project" links, it should take you to a project page that hosts a SWF file that will then display the correct, corresponding project for that client.[/bullet] [bullet]When the "See their project" link is clicked, it will then direct you to a page, but appending a variable in ...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-10-2008, 12:54 PM
JeremySeda
Guest
 
Default Variables in JS/HTML not getting passed to SWF on 1struntime.

I'm having an issue with getting variables to pass from a query string, to
JS/HTML, to Flash on 1st runtime; 2nd, 3rd, ..., Nth runtimes work fine.
Here's a the step-by-step explanation of how I am doing this:

[bullet]Starting out on the
http://www.deforestarchitects.com/pages/clients.htm page, if you click on one
of the "See their project" links, it should take you to a project page that
hosts a SWF file that will then display the correct, corresponding project for
that client.[/bullet]
[bullet]When the "See their project" link is clicked, it will then direct you
to a page, but appending a variable in a query string (i.e.,
http://www.deforestarchitects.com/pa...ject=fairhaven). [/bullet]
[bullet]This variable is then passed to the object, param and embed tags by
appending document location search after the *.swf in the param value and embed
src properties.[/bullet]
[bullet]f[/bullet]

document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,19,0" width="803" height="457">');
document.write('<param name="movie"
value="flash/remodels.swf'+document.location.search+'">');
document.write('<param name="quality" value="high">');
document.write('<embed src="flash/remodels.swf'+document.location.search+'"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="803" height="457">');
document.write('</embed>');
document.write('</object>');

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.