Introduction

You are currently browsing the weblog archives for May, 2004.

Archive for May, 2004

Monday, May 31st, 2004

as2lib: Output Handling

cheap cialis pill certified cialis cheap viagra in canada cialis buy drug buy generic cialis viagra buy 25mg viagra cheap viagra without prescription buy cheapest viagra on line purchase viagra cialis 10mg buying generic viagra cialis pills viagra from india cheapest sildenafil citrate cheap cialis no rx viagra india cialis bangkok viagra for order buy sildenafil internet buy generic viagra online buying cialis online where to order cialis tablet cialis find cialis no prescription required viagra cheap drug order cialis cheap online online pharmacy cialis cialis no rx order generic cialis price of cialis viagra soft drug viagra cheap viagra from uk order cialis no prescription order cheap viagra viagra drug order cheap cialis cheap cialis pharmacy best price for viagra cheap viagra from usa cost cialis cialis overnight shipping cheapest generic cialis online generic viagra online online viagra viagra sales cheap cialis in canada compare cialis prices online cialis online drug viagra online purchase discount cialis without prescription no rx viagra cialis overnight viagra uk cialis order cheap cialis from usa buying cialis cialis overnight delivery cialis in bangkok buy and purchase sildenafil online impotence treatment cheap price viagra viagra sale cheap cialis tablet drug cialis generic cialis online cheap viagra pharmacy find discount cialis online viagra malaysia cialis without a prescription buy cialis online cheap viagra rx buy no rx viagra cialis 20mg viagra in malaysia discount viagra online buy sildenafil cheap buy viagra low price buy cialis cialis cheap price cialis cheap generic viagra cialis canada low cost viagra buy cheap viagra cialis vs viagra order cialis from us cialis tablets find no rx cialis buy generic cialis online buy viagra overnight delivery cheapest cialis price buy cheapest cialis on line order cialis in canada viagra tablet viagra no online prescription find cheap cialis online viagra price order viagra no prescription cheap generic cialis buy viagra online cheap cialis uk cialis without rx generic cialis cheap viagra vs cialis order cialis on internet viagra tablets viagra purchase impotence drugs buy cialis generic cialis tablet cialis cheapest price order viagra from canada viagra generic cheap viagra from canada order cialis compare viagra prices online find cheap cialis impotence cure pfizer viagra find discount cialis cheapest cialis buy cialis from india impotence buy cheapest viagra online cialis side effects viagra order discount cialis online cialis in malaysia cialis in uk viagra in uk cialis online without prescription cialis online pharmacy order viagra buy viagra online viagra side effects cialis sale discount cialis no rx cheapest viagra find cialis order cialis no rx buy cialis low price buy viagra cheap drug cialis online purchase order discount viagra online 50 mg viagra 100 mg viagra 10mg cialis cost of cialis cheapest cialis prices buy discount viagra online cialis sales 50mg viagra cialis price buy viagra on internet cialis pill cheapest cialis online purchase viagra overnight delivery cheap cialis from canada cheapest viagra price cialis 20 mg buy sildenafil low cost order viagra without prescription buy viagra lowest price no prescription cialis order viagra on internet discount cialis overnight delivery cialis cheap drug viagra approved viagra no rx required compare viagra prices no rx cialis cheap cialis on internet buy viagra from india buy discount cialis online viagra pharmacy online order viagra from us cialis free delivery cialis for order buy cialis from canada viagra without rx viagra online review 10 mg cialis cheap viagra no rx cheapest viagra prices viagra prices cialis pharmacy order no rx cialis buy cialis in us buy cialis no prescription required order cialis from canada lowest price cialis cheap cialis internet online pharmacy viagra cheapest generic cialis generic drugs cialis india find cialis without prescription best price cialis buy viagra without prescription cheap cialis in uk where to buy viagra 20 mg cialis cheap cialis from uk buy sildenafil canada cialis no rx required cialis in us buy cialis overnight delivery cialis cheap price order cheap viagra online 20mg cialis buy cheap viagra online viagra internet viagra without prescription free cialis buy cialis us cialis buy buy viagra in canada order viagra cheap online find viagra without prescription viagra pills cheap cialis no prescription viagra online without prescription order generic viagra cialis discount viagra cheapest price purchase viagra no rx viagra no rx viagra cheap discount viagra overnight delivery sale cialis cialis pharmacy online purchase cialis without prescription pharmacy online cialis medication discount viagra buy cheap cialis impotence medication viagra medication find cialis on internet impotence pills cialis prices discount viagra without prescription cialis online cheap cialis online review find cheap viagra online buy viagra us purchase cialis online certified viagra where to order viagra buy cheapest viagra buy cialis internet order cialis online buy sildenafil online buy cialis cheap cheap viagra purchase cialis find discount viagra buy cialis on internet cialis buy online buy sildenafil online without a prescription viagra buy online order cheap cialis online viagra information no prescription viagra cost of viagra buy cialis in canada buy cialis online buy viagra cheapest generic viagra cialis us cialis australia fda approved cialis lowest price for viagra viagra bangkok cialis prescription cialis cost buy no rx cialis buy viagra internet viagra discount order viagra overnight delivery generic cialis viagra australia 25 mg viagra order viagra online viagra overnight cialis rx order cialis in us order viagra no rx order discount cialis online viagra vendors order viagra in us buy sildenafil in uk viagra us buy generic viagra viagra canada viagra no prescription viagra cheap price cheap viagra tablet viagra free delivery overnight viagra purchase viagra online find cheap viagra cialis malaysia best price viagra cialis free sample find viagra on internet cialis generic buy sildenafil in canada order cialis no prescription required cheapest viagra online purchase cialis no rx viagra in us order discount cialis cheap viagra internet free viagra cialis approved best price for cialis cialis from india find no rx viagra generic viagra viagra from canada viagra online pharmacy buy viagra from canada cheapest generic viagra online buy cheapest cialis discount cialis viagra overnight delivery cialis without prescription 100mg viagra cialis in australia price of viagra order cialis overnight delivery cheap viagra in uk buying generic cialis viagra pill buy cialis on line low cost cialis find discount viagra online buying viagra cheap cialis overnight delivery pharmacy cialis cheap viagra pill viagra prescription find viagra online buy cialis lowest price discount viagra no rx online cialis viagra free sample cheap viagra in usa find viagra cheap viagra online buy viagra no rx generic viagra cheap buy cialis without prescription buy viagra in us cheap viagra overnight delivery cheap cialis in usa cheap cialis online viagra order no rx viagra viagra soft tab find cialis online lowest price viagra cialis drug cialis vendors viagra online stores erectile dysfunction order viagra in canada buy viagra on line viagra overnight shipping viagra online cheap lowest price for cialis approved viagra pharmacy cialis 10 mg cialis no online prescription cialis purchase cialis from canada order cialis without prescription viagra for sale viagra in australia approved cialis pharmacy buy viagra generic buy sildenafil in spain find viagra no prescription required cialis no prescription buy viagra from us order viagra no prescription required cost viagra purchase viagra without prescription buy cialis no rx cialis cheap cialis internet tablet viagra cheap viagra on internet viagra cost pharmacy viagra cialis soft tab cialis information buy cheap cialis internet purchase cialis overnight delivery cheap cialis without prescription buy viagra no prescription required compare cialis prices buy cheap cialis online overnight cialis where to buy cialis cheap cialis buy cheap viagra internet buy discount cialis viagra buy drug cheap viagra no prescription buy sildenafil citrate buying viagra online buy discount viagra fda approved viagra cialis online stores cheap cialis tablets buy cheapest cialis online cheap viagra tablets order discount viagra sale viagra viagra online cialis for sale cialis soft viagra pharmacy buy cialis from us viagra without a prescription viagra in bangkok

Every good framework must support output handling. Output handling is essential because it helps you during debugging and lets you find out information about the control flow of your program. You alse need a way to get output when you are not in the Flash environment and trace() thus won’t work.
The as2lib’s output handling offers support for this and is highly extensible. It is possible to replace almost every class with your custom one also this is hopefully not necessary. All the classes needed to handle output are located in the org.as2lib.env.out package. The base class is the Out class.
The most important operations in this class are setLevel(OutLevel), addHandler(OutHandler) and of cource the operations to actually print something out: log(String), debug(String), info(String), warning(String), error(Throwable) and fatal(Throwable). As you can see there exist several different output levels. The ones that are provided by us are: Out.ALL, Out.DEBUG, Out.INFO, Out.WARNING, Out.FATAL and Out.NONE. You can of course expand this list as you need it. If you set the OutLevel to for example Out.ERROR, error and fatal output wll be made. That means all output that is logically located under the set OutLevel will be made including the set OutLevel.
Another thing you can do is setting different OutHandlers. OutHandlers are responsible for printing the messages out in a well formatted way. An OutHandler can for example be the TraceHandler that just uses trace() to print out the information. But you can of course also add more complex OutHandlers that write the information into a text file or something like that.
When you now use for example the operation Out.log(String) what happens is that an OutWriteInfo (org.as2lib.env.out.info.OutWriteInfo) containing the String as well as the level will be passed to the write(OutWriteInfo) operation of all registered OutHandlers. In case of using fatal(Throwable) or error(Throwable) to write out Throwables an OutErrorInfo (org.as2lib.env.out.info.OutErrorInfo) containing the Throwable as well as the level will be passed to the error(OutErrorInfo) operation of all OutHandlers. The OutHandler is now responsible for stringifying the passed OutWriteInfo or OutErrorInfo. There already exist two Stringifier that do exactly this job. They reside in the org.as2lib.env.out.string package and are called WriteStringifier or ErrorStringifier respectively.
Click the following link for an UML diagram depicting the relationships between the various out classes: Output Handling: Class Diagram.
Read on for an example of how to use the as2lib’s out classes.
(more…)

Sunday, May 30th, 2004

as2lib: Exception Handling

The as2lib’s exception handling is pretty similar to the Java way of handling exceptions. All basic exception classes reside in the org.as2lib.env.except package. There exists an interface called Throwable. This interface specifies all the operations every throwable/exception should have. Two concrete implementations of this interface are the Exception and FatalException classes. The only difference between these two is the level of fatality. They could be compared with the Exception and Error class respectively in the Java programming language.
One significant difference between the as2lib’s exception handling compared with the default Error class of Flash is the quantity of information offered. The as2lib’s exception handling provides information about the operation that threw the exception as well as information about the cause of the exception. The two operations to get hold of this information are Throwable.getStackTrace() and Throwable.getCause(). The stack trace offers right now only information about the operation that threw the exception and not about all the operations that were executed before the exception has been thrown. This is because arguments.caller.arguments… is not possible. But we are looking forward to offer a full stack trace in future releases.
Read on to see an example of how to write your own custom exception.
(more…)

Wednesday, May 26th, 2004

as2lib: Reflections

The ones that are coming from a Java background probably know what Reflections are. For the others here’s a little explanation:
Reflections offer support to find out information about every kind of member inside a programming environment. Members are for example Classes, Interfaces, Packages, Methods, Properties and so on. As you probably have already imagined the as2lib offers such a Reflection API. It is located in the org.as2lib.env.reflect package. Click the following link to see a little class diagram that shows how all these classes are related to each other: Reflections: Class Diagram.
To obtain a ClassInfo instance representing a specific class you use the org.as2lib.env.util.ReflectUtil’s getClassInfo(Function/Object) operation. The operation for packages is respectively called getPackageInfo(Object). You can now work with this ClassInfo or PackageInfo instance to find out more information like the name of the class, the class’s methods an so on. The above diagram shows all the available operations. [It is that simple to work with that I will not show an example. Just play a little bit around with it.]
Edit: Read on to see the power of the Reflections API.
(more…)

Tuesday, May 25th, 2004

as2lib: 0.1 Alpha Release

Today was the day….;) The as2lib had its first release during the Flashforum conference here in Duesseldorf, Germany. You can download the release on www.as2lib.org. The release contains support for event-handling, exception-handling, output/log-handling, reflections, data holders, iterators and speed and unit tests.
Whereby the unit tests are currently reworked and not that major yet. We are planning to release a console for debugging and logging as well as a bunch of IO classes for Local Connections, Flash Remoting and Web Services in about two weeks.
I’m a little sad that my AOP framwork didn’t make it right in time for the first release. The reason is that I need RegExp to polish it. It will hopefully be part of the 0.2 alpha release.

Sunday, May 23rd, 2004

Flashforum Conference 2004

I’m going to be at the Flashforum Conference 2004 in Duesseldorf. It is starting tomorrow and will last 2 days. It’s the first german conference I’m attending and I hope it to be as much fun as FlashInTheCan 2004. All the geeks from the as2lib are also going to be there. It will be a great time. If you are also attending and see me somewhere around come over and say hi. I’m wearing an as2lib T-Shirt with my name on it.
I’m looking forward to André Michelle’s session on Physical Simulations in Flash (”Physikalische Simulationen in Flash”).
By the way: I’m currently working on an aop framework for Flash. And by now it’s worken superb. I have already built an extensible logging aspect with it as a base that logs all calls, executions you specify as well as set and get access to properties with correct indentation, return values, passed arguments and so on. I’ll release the code soon. ;)