Robots w/Lasers

April 5, 2007

Apollo App: AS3 Tip of the Day

This is another fairly quick app I wrote, it pulls the posts from senocular’s AS3 Tip of the Day thread, and then displays them in a little browser (minus all the other forum cruft). It also caches them to disk, so each tip needs to be loaded only once.

(sorry for the lame interface)

AS3Tips.air — install file, requires Apollo Alpha Runtime.
AS3Tips.mxml — source code

Thanks to senocular for writing these amazingly helpful AS3 tips!

Filed under: Apollo,Flash,flex — davr @ 9:27 pm

March 28, 2007

Native file browse dialog in Apollo

I haven’t seen any examples on how to use the native OS browse dialogs for opening & saving files, so here’s a quick example.

Basically, the idea is to use the File (which extends FileReference) class, and pretend to upload or download files from the net, but not actually perform the action, and just grab the file’s path directly.

This app allows you to load a PNG or JPEG, apply a blur effect, then save it as a JPEG again. It requires the JPGEncoder from the AS3 corelib

Download BrowseExample.mxml (only works with Apollo, not in a browser etc)

Install BrowseExample.air
(more…)

Filed under: Apollo,Flash — davr @ 8:26 pm

March 21, 2007

Lyric Station – Apollo App

I saw this post by Marcos P. who created an app for searching for song lyrics. I took it and added a few small enhancements:

  • Download raw lyrics instead of html — saves bandwidth & time
  • Better layout — I take advantage of Flex’s layout capabilities to make the interface resizable
  • Partial match searching — If a song is not found, I call out to the search page in the lyrics wiki, and then parse the results. This allows to find songs if you don’t know the exact name, or miss a ‘the’, or to browse all songs by a certain artist

LyricStation.air — requires the Apollo Runtime Alpha 1 in order to use. AIR file also includes the source code.

Many thanks to Marcos for giving out the source! It’s a great learning experience to hack on other people’s code that they’ve already gotten started for you.

Filed under: Apollo,Flash,flex — davr @ 9:09 pm

February 21, 2007

Actionscript3 Quickstart Reference

I put together a quick reference to getting started on writing Actionscript3 applications (which target the Flash 9 runtime), using only free tools (on Windows). Also a few handy documentation / language reference links. It’s everything you need to start writing your own high-performance Flash applications, including PaperVision3D. Check it out.

Filed under: Flash — davr @ 2:52 pm

February 13, 2007

PaperVision3D

This looks pretty neat, it’s an opensource 3D library written completely in actionscript3, for flash9+. It’s the first serious 3d engine I’ve seen in flash, and while it is still at an early stage (somewhat closed beta, if you join the mailing list you can find info on how to get it), it looks like it will be amazing. The coding is clean, and there is already some documentation (often rare in opensource projects).

Here is a quick test with some Bouncing Cubes that I’ve made:
(more…)

Filed under: Flash — davr @ 3:58 pm
« Previous PageNext Page »

Powered by WordPress

Bad Behavior has blocked 414 access attempts in the last 7 days.




Paid Advertisements
Bingo - Credit Consolidation - click fraud protection - Phoenix Landscaping