On 8/24/07, Jun Kaddy <[EMAIL PROTECTED]> wrote:
> Thanks for the help. I've extended your example a bit and I'm on my way to
> making Lemmings in HaXe, except I've run into a bit of a snag where flash9
> differs from what I'm used to.

Yay, Lemmings!  \o/

You have to subscribe to the event. You'll find that you have to do
that for pretty much anything, like to get MouseEvents:

flash.Lib.current.addEventListener( flash.events.Event.ENTER_FRAME, mainLoop );

> private function mainLoop () : Void
> {
>   Tick += 1;
> ....
> }
>
> Apparently not only has MovieClip moved into display in flash9 but it no
> longer has a onEnterFrame method.

I wouldn't use MovieClip. flash.display.Sprite is not as heavy and
should still do anything you're likely to need.

To migrate to the SWF9 API, have a good look at the display list (and
the flash.display.* package), and read up about the new events. That's
where most of the changes are.

HTH,
Mark

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to