Hello Everyone,
I am a little new to actionscript and I have run into a wall that I can't break down. Basically, I am using the _visible. command to turn on and off some overlapping movie objects (it's a complex actionscript button). The actionscript works just fine click on a button and it turns red click on another button and the first button turns black while the latter now turns red.
The problem is that something in my actionscript is causing the following to occur. I click the first button and it goes red. I click the second button and it goes read. The first button stays red until I rollover my mouse on the button (I don't have any rollover functions) and all of a sudden it seems to refresh and go back to black as it should have done automatically...
Can anyone pleasse give me some insight as to why this is occuring?? Any help would be greatly appreciated I am standing in front of a wall I can’t break down :crying:
Im So Confused
Sincerely,
ps I am not sure of the correct way to upload my actionscript on this forum please advice if i am doing it incorrectly.
/*
var frameStop:String = null; // stop current external swf movie from playing
var xy:Number = null; //level number of the movie clip to be stopped
//
var menuStatic:MovieClip = null; //tells when to show or hide layer with red.
var enableIt:MovieClip = null; shows when to disable clicking.
// all buttons should not show static at first
stringOut._visible = false;
woodyOut._visible = false;
//when string button is clicked
stringIn.onRelease = function()
{
// re enable last menu choice and re show
enableIt.enabled = true;
menuStatic._visible = false;
//disable this button and hide it
stringIn.enabled = false;
stringOut._visible = true;
//stop movie that played last
_root["_level"+xy].gotoAndPlay(frameStop);
// load new movie or play this movie
loadMovieNum("stringing.swf", 2)
// set variables for next time
xy = 2;
frameStop = "stringStop";
menuStatic = stringOut;
enableIt = stringIn;
}
woodIn.onRelease = function()
{
enableIt.enabled = true;
menuStatic._visible = false;
woodIn.enabled = false;
woodyOut._visible = true;
_root["_level"+xy].gotoAndPlay(frameStop);
loadMovieNum("wooden.swf", 3);
xy = 3;
frameStop = "woodStop";
menuStatic = woodyOut;
enableIt = woodIn;
}
*/