Hi there,
I just uploaded my first videotutorial on how to creat columncharts with axiis. I hope you like it.
The code will be uploaded in the next days.
Cheers,
Christian
Published on 14/09/2009
Hi there,
I just uploaded my first videotutorial on how to creat columncharts with axiis. I hope you like it.
The code will be uploaded in the next days.
Cheers,
Christian
Published on 10/08/2009
I just updated some of a kind of artwork of mine. This is more a personal thing, because I always liked to draw the first thing that comes into my mind. This was created end of 2008 when I was taking my first clases of Administration. Feel free to comment.
This images are also in Flickr.
Christian
Published on 27/07/2009
I have been getting in the past weeks this error everytime I use Flex Builder 4 alpha in Linux. It happens randomly. 
My solution is to change the compiler in FlexBuilder. Just rightclick on the project Folder -> -> Propeties -> Flex Compiler -> Flex SDK Version . Change to another version. And then change it back.

Published on 21/07/2009
After learning how to create a custom Event, I decided to try to make a DataBinding Model. Finally I did it.
Again, I decided to create the same application but with a Model as in my previous post.
This time I needed to show/hide a button in the main application when the user clicked on a button in the component. I extended the code, by trying to manipulate a second component.
This is the final file:
First you have to create a Actioncript Class. In my case I created it in a Model Folder. I used a Singleton Template I found on the web. It basically creates an instance and checks that the instance is not repeated. First the template:
Now you can define new Variables. In this case I needed a Boolean, which I call ButtonVisible
Now that I defined a new Bindable Variable, I can access it everywhere I want, lets say the main application:
Lastly I can manipulate it in a component.
Hope it helps.
ChristianDataBindingExample
Published on 21/07/2009
A client needed a basic contact form, but the webhost didn’t allow mail() in their scripts. This is what I did:
I created a form that sends the required info to this file: createxml.php.
What the function does is to create a xml file (form.xml) with the following structure:
In my Linux machine I created a script calling the form.xml file every 30 min. If there was a diference in the file he downloads with the file he downloaded 30 min ago, he would send an email to the person who needs to know if a new email arrived.
Here the script (checkmail.sh):
and finally my Air App that reads the xml file from the web (this I created in FlexBuilder Alpha4 in Linux):
Hope it helps!
Christian
Published on 21/07/2009
I spend the last few days trying to create a comunication between a Component and the main Application. My goal is to create for every State a individual component. Something like this:

I needed to tell the main application to change the State when the user clicked on the button on the component.
This is the final file:
So I started with this as my main Application file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="currentState='State1'" xmlns:components="components.*"
viewSourceURL="srcview/index.html" width="257" height="167" borderStyle="solid"
borderColor="#192C35" borderThickness="2" themeColor="#1800FF"
backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
<mx:states>
<mx:State name="State1" id="state1" >
<mx:AddChild>
<mx:VBox horizontalCenter="0" top="10">
<mx:Label text="This is the State 1" id="label1" />
<components:myComponent id="componentID"
width="224" height="94"/>
</mx:VBox>
</mx:AddChild>
</mx:State>
<mx:State name="State2" id="state2" >
<mx:AddChild>
<mx:VBox horizontalCenter="0" top="10">
<mx:Label text="This is the State 2" />
<mx:Button label="Return" click="currentState='State1'" />
</mx:VBox>
</mx:AddChild>
</mx:State>
</mx:states>
</mx:Application>
And here my component based on a TitleWindow:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" width="400"
height="300" title="This is a Component">
<mx:Label text="Click on the button to switch state" x="10" y="36"/>
<mx:Button label="This is a Button Component" x="10" y="62"/>
</mx:TitleWindow>
Now you have to create a custom Event in the Component within a Metatag like this:
We create a ClickEvent in the Button in the Component. The Button ends up looking like this:
And the ClickHandler which dispaches the Event in the same component like this.
Finally the only thing left to do is to call the event in our main application in the component tag, like this:
To resume: I create an Event which is inserted in the component tag in the application (in this case, the Event is called switchState) to connect this event with the click Event on the Button, you create a EventHandler in the component that dispaches the Event. Thats all.
Download the sourcecode in RAR Format
Christian
Published on 10/07/2009
This is weird and I normally don’t do this, but some person came to me and told me that her son stayed up until 4am in the morning, sitting in front of this damn computer and she couldn’t do anything about it. She asked me to help her, and this is what I did:
Please note: I try to make this as open source as posible and as least user-friendly as I can, because I don’t want this to become an Virus Inspiration or something of a kind. This has one propuse: Help my friend and hopefully some other parent. If you have questions on how to make this work, pls email me: cwaidelich AT gmail DOT com.
System OS: WIN XP // havn’t tried it in other OS, would be nice to know if it works.
Two files:
main.bat
[code lang="dos"] @ECHO OFF CLS // clears screen AT 3:15PM "C:\WINDOWS\cw_shutd.bat" // creates a Task to execute at a specific time (this case: 3:15pm) ATTRIB +H %WINDIR%\TASKS\* // hides all Tasks, so the Users cannot detect them and deletes them IF %TIME% GTR 15 GOTO SDWN // checks if time is > than 15:00 hourse, if so, go to SDWN (remember goto?) GOTO END // if not, goto END :SDWN // start SDWN function SHUTDOWN -S -C ";)" // Shutsdown GOTO END :END [/code]
and shutd.bat:
@ECHO OFF
SHUTDOWN -S -C "TIME TO SLEEP"
I saved them in C:\WINDOWS\ and hide them.
Then make main.bat run as StartUp Script, following this link.
Hope it works!
Christian
Published on 07/07/2009
1. Download the latest Air Version for Linux here. Im using Adobe AIR 1.5.1 Linux , EspaƱol | 13.0 MB on Ubuntu 8.04.2
2. I like to have my applications in the /opt/ folder so my next step was:
3.
4.
5.
6.

7. You will have to insert your root password.
8.

9.

10.

Published on 04/07/2009
Seriosly, need a program that handels Twitter, Facebook, Gmail, ICQ, Hotmail, Yahoo and others?
Here you go:Digsby
Just try it out.
Christian
Published on 03/07/2009
Looking for a program that sends emails with attachments and as html from commandline?
You have to have a look at this: http://www.cleancode.org/projects/email
Usage:
mail1.txt looks like this:
I just created a little script to send to a lot of people. It consisted of two files:
mailreci.txt just lists in each line a destination mail adress like this:
and
sendmails.sh looks like this:
Everything in one folder of course.
If you have any questions please feel free to comment.
Christian