Image alpha change in flash
Day
Night
First import images to flash document in different layers name as bellow
Now go to the day layer select image go to modify--->Convert to symbol type Movie clip dialog box fill as bellow
Then select day layer image give the instance name as fader_mc
select action layer press F9 button then action window appears type the bellow scripts in the action window.
mouseInterval=setInterval(changeAlpha,10);
function changeAlpha() {
fader_mc._alpha=Math.round
(_root._xmouse/550*100)
}
Now go to control-->Test Movie you can see the alpha changes mouse over other image
No comments:
Post a Comment