|
-
The delete function is there so we can drop buttons that we want to delete and save the file under a specific name with only the button(s) available that we want. The fade in function is so any button we want in the file will appear at a particular point in an audio narrative. This is a master template to be used in generating many specific usage files.
----------------------------------------------------
Basically the needBtn function will determine if that button is visible/deleted or not. True or false makes the determination
Example:
var needTipBtn = true;
var secondsDelay = 1;
It will be visible in this case.
var needTipBtn = false;
var secondsDelay = 1;
It won't be visible.
----------------------------------------------------
This code makes the true/false choice work -
function removeTipBtn (){
if (needTipBtn == false) {
delete btnFadeIn_tip;
delete myInterval_tip;
delete tipBtn;
}
}
removeTipBtn();
tipTextObject._visible = false;
tipBtn._visible = false;
tipTextObject.textTarget.setTextFormat(tipFormat);
tipTextObject.textTarget.embedFonts = true;
tipTextObject.textTarget.htmlText = tipText;
function btnFadeIn_tip (){
tipBtn._visible = true;
clearInterval(myInterval_tip);
}
var myInterval_tip = setInterval(btnFadeIn_tip,(secondsDelay * 1000));
----------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|