joedunn
asked on
flash cs3 on release get url
I have a menu created in Flash CS3. It is a movie clip and I am trying to add the links to the buttons.
Here is what I have so far:
onClipEvent (load) {
num = 2;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
getURL(www.google.com);
}
However, it does not work. When I click the button, nothing happens.
1. Is this the correct method to add a link to this 'button'
2. How do I make it work?
Here is what I have so far:
onClipEvent (load) {
num = 2;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
getURL(www.google.com);
}
However, it does not work. When I click the button, nothing happens.
1. Is this the correct method to add a link to this 'button'
2. How do I make it work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Maybe I did not state my question correctly.
The tempalte I am editing has a Layer called 'menu2', when I double click that layer to open it up it shows all the different buttons in the menu, there are 12 of them.
(See Snap1)
When I click on the first menu option and then press F9 I see a window with a tab called 'Action - Movie Clip.
(See Snap2)
Note: Is it strange to anyone that there are 36 (12 x 3) butn items listed in menu2?
Anyway, where do I add, change, edit the action script code (see below)
onClipEvent (load) {
num = 1;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
So that each button, when clicked, will redirect the user to the correct internal page or external web site?
Thanks!
Snap2.gif
The tempalte I am editing has a Layer called 'menu2', when I double click that layer to open it up it shows all the different buttons in the menu, there are 12 of them.
(See Snap1)
When I click on the first menu option and then press F9 I see a window with a tab called 'Action - Movie Clip.
(See Snap2)
Note: Is it strange to anyone that there are 36 (12 x 3) butn items listed in menu2?
Anyway, where do I add, change, edit the action script code (see below)
onClipEvent (load) {
num = 1;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
So that each button, when clicked, will redirect the user to the correct internal page or external web site?
Thanks!
onClipEvent (load) {
num = 1;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
Snap1.gifSnap2.gif
ASKER
Thank You
onClipEvent (load) {
num = 2;
}
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
//// if you want to open it in new window you can use getURL("www.google.com","_blank");
getURL("www.google.com");
}
on (release) {
getURL("http://www.google.com");
}