0
votes

I want to open a webpage from a flash button. I'm using adobe flash CS6, action script2.

Below is the code i have tried:

on (release, releaseOutside ) {
    getURL("http://www.google.com", "_self");
}

It works fine when i test it in (Test Movie -> in flash Professional).
But it doesn't work when i test using (Test Movie -> in Browser) and also doesn't work after exporting it.

1

1 Answers

1
votes

This is due to security measures. Change '_self' to '_blank' within your AS or set 'allowScriptAccess' to 'always' within your html. Refer to this page for more info.