|
|
[F8] Please Help Problem With Var ChangeOptionColor
I cannot understand what i am missing here. Simple movie clip menu and I want to change the roll over states. My movie clip dynamic text is white. I want the roll out state to return to white however it will not work. Am I missing something here?????
If not, what would interfere with the color??
stop(); MM_logo.enabled = false;
//---------<define option colors>-----------\
var overColor:Number = cccccc; var outColor:Number = ffffff;
function changeOptionColor(myOption:MovieClip, myColor:Number) { myOption.textLabel.textColor = myColor; }
//---------</define option colors>-----------\
//---------------<re-enable menu options>--------------------\ function reActivateBtns() { MM_logo.enabled = true; MM_home.enabled = true; MM_bio.enabled = true; MM_portfolio.enabled = true; MM_resume.enabled = true; changeOptionColor(MM_home, outColor); changeOptionColor(MM_bio, outColor); changeOptionColor(MM_portfolio, outColor); changeOptionColor(MM_resume, outColor); } //---------------</re-enable menu options>------------\
//---------<logo option>-----------\ MM_logo.onRelease = function () { reActivateBtns(); _level0.myMCL.loadClip("main_menu.swf", 7); }
//---------</logo option>-----------\
//---------<home option>-----------\ MM_home.onRollOver = function () { changeOptionColor(this, overColor); }
MM_home.onRollOut = function () { changeOptionColor(this, outColor); }
MM_home.onRelease = function () { reActivateBtns(); changeOptionColor(this, overColor); this.enabled = false; } //---------</home option>-----------\
//---------<bio option>-----------\ MM_bio.onRollOver = function () { changeOptionColor(this, overColor);
}
MM_bio.onRollOut = function () { changeOptionColor(this, outColor);
}
MM_bio.onRelease = function () { reActivateBtns(); changeOptionColor(this, overColor); this.enabled = false; } //---------</bio option>-----------\
//---------<portfolio option>-----------\ MM_portfolio.onRollOver = function () { changeOptionColor(this, overColor); }
MM_portfolio.onRollOut = function () { changeOptionColor(this, outColor);
} MM_portfolio.onRelease = function () { reActivateBtns(); changeOptionColor(this, overColor); this.enabled = false; } //---------</portfolio option>-----------\
//---------<resume option>-----------\ MM_resume.onRollOver = function () { changeOptionColor(this, overColor); }
MM_resume.onRollOut = function () { changeOptionColor(this, outColor);
} MM_resume.onRelease = function () { reActivateBtns(); changeOptionColor(this, overColor); this.enabled = false; }
//---------</resume option>-----------\
FlashKit > Flash Help > Flash General Help
Posted on: 07-21-2008, 05:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|