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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

missing code in flashvars

Status
Not open for further replies.

luzippu

Programmer
Sep 2, 2003
24
GB
I need the flashvars below to retrieve the current url value:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" width="864" height="180">
<param name="movie" value="../assets/shockwave/mulino_head_docs.swf">
<param name="FlashVars" value="CurrentUrl=this needs to be looking at the current url value">
<param name="quality" value="high">
<embed src="../assets/shockwave/mulino_head_docs.swf"
FlashVars="CurrentUrl=this needs to be looking at the current url value"
quality="high"
pluginspage=" type="application/x-shockwave-flash"
width="864" height="180">
</embed>
</object>

Thank you
luzippu
 
You need to pass the parameters through the movie url. For example:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"[/URL]
    width="864" height="180">
        <param name="movie" value="../assets/shockwave/mulino_head_docs.swf?CurrentUrl=this need to be looking at the current url value">
    <param name="quality" value="high">
        <embed src="../assets/shockwave/mulino_head_docs.swfCurrentUrl=this need to be looking at the current url value"
        quality="high"
        pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL]
        type="application/x-shockwave-flash"
        width="864" height="180">
       </embed>
</object>

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
atomicchip

the code above is related to a flash menu and sits between an html page. the url i'm trying to get at, is not the url where the .swf file is , but the url of the current page: for example
in fact the same flash menu is used in several pages, and i need to pass a variable to the .swf file with the value of the current page in order to play specific movie clips to each page.

thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top