Link to home
Create AccountLog in
Avatar of AtDev
AtDev

asked on

swf flash button open in new window blocked

I am trying to get a button to open a new window but my actionscript on a button is being blocked by FF & IE.

on(release)
{
getURL("http://www.google.com", "_blank");
}
SOLUTION
Avatar of ddlam
ddlam
Flag of Hong Kong image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of AtDev
AtDev

ASKER

Thanks Samuel,

I've tried uploading it and that's where I'm having problems with the block. What source code for the <object> and actionscript are you using to avoid this?
Hmm, I normally just test movies using the same <Object> code as supplied by Adobe, by publishing the movie. (Publish-settings will give you the opportunity to add what types of files you wish to be created when you publish, make sure to check .html here).
Avatar of AtDev

ASKER

This is what I'm using:

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
      id="mysiteSWF"
width="560"
height="250">
      <param name="movie"
value="http://www.mysite.com/560x250.swf">
      <param name="FlashVars"
value="myVar=http://www.mysite.com/" />      
      <param name="quality" value="high">
      <param name="bgcolor" value="white">
      <embed
src="http://www.mysite.com/560x250.swf"
width="560"
height="250"
      quality="high" bgcolor="white"
      type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
      </object>
Avatar of AtDev

ASKER

No luck with this one either :-(

getURL( myVar, "_blank" );

This action script is still getting blocked. Any other suggestions?