Flash CS3 - Button dosent work?
Dont ask me why BUT when I test this code in my adobe flash CS3 it works fine and the link opens fine now when I test this on my server it does not open the link...
Any Ideas?
Thanks, Regards X
Below is my code:
button_N.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.google.com/"));
}
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
Same thing no luck...
If it makes a difference the fla filed is published as n swf and then loaded by another bigger fla to play it but this should matter...
Like with the things all above, they are more correct programming then actually being right and wrong.
Tried everything above still same thing worked off server didnt work on server.
Note: MouseDown and Click both worked.
Thanks, keep the help coming.
Regards, X
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
I had a similar problem integrating paypal. It was a security feature problem. I changed my allowScriptAccess and allowNetworking param values and it fixed things. Here's what I set the values at:
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
I made my own solution.
I went to publishing settings and change the version from Flash Player 9 to Flash Player 8.
Ive seen similar code like above to declare a button being selected.
Im thinking for long ass flash movies the new AS3 is alot better but for short sharp stuff like this "on release" is a whole lot easier.
Anyways it works now, GG Flash Player 8!
Might give flash player 9 a try some time in the near future.
Thanks, Regards X
PS: Thanks for all the help im sure ill use it in the future
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10