Prev | Current Page 689 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


< ?xml version=???1.0??? encoding=???iso-8859-1??? ? >
< movie width=???60??? height=???20??? framerate=???20??? >
< frame >
< clip id=???imgMouseOut??? import=???picture1.jpg???/ >
< clip id=???imgMouseOver??? import=???picture2.jpg???/ >
< clip id=???imgMouseDown??? import=???picture3.jpg???/ >
< library >
< clip id=???PictureButton??? >
< frame name=???mouseOut??? >
< place id=???imgMouseOut??? depth=???1??? / >
< stop / >
< /frame >
< frame name=???mouseOver??? >
< place id=???imgMouseOver??? depth=???2??? / >
< stop / >
< /frame >
< frame name=???mouseDown??? >
< place id=???imgMouseDown??? depth=???3??? / >
< stop / >
< /frame >
< /clip >
< /library >
< /frame >
< /movie >
The stop elements are required so that the movie does not advance automatically from one frame to the
next. On the haXe side, the code needed to manage the state transition between the different frames can
be as simple as the following:
import flash.MovieClip;
class Main
{
public static function main()
{
flash.


Pages:
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701