Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : 2 windows being opened with getURL()


bordelais7
6/2/2004 9:46:38 PM
Hi-

I'm a novice actionscripter, so bear with me if I don't provide enough detail
here. I have a flash movie with several buttons which all have the following
(or similar) AS attached:

on (release) {
getURL("pdf/datasheet.pdf");
}

which in theory, should open a browser and then load the specified file,
correct? Well, it works great except for the fact that about 80% of the time
(on a completely random basis) 2 windows are opened with the same content
instead of the desired 1 window.

The problem occurs on two different PC's that I've tested, but not on a
Macintosh. I'm using Flash MX 6.0 on Win2000 and IE.

The problem seems to disappear if I change the movie from 24fps to 12 or less,
which is not a desired solution, but which is an interesting discovery
nonetheless.

Any ideas, suggestions, or even rude comments would be much appreciated.

thanks in advance
Paycheck
6/2/2004 10:13:44 PM
I ran into the same product when I used release as the button action. Try
using on(pressRelease) or on Press as your button action and see what happens.
Sometimes the browser likes on press and they will run the action on press
leaving the on release to execute after.

Happened to me that way.

JM
bordelais7
6/2/2004 10:31:18 PM
AddThis Social Bookmark Button