|
Download the sample file
Frame 1 behavior script on exitFrame me go to the frame --This keeps the movie playing on frame 1 continuously. end
Mouse Up and Down Button behavior script on mouseDown put "MouseDown is anywhere in the sprite" into field 3 end on mouseUp put "MouseUp is anywhere in the sprite" into field 3 end
Mouse Enter and Leave behavior scripts on mouseEnter put "MouseEnter is on the edge of the sprite" into field 3 end on mouseLeave put "MouseLeave is on the edge of the sprite" into field 3 end
Mouse Within behavior scripts on mouseWithin put "MouseWithin is anywhere in the sprite, and it continually processes \ its commands. It is similar to ExitFrame." into field 3 sprite(2).locV = sprite(2).locV +1 end
on mouseLeave sprite(2).locV = 10 --Put the sprite back. put "" into field 3 end
Mouse Up Outside Behavior script on mouseUpOutside put "MouseUpOutside is anywhere in the sprite with a swipe \ outside of the sprite." into field 3 end
Exit Frame behavior script -- Use a timer to change between 8 colors. global i exitFrame i = i + 1 if i >= 8 then i = 0 end if member(member 12 of castLib 1).foreColor = i+55 end
Start and Stop Movie, movie script -- Put no text into the field. on startMovie put "" into field 3 end on stopMovie put "" into field 3 end |