kmax
July 2, 2004, 9:36pm
1
Hello, I just got mx 2004
I am trying to add an action to a button!
I clicked on the button and open the “Actions” panel.
This is the action script I am using…
on (release) {
getURL(“index.php”);
}
I cannot get it to work.
Any tips at all?
Thank you thank you
kj
You may have to type in the entire path to the file on the server. I know that even using websites with getURL it won’t work with just “www.whatever.com ” you have to actually type in “http://www.whatever.com ”
At least, that’s how it is in MX
:hr:
Hello, thanks for posting.
I tried that… does not work either… oh this is freaking making me so maddddahhhhh
In the button itsself… I dont have a layer called actions or anything…
I just click on the button from the main stage…
And open the actions panel… and put in the script… then save the movie…
Anything else to do?
Try
on(release){
trace("this button is being pressed")
}
just to make sure that part is working . . .
thanks… trying that right now…
I am getting nothing…
Anyone want to look at the fla?
are you getting a finger cursor? If not, you may have an empty frame in the “HIT” frame of the button, this will make it so you actually have no place to physically make contact with it (the HIT frame lets you define the “active” area of the button, nothing there makes the active area the shape of the button itself, however an empty frame means no active area - it can be easily overlooked and frustrating if/when discovered).
system
July 2, 2004, 10:00pm
9
Yes the cursor turn into a hand when I mouse over the buttons…
I did not do that before I added the script…
on (release) {
getURL(“index.php”);
}
Thanks
system
July 2, 2004, 10:01pm
10
and the trace gives you nothing? … might as well post the file
system
July 2, 2004, 10:06pm
11
it is probably something to do with this…
i made this originally in flash mx…
then opened it in 2004…
i had these buttons in a folder… so i did not see that the timeline for the buttons has some strange stuff going on…
Here it is…
http://www.videolinktechnologies.com/flash/antec.fla
thanks to all
system
July 2, 2004, 10:20pm
12
I did not see it because they were in a folder…
But all these button layers are fooobarrrred.
I will have to re do them…
system
July 2, 2004, 10:32pm
13
FIXED! Sorry about that.
I cant believe that happened just by opening it up in mx 2004…
Those layers in that folder were totally messed up.
I just remade the button layers… and pasted in the action…
Works like a charm…
Thanks to all!
system
July 3, 2004, 1:05pm
15
oh yeah… we just moved here about 3 weeks ago…
rock on!