I guess I need to turn to the experts on this one. It’s probably very simple, however I am missing the solution.
Here is the code I am using:
btContact.onRollOver = over;
btContact.onRollOut = out;
btContact.onRelease = followLink("contact.swf");
//Start code
function over() {
trace("Rollover");
}
function out() {
trace("Rollout");
}
function followLink(linky:String):Void {
trace(linky + " Clicked.");
}
// NOTE btContact is a movieclip
// End code
The onRollOver and onRollOut triggers to their respective function calls work great. However, as I watch the output panel, followLink is run as soon as I hit Test Movie in Flash and not when I click on the movieclip. So if I have other buttons referring to that function, it runs that many times. Am I missing something? I sometimes don’t explain things very well, so let me know if you need more information.
Thanks so much, new friends.
dsJonCole