flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [12/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - move AS classes from FlexJSJX to final home. Build scripts will be fixed up in a later commit
Date Wed, 15 Apr 2015 21:43:17 GMT
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
deleted file mode 100644
index 28f0d16..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
+++ /dev/null
@@ -1,165 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-
-/**
- *  The Fade effect animates a UI component's alpha or opacity.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Fade extends Tween implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @param target An object that will
-	 *  have its x and/or y property animated.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Fade(target:IUIBase = null)
-    {
-        super();
-
-		this.actualTarget = target;
-		startValue = 0;
-		endValue = 1;
-		
-		listener = this;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-	/**
-	 *  @private
-	 *  The target.
-	 */
-	private var actualTarget:IUIBase;
-    
-    /**
-     *  The target as the String id 
-     *  of a widget in an MXML Document.
-     */
-    public var target:String;
-    
-	/**
-	 *  @private
-	 *  The change in alpha.
-	 */
-	private var d:Number;
-	
-	/**
-	 *  @private
-	 *  The starting value.
-	 */
-	private var start:Number;
-	
-	/**
-	 *  Starting alpha value.  If NaN, the current alpha value is used
-     */
-    public var alphaFrom:Number;
-    
-	/**
-	 *  Ending alpha value.  If NaN, the current alpha value is not changed
-	 */
-	public var alphaTo:Number;
-	
-	
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-        if (target != null)
-            actualTarget = document[target];
-		
-		if (isNaN(alphaFrom))
-			start = actualTarget.alpha;
-		else
-			start = alphaFrom;
-		
-		if (isNaN(alphaTo))
-			d = 0;
-		else
-			d = alphaTo - start;
-					
-		super.play();
-	}
-
-	public function onTweenUpdate(value:Number):void
-	{
-		if (d)
-			actualTarget.alpha = start + value * d;
-	}
-	
-	public function onTweenEnd(value:Number):void
-	{
-		if (d)
-			actualTarget.alpha = start + d;
-	}
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/IEffect.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/IEffect.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/IEffect.as
deleted file mode 100644
index f5b940c..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/IEffect.as
+++ /dev/null
@@ -1,136 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.events.IEventDispatcher;
-
-/**
- *  IEffect is the lowest-level interface for effects in FlexJS.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public interface IEffect extends IEventDispatcher
-{
-
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  duration
-    //----------------------------------
-
-    /**
-     *  Duration of the animation, in milliseconds. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function get duration():Number;
-    function set duration(value:Number):void;
-    
-
-    /**
-     *  Plays the effect in reverse,
-     *  starting from the current position of the effect.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function reverse():void;
-    
-    /**
-     *  Pauses the effect until you call the <code>resume()</code> method.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function pause():void;
-
-	/**
-	 *  Stops the tween, ending it without dispatching an event or calling
-	 *  the Tween's endFunction or <code>onTweenEnd()</code>. 
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	function play():void;
-	
-    /**
-     *  Stops the tween, ending it without dispatching an event or calling
-     *  the Tween's endFunction or <code>onTweenEnd()</code>. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function stop():void;
-    
-    /**
-     *  Resumes the effect after it has been paused 
-     *  by a call to the <code>pause()</code> method. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function resume():void;
-
-    /**
-     *  Tries to compute initial values
-     *  for effect 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function captureStartValues():void;
-
-    /**
-     *  Tries to compute final values
-     *  for effect 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    function captureEndValues():void;
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
deleted file mode 100644
index 2a42b19..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
+++ /dev/null
@@ -1,240 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-
-/**
- *  The Move effect animates a UI component's x or y position.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Move extends Tween implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @param target Object ID or reference to an object that will
-	 *  have its x and/or y property animated.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Move(target:IUIBase = null)
-    {
-        super();
-
-		this.actualTarget = target;
-		startValue = 0;
-		endValue = 1;
-		
-		listener = this;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-    /**
-     *  @private
-     *  The actual target.
-     */
-    private var actualTarget:IUIBase;
-    
-	/**
-	 *  The target as the String id 
-     *  of a widget in an MXML Document.
-	 */
-	public var target:String;
-    
-	/**
-	 *  The change in x.
-	 */
-	public var xBy:Number;
-	
-	/**
-	 *  The change in y.
-	 */
-	public var yBy:Number;
-	
-	/**
-	 *  @private
-	 *  The starting x.
-	 */
-	private var xStart:Number;
-	
-	/**
-	 *  @private
-	 *  The starting y.
-	 */
-	private var yStart:Number;
-
-    /**
-     *  @private
-     *  The total change for x.
-     */
-    private var xMove:Number;
-    
-    /**
-     *  @private
-     *  The total change for y.
-     */
-    private var yMove:Number;
-    
-	/**
-	 *  Starting x value.  If NaN, the current x value is used
-     */
-    public var xFrom:Number;
-    
-	/**
-	 *  Ending x value.  If NaN, the current x value is not changed
-	 */
-	public var xTo:Number;
-	
-	/**
-	 *  Starting y value.  If NaN, the current y value is used
-	 */
-	public var yFrom:Number;
-	
-	/**
-	 *  Ending y value.  If NaN, the current y value is not changed
-	 */
-	public var yTo:Number;
-	
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-		if (target != null)
-			actualTarget = document[target];
-		
-		if (isNaN(xFrom))
-			xStart = actualTarget.x;
-        else
-            xStart = xFrom;
-        
-        if (isNaN(xBy))
-        {
-    		if (isNaN(xTo))
-                xMove = 0;
-    		else
-                xMove = xTo - xStart;
-        }
-        else
-            xMove = xBy;
-        
-		if (isNaN(yFrom))
-			yStart = actualTarget.y;
-        else
-            yStart = yFrom;
-        if (isNaN(yBy))
-        {
-    		if (isNaN(yTo))
-                yMove = 0;
-    		else
-                yMove = yTo - yStart;
-        }
-        else
-            yMove = yBy;
-        
-		super.play();
-	}
-
-	public function onTweenUpdate(value:Number):void
-	{
-		if (xMove)
-			actualTarget.x = xStart + value * xMove;
-		if (yMove)
-			actualTarget.y = yStart + value * yMove;
-	}
-	
-	public function onTweenEnd(value:Number):void
-	{
-		if (xMove)
-			actualTarget.x = xStart + xMove;
-		if (yMove)
-			actualTarget.y = yStart + yMove;
-        
-	}
-    
-    override public function captureStartValues():void
-    {
-        if (target != null)
-        {
-            actualTarget = document[target];
-            xFrom = actualTarget.x;
-            yFrom = actualTarget.y;
-        }
-    }
-    
-    override public function captureEndValues():void
-    {
-        if (target != null)
-        {
-            actualTarget = document[target];
-            xTo = actualTarget.x;
-            yTo = actualTarget.y;
-        }
-    }
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Parallel.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Parallel.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Parallel.as
deleted file mode 100644
index 6d08012..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Parallel.as
+++ /dev/null
@@ -1,152 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-import org.apache.flex.events.Event;
-
-[DefaultProperty("children")]
-
-/**
- *  The Parallel effect animates set of effects at the
- *  same time.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Parallel extends Effect implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Parallel()
-    {
-        super();
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-	/**
-	 *  @private
-	 *  The target.
-	 */
-	private var target:IUIBase;
-    
-	/**
-	 *  The children.
-	 */
-	public var children:Array;
-	
-	
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    override public function set duration(value:Number):void
-    {
-        var n:int = children.length;
-        for (var i:int = 0; i < 0; i++)
-        {
-            children[i].duration = value;
-        }
-        super.duration = value;
-    }
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-    public function addChild(child:IEffect):void
-    {
-        if (!children)
-            children = [ child ];
-        else
-            children.push(child);    
-    }
-    
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-        dispatchEvent(new Event(Effect.EFFECT_START));
-        current = 0;
-        var n:int = children.length;
-        for (var i:int = 0; i < n; i++)          
-            playChildEffect(i);
-	}
-    
-    private var current:int;
-    
-    private function playChildEffect(index:int):void
-    {
-        var child:IEffect = children[index];
-        child.addEventListener(Effect.EFFECT_END, effectEndHandler);
-        child.play();   
-    }
-    
-    private function effectEndHandler(event:Event):void
-    {
-        current++;
-        if (current >= children.length)
-            dispatchEvent(new Event(Effect.EFFECT_END));
-    }
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
deleted file mode 100644
index 2ee1e15..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
+++ /dev/null
@@ -1,197 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-
-/**
- *  The Resize effect animates a UI component's width or height.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Resize extends Tween implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @param target Object ID or reference to an object that will
-	 *  have its x and/or y property animated.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Resize(target:IUIBase = null)
-    {
-        super();
-
-		this.actualTarget = target;
-		startValue = 0;
-		endValue = 1;
-		
-		listener = this;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-	/**
-	 *  @private
-	 *  The target.
-	 */
-	private var actualTarget:IUIBase;
-    
-    /**
-     *  The target as the String id 
-     *  of a widget in an MXML Document.
-     */
-    public var target:String;
-    
-	/**
-	 *  The change in width.
-	 */
-	public var widthBy:Number;
-	
-	/**
-	 *  The change in height.
-	 */
-	public var heightBy:Number;
-	
-	/**
-	 *  @private
-	 *  The starting width.
-	 */
-	private var widthStart:Number;
-	
-	/**
-	 *  @private
-	 *  The starting height.
-	 */
-	private var heightStart:Number;
-
-	/**
-	 *  Starting width value.  If NaN, the current width value is used
-     */
-    public var widthFrom:Number;
-    
-	/**
-	 *  Starting height value.  If NaN, the current height value is used
-	 */
-	public var heightFrom:Number;
-		
-    /**
-     *  Ending width value.
-     */
-    public var widthTo:Number;
-    
-    /**
-     *  Ending height value.
-     */
-    public var heightTo:Number;
-    
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-        if (target != null)
-            actualTarget = document[target];
-		
-		if (isNaN(widthFrom))
-			widthStart = actualTarget.width;
-        if (isNaN(widthBy))
-        {
-    		if (isNaN(widthTo))
-                widthBy = 0;
-    		else
-                widthBy = widthTo - widthStart;
-        }
-        
-		if (isNaN(heightFrom))
-			heightStart = actualTarget.height;
-        if (isNaN(heightBy))
-        {
-    		if (isNaN(heightTo))
-                heightBy = 0;
-    		else
-                heightBy = heightTo - heightStart;
-        }			
-		super.play();
-	}
-
-	public function onTweenUpdate(value:Number):void
-	{
-		if (widthBy)
-			actualTarget.width = widthStart + value * widthBy;
-		if (heightBy)
-			actualTarget.height = heightStart + value * heightBy;
-	}
-	
-	public function onTweenEnd(value:Number):void
-	{
-		if (widthBy)
-			actualTarget.width = widthStart + widthBy;
-		if (heightBy)
-			actualTarget.height = heightStart + heightBy;
-	}
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Sequence.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Sequence.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Sequence.as
deleted file mode 100644
index f6c3343..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Sequence.as
+++ /dev/null
@@ -1,152 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-import org.apache.flex.events.Event;
-
-[DefaultProperty("children")]
-
-/**
- *  The Sequence effect animates a set of effects one
- *  at a time.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Sequence extends Effect implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Sequence()
-    {
-        super();
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-	/**
-	 *  @private
-	 *  The target.
-	 */
-	private var target:IUIBase;
-    
-	/**
-	 *  The children.
-	 */
-	public var children:Array;
-	
-	
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    override public function set duration(value:Number):void
-    {
-        var n:int = children.length;
-        for (var i:int = 0; i < 0; i++)
-        {
-            children[i].duration = value;
-        }
-        super.duration = value;
-    }
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-    public function addChild(child:IEffect):void
-    {
-        if (!children)
-            children = [ child ];
-        else
-            children.push(child);    
-    }
-    
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-        dispatchEvent(new Event(Effect.EFFECT_START));
-        current = 0;
-        playChildEffect();
-	}
-    
-    private var current:int;
-    
-    private function playChildEffect():void
-    {
-        var child:IEffect = children[current];
-        child.addEventListener(Effect.EFFECT_END, effectEndHandler);
-        child.play();   
-    }
-    
-    private function effectEndHandler(event:Event):void
-    {
-        current++;
-        if (current >= children.length)
-            dispatchEvent(new Event(Effect.EFFECT_END));
-        else
-            playChildEffect();
-    }
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Tween.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Tween.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Tween.as
deleted file mode 100644
index 979154d..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Tween.as
+++ /dev/null
@@ -1,665 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IEffectTimer;
-import org.apache.flex.core.ValuesManager;
-import org.apache.flex.events.ValueEvent;
-import org.apache.flex.events.Event;
-import org.apache.flex.events.EventDispatcher;
-
-/**
- *  Tween is the underlying animation class for the effects in FlexJS.
- * 
- *  The Tween class defines a tween, a property animation performed
- *  on a target object over a period of time.
- *  That animation can be a change in position, such as performed by
- *  the Move effect; a change in size, as performed by the Resize or
- *  Zoom effects; a change in visibility, as performed by the Fade or
- *  Dissolve effects; or other types of animations.
- *
- *  <p>A Tween instance accepts the <code>startValue</code>,
- *  <code>endValue</code>, and <code>duration</code> properties, 
- *  and an optional easing function to define the animation.</p> 
- *
- *  
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Tween extends Effect
-{
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-	
-	/**
-	 *  The <code>Tween.TWEEN_END</code> constant defines the value of the 
-	 *  event object's <code>type</code> property for a <code>tweenEnd</code> event. 
-	 *
-	 *  <p>The properties of the event object have the following values:</p>
-	 *  <table class="innertable">
-	 *     <tr><th>Property</th><th>Value</th></tr>
-	 *     <tr><td><code>bubbles</code></td><td>false</td></tr>
-	 *     <tr><td><code>cancelable</code></td><td>false</td></tr>
-	 *     <tr><td><code>currentTarget</code></td><td>The Object that defines the 
-	 *       event listener that handles the event. For example, if you use 
-	 *       <code>myButton.addEventListener()</code> to register an event listener, 
-	 *       myButton is the value of the <code>currentTarget</code>. </td></tr>
-	 *     <tr><td><code>target</code></td><td>The Object that dispatched the event; 
-	 *       it is not always the Object listening for the event. 
-	 *       Use the <code>currentTarget</code> property to always access the 
-	 *       Object listening for the event.</td></tr>
-	 *     <tr><td><code>value</code></td><td>The value passed to the 
-	 *       <code>onTweenEnd()</code> method.</td></tr>
-	 *  </table>
-	 *
-	 *  @see mx.effects.Effect
-	 *  @see mx.effects.TweenEffect 
-	 *  @see mx.events.EffectEvent
-	 *  @eventType tweenEnd 
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static const TWEEN_END:String = "tweenEnd";
-	
-	/**
-	 *  The <code>Tween.TWEEN_START</code> constant defines the value of the 
-	 *  event object's <code>type</code> property for a <code>tweenStart</code> event. 
-	 *
-	 *  <p>The properties of the event object have the following values:</p>
-	 *  <table class="innertable">
-	 *     <tr><th>Property</th><th>Value</th></tr>
-	 *     <tr><td><code>bubbles</code></td><td>false</td></tr>
-	 *     <tr><td><code>cancelable</code></td><td>false</td></tr>
-	 *     <tr><td><code>currentTarget</code></td><td>The Object that defines the 
-	 *       event listener that handles the event. For example, if you use 
-	 *       <code>myButton.addEventListener()</code> to register an event listener, 
-	 *       myButton is the value of the <code>currentTarget</code>. </td></tr>
-	 *     <tr><td><code>target</code></td><td>The Object that dispatched the event; 
-	 *       it is not always the Object listening for the event. 
-	 *       Use the <code>currentTarget</code> property to always access the 
-	 *       Object listening for the event.</td></tr>
-	 *     <tr><td><code>value</code></td><td>The value passed to the 
-	 *       <code>onTweenUpdate()</code> method.</td></tr>
-	 *  </table>
-	 *
-	 *  @eventType tweenStart
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static const TWEEN_START:String = "tweenStart";
-	
-	/**
-	 *  The <code>Tween.TWEEN_UPDATE</code> constant defines the value of the 
-	 *  event object's <code>type</code> property for a <code>tweenUpdate</code> event. 
-	 *
-	 *  <p>The properties of the event object have the following values:</p>
-	 *  <table class="innertable">
-	 *     <tr><th>Property</th><th>Value</th></tr>
-	 *     <tr><td><code>bubbles</code></td><td>false</td></tr>
-	 *     <tr><td><code>cancelable</code></td><td>false</td></tr>
-	 *     <tr><td><code>currentTarget</code></td><td>The Object that defines the 
-	 *       event listener that handles the event. For example, if you use 
-	 *       <code>myButton.addEventListener()</code> to register an event listener, 
-	 *       myButton is the value of the <code>currentTarget</code>. </td></tr>
-	 *     <tr><td><code>target</code></td><td>The Object that dispatched the event; 
-	 *       it is not always the Object listening for the event. 
-	 *       Use the <code>currentTarget</code> property to always access the 
-	 *       Object listening for the event.</td></tr>
-	 *     <tr><td><code>value</code></td><td>The value passed to the 
-	 *       <code>onTweenUpdate()</code> method.</td></tr>
-	 *  </table>
-	 *
-	 *  @eventType tweenUpdate
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static const TWEEN_UPDATE:String = "tweenUpdate";
-	
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  The list of tweens that are currently playing.
-     */
-    public static var activeTweens:Object = {};
-    
-	private static var timer:IEffectTimer;
-	
-	private static var currentID:int = 1;
-        
-    //--------------------------------------------------------------------------
-    //
-    //  Class properties
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  currentTime
-    //----------------------------------
-
-    /**
-     *  Used by effects to get the current effect time tick.
-     */
-    public static var currentTime:Number = NaN;
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Class methods
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private static function addTween(tween:Tween):void
-    {
-        tween.id = currentID++;
-        
-        activeTweens[tween.id] = tween;
-        
-        if (!timer)
-        {
-            timer = ValuesManager.valuesImpl.newInstance(tween, "iEffectTimer") as IEffectTimer;
-            timer.addEventListener("update", updateHandler);
-		}
-        currentTime = timer.start();
-		
-        tween.startTime = tween.previousUpdateTime = currentTime;
-    }
-
-
-    /**
-     *  @private
-     */
-    private static function removeTween(tween:Tween):void
-    {
-		delete activeTweens[tween.id];
-		if (activeTweens.length == 0)
-			timer.stop();
-    }
-
-    /**
-     *  @private
-     */
-    private static function updateHandler(event:ValueEvent):void
-    {
-        var oldTime:Number = currentTime;
-		
-		// the IEFfectTimer can control the current time
-		// if it wants.  This can be useful for automated
-		// testing.
-        currentTime = event.value as Number;
-
-        for (var id:String in activeTweens)
-        {
-            var tween:Tween = Tween(activeTweens[id]);
-            tween.update();
-        }
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Tween()
-    {        
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private var id:int = -1;
-    
-    /**
-     *  @private
-     */
-    private var _doSeek:Boolean = false;
-    
-    /**
-     *  @private
-     */
-    private var _isPlaying:Boolean = true;
-    
-    /**
-     *  @private
-     */
-    private var _doReverse:Boolean = false;
-
-    /**
-     *  @private
-     */
-    private var startTime:Number;
-    
-    /**
-     *  @private
-     */
-    private var previousUpdateTime:Number;
-    
-    /**
-     *  @private
-     */
-    private var userEquation:Function;
-        
-    /**
-     *  Final value of the animation.
-     */
-    public var endValue:Number;
-    
-    /**
-     *  Initial value of the animation.
-     */
-    public var startValue:Number;
-    
-    /**
-     *  @private
-     */
-    private var started:Boolean = false;
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-    
-    //----------------------------------
-    //  listener
-    //----------------------------------
-
-    /**
-     *  Object that is notified at each interval of the animation. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public var listener:Object;
-    
-    //----------------------------------
-    //  playheadTime
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the playheadTime property.
-     */
-    private var _playheadTime:Number = 0;
-    
-    /**
-     *  @private
-     *  The current millisecond position in the tween.
-     *  This value is between 0 and duration. 
-     *  Use the seek() method to change the position of the tween.
-     */
-    private function get playheadTime():Number
-    {
-        return _playheadTime;
-    }
-    
-    //----------------------------------
-    //  playReversed
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the playReversed property.
-     */
-    private var _invertValues:Boolean = false;
-    
-    /**
-     *  @private
-     *  Starts playing reversed from start of tween.
-     *  Setting this property to <code>true</code>
-     *  inverts the values returned by the tween.
-     *  Using reverse inverts the values and only plays
-     *  for as much time that has already elapsed. 
-     */
-    private function get playReversed():Boolean
-    {
-        return _invertValues;
-    }
-
-    /**
-     *  @private 
-     */
-    private function set playReversed(value:Boolean):void
-    {
-        _invertValues = value;
-    }
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-
-    /**
-     *  Sets the easing function for the animation.
-     *  The easing function is used to interpolate between
-     *  the <code>startValue</code> value and the <code>endValue</code>.
-     *  A trivial easing function does linear interpolation,
-     *  but more sophisticated easing functions create the illusion of
-     *  acceleration and deceleration, which makes the animation seem
-     *  more natural.
-     *
-     *  <p>If no easing function is specified, an easing function based
-     *  on the <code>Math.sin()</code> method is used.</p>
-     *
-     *  <p>The easing function follows the function signature
-     *  popularized by Robert Penner.
-     *  The function accepts four arguments.
-     *  The first argument is the "current time",
-     *  where the animation start time is 0.
-     *  The second argument is a the initial value
-     *  at the beginning of the animation (a Number).
-     *  The third argument is the ending value
-     *  minus the initial value.
-     *  The fourth argument is the duration of the animation.
-     *  The return value is the interpolated value for the current time
-     *  (usually a value between the initial value and the ending value).</p>
-     *
-     *  <p>Flex includes a set of easing functions
-     *  in the mx.effects.easing package.</p>
-     *
-     *  @param easingFunction Function that implements the easing equation. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function set easingFunction(value:Function):void
-    {   
-        userEquation = value;
-    }   
-    
-    /**
-     *  Interrupt the tween, jump immediately to the end of the tween, 
-     *  and invoke the <code>onTweenEnd()</code> callback function.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function endTween():void
-    {
-        var event:ValueEvent = new ValueEvent(Tween.TWEEN_END);
-        var value:Object = getCurrentValue(duration);
-
-        event.value = value;
-        
-        dispatchEvent(event);
-        
-        listener.onTweenEnd(value);
-
-        dispatchEvent(new Event(Effect.EFFECT_END));
-        
-        // If tween has been added, id >= 0
-        // but if duration = 0, this might not be the case.
-        if (id >= 0) {
-            Tween.removeTween(this);
-			id = -1;
-		}
-    }
-
-    /**
-     *  @private
-     *  Returns true if the tween has ended.
-     */
-    protected function update():Boolean
-    {
-        var tweenEnded:Boolean = false;
-        
-        // If user specified a minimum frames per second, we can't guarantee
-        // that we'll be called often enough to satisfy that request.
-        // However, we can avoid skipping over part of the animation.
-        // If this callback arrives too late, adjust the animation startTime,
-        // so that the animation starts up 'maxDelay' milliseconds
-        // after its last update.
-        /*
-        if (intervalTime - previousUpdateTime > maxDelay)
-        {
-            startTime += intervalTime - previousUpdateTime - maxDelay;
-        }
-        */
-        previousUpdateTime = currentTime;
-        
-        if (_isPlaying || _doSeek)
-        {
-            
-            var elapsedTime:Number = currentTime - startTime;
-            _playheadTime = elapsedTime;
-            
-            var currentValue:Object =
-                getCurrentValue(elapsedTime);
-
-            if (elapsedTime >= duration && !_doSeek)
-            {
-                endTween();
-                tweenEnded = true;
-            }
-            else
-            {
-                if (!started)
-                {
-                    var startEvent:ValueEvent = new ValueEvent(Tween.TWEEN_START);
-                    dispatchEvent(startEvent);
-                    started = true;
-                }
-            
-                var event:ValueEvent =
-                    new ValueEvent(Tween.TWEEN_UPDATE);
-                event.value = currentValue;
-                
-                dispatchEvent(event);
-                
-                listener.onTweenUpdate(currentValue);
-            }
-            
-            _doSeek = false;
-        }
-        return tweenEnded;
-    }
-
-    /**
-     *  @private
-     */
-    protected function getCurrentValue(currentTime:Number):Object
-    {
-        if (duration == 0)
-        {
-            return endValue;
-        }
-    
-        if (_invertValues)
-            currentTime = duration - currentTime;
-    
-        return userEquation(currentTime, startValue,
-                                endValue - startValue,
-                                duration);
-    }
-    
-    /**
-     *  @private
-     */
-    private function defaultEasingFunction(t:Number, b:Number,
-                                           c:Number, d:Number):Number
-    {
-        return c / 2 * (Math.sin(Math.PI * (t / d - 0.5)) + 1) + b;
-    }
-    
-    /**
-     *  Advances the tween effect to the specified position. 
-     *
-     *  @param playheadTime The position, in milliseconds, between 0
-     *  and the value of the <code>duration</code> property.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */ 
-    public function seek(playheadTime:Number):void
-    {
-        // Set value between 0 and duration
-        //playheadTime = Math.min(Math.max(playheadTime, 0), duration);
-        
-        var clockTime:Number = currentTime;
-        
-        // Reset the previous update time
-        previousUpdateTime = clockTime;
-        
-        // Reset the start time
-        startTime = clockTime - playheadTime;
-        
-        _doSeek = true;
-        
-        update();
-    }
-    
-    /**
-     *  Plays the effect in reverse,
-     *  starting from the current position of the effect.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    override public function reverse():void
-    {
-        if (_isPlaying)
-        {
-            _doReverse = false;
-            seek(duration - _playheadTime);
-            _invertValues = !_invertValues;
-        }
-        else
-        {
-            _doReverse = !_doReverse;
-        }
-    }
-    
-    /**
-     *  Pauses the effect until you call the <code>resume()</code> method.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    override public function pause():void
-    {
-        _isPlaying = false;
-    }
-
-	/**
-	 *  Stops the tween, ending it without dispatching an event or calling
-	 *  the Tween's endFunction or <code>onTweenEnd()</code>. 
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-    override public function play():void
-	{
-		if (userEquation == null)
-			userEquation = defaultEasingFunction;
-		Tween.addTween(this);
-	}
-	
-    /**
-     *  Stops the tween, ending it without dispatching an event or calling
-     *  the Tween's endFunction or <code>onTweenEnd()</code>. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    override public function stop():void
-    {
-        if (id >= 0) {
-            Tween.removeTween(this);
-			id = -1;
-		}
-    }
-    
-    /**
-     *  Resumes the effect after it has been paused 
-     *  by a call to the <code>pause()</code> method. 
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    override public function resume():void
-    {
-        _isPlaying = true;
-        
-        startTime = currentTime - _playheadTime;
-        if (_doReverse)
-        {
-            reverse();
-            _doReverse = false;
-        }
-    }   
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
deleted file mode 100644
index fe83935..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
+++ /dev/null
@@ -1,156 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package org.apache.flex.effects
-{
-
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IUIBase;
-import org.apache.flex.geom.Rectangle;
-
-/**
- *  The Fade effect animates a UI component's alpha or opacity.
- * 
- *  @langversion 3.0
- *  @playerversion Flash 10.2
- *  @playerversion AIR 2.6
- *  @productversion FlexJS 0.0
- */
-public class Wipe extends Tween implements IDocument
-{
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor.
-     *
-     *  @param target Object ID or reference to an object that will
-	 *  have its x and/or y property animated.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function Wipe(target:IUIBase = null)
-    {
-        super();
-
-		this.actualTarget = target;
-        
-		listener = this;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The document.
-	 */
-	private var document:Object;
-
-	/**
-	 *  @private
-	 *  The target.
-	 */
-	private var actualTarget:IUIBase;
-    
-    /**
-     *  The target as the String id 
-     *  of a widget in an MXML Document.
-     */
-    public var target:String;
-    
-	/**
-	 *  The direction of the Wipe.  "up" means the top will be the last
-     *  part to disappear. "down" will reveal from the top down.
-     */
-    public var direction:String;
-    	
-    private var wiper:PlatformWiper = new PlatformWiper();	
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    
-    //--------------------------------------------------------------------------
-    //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-	public function setDocument(document:Object, id:String = null):void
-	{
-		this.document = document;	
-	}
-	
-	/**
-	 *  @private
-	 */
-	override public function play():void
-	{
-        if (target != null)
-            actualTarget = document[target];
-        
-		
-        wiper.target = actualTarget;
-        if (direction == "up")
-        {
-            startValue = actualTarget.height;
-            endValue = 0;
-        }
-        else
-        {
-            startValue = 0;
-            endValue = actualTarget.height;
-            // WipeDown makes something appear
-            actualTarget.visible = true;
-            wiper.visibleRect = new Rectangle(0, 0, actualTarget.width, 0);
-        }
-        
-		super.play();
-	}
-
-	public function onTweenUpdate(value:Number):void
-	{
-        trace(actualTarget, value);
-		wiper.visibleRect = new Rectangle(0, 0, actualTarget.width, value);
-	}
-	
-	public function onTweenEnd(value:Number):void
-	{
-        // WipeUp makes something disappear
-        if (direction == "up")
-            actualTarget.visible = false;
-        wiper.target = null;
-	}
-}
-
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
deleted file mode 100644
index 4aa38d2..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
+++ /dev/null
@@ -1,144 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html
-{
-	import org.apache.flex.core.IBead;
-	import org.apache.flex.core.IDataGridModel;
-	import org.apache.flex.core.IDataGridPresentationModel;
-	import org.apache.flex.core.UIBase;
-	import org.apache.flex.html.beads.models.DataGridPresentationModel;
-	
-	[Event(name="change", type="org.apache.flex.events.Event")]
-	
-	/**
-	 *  The DataGrid class displays a collection of data using columns and rows. Each
-	 *  column represents a specific field in the data set; each row represents a specific
-	 *  datum. The DataGrid is a composite component built with a org.apache.flex.html.ButtonBar 
-	 *  for the column headers and a org.apache.flex.html.List for each column. The DataGrid's 
-	 *  view bead (usually org.apache.flex.html.beads.DataGridView) constructs these parts while 
-	 *  itemRenderer factories contruct the elements to display the data in each cell.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class DataGrid extends UIBase
-	{
-		/**
-		 *  constructor.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function DataGrid()
-		{
-			super();
-		}
-		
-		/**
-		 *  The array of org.apache.flex.html.supportClasses.DataGridColumns used to 
-		 *  describe each column.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get columns():Array
-		{
-			return IDataGridModel(model).columns;
-		}
-		public function set columns(value:Array):void
-		{
-			IDataGridModel(model).columns = value;
-		}
-		
-		/**
-		 *  The object used to provide data to the org.apache.flex.html.DataGrid.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get dataProvider():Object
-		{
-			return IDataGridModel(model).dataProvider;
-		}
-		public function set dataProvider(value:Object):void
-		{
-			IDataGridModel(model).dataProvider = value;
-		}
-		
-		/**
-		 *  The currently selected row.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get selectedIndex():int
-		{
-			return IDataGridModel(model).selectedIndex;
-		}
-		
-		/**
-		 *  The DataGrid's presentation model
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get presentationModel():IDataGridPresentationModel
-		{
-			var beadMod:IBead = getBeadByType(IDataGridPresentationModel);
-			var presModel:IDataGridPresentationModel;
-			
-			if (beadMod == null) {
-				presModel = new DataGridPresentationModel();
-				addBead(presModel);
-			} else {
-				presModel = beadMod as IDataGridPresentationModel;
-			}
-			return presModel;
-		}
-				
-		/**
-		 *  The default height of each cell in every column
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get rowHeight():Number
-		{
-			return presentationModel.rowHeight;
-		}
-		public function set rowHeight(value:Number):void
-		{
-			presentationModel.rowHeight = value;
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
deleted file mode 100644
index 33615ea..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
+++ /dev/null
@@ -1,74 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html
-{
-	import org.apache.flex.core.IDateChooserModel;
-	import org.apache.flex.core.UIBase;
-	
-	/**
-	 * The change event is dispatched when the selectedDate is changed.
-	 */
-	[Event(name="change", type="org.apache.flex.events.Event")]
-	
-	/**
-	 *  The DateChooser class is a component that displays a calendar.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class DateChooser extends UIBase
-	{
-		/**
-		 *  constructor.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function DateChooser()
-		{
-			super();
-			className = "DateChooser";
-			
-			// fix the DateChooser's size
-//			width = 280;
-//			height = 240;
-		}
-		
-		/**
-		 *  The currently selected date (or null if no date has been selected).
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get selectedDate():Date
-		{
-			return IDateChooserModel(model).selectedDate;
-		}
-		public function set selectedDate(value:Date):void
-		{
-			IDateChooserModel(model).selectedDate = value;
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
deleted file mode 100644
index dfd2212..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
+++ /dev/null
@@ -1,90 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html
-{
-	import org.apache.flex.core.IBead;
-	import org.apache.flex.core.IDateChooserModel;
-	import org.apache.flex.core.UIBase;
-	import org.apache.flex.core.ValuesManager;
-	
-	/**
-	 * The DateField class provides an input field where a date can be entered
-	 * and a pop-up calendar control for picking a date as an alternative to
-	 * the text field.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class DateField extends UIBase
-	{
-		/**
-		 *  constructor.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function DateField()
-		{
-			super();
-			
-			className = "DateField";
-		}
-		
-		/**
-		 * The method called when added to a parent. The DateField class uses
-		 * this opportunity to install additional beads.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		override public function addedToParent():void
-		{
-            var klass:* = ValuesManager.valuesImpl.getValue(this,"iFormatBead");
-            var bead:IBead = new klass() as IBead;
-            if (bead) {
-                addBead(bead);
-            }
-            
-			super.addedToParent();
-		}
-		
-		/**
-		 *  The currently selected date (or null if no date has been selected).
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get selectedDate():Date
-		{
-			return IDateChooserModel(model).selectedDate;
-		}
-		public function set selectedDate(value:Date):void
-		{
-			IDateChooserModel(model).selectedDate = value;
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/ImageButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/ImageButton.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/ImageButton.as
deleted file mode 100644
index dd92019..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/ImageButton.as
+++ /dev/null
@@ -1,60 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html
-{
-    import org.apache.flex.core.SimpleCSSStyles;
-
-    /**
-     *  The CloseButton class is Button that displays an X
-     *  and is commonly used in a Panel's TitleBar.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-	public class ImageButton extends Button
-	{
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-		public function ImageButton()
-		{
-			super();
-            typeNames = "ImageButton";
-		}
-        
-        public function get backgroundImage():String
-        {
-            return style.backgroundImage;
-        }
-        
-        public function set backgroundImage(url:String):void
-        {
-            if (!style)
-                style = new SimpleCSSStyles();
-            style.backgroundImage = url;
-        }
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
deleted file mode 100644
index 208b5ff..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
+++ /dev/null
@@ -1,215 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
-	import org.apache.flex.core.IBeadModel;
-	import org.apache.flex.core.IFormatBead;
-	import org.apache.flex.core.IStrand;
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-	import org.apache.flex.events.IEventDispatcher;
-	
-	/**
-	 * The CurrencyFormatter class formats a value in separated groups. The formatter listens
-	 * to a property on a model and when the property changes, formats it and dispatches a
-	 * formatChanged event.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class CurrencyFormatter extends EventDispatcher implements IFormatBead
-	{
-		/**
-		 *  constructor
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function CurrencyFormatter()
-		{
-			super();
-		}
-		
-		private var _strand:IStrand;
-		
-		/**
-		 *  @copy org.apache.flex.core.IBead#strand
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function set strand(value:IStrand):void
-		{
-			_strand = value;
-			
-			// Listen for the beadsAdded event which signals when all of a strand's
-			// beads have been added.
-			IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
-		}
-		
-		/**
-		 * @private
-		 */
-		private function handleBeadsAdded(event:Event):void
-		{
-			// Listen for the change in the model
-			var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
-			model.addEventListener(eventName,propertyChangeHandler);
-			model.addEventListener(propertyName+"Change",propertyChangeHandler);
-			
-			// format the current value of that property
-			propertyChangeHandler(null);
-		}
-		
-		private var _propertyName:String;
-		private var _eventName:String;
-		private var _formattedResult:String;
-		private var _fractionalDigits:Number = 2;
-        private var _currencySymbol:String = "$";
-		
-		/**
-		 *  The name of the property on the model to format.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get propertyName():String
-		{
-			if (_propertyName == null) {
-				return "text";
-			}
-			return _propertyName;
-		}
-		public function set propertyName(value:String):void
-		{
-			_propertyName = value;
-		}
-		
-		/**
-		 *  The event dispatched by the model when the property changes. The
-		 *  default is propertyName+"Changed".
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get eventName():String
-		{
-			if (_eventName == null) {
-				return _propertyName+"Changed";
-			}
-			return _eventName;
-		}
-		public function set eventName(value:String):void
-		{
-			_eventName = value;
-		}
-		
-        /**
-		 *  Number of digits after the decimal separator
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get fractionalDigits():int
-		{
-			return _fractionalDigits;
-		}
-		public function set fractionalDigits(value:int):void
-		{
-            _fractionalDigits = value;
-		}
-		
-        /**
-         *  The currency symbol, such as "$"
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get currencySymbol():String
-        {
-            return _currencySymbol;
-        }
-        public function set currencySymbol(value:String):void
-        {
-            _currencySymbol = value;
-        }
-
-        /**
-		 *  The formatted string.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get formattedString():String
-		{
-			return _formattedResult;
-		}
-		
-		/**
-		 * @private
-		 */
-		private function propertyChangeHandler(event:Event):void
-		{
-			// When the property changes, fetch it from the model and
-			// format it, storing the result in _formattedResult.
-			var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
-			var value:Object = model[propertyName];
-			_formattedResult = format(value);
-			
-			// Dispatch the formatChanged event so any bead that's interested in
-			// the formatted string knows to use it.
-			var newEvent:Event = new Event("formatChanged");
-			this.dispatchEvent(newEvent);
-		}
-		
-        /**
-         *  Computes the formatted string.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-		public function format(value:Object):String
-		{
-			if (value == null) return "";
-			
-			var num:Number = Number(value);
-            var source:String = num.toFixed(fractionalDigits);
-			
-			return currencySymbol + source;
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
deleted file mode 100644
index 94d7f20..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
+++ /dev/null
@@ -1,158 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
-	import org.apache.flex.core.IBead;
-	import org.apache.flex.core.IDateChooserModel;
-	import org.apache.flex.core.IFormatBead;
-	import org.apache.flex.core.IStrand;
-    import org.apache.flex.core.IStrandWithModel;
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-	import org.apache.flex.html.TextInput;
-	import org.apache.flex.html.beads.DateFieldView;
-	
-	/**
-	 * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
-	 *  
-     *  @flexjsignoreimport org.apache.flex.core.IStrandWithModel
-     * 
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class DateFormatMMDDYYYYBead extends EventDispatcher implements IBead, IFormatBead
-	{
-		/**
-		 * constructor.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function DateFormatMMDDYYYYBead()
-		{
-		}
-		
-		private var _propertyName:String;
-		private var _eventName:String;
-		private var _formattedResult:String;
-		
-		/**
-		 *  The name of the property on the model holding the value to be formatted.
-		 *  The default is selectedDate.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get propertyName():String
-		{
-			if (_propertyName == null) {
-				return "selectedDate";
-			}
-			return _propertyName;
-		}
-		public function set propertyName(value:String):void
-		{
-			_propertyName = value;
-		}
-		
-		/**
-		 *  The name of the event dispatched when the property changes. The
-		 *  default is selectedDateChanged.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get eventName():String
-		{
-			if (_eventName == null) {
-				return _propertyName+"Changed";
-			}
-			return _eventName;
-		}
-		public function set eventName(value:String):void
-		{
-			_eventName = value;
-		}
-		
-		/**
-		 *  The formatted result.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get formattedString():String
-		{
-			return _formattedResult;
-		}
-		
-		private var _strand:IStrand;
-		
-		/**
-		 *  @copy org.apache.flex.core.IBead#strand
-		 *  
-         *  @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
-         * 
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function set strand(value:IStrand):void
-		{
-			_strand = value;
-			
-			var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
-			model.addEventListener("selectedDateChanged",handleTextChange);
-		}
-		
-		/**
-		 * @private
-         * 
-         * @flexjsignorecoercion org.apache.flex.core.IStrandWithModel
-		 */
-		private function handleTextChange(event:Event):void
-		{
-			var model:IDateChooserModel = IStrandWithModel(_strand).model as IDateChooserModel;
-			/*var view:DateFieldView = _strand.getBeadByType(DateFieldView) as DateFieldView;
-			var input:TextInput = view.textInput;*/
-			
-			var d:Date = model.selectedDate;
-			var month:String = String(d.getMonth()+1);
-			if (Number(month)<10) month = "0"+month;
-			var date:String = String(d.getDate());
-			if (Number(date)<10) date = "0"+date;
-			var fmt:String = month+"/"+date+"/"+String(d.getFullYear());
-			/*input.text = fmt;*/
-			_formattedResult = month+"/"+date+"/"+String(d.getFullYear());
-			
-			dispatchEvent( new Event("formatChanged") );
-		}
-		
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/NumberFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/NumberFormatter.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/NumberFormatter.as
deleted file mode 100644
index 0d1b613..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/NumberFormatter.as
+++ /dev/null
@@ -1,210 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.accessories
-{
-	import org.apache.flex.core.IBeadModel;
-	import org.apache.flex.core.IFormatBead;
-	import org.apache.flex.core.IStrand;
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.EventDispatcher;
-	import org.apache.flex.events.IEventDispatcher;
-	
-	/**
-	 * The NumberFormatter class formats a value in separated groups. The formatter listens
-	 * to a property on a model and when the property changes, formats it and dispatches a
-	 * formatChanged event.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 */
-	public class NumberFormatter extends EventDispatcher implements IFormatBead
-	{
-		/**
-		 *  constructor
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function NumberFormatter()
-		{
-			super();
-		}
-		
-		private var _strand:IStrand;
-		
-		/**
-		 *  @copy org.apache.flex.core.IBead#strand
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function set strand(value:IStrand):void
-		{
-			_strand = value;
-			
-			// Listen for the beadsAdded event which signals when all of a strand's
-			// beads have been added.
-			IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
-		}
-		
-		/**
-		 * @private
-		 */
-		private function handleBeadsAdded(event:Event):void
-		{
-			// Listen for the change in the model
-			var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
-			model.addEventListener(eventName,propertyChangeHandler);
-			model.addEventListener(propertyName+"Change",propertyChangeHandler);
-			
-			// format the current value of that property
-			propertyChangeHandler(null);
-		}
-		
-		private var _propertyName:String;
-		private var _eventName:String;
-		private var _formattedResult:String;
-		private var _groupSize:Number = 3;
-		private var _thousandsSeparator:String = ",";
-		
-		/**
-		 *  The name of the property on the model to format.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get propertyName():String
-		{
-			if (_propertyName == null) {
-				return "text";
-			}
-			return _propertyName;
-		}
-		public function set propertyName(value:String):void
-		{
-			_propertyName = value;
-		}
-		
-		/**
-		 *  The event dispatched by the model when the property changes. The
-		 *  default is propertyName+"Changed".
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get eventName():String
-		{
-			if (_eventName == null) {
-				return _propertyName+"Changed";
-			}
-			return _eventName;
-		}
-		public function set eventName(value:String):void
-		{
-			_eventName = value;
-		}
-		
-		/**
-		 *  Character to use to separate thousands groups. The default is
-		 *  the comma (,).
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get thousandsSeparator():String
-		{
-			return _thousandsSeparator;
-		}
-		public function set thousandsSeparator(value:String):void
-		{
-			_thousandsSeparator = value;
-		}
-		
-		/**
-		 *  The formatted string.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion FlexJS 0.0
-		 */
-		public function get formattedString():String
-		{
-			return _formattedResult;
-		}
-		
-		/**
-		 * @private
-		 */
-		private function propertyChangeHandler(event:Event):void
-		{
-			// When the property changes, fetch it from the model and
-			// format it, storing the result in _formattedResult.
-			var model:IBeadModel = _strand.getBeadByType(IBeadModel) as IBeadModel;
-			var value:Object = model[propertyName];
-			_formattedResult = format(value);
-			
-			// Dispatch the formatChanged event so any bead that's interested in
-			// the formatted string knows to use it.
-			var newEvent:Event = new Event("formatChanged");
-			this.dispatchEvent(newEvent);
-		}
-		
-		/**
-		 * @private
-		 */
-		private function format(value:Object):String
-		{
-			if (value == null) return "";
-			
-			var num:Number = Number(value);
-			var source:String = String(value);
-			var parts:Array = source.split(thousandsSeparator);
-			source = parts.join("");
-			
-			var l:int = source.length;
-			var result:String = "";
-			var group:int = 0;
-			
-			for(var i:int=l-1; i >= 0; i--)
-			{
-				if (group == _groupSize && result.length > 0) {
-					result = thousandsSeparator + result;
-					group = 0;
-				}
-				result = source.charAt(i) + result;
-				group++;
-			}
-			
-			return result;
-		}
-	}
-}


Mime
View raw message