{"id":94,"date":"2007-02-26T06:18:20","date_gmt":"2007-02-26T13:18:20","guid":{"rendered":"http:\/\/labs.zeh.com.br\/blog\/?p=94"},"modified":"2007-10-09T08:12:06","modified_gmt":"2007-10-09T15:12:06","slug":"flash-lite-2-is-actually-pretty-nice","status":"publish","type":"post","link":"https:\/\/labs.zeh.com.br\/blog\/?p=94","title":{"rendered":"Flash Lite 2 is actually pretty nice"},"content":{"rendered":"<p>One of the nice new things introduced by Flash Lite 2 is the ability to use Actionscript 2 when programming. For those of you who don&#8217;t remember, Flash Lite 1 was more or less a freak of the nature, with a language that was a mix of old Flash 4-ish &#8220;actions&#8221; and Flash 5 objects. Working with Flash Lite, today, is more similar to working with Flash 7 as a target.<\/p>\n<p>As such, part of my development work with <a href=\"https:\/\/labs.zeh.com.br\/blog\/?p=93\">Tweener<\/a> was testing how the class performed when being ran on a mobile device, both on Flash&#8217;s &#8220;emulator&#8221; and on the device itself. Some of these test samples turned out pretty well, so I&#8217;m releasing them as soon as I can get them to look nice. One of them is my &#8220;menu&#8221; example, created to show what Flash Lite is capable of when it comes to different menu types. This was created on half a day so it&#8217;s not any kind of revolutionary interface, just a few different icon menus. And luckily, it works in the browser.<\/p>\n<p><!--more--><script type=\"text\/javascript\" src=\"\/blog\/f\/swfobject.js\"><\/script><\/p>\n<div id=\"flashcontent\">{}<\/div>\n<p><script type=\"text\/javascript\">\n\tvar fo = new SWFObject(\"\/blog\/f\/menus_as2_flashlite2_flash8.swf\", \"index\", \"176\", \"208\", \"8\", \"#000000\", true);\n\tfo.setAttribute('xiRedirectUrl', 'https:\/\/labs.zeh.com.br\/blog');\n\tfo.write(\"flashcontent\");\n<\/script><\/p>\n<p>Click the above movie (to get focus) then use the <em>left <\/em>and <em>right<\/em> arrow keys to navigate from icon to icon. Pressing <em>up<\/em> or <em>down<\/em> switch between the different menu &#8220;types&#8221;.<\/p>\n<p>Speed on cellphones aren&#8217;t as fast (or as stable) as the ones shown above, though. Resizing and moving many vector drawings is still something the player can&#8217;t do very well. On my Nokia 6681, I get an average of 13 fps when moving, and 30fps when idle. Not bad for a start, though.<\/p>\n<p>Download the .fla and class source files <a href=\"http:\/\/tweener.googlecode.com\/svn\/trunk\/examples\/menus_as2_flashlite2_flash8.zip\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the nice new things introduced by Flash Lite 2 is the ability to use Actionscript 2 when programming. For those of you who don&#8217;t remember, Flash Lite 1 was more or less a freak of the nature, with a language that was a mix of old Flash 4-ish &#8220;actions&#8221; and Flash 5 objects. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,14,10,2,19,6,20,18],"tags":[],"_links":{"self":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts\/94"}],"collection":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94"}],"version-history":[{"count":0,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=\/wp\/v2\/posts\/94\/revisions"}],"wp:attachment":[{"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.zeh.com.br\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}