Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

swf flash button open in new window blocked

Posted on 2008-06-11
6
Medium Priority
?
989 Views
Last Modified: 2008-07-21
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");
}
0
Comment
Question by:AtDev
  • 3
  • 2
6 Comments
 
LVL 9

Assisted Solution

by:ddlam
ddlam earned 500 total points
ID: 21766323
That browser issue cannot be solved. When you upload your file to the network, you may see another issue.
0
 
LVL 12

Accepted Solution

by:
SamuelRostol earned 500 total points
ID: 21766588
Hi there,

As ddlam is writing, the issue is a problem several places. The issue is normally local - meaning that when you test your project from your local harddrive in an browser, such link doesn't work. However, they still work when you build the file in Flash. This causes comfusion.

The good thing is that when you upload the file so that it runs online, rather than locally, it normally works perfectly.

Try it out, and give us some feedback :)

Kindly,
Samuel
0
 

Author Comment

by:AtDev
ID: 21766654
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?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21766869
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).
0
 

Author Comment

by:AtDev
ID: 21766925
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>
0
 

Author Comment

by:AtDev
ID: 21767998
No luck with this one either :-(

getURL( myVar, "_blank" );

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question