944,161 Members | Top Members by Rank

Ad:
Oct 16th, 2006
0

Using same swf for different links

Expand Post »
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.
Similar Threads
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Graphics and Multimedia Forum Timeline: Flash buttons
Next Thread in Graphics and Multimedia Forum Timeline: window.close() not working in flash MX???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC