Log in

View Full Version : flash button problem



mushroom
10-16-2007, 03:48 AM
Hi guys,
I'm having a problem with my button.
I'm not quite sure how to explain it in words. I'm very bad in explaining stuffs.:rolleyes: haha

ANyway I'll try
So. I have 2buttons ( ON button and Off Button ) in 1 movie clip and those 2 buttons link to another URL.
And it seems the button doesnt work and link properly.

Here's the script :
ON button :
on (release) {
getURL("index.php?do=ONHome","_self");
}


OFF Button :
on (release) {
getURL("index.php?do=OFFHome","_self");
}


another script in the movie clip is
stop();

this.onEnterFrame = function() {

if (rewind == true) {

prevFrame();

}

};
this.onRollOver = function() {

rewind = false;
play();

};
this.onRollOut = function() {

rewind = true;

};

I guess I shuld attach the file here to give a better understanding :)
Any help would be very much appreciated :)

Thx

BLiZZaRD
10-16-2007, 06:01 PM
If you linking to another URL you need to use absolute not relative.



on (release) {
getURL("http://nameofsite.com/index.php?do=ONHome","_self");
}


You should always use absolute URLs anyway. Also you need to set up the linkage (right click on button name in the library, select "linkage.." and check the box next to "Export for action script")