A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Make the swf clickable

  1. #1
    Always Twirling Toward Freedom pooon's Avatar
    Join Date
    Oct 2001
    On the sunny beaches of Canada

    Make the swf clickable

    Hey folks, anyone know if it's possible to make and swf file clickable, not just the content in it. Like putting the swf file in a href link (which doesn't actually work). I know I can just make an invisible box in the flash document with the link, but that doesn't quite cut it for what I'm trying to do.

  2. #2
    Junior Member
    Join Date
    Sep 2010
    U can just do that by adding a button first to the page of the same size as of ur swf size and then make the embed tag transparent.
    <button onClick="window.location='Your_Page_To_Link.html'" style="background-color:transparent;border:0px;width:1200px;height:1 200px;">
    <object width="1200" height="1200" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    type="application/x-shockwave-flash" vspace="0" hspace="0">
    <PARAM name="movie" value="./swf/S11.swf"></PARAM>
    <!-- This is for making the embedded swf file transparent. -->
    <PARAM name="wmode" value="transparent"></PARAM>

    <embed id="test" src="./swf/S11.swf" frameborder="0" width="1200" height="1200" TYPE="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center