PDA

View Full Version : Button Script Problem



vanny95678
10-03-2006, 03:27 PM
HI everyone,

I have a button action script problem. Where you mouseover my buttons they dissapear and do not come back. I cannot figure out how to make this stop. Here's the example and the script:

http://www.lanenation.com/show.htm

----------------------------------------------------------------------
on (rollOver) {
if (_root.link<>1) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>1) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>1) {
this.gotoAndPlay("s3");
_root["item"+_root.link].gotoAndPlay("s2");
_root.link = 1;
}
getURL("iframe_1.html", "cont");
_root.button = 1;
}
---------------------------------------------------
I want the buttons to still have the rollover effect, but of course become visible.

AND . . . I also need for the button to link to the html page WITHOUT opening in a new window like it does now. I'm not sure if I need to change the "cont" item in the script to something else in order for that to work properly.

This is URGENT and any help would be most appreciated!!

NTD
10-18-2006, 01:31 PM
Hi,

Try using gotoAndStop instead of gotoAndPlay. In regards to the url question, "cont" would need to be a frame name in order to be targeted. The basic getURL window parameters...

_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.