How to add a new link which opens new window

Discussion in 'HTML & Website Design' started by dean5000v, Apr 21, 2008.

  1. #1
    Ok here is a simple slash file i have embedded i would like to know how to make it so when u click on it it opens up a website in a new window. heres the code thanks.


    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','519','height','108','src','bst-online','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','bst-online' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="519" height="108">
      <param name="movie" value="bst-online.swf" />
      <param name="quality" value="high" />
      <embed src="bst-online.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="519" height="108"></embed>
    </object></noscript></div>
    
    Code (markup):

     
    dean5000v, Apr 21, 2008 IP
  2. Plexcess

    Plexcess Well-Known Member

    Messages:
    57
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    108
    #2
    I could be wrong but I think you need to actually add some actionscript code to get your .swf to open in a new window. I basically make a transparent button the size of my movie and use getURL("www.whatever.com", "_blank"); on the button.

    I don't think you can open a new window just through your embedded code. It may be possible with javascript. however...
     
    Plexcess, Apr 22, 2008 IP
  3. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Yeah, I think that has to be done in the actionscript.
     
    itcn, Apr 22, 2008 IP