Posted on October 26, 2009, 10:50 pm, by Van Nhu.
The goal of this post is to show how we can create a radio button group so users can switch on and off when using vnkeys as the swf above. To create TextArea and TextInput we use input components that follows vnkeys (see this how to for details). Bellow is our code example where we [...]
Posted on October 26, 2009, 12:27 am, by Van Nhu.
In the package org.vnmedia.flex we find two subclasses of Flex controls class. FlexTextInput is extending TextInput and FlexTextArea extending TextArea. Those two inherit all functionalities from their parent. We just added some more code handling the typing since TextInput and TextArea behaves unlike TextField. It is simple to use. You just need to declare namespace [...]
Posted on October 24, 2009, 10:31 pm, by Van Nhu.
Bellow is a table on how to hit the keyboard (left hand side) to get the vietnamese letter (right hand side) VNI => Vietnamese a1 => á a2 => à a3 => ả a4 => ã a5 => ạ a6 => â o7 => ơ a8 => ă d9 => đ We do not implement [...]
Posted on October 23, 2009, 10:02 pm, by Van Nhu.
In actionscript 3 one can not use private scope for constructor and you need a workaround to implement simgleton pattern. Following is one way that I use package { public class Singleton { private static var instance:Singleton; private static var isAllowedInstance:Boolean; public function Singleton() { if (!isAllowedInstance) { throw new Error("Please use " + [...]
Posted on October 23, 2009, 9:00 pm, by Van Nhu.
This article is aimed to you whom use svn in linux environment. If you are using windows and Tortoise this post may be more interesting. Here are two ways to get revision number when you build your project. The first one is a complete method to get this number and the second one will give [...]
Posted on October 21, 2009, 11:02 pm, by Van Nhu.
If you need to run a php script in Linux environment via putty or other clients and want to close client without terminating the running process of php script you may need to do as bellow. The keyword is nohup … nohup php policyserver.php > /dev/null 2>&1 &
Posted on October 21, 2009, 10:33 pm, by Van Nhu.
Sometimes ago I started to learn actionscript 3 and the go was to code for the game nought and crosses with a simple AI. To save time I used Flex componnents to create button and other containers. I was running on problem to add my application to flex application. Flex refused to add my objects [...]
Posted on October 18, 2009, 11:40 pm, by Van Nhu.
This post is for you who are using Tortoise in windows environment and want to get the highest committed revision number when running an ant build script. This number can be useful when handling the version of the static files/contents. Here is a simple ant target <target name="get-revision"> <exec executable="subWCRev.exe"> <arg value="${srcBaseDir}"/> <arg value="${srcBaseDir}/revision.build"/> <arg [...]