class ItemNode

by ericyang
♥0 | Line 41 | Modified 2010-04-17 12:10:40 | MIT License
play

ActionScript3 source code

/**
 * Copyright ericyang ( http://wonderfl.net/user/ericyang )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/rRHZ
 */

package {
    import flash.display.Sprite;
    public class ItemNode extends Sprite 
    {
    		private var _parent:*;
    		private var _child:*;
    		private var _iconURL:String;
    		private var _label:String;
        public function ItemNode(
        						   )
        {
            // write as3 code here..
            
        }
        
         //
        	//// getter & setter of child
        	//
       
        public function get child():*
        {
        		return this._child==null ? null : this._child;
        	}
        	public function set child(c:*):void
        	{
        		if(c!=null)
        			this._child = c;
        	}
        	
        	//
        	//// getter & setter of parent
        	//
        	
        public function get rgParent():*
        {
        		return this._parent==null ? null : this._parent;
        	}
        	public function set rgParent(p:*):void
        	{
        		if(p!=null)
        			this._parent = p;
        	}
        	//
        	//// getter & setter of icon
        	//
        public function get sIconURL():*
        {
        		return this._iconURL!=null ? this._iconURL : "1.swf";
        	}
        	public function set sIconURL(s:*):void
        	{
        		if(s!=null)
        			this._iconURL = s;
        	}
    }
}

Forked