the thinBlog

Friday, August 15, 2008

Simple AS3

Josh Tynjala took Colin Moock Charges Against AS3 and turned it into a solution called SimpleAS3. I know alot of flash designers and old school developers will love this approach because it helps them to get into AS3 without worrying to much about all the headaches of learning the new structure.

I gotta say though I am on the fence with this one. Is this framework getting developers into a bad habits? Shouldn't you just learn how to do things the right way instead of just reverting to older practices? I guess it's like the argument with CSS developers snapping that tables are not proper use of HTML for layout. Some developers still use it.

In any regard it's still an interesting solution to the problem and I am sure will get adopted by a lot of people.

Check it.

Labels: ,

posted by Romke de Haan at 10:06 AM 1 comments

Wednesday, July 30, 2008

Cairngorm Creator



I found this ill Cairngorm generator called Cairngorm Creator. I thought I would try it out for a project I am working on. I didn't go into detail writing out my methods and variables but it was super dope to have the app generate the stubbed out classes with all the proper imports for my project.

check it!

Labels: , ,

posted by Romke de Haan at 12:51 PM 0 comments

Thursday, September 20, 2007

E4X Rundown

I was looking for a good rundown on E4X XML syntax. dispatchEvent has a great run down on E4X in AS3.

Check it

Labels: ,

posted by Romke de Haan at 12:00 PM 0 comments

Wednesday, September 19, 2007

AS 3 Example: Calling methods of a loaded SWF File.

So I am working on a project that loads in SWF file that needed a parameter to load in some external data. Now with AS3 you can’t really just call the method directly from the loaded object like you would in AS2. I posted the example below.



var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
var url:String = "URL_OF_SWF.swf";
var urlReq:URLRequest = new URLRequest(url);

ldr.load(urlReq);
addChild(ldr);

function initHandler(e:Event):void
{
var ml = ldr.content;
var urlReq:URLRequest = new URLRequest("URL_FOR_XML_REQUEST");
ml.init(urlReq);
}


I also have a zip of the example for download.

Labels: ,

posted by Romke de Haan at 10:01 PM 0 comments