Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Posts: 23
Registered: ‎12-08-2010
My Device: Pearl 9100/Playbook (sim)

Air Based simple Tic Tac Toe game port to playbook?

Hey there,

 

Does anyone know of an actionscript based tic tac toe game that is opensource and can be fairly easily ported to the playbook?

 

Thanks!

New Developer
Posts: 36
Registered: ‎12-09-2010
My Device: PlayBook Simulator

Re: Air Based simple Tic Tac Toe game port to playbook?

This might be worth checking out:

 

http://www.flashosophy.com/articles/flash/Advanced_TicTacToe_Timeline/

 

If you follow/adapt, the lesson, I guess you own the code. If you just copy and paste, maybe track down the author.

 

For fun, I just took the code and got it running in the simulator in about two minutes.

 

 

Contributor
Posts: 23
Registered: ‎12-08-2010
My Device: Pearl 9100/Playbook (sim)

Re: Air Based simple Tic Tac Toe game port to playbook?

[ Edited ]

How did you take the code to try? I only get fla and swf files when I download the source? 

 

I'm using the Flash Builder Burrito.

 

Basically, how did you get it working on the simulator?

 

Thanks!

 

P.s. sorry if this is a dumb question, I'm really new to this Smiley Tongue

New Developer
Posts: 36
Registered: ‎12-09-2010
My Device: PlayBook Simulator

Re: Air Based simple Tic Tac Toe game port to playbook?

I use Flash, not Flash Builder (though I did try the hello world app in Flash Builder 4). Here's an article on taking things from Flash to the simulator:

 

http://renaun.com/blog/2010/11/building-blackberry-playbook-apps-with-flash-professional-cs5/

 

I followed that, and it's quite quick to get Flash things to run on the simulator.

 

 

Contributor
Posts: 23
Registered: ‎12-08-2010
My Device: Pearl 9100/Playbook (sim)

Re: Air Based simple Tic Tac Toe game port to playbook?

Thanks! I followed the guide, but when I publish the game no xml file is made? and I thought you needed an project-name_app.xml file for playbook apps.

 

How did you create this?

 

Thanks again!

 

P.S. in the tutorial I didnt know how to convert the fla file for the tic tac toe into a new air app, could that be why I get no XML file?

Highlighted
New Developer
Posts: 36
Registered: ‎12-09-2010
My Device: PlayBook Simulator

Re: Air Based simple Tic Tac Toe game port to playbook?

When you open the FLA, go into Publishing Settings, Flash, and where it says Player, select AIR. After that you should start to get the descriptor file.

Contributor
Posts: 23
Registered: ‎12-08-2010
My Device: Pearl 9100/Playbook (sim)

Re: Air Based simple Tic Tac Toe game port to playbook?

[ Edited ]

Great! I got it running! Thanks!

 

But, now the trick is to get it to fit the playbook screen, any ideas on how to do this?

 

I've attached a screenshot to show what I mean.

 

Tic Tac Toe on Playbook Simulator

 

Thanks!

Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Air Based simple Tic Tac Toe game port to playbook?

[ Edited ]

i've also experiences a resizing bug with the previously mentioned hack to test Flash CS5 content on QNX simulator with SDK 0.9.1.

 

it seems this issue may only affect VMWare Fusion on Mac OS X.  the application descriptor .xml file that Flash CS5 creates causes the scale error.  try using this template instead:

 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
        <id>APP_NAME_ID</id>
        <filename>APP_NAME</filename>
<name>APP_NAME</name>
<versionNumber>1.0.0</versionNumber> <copyright>COPYRIGHT_STRING</copyright> <initialWindow> <content>APP_NAME.swf</content>
</initialWindow> </application>

 

 

while this solves the scaling bug, i still have not been able to employ any of the qnx.* packages as they are just not read by the simulator, even though it compiles and launches.

 

i'm anxiously awaiting for the official Flash CS5 plug-in, but in the meantime, because of these major bugs caused by the hack-solution, i've realized my best best is to just use Flash Builder.


PlayBook Applications:
Drop Swatch
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Air Based simple Tic Tac Toe game port to playbook?

Remember, to be accepted into App World, you have to have rights to the application and any assets associated with it.  Just need to get the original authors approval.

New Developer
Posts: 36
Registered: ‎12-09-2010
My Device: PlayBook Simulator

Re: Air Based simple Tic Tac Toe game port to playbook?

I'm on a Mac, using Fusion, and the game sized ok for me.