Flash Content and Relative links
-
I’m just getting our firm’s blog up and running and I’m trying to put Flash content on the header of every page. The flash has buttons in it…so I wrote this code:
<script language="JavaScript" type="text/javascript"> <!-- if(hasRightVersion) { writeFlash("https://www.customchannels.net/connect/flash_header.swf",772,169,"hdradio"); } else {
And I have the following in the actionscripting for each button (the example below is for the retail button ) in flash:
on(release) { getURL("https://www.customchannels.net/retail.php"); }
However, when I click the button it won’t go anywhere. BUT when I change the JavaScript code to a relative path (ie: if(hasRightVersion) {writeFlash(“../flash_header.swf”,772,169,”hdradio”);) all the buttons work.
I would say problem solved except that it’s for a template and this relative path ceases to point to the correct swf when someone clicks on a permalink or comments (the way I have it set up)
I appreciate any help or thoughts any one has.
The wordpress site url is:
https://www.customchannels.net/connect
- The topic ‘Flash Content and Relative links’ is closed to new replies.