Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

How to Register on LPF | LPF Donations

Help with Actionscript please

Joined
Sep 16, 2007
Messages
3,667
Points
113
Hey guys.

I've been working on developing a website.
Right now, I am trying to make a Flash banner.

The banner works great and when I test it in Flash, everything is ok and the links work.
The problem arises when I insert the Flash banner into Dreamweaver and preview the web page.
The banner is displayed fine and the animation works, however, when I click the button, rather than opening up the web site that is linked, I get this message:

Untitled-1copy.jpg


I've tried disabling pop-up blockers and changing settings for flash applications but nothing seems to work.

I am working in Flash CS3, using ActionScript 3. I've tried IE and Firefox.
Here is the code I am using to link the button:

spector_btn.addEventListener(MouseEvent.CLICK, btn1);
function btn1(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.spectorandco.com"), "_blank");
}
I've been searching the internet for some workarounds for hours to no avail. According to what I've found, this problem is due to changes in Adobe Flash Player 9 and later for security reasons.

Before you ask, the reason I'm not using animated GIFs (which would be much easier) is because I need to include 3 different links in each banner I am creating (3 banners with 3 links each for a total of 9 links).

Any help is appreciated.
Thanks for reading.
 





Hey guys.

I've been working on developing a website.
Right now, I am trying to make a Flash banner.

The banner works great and when I test it in Flash, everything is ok and the links work.
The problem arises when I insert the Flash banner into Dreamweaver and preview the web page.
The banner is displayed fine and the animation works, however, when I click the button, rather than opening up the web site that is linked, I get this message:

Untitled-1copy.jpg


I've tried disabling pop-up blockers and changing settings for flash applications but nothing seems to work.

I am working in Flash CS3, using ActionScript 3. I've tried IE and Firefox.
Here is the code I am using to link the button:

I've been searching the internet for some workarounds for hours to no avail. According to what I've found, this problem is due to changes in Adobe Flash Player 9 and later for security reasons.

Before you ask, the reason I'm not using animated GIFs (which would be much easier) is because I need to include 3 different links in each banner I am creating (3 banners with 3 links each for a total of 9 links).

Any help is appreciated.
Thanks for reading.

Flash is worried that it is a security problem. There is no (easy) way around it. You just have to add a exception in your flash settings.
 


Back
Top