Relative Classpaths in AS3
Posted by admin | Filed under Flash
I’ve been working in AS3 for about a year now and everyone in awhile I slip and use an AS2 property reference, for example ._alpha vs .alpha. The other place I find myself slipping is with classpaths. I work in a SVN development environment so it is important that all classpaths are defined relatively so they work across machines.
For simplicity’s sake here’s a sample of a very basic small Flash project.

In AS2 I would set the classpath as “classes/” to have access to the MyClass.as file in my project.fla.
In AS3 that doesn’t fly and the classpath must be set as ”../myProject/classes” or “./classes”. I’m not 100% clear on why “classes/” no longer works as all three paths seem the same to me, but suffice to say this caused a fair share of headaches when I first made the jump to AS3.
Flash 40 AJAX 3.2?
Posted by admin | Filed under Web Dev
The numbers in the title refer to the percent of web sites on the internet that make use of Adobe Flash and the percent of websites that utilize the XMLHttpRequest to calculate the AJAX figure. I came across these in an article over at Flash Magazine which referenced a survey done by the people over at Opera.
These numbers took me by surprise, maybe its the sites that I visit but I had the impression that AJAX was taking the web by storm. It’s this perception that prompted me to cut my time in the AS3 world and spend some time getting more familiar with AJAX techniques and my favorite Javascript Library, JQuery. I will continue utilizing both technologies but I just found it ironic to say the least that during a time where I’ve been very AJAX-centric that a report comes out showing such a strong flash prevalence. Then again it could simply be inflated by all those horrid “punch the monkey” banner ads.