Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : URL issue


Sharma
11/14/2006 10:03:21 PM
It's a very basic problem but I can't seem to crack it. The getURL command
is activated by a button which works fine when tested in Flash (Ctrl+Enter).
However, when I test it in the browser nothing happens. I am using the
following script on the button:

on (press) {
getURL("http://www.mywebsite.com",_blank);
}

I would appreciate any help/advice.
--
Nishi


pyollin
11/15/2006 12:00:00 AM
Try this.

on (press) {

getURL("http://www.mywebsite.com","_blank");

}

Sharma
11/15/2006 1:33:21 PM
Hi Peter

Yes, I have tried putting _blank in quotes as well and that doesn't seem to
work eaither.

Nishi

[quoted text, click to view]

oceanfeeling
11/15/2006 1:44:16 PM
Have you checked the Flash Player security settings?
Are you testing locally?

Try to publish for Flash Player 6 and re-test.

If it works it must be a security problem/pop-up manager or firewall.

Your code seems fine.
arunbe
11/15/2006 1:46:24 PM
hi,
just use some trace statements inside your actions script like,
on (press) {
trace("Test");
getURL("http://www.mywebsite.com","_blank");
}
I think, you didnt get the button action correctly...
This should wokr, if you have done correctly....
Sharma
11/15/2006 4:44:07 PM
Got it, thanks. It was the publish setting; changed it to Flash 6 and it
worked.

Thanks to you all, but especially to "oceanfeeling" - you cracked it.

Nishi

AddThis Social Bookmark Button