Running "Test Movie" in the default demo.fla file (no modifications on my part) produces a .swf that just keeps looping through all the available worlds.
Is there something else that needs to be done in demo.fla in order for everything to work properly?
I'm using Flash CS4.
Suggestion: it would be nice if, rather than being completely dependent on the Flash IDE, there was a way to import graphical assets through an XML schema, or by embedding them directly into code like this: [Embed(source='../../data/MyPhysicsCrate.png')]
It would allow game developers to use a wide variety of tools to create their assets, and on multiple platforms (The Flex SDK is open source).
Also, taking a look at the
flixel engine architecture would probably help; the flixel FlxSprite class represents a game object very nicely (imo), because it abstracts the lower level details, and provides a standard update function where the developer can write all his logic code in a relatively straightforward manner.
I don't know how difficult it would be to do something like that with your port, but ideally, there would be some-sort of a "GameObject" class with a method where one could write code like this:
Code:
if (hitObject(lava)){
die();
}
PS: The demos are impressive.