- Joined
- Sep 16, 2007
- Messages
- 3,658
- 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:
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:
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.
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:
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.spector_btn.addEventListener(MouseEvent.CLICK, btn1);
function btn1(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.spectorandco.com"), "_blank");
}
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.