Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading parameters from HTML document

Status
Not open for further replies.

benny2168

Technical User
Jun 27, 2005
65
US
Here's the code I have in my HTML document to embed my flash movie:

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"[/URL] width="550" height="400" id="flashMovie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flashMovie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
[COLOR=red]<param name="url" value="[URL unfurl="true"]http://www.tek-tips.com"[/URL] />[/color]
<embed src="flashMovie.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="flashMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] />
</object>

(the line in red is an extra parameter)

Is there any way for Flash to read this "url" parameter and incorporate it within the flashMovie.swf?

Or is there a way to get the flash player to read what the URL of the current page is?

Thanks all help is appreciated.
 
pass the parameters as a query string then flash will read them just fine

getting the url of the page its in is probably best passed with javascript
 
getting the url of the page its in is probably best passed with javascript

what kind of JS script would I use to accomplish this? (say on a button press i would like a textbox to display the current url)
 
thank you very much, the instructions are great
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top