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");
}
on(release)
{
getURL("http://www.google.com", "_blank");
}
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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).
ASKER
This is what I'm using:
<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000"
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-shockw ave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</object>
<object classid="clsid:D27CDB6E-AE
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-shockw
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</object>
ASKER
No luck with this one either :-(
getURL( myVar, "_blank" );
This action script is still getting blocked. Any other suggestions?
getURL( myVar, "_blank" );
This action script is still getting blocked. Any other suggestions?
ASKER
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?