Using same swf for different links

Reply

Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Using same swf for different links

 
0
  #1
Oct 16th, 2006
well i saw a problem with many while using same swf file and use it as a link in webpage. It wold show the quality of showing the required title and go to the webpage.

Make a box i.e. your button and a dynamic text field with var value linkName.

Convert that box into a symbol('option: movie clip') and write this code
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. on (release)
  2. {
  3. getURL(_root.linkValue.split("^").join("&"), "");
  4. }
thats over now whenever you make a link using flash button use this code in html file
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="157" height="26">
  2. <param name="movie" value="../../Swf/BTN157x26BLANK.swf?linkName=View Website&linkValue=http://www.livingchildren.com/">
  3. <param name="quality" value="high">
  4. <param name="wmode" value="transparent">
  5. <embed src="new.swf?linkName=Google&linkValue=http://www.google.com/" quality=high
  6. pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="157" height="26"></embed>
  7. </object>
note:
<embed src="new.swf?linkName=Google&linkValue=http://www.google.com/"
you give few parameters to that swf link

vishesh
Last edited by vishesh; Oct 16th, 2006 at 4:41 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC