flash help please
- Started
- Last post
- 3 Responses
- seventhHope
i have a movie clip that i want to play when the mouse rolls over a button for the first time only. i was wondering if there is a way to restric the movie clip to play only on the first time the mouse rolls over the button.
- unfittoprint0
on (release) {
if (count != 1){
function()
count=1
}
}
- honda0
/*****
copy and paste this into your timeline. code was written assuming you know .as and is for flash mx.
******/
//set variables
sound = false;//buttons
button1.onRollOver = function (){
//check conditions...
if (sound == false){
//...allow _mc play state
yourSound_mc.gotoAndPlay("frameW...
sound = true;
}
}button1.onRollOut = function () {
//check conditions and...
if (sound == true){
//...set _mc no play state
yourSound_mc.gotoAndStop("firstF...
}
}stop();
- honda0
7th, i sent you an email with source code. enjoy.