swf flash button open in new window blocked

Posted on 2008-06-11
Medium Priority
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.

getURL("http://www.google.com", "_blank");
Question by:AtDev
  • 3
  • 2

Assisted Solution

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.
LVL 12

Accepted Solution

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 :)


Author Comment

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?
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

LVL 12

Expert Comment

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).

Author Comment

ID: 21766925
This is what I'm using:

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      <param name="movie"
      <param name="FlashVars"
value="myVar=http://www.mysite.com/" />      
      <param name="quality" value="high">
      <param name="bgcolor" value="white">
      quality="high" bgcolor="white"

Author Comment

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

getURL( myVar, "_blank" );

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

624 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