Archive for the ‘Flash’ Category

Top 10 Flex Development Mistakes

Saturday, April 19th, 2008

There is a really good post on InfoQ of the top 10 development mistakes in Flex Development. Most of these things a Flash developer just knows and a traditional web developer may not. To all the traditional developers out their building Flex this is for you. Remember this is basically a somewhat optimized version of Flash so you have to watch out for the traditional problems of Flash, memory alloc, client cpu, deep linking, etc.

Top 10 Flex Mistakes

Embedding Fonts in Flash Using AS3

Friday, April 18th, 2008

Gret new article on DevNet about embedding fonts in Flash.

Python Resources for Flex Development

Thursday, April 17th, 2008

Just wanted to post some resources for Python regarding Flex Development. I like Python, its a clean dynamic language that’s 10 times as fast to program as most languages. For AMF use PyAMF at http://pyamf.org/. Another great resource whether you use Python or not is TRAC at http://trac.edgewall.org/. It hooks into SVN and provides a face to your version control. And after you have TRAC installed, check out MYLYN at http://www.eclipse.org/mylyn/. It hooks into your TRAC repo and reflects bugs right there in eclipse. You can also use it with other bug trackers too so check it out if you’re not using it and you have an existing bug tracker. Of course you can use PyDev for Eclipse at http://pydev.sourceforge.net/ but I’m a solid TextMate fan and been using it since it was released.

Google Analytics and Flash Tracking

Thursday, April 10th, 2008

This great post provides a brief tutorial on how to use Google Analytics to track events and what not in your Flash applications.

Installing Ant in Flex Builder 3

Wednesday, April 9th, 2008

Until Flex Builder 3 Stand Alone includes Ant built in you will have to install it separately. For those that are not familiar with Eclipse, this can be tricky to install.The following is the revised steps for Flex Builder 3 Stand Alone.

  • Launch Flex Builder 3
  • Go to Help > Software Updates > Find and Install
  • Search for new features to install, click next
  • Select “The Eclipse Project Updates”, click finish   
  • Note: If you do not have the option above click New Remote Site and enter “The Eclipse Project Updates” as the name and “http://update.eclipse.org/updates/3.3″ as the url.
  • In Eclipse Project Updates > Eclipse SDK Eclipse 3.3.2 (3.3.3, 3.3.4, etc) Select “Eclipse Java Development Tools…”, or otherwise known as JDT click next
  • Accept the license agreement, click next
  • Click finish to start download
  • Eclipse downloads Java Development Tools
  • Click “Install all” to install Java Development Tools
  • Restart the Eclipse workbench

That’s it! You now have Apache Ant support in your standalone Flex Builder 3 install.Go to Window > Other View > Ant and Click OK. You now have the Ant view

AS3 Gotcha…CLEAN YOUR CODE!!

Tuesday, April 8th, 2008

So after reading Skinner’s post on AS3 Resource management I have one thing to say, CLEAN YOUR CODE!!  That means removing all listeners, and nulling out all of your visualloaders, etc.  Best thing to do is in all of your views have an initialize function and a clean function.  This way you can add listeners in your init and remove them in your clean function.  Also any displayobjects that you remove from the stage never get deleted, at least not that I know of and I build this stuff all day.  So everything that you have in that class is going to remain in memory. So if you can, remove them in your clean function.  Anyway, that’s all for now… have you all seen Google’s new app engine? HOT!!!

Improving Flex application performance using the Flash Player cache

Wednesday, April 2nd, 2008

Adobe has a great article on improving Flex performance.  Its a definite must read just for the slew of hints and tricks.  Alot of it deals with using Runtime Shared Libraries and a few optimization techniques when compiling your libraries.  Good stuff for all you Flex developers.

SHIFD Picked as Best AIR app at Engage 2008!

Tuesday, February 26th, 2008

The little AIR app we created for the Adobe AIR release got best of show, tied with Buzzword! Check out the article… http://www.webware.com/8301-1_109-9878909-2.html

Adobe AIR based SHIFD is now live!

Monday, February 25th, 2008

Following the release of Adobe AIR, my company, the ichameleon/group, has been working with Adobe and the New York Times on a small AIR demonstration app called SHIFD.  SHIFD is an awesome little app that saves data you see online and you can pick it up on the website, your mobile phone, iphone app or the AIR based desktop app.  The Adobe Air app was written entirely in AJAX wrapped around the Adobe AIR shell.  You can signup for an account at http://www.shifd.com or download some of the free tools at http://www.shifd.com/tools/ Here’s  a great article on SHIFD

File and FileStream and Saving Images with JPEGEncoder

Monday, February 25th, 2008

Here’s a great little code snippet that shows off the power of AIR and flex.

  bitmapData = new BitmapData(this.width,this.height);
    bitmapData.draw(this,new Matrix());
    var bitmap : Bitmap = new Bitmap(bitmapData);
    var jpg:JPEGEncoder = new JPEGEncoder();
    var ba:ByteArray = jpg.encode(bitmapData);
    newImage = File.desktopDirectory.resolvePath("Images/" + fileName.text + ".jpg");
    fileStream = new FileStream();
    fileStream.open(newImage, FileMode.UPDATE);
    fileStream.writeBytes(ba)

Props to EverythingFlex for this example…