-
1. Re: enabling/disabling function
kglad Oct 4, 2013 1:12 PM (in response to Ron Colmen)var tipsOn:Boolean;
function tipS(tagTarget, helpTips) {
if(tipsOn){
tagTarget.onRollOver = function() {
h = _root.createEmptyMovieClip("h", 5);
h.attachMovie("tipBox", "tipBox", 10);
//other stuff - x,y, autoSize,backgroundColor,etc...
h.tipBox.message.text = helpTips;
h.onMouseMove = function() {
//x & y
}
}
tagTarget.onRollOut = function() {
removeMovieClip(h);
}
} else {
delete tagTarget.onRollOver;
delete tagTarget.onRollOut;
}
}
tipS(mc, "text");
-
2. Re: enabling/disabling function
Ron Colmen Oct 4, 2013 10:01 PM (in response to kglad)Thanks. I did this - did not work?
tips_btn.onRelease = function(){
tipsOn = !tipsOn;
//trace (tipsOn)
}
-
3. Re: enabling/disabling function
kglad Oct 5, 2013 6:23 AM (in response to Ron Colmen)that will work to toggle tipsOn as long as you used that first line of code i suggested:
var tipsOn:Boolean;
-
4. Re: enabling/disabling function
Ron Colmen Oct 5, 2013 8:57 AM (in response to kglad)Yes, I have included that. But does not wok.
var tipsOn:Boolean;
tips_btn.onRelease = function(){
tipsOn =!tipsOn;
//trace (tipsOn)
}
function dyoTip(tagTarget, helpTips) {
if(tipsOn){
tagTarget.onRollOver = function() {
h = _root.createEmptyMovieClip("h", 5);
h.attachMovie("toolTip_MC", "toolTip_MC", 10);
h.toolTip_MC.message.text = helpTips;
}
tagTarget.onRollOut = function() {
removeMovieClip(h);
}
} else {
delete tagTarget.onRollOver;
delete tagTarget.onRollOut;
}
}
dyoTip(a_mc, "test A");
-
5. Re: enabling/disabling function
kglad Oct 5, 2013 10:17 AM (in response to Ron Colmen)use:
tips_btn.onRelease = function() {
tipsOn = !tipsOn;
dyoTip(a_mc,"test A");
};
-
6. Re: enabling/disabling function
Ron Colmen Oct 5, 2013 10:36 AM (in response to kglad)Thanks Kglad.
-
7. Re: enabling/disabling function
kglad Oct 5, 2013 12:37 PM (in response to Ron Colmen)you're welcome.



