Flashcamp 2008 Day 3 - Morning
Alright, I got the game ported to a Flex project. Now I can easily use various Flex Framework containers to position the game score information panel.
I created a canvas named GameArea, but I couldn't add the first Sprite (called cont), as a child of the GameArea. Flash gave an error that the Sprite isn't something that implements IUIComponent.
The answer was to get a reference to the stage:
GameArea.stage.addChild(cont);
One of the interesting side effects is that if the window for the game is too small, and scrollbars appear, the boxes of the game overlap the scrollbars. Also, I noticed that Alert messages are underneath all the boxes, sometimes making their "OK" buttons hard to click.
I need to submit this to http://www.flashcamp.org/submissions
Here is the first version: source:



Add Comment