05-04-2011 01:33 PM
I'm just trying to achieve the container example from the developement guide
But when I copy paste the code example in my brand new AS3 mobile project I only get a blank screen.
Someone can help me?
05-05-2011 05:10 AM - edited 05-05-2011 05:24 AM
Ok, it seems to work now. I had to add calls to the layout method after each addChild calls. It seems that the development guide is not up to date.
EDIT: It still not perfect - Components in the right container are not aligned in the middle of the container as they should be. I really don't understand.
05-05-2011 05:18 AM - edited 05-05-2011 05:20 AM
There are several possibilities why it does not work. A blank (or freezing) screen usually signifies that an error occured while running the program. Since it just stays blank a assume that it's a very basic error which doesn't even allow to load any content.
Are you using Flash Builder? Which version? Have you tried to run it in debug mode? That should tell you, which part of your code causes the error. I just copy&pasted it myself and it work perfectly fine.
05-05-2011 05:26 AM - edited 05-05-2011 05:29 AM
I'm using Flash Builder Burrito and the last blackberry SDK (1.0.1).
I tried in debug mode there is no error. But the screen is still blank if I don't add the .layout() calls.
05-05-2011 07:15 AM - edited 05-05-2011 07:16 AM
Interesting. I just copy&pasted the example 1:1 and it worked fine for me, I'm using Flash Builder Burrito and SDK 1.0.1 as well.