| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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="clsid 27CDB6E-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>'); |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.