12-15-2010 11:51 AM
Hello I'm finding it very hard to get started building anything for the BBPlaybook. 1 reason is because I want to make a simple game and I've not made one before but mainly because I don't know the following
Are there any tutorials on how to make a ui/game/any app with Flash builder?
All tutorials for action script games that I can find are made using flash e.g. http://pelfusion.com/tutorials/35-flash-game-devel
What exactly is adobe air? and what do I have to make my app with for it to be eligable for a frre playbook (if the app is any good)
is there a good framework for making games for the playbook/flashbuilder etc (something like xna for c#)?
I really appreciate any help as I'm just going round in circles at the moment not understanding anything
Solved! Go to Solution.
12-15-2010 11:59 AM - edited 12-15-2010 12:29 PM
My first suggesting would be just to get the HelloWorld application to compile and deploy on the PB.
There are lots of examples and tutorials on the web to developing Flex and AIR applications. The main difference is that Flex is an application deployed in a browser and an AIR application is the same (for the most part) deployed on the desktop. Since the OS is a "desktop" environment (vs. a browser), it will run an AIR application in its native Flash environment.
There are lots of games developed in Flash/Flex/AIR. If you've never developed a game before, then this fourm might not be the best place to get into game development. I am certain someone might have a few good sites to discuss that. If the game is 2D, then it can be pretty straight forward depending on your game logic. AIR will certainly manage all movement, visual effects and sound effects that you need. If you're going 3D, then there are some 3rd party 3D enviroments that you can look at include Away3D.
Hope that helps.
I would start browsing this forum since there are many threads discussing how to get a HelloWorld application up and running and deployment issues others had experienced.
12-15-2010 12:09 PM
I just submitted a game app to the App World Submission review process. It took me about a week to figure it all out.
Start by installing the Simulator and playing with some simple examples from the web.
Here's a good starting point:
The above example shows simple techniques for Sprite creation, animation. You can then extend it to use bitmaps.
Another example on how to capture mouse events is here:
For designing layouts and screen elements you can refer to the QNX documentation on containers:
You will also find lots of tips in this forum on using touch events..etc..
Google for "Flex examples" or "Actionscript examples" and if you cannot find a specific thing u need..just post a qn on this forum... Lots of smart folks hang around so you should be able to get help
12-15-2010 12:33 PM - edited 12-15-2010 01:06 PM
Just have to say a big thanks for the quick and helpful responses. I haven't had a chance to look at the sites you have suggested yet but will do now. I've accepted as the answer anyway as it really seems to be a great reply. Good luck on your submission I hope we both get a lovely shiney PB out of this.
Ok so I have had a quick play with the first sample you provided and I have tried to get it working using the helloworld code. I was unsucessfull here is what I did
Created a Ball and Bouncing as class and copied* in the code from the site
my main constructor looks like this
[SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
public class HelloBBPB extends Sprite
public function HelloBBPB()
var bouncingObj = new Bouncing();
i.e. I made a bouncing object and add child
Clearly I have missed out a vital step, would you be able to direct me a bit more ?
*when I copy code in it puts # in front of each line, whats that about?
Ok now I created the project at Bouncing and copied the code for bouncing.as from the site and that worked. My question is is there a way to get it working like I tried before? As Bouncing inherits from sprite can't I just add it like you would add a button? I don't understand why it didnt work the the first code (above)
12-20-2010 01:51 AM
In the first example,
Bouncing is the main class. It uses the "Ball" object from another class.
The variable "ball" in the init() function is instantiated as follows: