Skip to main content

Posts

Showing posts from November, 2008

[AIR] Value Object classes creator

會花時間做這個App完全是 Erin 懶人血液作祟... 由於開發過程中會使用一些Value Object classes 每次要新增就得將舊的 VO class copy and paste 然後打開 AS 檔剪剪貼貼...光這樣的過程重複個幾次就非常惱人,為了一勞永逸隨手用 Flex 3 Build 了一個 VO creator...XD 使用方法很簡單 只要將 VOCreator 上的空白欄位填上,點選Save as就可以了... 輸出 myVO.as: /** * This class was created by AS3 VOCreator v1.0 * Copyright (c) 2008 Erin Lin * All rights reserved. * + + + + + + + + + + + + + * Project : yourProjectName * Name : myVO.as * Date : Wed Nov 26 13:20:46 GMT+0800 2008 **/ package com.you.vo { public class myVO { private var _var1:String; private var _var2:int; public function myVO(){} /** * Set var1 * * @param var1 the value to set. **/ public function set var1(value:String):void{ _var1=value; } /** * Get var1 * * @return var1 as String. */ public function get var1():String{ return _var1 } /** * Set var2 * * @param var2 the value to set. **/ public function set var2(value:int):void{ _var2=value; } /** * Get var2 * * @return var2 as int. ...