Re: [Flashcoders] Detect iPhone version

2010-10-11 Thread Kevin Newman
I've read in another source, that capabilities.os will return the actual 
iPhone model code ( iPhone1,1 = Original, iPhone1,2 is 3G, etc )


I can't tell you where I read that, because the first rule about it is, 
you don't talk about it. It's the second rule too.


Kevin N.


On 10/2/10 3:06 AM, Kevin Newman wrote:

 Hi,

Anyone know how to detect the iPhone version a Flash CS5 iPhone app is 
running on? I have a game that runs at 59.1 FPS on a 3GS or ~45FPS on 
an older iPod touch.


I'd like to be able to detect which device the app is running on, so I 
can throttle back the FPS, to 30 or 40 on slower hardware (30 for 
iPhone 3G which is slightly less powerful on paper, than iPod touch 2g).


BTW, the frameskip feature isn't very smooth (I'm using the 
ENTER_FRAME/stage.invalidate()/RENDER method).


Thanks,

Kevin N.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash CS5 iPhone development question

2010-10-11 Thread Sajid Saiyed
Hi,
Have'nt seem much discussion on this subject yet.

I am starting to experiment with the iPhone packager and had few questions.

Any idea how to store data locally? For example Game Levels or
Application data etc.?
Can Flash CS5 make use of SqLite database? Any tutorials available?

Thanks and I will keep posting my experiment results here.
So far, it seems to work smoothly. I am going to try more intensive
apps to explore the limits.

-Sajid
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders