Solved

swf flash button open in new window blocked

Posted on 2008-06-11
6
981 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 250 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 250 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now