On Jun 1, 10:10 pm, "menehune3" <webforumsu....TakeThisOut@macromedia.com> wrote:
> How do I get it to not play again after clicking? I realize it is responding
> this way because after I click, I am technically "mousing over" because my
> mouse is still there. Do I need to do this differently or is there some simple
> text I can add so that it doesn't play again?
You can disable the button when you tell it to do whatever else it's
meant to do. In Flash 8, try this from the main timeline:
button.onRollOver = function() {
// your buttons regular actions here, then disable the button with
_root.button.enabled = false;
}
In Flash 9, try this from the main timeline:
button.addEventListener("mouseOver", doThis);
function doThis(event:MouseEvent) {
// your buttons regular actions here, then disable the button with
this.button.enabled = false
}
Hope this helps!
>> Stay informed about: Newbie - Trouble with movie embedded in a button