Will it work on a Iphone

5 views
Skip to first unread message

stephend

unread,
Feb 10, 2010, 8:45:15 PM2/10/10
to Jangaroo Users
Hi
Just heard about Jangaroo on the Flex podcast, just wondering if the
resulting javascript would run on an iphone ?

Thanks.
Stephen.

Joo

unread,
Feb 11, 2010, 2:39:50 AM2/11/10
to Jangaroo Users
Definitely yes!
Just point your mobile Safari to the demo page [http://
www.jangaroo.net/files/examples/flash/lines/], and you should see the
Jangaroo version drawing lines, while the Flash version of course does
stays quiet!
Granted, on my iPod touch, it only performs one to three frames per
second (in contrast to 80 frames on my laptop, using desktop Safari).
But this demo applies expensive modifications: To fade away previously
drawn lines, a color transformation is applied to the canvas. Since
the canvas API does not offer color transformation natively, the only
possible implementation was to iterate all 384 x 384 = 147.456 pixels
(consisting of 4 bytes for ARGB, resulting in a total of 589.824
numbers being processed) from JavaScript. Honestly, I am astonished
how capable desktop JavaScript engines are today, delivering 80
frames / second of such a transformation! On the downside, I
experienced Firefox crashes when running the demo for a while---it
seems its canvas implementation is not completely robust as of today.
I even got my Tron game [http://www.jangaron.net] to run on the
iPhone, but for some reason, since some recent iPhone OS update, you
cannot start the game from the settings screen (I have to fix that),
so you have to start "Instant Action" to actually get into the game. A
special version with iPhone-adequate on-screen controls is available
at [http://www.jangaron.net/khtml/].
I'm looking forward to your feed-back!
Cheers,
-Frank-

stephend

unread,
Feb 11, 2010, 8:19:55 PM2/11/10
to Jangaroo Users
Thanks Frank.


On Feb 11, 6:39 pm, Joo <frank.wienb...@coremedia.com> wrote:
> Definitely yes!

> Just point your mobile Safari to the demo page [http://www.jangaroo.net/files/examples/flash/lines/], and you should see the

Reply all
Reply to author
Forward
0 new messages