Now available: FlpTree 1.2.0

On September 16, 2008, Components,Flex - 2 Comments

Formerly known as the IKTree, FlpTree has an updated version. This new version has several bug fixes and the overall performance is improved. Changes since the last version include:

  • FindNode(s) works now properly;
  • Selection and multiselect now works
  • Performance tweaks
  • Other bugs which I forgot about
  • Added open on hover more…

ASDebugger 2.0: A real-time debugger and editor

On , Components,Flash,Flex - 6 Comments

Yeah! It’s here, the long awaited update for my debugger. And since I’ve added a lot of new functionality, I decided to raise the major version number (easy decision to make when you’re the only developer on the project :-P ). So, what does it do? Well, a small list:

  • Send traces / strings
  • Inspect objects, movieclips, displayobjects and alter their values.
  • Browse through the displaylist of any (flex or flash) application. more…

Writing components in Flex, part 3

On September 12, 2008, Components,Flex - 3 Comments

Right, it’s been more than a month now, time to round up this tutorial. If you haven’t read the previous parts, here’s part 1, and here’s part 2.

In this chapter we’re going to fine-tune our component. The basic functionality is in it, but there isn’t really much communication with the outside world going on. We can change that using events, meta-tags, asdoc and we are also going to do some styling. more…

Writing components in Flex, part 2

On August 7, 2008, Components,Flex - 7 Comments

In part two of this tutorial, we’re gonna create the actual component. We left off with a flex library and a folder structure.

If you haven’t read the first part, click here.

Create a new actionscript class and name it after your component. Also, decide wether your class should extend an existing class. In this example it makes sense to extend the textinput class, which will provide the basic functionality. If your component will be part of the interface, you should extend sprite, or any underlying class of sprite. If your component doesn’t have any graphical interface, like a currency converter, you do not need to extend any class. more…

Writing components in Flex, part 1

On July 30, 2008, Components,Flex - 5 Comments

Not too long ago, someone asked me for some tips and tricks to write good components in AS3. Not that I’m the best coder or the most structured person, but when you’ve build some components, you’ll find that you’ll run in the same problems over and over again. Most of the problems you can avoid by starting to write down what your component actually should do. So you first can close flex builder :-P .

For who is this tutorial? Well, I assume you’ve done some coding in AS3, so I won’t explain if-statements and for-loops. Anyone should be able to follow this tutorial, since there won’t be very exotic code in the examples. more…

ASDebugger: A run-time debugger for AS3 Projects

On July 2, 2008, Components,Flash,Flex - 1 Comment

When you’re developing an Actionscript project – Flash or Flex – you cannot live without a decent debugger. Flex provides quite a good debugger and the Flash IDE has also a reasonable debugger. The problem with those debuggers is that you have to build explicitly for the debugger. So when you’re deploying on a remote server, you don’t have those debug options.

The ASDebugger allows you to trace variables. It has support for strings, integers, arrays, dates, arraycollections, objects and everything in between.

Usage is simple, import the asdebug.as class in your application and call the debugger:

?View Code ACTIONSCRIPT
import nl.flplibrary.debug.ASDebugger;
import mx.collections.ArrayCollection;	
 
private function simpleDebug():void {
	ASDebugger.debug("<b>test</b>");
}
 
private function advancedDebug():void {
	var o:Object = new Object();
	o.my_string = "<i>string</i>";
	o.my_number = 123.456;
	o.my_int = parseInt("1");
	o.my_array = ["item 1", "item 2", "item 3"];
	o.my_arraycollection = new ArrayCollection([{label:"item 1", data: 1},
												{label:"item 2", data: 2},
												{label:"item 3", data: 3}]);
	o.my_object = {	label1:"item 1", data1: 1,
					label2:"<i>item 2</i>", data2: 2,
					label3:"item 3", data3: 3};
	o.my_date = new Date();
	o.my_xml = new XML();
	o.recurse = o;
 
	ASDebugger.debug_prop(o);
}

Before running the application, startup the ASDebugger. The ASDebugger comes in different flavors:

  • In a .exe projector file;
  • In a .swf;
  • As an AIR application;
  • or you can even use the ASDebugger on this page! more…

Flexperminents online!

On June 24, 2008, Flash / Flex,General,php - 2 Comments

Today i’ve launched my new website, labs.flexperiments.nl. All new posts will be posted there, and my components will find a perminent place there.

So update your links and rss feeds!

Changing the default HTML template of Flex

On , Flex - 4 Comments

Just something that came to my mind the other day. Flex is using a rather ‘old’ way of embedding, we (me and my collegues) are more fond of the SWFObject embedding. So I was thinking, is it possible to change the default template of Flex. The Flex docs told me that I should simply change the files in [FLEX DIR]\Flex SDK 2\resources\html-templates. So I changed those files, restarted flex and…. nothing…

But I don’t give in that easily, there must be a way to change the template. more…

Thank you Google for whitelisting me again

On June 10, 2008, General - 3 Comments

About a 1 1/2 month ago, I recieved an e-mail from google stating that my website was a source of Malware. In that same e-mail they give some directions to follow in order to remove the Malware notification. Notification? What nofitification? Well, not only does google send you an e-mail, it also displays a huge warning when you enter my site via google, stating that it may harm your PC. That warning prevents 95% of the visitors to visit my site (also because they make the link to the actual page non-clickable). more…

Compiling Flash Files from Flex

On May 20, 2008, Flash / Flex - 25 Comments

This week, I had to do some flash work for TFE. As soon as a fired up flash and started programming I realized how lazy you get when programming in eclipse. I mean, auto import, code completion, all kinds of shortcuts… Compared to the flash IDE it’s heaven :D . Now, I know that there are many IDE’s for flash Actionscript like SePY and FlashDevelop, but none of them really satisfies me like Eclipse does. The only problem with using Eclipse as Actionscript editor is the fact that you cannot build fla files in Flex Builder… or can you? more…