Profit from Penny Stocks. Learn from a millionaire who shares everything!

First draft of Race To The Bottom as a flex app

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:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.