You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/11/18 22:02:57 UTC
[02/21] move AS code into a projects/FlexJSUI
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/DropDownListList.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/DropDownListList.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/DropDownListList.as
deleted file mode 100644
index 04f9f7c..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/DropDownListList.as
+++ /dev/null
@@ -1,44 +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.staticControls.supportClasses
-{
- import org.apache.flex.core.IPopUp;
- import org.apache.flex.html.staticControls.List;
- import org.apache.flex.html.staticControls.SimpleList;
- import org.apache.flex.html.staticControls.beads.SolidBackgroundBead;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class DropDownListList extends SimpleList implements IPopUp
- {
- public function DropDownListList()
- {
- super();
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- var bb:SolidBackgroundBead = new SolidBackgroundBead();
- bb.backgroundColor = 0xffffff;
- addBead(bb);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/NonVirtualDataGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/NonVirtualDataGroup.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/NonVirtualDataGroup.as
deleted file mode 100644
index 133ed18..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/NonVirtualDataGroup.as
+++ /dev/null
@@ -1,42 +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.staticControls.supportClasses
-{
- import org.apache.flex.core.IItemRenderer;
- import org.apache.flex.core.IItemRendererParent;
- import org.apache.flex.core.UIBase;
-
- public class NonVirtualDataGroup extends UIBase implements IItemRendererParent
- {
- public function NonVirtualDataGroup()
- {
- super();
- }
-
- public function getItemRendererForIndex(index:int):IItemRenderer
- {
- return getChildAt(index) as IItemRenderer;
- }
-
- public function removeAllElements():void
- {
- this.removeChildren(0);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/ScrollBar.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/ScrollBar.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/ScrollBar.as
deleted file mode 100644
index 2b33d08..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/ScrollBar.as
+++ /dev/null
@@ -1,30 +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.staticControls.supportClasses
-{
- import org.apache.flex.core.UIBase;
-
- public class ScrollBar extends UIBase
- {
- public function ScrollBar()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/StringItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/StringItemRenderer.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/StringItemRenderer.as
deleted file mode 100644
index 1cef4c4..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/StringItemRenderer.as
+++ /dev/null
@@ -1,75 +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.staticControls.supportClasses
-{
- import flash.text.TextFieldType;
-
- import org.apache.flex.core.CSSTextField;
- import org.apache.flex.events.Event;
- import org.apache.flex.html.staticControls.beads.ITextItemRenderer;
-
- public class StringItemRenderer extends UIItemRendererBase implements ITextItemRenderer
- {
- public function StringItemRenderer()
- {
- super();
-
- textField = new CSSTextField();
- textField.type = TextFieldType.DYNAMIC;
- textField.selectable = false;
- }
-
- public var textField:CSSTextField;
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- addChild(textField);
-
- adjustSize();
- }
-
- override public function adjustSize():void
- {
- textField.x = 0;
- textField.y = 0;
- textField.width = this.width;
- textField.height = this.height;
- }
-
- public function get text():String
- {
- return textField.text;
- }
-
- public function set text(value:String):void
- {
- textField.text = value;
- }
-
- override public function updateRenderer():void
- {
- super.updateRenderer();
-
- textField.background = (down || selected || hovered);
- textField.backgroundColor = backgroundColor;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/TextFieldItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/TextFieldItemRenderer.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/TextFieldItemRenderer.as
deleted file mode 100644
index 6288951..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/TextFieldItemRenderer.as
+++ /dev/null
@@ -1,230 +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.staticControls.supportClasses
-{
- import flash.text.TextFieldType;
-
- import org.apache.flex.core.CSSTextField;
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IBeadController;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.events.Event;
- import org.apache.flex.html.staticControls.beads.ITextItemRenderer;
-
- public class TextFieldItemRenderer extends CSSTextField implements ITextItemRenderer, IStrand, IUIBase
- {
- public function TextFieldItemRenderer()
- {
- super();
- type = TextFieldType.DYNAMIC;
- selectable = false;
- }
-
- public var highlightColor:uint = 0xCEDBEF;
- public var selectedColor:uint = 0xA8C6EE;
- public var downColor:uint = 0x808080;
-
- private var _width:Number;
- override public function get width():Number
- {
- if (isNaN(_width))
- {
- var value:* = ValuesManager.valuesImpl.getValue(this, "width");
- if (value === undefined)
- return $width;
- _width = Number(value);
- super.width = value;
- }
- return _width;
- }
- override public function set width(value:Number):void
- {
- if (_width != value)
- {
- _width = value;
- super.width = value;
- dispatchEvent(new Event("widthChanged"));
- }
- }
- protected function get $width():Number
- {
- return super.width;
- }
-
- private var _height:Number;
- override public function get height():Number
- {
- if (isNaN(_height))
- {
- var value:* = ValuesManager.valuesImpl.getValue(this, "height");
- if (value === undefined)
- return $height;
- _height = Number(value);
- super.height = value;
- }
- return _height;
- }
- override public function set height(value:Number):void
- {
- if (_height != value)
- {
- _height = value;
- super.height = value;
- dispatchEvent(new Event("heightChanged"));
- }
- }
- protected function get $height():Number
- {
- return super.height;
- }
-
- public function get data():Object
- {
- return text;
- }
- public function set data(value:Object):void
- {
- text = String(value);
- }
-
- private var _index:int;
-
- public function get index():int
- {
- return _index;
- }
- public function set index(value:int):void
- {
- _index = value;
- }
-
- private var _hovered:Boolean;
-
- public function get hovered():Boolean
- {
- return _hovered;
- }
- public function set hovered(value:Boolean):void
- {
- _hovered = value;
- updateRenderer();
- }
-
- private var _selected:Boolean;
-
- public function get selected():Boolean
- {
- return _selected;
- }
- public function set selected(value:Boolean):void
- {
- _selected = value;
- updateRenderer();
- }
-
- private var _down:Boolean;
-
- public function get down():Boolean
- {
- return _down;
- }
- public function set down(value:Boolean):void
- {
- _down = value;
- updateRenderer();
- }
-
- public function updateRenderer():void
- {
- background = (down || selected || hovered);
- if (down)
- backgroundColor = downColor;
- else if (hovered)
- backgroundColor = highlightColor;
- else if (selected)
- backgroundColor = selectedColor;
- }
-
- public function get element():Object
- {
- return this;
- }
-
- // beads declared in MXML are added to the strand.
- // from AS, just call addBead()
- public var beads:Array;
-
- private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
- {
- if (!_beads)
- _beads = new Vector.<IBead>;
- _beads.push(bead);
- bead.strand = this;
- }
-
- public function getBeadByType(classOrInterface:Class):IBead
- {
- for each (var bead:IBead in _beads)
- {
- if (bead is classOrInterface)
- return bead;
- }
- return null;
- }
-
- public function removeBead(value:IBead):IBead
- {
- var n:int = _beads.length;
- for (var i:int = 0; i < n; i++)
- {
- var bead:IBead = _beads[i];
- if (bead == value)
- {
- _beads.splice(i, 1);
- return bead;
- }
- }
- return null;
- }
-
- public function addedToParent():void
- {
- var c:Class;
-
- // renderer has a default model (the 'data' property)
- // and it is essentially a view of that model, so it
- // only needs an assignable controller
-
- if (getBeadByType(IBeadController) == null)
- {
- c = ValuesManager.valuesImpl.getValue(this, "iBeadController") as Class;
- if (c)
- {
- var controller:IBeadController = new c as IBeadController;
- if (controller)
- addBead(controller);
- }
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/UIItemRendererBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/UIItemRendererBase.as b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/UIItemRendererBase.as
deleted file mode 100644
index 5936387..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/UIItemRendererBase.as
+++ /dev/null
@@ -1,123 +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.staticControls.supportClasses
-{
- import org.apache.flex.core.IItemRenderer;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.events.Event;
-
- public class UIItemRendererBase extends UIBase implements IItemRenderer
- {
- public function UIItemRendererBase()
- {
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- // very common for item renderers to be resized by their containers,
- addEventListener("widthChanged", sizeChangeHandler);
- addEventListener("heightChanged", sizeChangeHandler);
- }
-
- public var backgroundColor:uint = 0xFFFFFF;
- public var highlightColor:uint = 0xCEDBEF;
- public var selectedColor:uint = 0xA8C6EE;
- public var downColor:uint = 0x808080;
-
- private var _data:Object;
-
- public function get data():Object
- {
- return _data;
- }
- public function set data(value:Object):void
- {
- _data = value;
- }
-
- private var _index:int;
-
- public function get index():int
- {
- return _index;
- }
- public function set index(value:int):void
- {
- _index = value;
- }
-
- private var _hovered:Boolean;
-
- public function get hovered():Boolean
- {
- return _hovered;
- }
- public function set hovered(value:Boolean):void
- {
- _hovered = value;
- updateRenderer();
- }
-
- private var _selected:Boolean;
-
- public function get selected():Boolean
- {
- return _selected;
- }
- public function set selected(value:Boolean):void
- {
- _selected = value;
- updateRenderer();
- }
-
- private var _down:Boolean;
-
- public function get down():Boolean
- {
- return _down;
- }
- public function set down(value:Boolean):void
- {
- _down = value;
- updateRenderer();
- }
-
- public function updateRenderer():void
- {
- if (down)
- backgroundColor = downColor;
- else if (hovered)
- backgroundColor = highlightColor;
- else if (selected)
- backgroundColor = selectedColor;
- }
-
- private function sizeChangeHandler(event:Event):void
- {
- adjustSize();
- }
-
- public function adjustSize():void
- {
- // handle in subclass
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/Button.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/Button.as b/frameworks/as/src/org/apache/flex/html5/staticControls/Button.as
deleted file mode 100644
index 4b7731d..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/Button.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.Button;
-
- public class Button extends org.apache.flex.html.staticControls.Button
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/CheckBox.as b/frameworks/as/src/org/apache/flex/html5/staticControls/CheckBox.as
deleted file mode 100644
index ec92d72..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/CheckBox.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.CheckBox;
-
- public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/ComboBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/ComboBox.as b/frameworks/as/src/org/apache/flex/html5/staticControls/ComboBox.as
deleted file mode 100644
index ebeea35..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/ComboBox.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.ComboBox;
-
- public class ComboBox extends org.apache.flex.html.staticControls.ComboBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/DropDownList.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/DropDownList.as b/frameworks/as/src/org/apache/flex/html5/staticControls/DropDownList.as
deleted file mode 100644
index 14aa0fe..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/DropDownList.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.DropDownList;
-
- public class DropDownList extends org.apache.flex.html.staticControls.DropDownList
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/Label.as b/frameworks/as/src/org/apache/flex/html5/staticControls/Label.as
deleted file mode 100644
index 8a8ad99..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/Label.as
+++ /dev/null
@@ -1,33 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.Label;
-
- /**
- * Label probably should extend TextField directly,
- * but the player's APIs for TextLine do not allow
- * direct instantiation, and we might want to allow
- * Labels to be declared and have their actual
- * view be swapped out.
- */
- public class Label extends org.apache.flex.html.staticControls.Label
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/List.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/List.as b/frameworks/as/src/org/apache/flex/html5/staticControls/List.as
deleted file mode 100644
index 86e8ef8..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/List.as
+++ /dev/null
@@ -1,33 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.List;
-
- /**
- * Label probably should extend TextField directly,
- * but the player's APIs for TextLine do not allow
- * direct instantiation, and we might want to allow
- * Labels to be declared and have their actual
- * view be swapped out.
- */
- public class List extends org.apache.flex.html.staticControls.List
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/RadioButton.as b/frameworks/as/src/org/apache/flex/html5/staticControls/RadioButton.as
deleted file mode 100644
index 78f117b..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/RadioButton.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.RadioButton;
-
- public class RadioButton extends org.apache.flex.html.staticControls.RadioButton
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/TextArea.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/TextArea.as b/frameworks/as/src/org/apache/flex/html5/staticControls/TextArea.as
deleted file mode 100644
index a2c4f0b..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/TextArea.as
+++ /dev/null
@@ -1,26 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.TextArea;
-
- public class TextArea extends org.apache.flex.html.staticControls.TextArea
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/TextButton.as b/frameworks/as/src/org/apache/flex/html5/staticControls/TextButton.as
deleted file mode 100644
index 6c87ea4..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/TextButton.as
+++ /dev/null
@@ -1,32 +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.html5.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.html.staticControls.TextButton;
-
- public class TextButton extends org.apache.flex.html.staticControls.TextButton
- {
- public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html5/staticControls/TextInput.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html5/staticControls/TextInput.as b/frameworks/as/src/org/apache/flex/html5/staticControls/TextInput.as
deleted file mode 100644
index adb723f..0000000
--- a/frameworks/as/src/org/apache/flex/html5/staticControls/TextInput.as
+++ /dev/null
@@ -1,25 +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.html5.staticControls
-{
- import org.apache.flex.html.staticControls.TextInput;
-
- public class TextInput extends org.apache.flex.html.staticControls.TextInput
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/jquery/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/jquery/Application.as b/frameworks/as/src/org/apache/flex/jquery/Application.as
deleted file mode 100644
index e2a3113..0000000
--- a/frameworks/as/src/org/apache/flex/jquery/Application.as
+++ /dev/null
@@ -1,31 +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.jquery
-{
- import org.apache.flex.core.Application;
- import org.apache.flex.core.IFlexInfo;
-
- public class Application extends org.apache.flex.core.Application implements IFlexInfo
- {
- public function Application()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/jquery/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/jquery/staticControls/CheckBox.as b/frameworks/as/src/org/apache/flex/jquery/staticControls/CheckBox.as
deleted file mode 100644
index a2f3a01..0000000
--- a/frameworks/as/src/org/apache/flex/jquery/staticControls/CheckBox.as
+++ /dev/null
@@ -1,26 +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.jquery.staticControls
-{
- import org.apache.flex.html.staticControls.CheckBox;
-
- public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/jquery/staticControls/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/jquery/staticControls/RadioButton.as b/frameworks/as/src/org/apache/flex/jquery/staticControls/RadioButton.as
deleted file mode 100644
index a94739a..0000000
--- a/frameworks/as/src/org/apache/flex/jquery/staticControls/RadioButton.as
+++ /dev/null
@@ -1,26 +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.jquery.staticControls
-{
- import org.apache.flex.html.staticControls.RadioButton;
-
- public class RadioButton extends org.apache.flex.html.staticControls.RadioButton
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/jquery/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/jquery/staticControls/TextButton.as b/frameworks/as/src/org/apache/flex/jquery/staticControls/TextButton.as
deleted file mode 100644
index c2632f3..0000000
--- a/frameworks/as/src/org/apache/flex/jquery/staticControls/TextButton.as
+++ /dev/null
@@ -1,32 +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.jquery.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.html.staticControls.TextButton;
-
- public class TextButton extends org.apache.flex.html.staticControls.TextButton
- {
- public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/BinaryUploader.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/BinaryUploader.as b/frameworks/as/src/org/apache/flex/net/BinaryUploader.as
deleted file mode 100644
index e806518..0000000
--- a/frameworks/as/src/org/apache/flex/net/BinaryUploader.as
+++ /dev/null
@@ -1,305 +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.net
-{
- import flash.events.HTTPStatusEvent;
- import flash.events.IOErrorEvent;
- import flash.net.URLLoader;
- import flash.net.URLRequest;
- import flash.net.URLRequestHeader;
- import flash.net.URLRequestMethod;
-
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.utils.BinaryData;
-
- [Event(name="complete", type="org.apache.flex.events.Event")]
-
- [Event(name="ioError", type="org.apache.flex.events.Event")]
-
- [Event(name="httpStatus", type="org.apache.flex.events.Event")]
-
- [Event(name="httpResponseStatus", type="org.apache.flex.events.Event")]
-
- [DefaultProperty("beads")]
-
- public class BinaryUploader extends EventDispatcher implements IStrand, IBead
- {
- public static const HTTP_METHOD_GET:String = URLRequestMethod.GET;
- public static const HTTP_METHOD_POST:String = URLRequestMethod.POST;
- public static const HTTP_METHOD_PUT:String = URLRequestMethod.PUT;
- public static const HTTP_METHOD_DELETE:String = URLRequestMethod.DELETE;
-
- public function BinaryUploader()
- {
- super();
- }
-
- private var _contentType:String = "application/octet-stream";
- public function get contentType():String
- {
- return _contentType;
- }
- public function set contentType(value:String):void
- {
- if (_contentType != value)
- {
- _contentType = value;
- dispatchEvent(new Event("contentTypeChanged"));
- }
- }
-
- private var _binaryData:BinaryData;
- public function get binaryData():BinaryData
- {
- return _binaryData;
- }
- public function set binaryData(value:BinaryData):void
- {
- if (_binaryData != value)
- {
- _binaryData = value;
- dispatchEvent(new Event("binaryDataChanged"));
- }
- }
-
- private var _headers:Array;
- public function get headers():Array
- {
- if (_headers == null)
- _headers = [];
- return _headers;
- }
- public function set headers(value:Array):void
- {
- if (_headers != value)
- {
- _headers = value;
- dispatchEvent(new Event("headersChanged"));
- }
- }
-
- private var _method:String = HTTP_METHOD_POST;
- public function get method():String
- {
- return _method;
- }
- public function set method(value:String):void
- {
- if (_method != value)
- {
- _method = value;
- dispatchEvent(new Event("methodChanged"));
- }
- }
-
- private var _responseHeaders:Array;
- public function get responseHeaders():Array
- {
- if (_responseHeaders && _responseHeaders.length > 0)
- {
- if (_responseHeaders[0] is URLRequestHeader)
- {
- var n:int = _responseHeaders.length;
- for (var i:int = 0; i < n; i++)
- {
- var old:URLRequestHeader = _responseHeaders[i];
- var nu:HTTPHeader = new HTTPHeader(old.name, old.value);
- _responseHeaders[i] = nu;
- }
- }
- }
- return _responseHeaders;
- }
-
- private var _responseURL:String;
- public function get responseURL():String
- {
- return _responseURL;
- }
-
- private var _status:int;
- public function get status():int
- {
- return _status;
- }
-
- private var _url:String;
- public function get url():String
- {
- return _url;
- }
- public function set url(value:String):void
- {
- if (_url != value)
- {
- _url = value;
- dispatchEvent(new Event("urlChanged"));
- }
- }
-
- private var _timeout:Number = 0;
- public function get timeout():Number
- {
- return _timeout;
- }
- public function set timeout(value:Number):void
- {
- if (_timeout != value)
- {
- _timeout = value;
- dispatchEvent(new Event("timeoutChanged"));
- }
- }
-
- private var _id:String;
- public function get id():String
- {
- return _id;
- }
- public function set id(value:String):void
- {
- if (_id != value)
- {
- _id = value;
- dispatchEvent(new Event("idChanged"));
- }
- }
-
- private var _strand:IStrand;
-
- public function set strand(value:IStrand):void
- {
- _strand = value;
- }
-
- // beads declared in MXML are added to the strand.
- // from AS, just call addBead()
- public var beads:Array;
-
- private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
- {
- if (!_beads)
- _beads = new Vector.<IBead>;
- _beads.push(bead);
- bead.strand = this;
- }
-
- public function getBeadByType(classOrInterface:Class):IBead
- {
- for each (var bead:IBead in _beads)
- {
- if (bead is classOrInterface)
- return bead;
- }
- return null;
- }
-
- public function removeBead(value:IBead):IBead
- {
- var n:int = _beads.length;
- for (var i:int = 0; i < n; i++)
- {
- var bead:IBead = _beads[i];
- if (bead == value)
- {
- _beads.splice(i, 1);
- return bead;
- }
- }
- return null;
- }
-
- private var urlLoader:URLLoader;
-
- public function send():void
- {
- if (!urlLoader)
- urlLoader = new URLLoader();
- var request:URLRequest = new URLRequest(url);
- request.method = method;
- if ("idleTimeout" in request)
- {
- request["idleTimeout"] = timeout;
- }
- var sawContentType:Boolean;
- if (headers)
- {
- for each (var header:HTTPHeader in headers)
- {
- var urlHeader:URLRequestHeader = new URLRequestHeader(header.name, header.value);
- request.requestHeaders.push(urlHeader);
- if (header.name == HTTPHeader.CONTENT_TYPE)
- sawContentType = true;
- }
- }
- if (method != HTTP_METHOD_GET && !sawContentType)
- {
- urlHeader = new URLRequestHeader(HTTPHeader.CONTENT_TYPE, contentType);
- request.requestHeaders.push(urlHeader);
- }
- if (binaryData)
- {
- if (method == HTTP_METHOD_GET)
- {
- if (url.indexOf("?") != -1)
- url += binaryData.data.toString();
- else
- url += "?" + binaryData.data.toString();
- }
- else
- request.data = binaryData.data;
- }
- urlLoader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
- urlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
- if (HTTPStatusEvent.HTTP_RESPONSE_STATUS) // only on AIR
- urlLoader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusHandler);
- urlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, statusHandler);
- urlLoader.load(request);
- }
-
- protected function statusHandler(event:HTTPStatusEvent):void
- {
- _status = event.status;
- if ("responseHeaders" in event)
- _responseHeaders = event.responseHeaders;
- if ("responseURL" in event)
- _responseURL = event.responseURL;
- dispatchEvent(new Event(event.type));
- }
-
- protected function ioErrorHandler(event:IOErrorEvent):void
- {
- dispatchEvent(new Event(event.type));
- }
-
- protected function completeHandler(event:flash.events.Event):void
- {
- dispatchEvent(new Event(event.type));
- }
-
- public function get data():*
- {
- return urlLoader.data;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/HTTPHeader.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/HTTPHeader.as b/frameworks/as/src/org/apache/flex/net/HTTPHeader.as
deleted file mode 100644
index 4585530..0000000
--- a/frameworks/as/src/org/apache/flex/net/HTTPHeader.as
+++ /dev/null
@@ -1,35 +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.net
-{
- public class HTTPHeader
- {
- public static const CONTENT_TYPE:String = "Content-type";
-
- public function HTTPHeader(name:String = null, value:String = null)
- {
- super();
- this.name = name;
- this.value = value;
- }
-
- public var name:String;
- public var value:String;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/HTTPService.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/HTTPService.as b/frameworks/as/src/org/apache/flex/net/HTTPService.as
deleted file mode 100644
index 225ff08..0000000
--- a/frameworks/as/src/org/apache/flex/net/HTTPService.as
+++ /dev/null
@@ -1,304 +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.net
-{
- import flash.events.HTTPStatusEvent;
- import flash.events.IOErrorEvent;
- import flash.net.URLLoader;
- import flash.net.URLRequest;
- import flash.net.URLRequestHeader;
- import flash.net.URLRequestMethod;
-
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
-
- [Event(name="complete", type="org.apache.flex.events.Event")]
-
- [Event(name="ioError", type="org.apache.flex.events.Event")]
-
- [Event(name="httpStatus", type="org.apache.flex.events.Event")]
-
- [Event(name="httpResponseStatus", type="org.apache.flex.events.Event")]
-
- [DefaultProperty("beads")]
-
- public class HTTPService extends EventDispatcher implements IStrand, IBead
- {
- public static const HTTP_METHOD_GET:String = URLRequestMethod.GET;
- public static const HTTP_METHOD_POST:String = URLRequestMethod.POST;
- public static const HTTP_METHOD_PUT:String = URLRequestMethod.PUT;
- public static const HTTP_METHOD_DELETE:String = URLRequestMethod.DELETE;
-
- public function HTTPService()
- {
- super();
- }
-
- private var _contentType:String = "application/x-www-form-urlencoded";
- public function get contentType():String
- {
- return _contentType;
- }
- public function set contentType(value:String):void
- {
- if (_contentType != value)
- {
- _contentType = value;
- dispatchEvent(new Event("contentTypeChanged"));
- }
- }
-
- private var _contentData:String;
- public function get contentData():String
- {
- return _contentData;
- }
- public function set contentData(value:String):void
- {
- if (_contentData != value)
- {
- _contentData = value;
- dispatchEvent(new Event("contentDataChanged"));
- }
- }
-
- private var _headers:Array;
- public function get headers():Array
- {
- if (_headers == null)
- _headers = [];
- return _headers;
- }
- public function set headers(value:Array):void
- {
- if (_headers != value)
- {
- _headers = value;
- dispatchEvent(new Event("headersChanged"));
- }
- }
-
- private var _method:String = HTTP_METHOD_GET;
- public function get method():String
- {
- return _method;
- }
- public function set method(value:String):void
- {
- if (_method != value)
- {
- _method = value;
- dispatchEvent(new Event("methodChanged"));
- }
- }
-
- private var _responseHeaders:Array;
- public function get responseHeaders():Array
- {
- if (_responseHeaders && _responseHeaders.length > 0)
- {
- if (_responseHeaders[0] is URLRequestHeader)
- {
- var n:int = _responseHeaders.length;
- for (var i:int = 0; i < n; i++)
- {
- var old:URLRequestHeader = _responseHeaders[i];
- var nu:HTTPHeader = new HTTPHeader(old.name, old.value);
- _responseHeaders[i] = nu;
- }
- }
- }
- return _responseHeaders;
- }
-
- private var _responseURL:String;
- public function get responseURL():String
- {
- return _responseURL;
- }
-
- private var _status:int;
- public function get status():int
- {
- return _status;
- }
-
- private var _url:String;
- public function get url():String
- {
- return _url;
- }
- public function set url(value:String):void
- {
- if (_url != value)
- {
- _url = value;
- dispatchEvent(new Event("urlChanged"));
- }
- }
-
- private var _timeout:Number = 0;
- public function get timeout():Number
- {
- return _timeout;
- }
- public function set timeout(value:Number):void
- {
- if (_timeout != value)
- {
- _timeout = value;
- dispatchEvent(new Event("timeoutChanged"));
- }
- }
-
- private var _id:String;
- public function get id():String
- {
- return _id;
- }
- public function set id(value:String):void
- {
- if (_id != value)
- {
- _id = value;
- dispatchEvent(new Event("idChanged"));
- }
- }
-
- private var _strand:IStrand;
-
- public function set strand(value:IStrand):void
- {
- _strand = value;
- }
-
- // beads declared in MXML are added to the strand.
- // from AS, just call addBead()
- public var beads:Array;
-
- private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
- {
- if (!_beads)
- _beads = new Vector.<IBead>;
- _beads.push(bead);
- bead.strand = this;
- }
-
- public function getBeadByType(classOrInterface:Class):IBead
- {
- for each (var bead:IBead in _beads)
- {
- if (bead is classOrInterface)
- return bead;
- }
- return null;
- }
-
- public function removeBead(value:IBead):IBead
- {
- var n:int = _beads.length;
- for (var i:int = 0; i < n; i++)
- {
- var bead:IBead = _beads[i];
- if (bead == value)
- {
- _beads.splice(i, 1);
- return bead;
- }
- }
- return null;
- }
-
- private var urlLoader:URLLoader;
-
- public function send():void
- {
- if (!urlLoader)
- urlLoader = new URLLoader();
- var request:URLRequest = new URLRequest(url);
- request.method = method;
- if ("idleTimeout" in request)
- {
- request["idleTimeout"] = timeout;
- }
- var sawContentType:Boolean;
- if (headers)
- {
- for each (var header:HTTPHeader in headers)
- {
- var urlHeader:URLRequestHeader = new URLRequestHeader(header.name, header.value);
- request.requestHeaders.push(urlHeader);
- if (header.name == HTTPHeader.CONTENT_TYPE)
- sawContentType = true;
- }
- }
- if (method != HTTP_METHOD_GET && !sawContentType && contentData != null)
- {
- urlHeader = new URLRequestHeader(HTTPHeader.CONTENT_TYPE, contentType);
- request.requestHeaders.push(urlHeader);
- }
- if (contentData)
- {
- if (method == HTTP_METHOD_GET)
- {
- if (url.indexOf("?") != -1)
- url += contentData;
- else
- url += "?" + contentData;
- }
- else
- request.data = contentData;
- }
- urlLoader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
- urlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
- if (HTTPStatusEvent.HTTP_RESPONSE_STATUS) // only on AIR
- urlLoader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusHandler);
- urlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, statusHandler);
- urlLoader.load(request);
- }
-
- protected function statusHandler(event:HTTPStatusEvent):void
- {
- _status = event.status;
- if ("responseHeaders" in event)
- _responseHeaders = event.responseHeaders;
- if ("responseURL" in event)
- _responseURL = event.responseURL;
- dispatchEvent(new Event(event.type));
- }
-
- protected function ioErrorHandler(event:IOErrorEvent):void
- {
- dispatchEvent(new Event(event.type));
- }
-
- protected function completeHandler(event:flash.events.Event):void
- {
- dispatchEvent(new Event(event.type));
- }
-
- public function get data():*
- {
- return urlLoader.data;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/IInputParser.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/IInputParser.as b/frameworks/as/src/org/apache/flex/net/IInputParser.as
deleted file mode 100644
index 55e0d99..0000000
--- a/frameworks/as/src/org/apache/flex/net/IInputParser.as
+++ /dev/null
@@ -1,25 +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.net
-{
- public interface IInputParser
- {
- function parseItems(s:String):Array;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/IItemConverter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/IItemConverter.as b/frameworks/as/src/org/apache/flex/net/IItemConverter.as
deleted file mode 100644
index f736ce5..0000000
--- a/frameworks/as/src/org/apache/flex/net/IItemConverter.as
+++ /dev/null
@@ -1,25 +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.net
-{
- public interface IItemConverter
- {
- function convertItem(data:String):Object
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/JSONInputParser.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/JSONInputParser.as b/frameworks/as/src/org/apache/flex/net/JSONInputParser.as
deleted file mode 100644
index 4abbbde..0000000
--- a/frameworks/as/src/org/apache/flex/net/JSONInputParser.as
+++ /dev/null
@@ -1,28 +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.net
-{
- public class JSONInputParser implements IInputParser
- {
- public function parseItems(s:String):Array
- {
- return s.split("},");
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/JSONItemConverter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/JSONItemConverter.as b/frameworks/as/src/org/apache/flex/net/JSONItemConverter.as
deleted file mode 100644
index 0042e5b..0000000
--- a/frameworks/as/src/org/apache/flex/net/JSONItemConverter.as
+++ /dev/null
@@ -1,30 +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.net
-{
- import org.apache.flex.net.IItemConverter;
-
- public class JSONItemConverter implements IItemConverter
- {
- public function convertItem(data:String):Object
- {
- return JSON.parse(data);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/net/dataConverters/LazyCollection.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/net/dataConverters/LazyCollection.as b/frameworks/as/src/org/apache/flex/net/dataConverters/LazyCollection.as
deleted file mode 100644
index 7b1be41..0000000
--- a/frameworks/as/src/org/apache/flex/net/dataConverters/LazyCollection.as
+++ /dev/null
@@ -1,106 +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.net.dataConverters
-{
- import flash.events.Event;
- import flash.events.IEventDispatcher;
-
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.data.ICollection;
- import org.apache.flex.events.EventDispatcher;
- import org.apache.flex.net.IInputParser;
- import org.apache.flex.net.IItemConverter;
-
- public class LazyCollection extends EventDispatcher implements IBead, ICollection
- {
- public function LazyCollection()
- {
- super();
- }
-
- private var _inputParser:IInputParser;
- public function get inputParser():IInputParser
- {
- return _inputParser;
- }
- public function set inputParser(value:IInputParser):void
- {
- if (_inputParser != value)
- {
- _inputParser = value;
- dispatchEvent(new Event("inputParserChanged"));
- }
- }
-
- private var _itemConverter:IItemConverter;
- public function get itemConverter():IItemConverter
- {
- return _itemConverter;
- }
- public function set itemConverter(value:IItemConverter):void
- {
- if (_itemConverter != value)
- {
- _itemConverter = value;
- dispatchEvent(new Event("itemConverterChanged"));
- }
- }
-
- private var _id:String;
- public function get id():String
- {
- return _id;
- }
- public function set id(value:String):void
- {
- if (_id != value)
- {
- _id = value;
- dispatchEvent(new Event("idChanged"));
- }
- }
-
- private var _strand:IStrand;
-
- public function set strand(value:IStrand):void
- {
- _strand = value;
- IEventDispatcher(_strand).addEventListener(Event.COMPLETE, completeHandler);
- }
-
- private var rawData:Array;
- private var data:Array;
-
- private function completeHandler(event:Event):void
- {
- rawData = inputParser.parseItems(_strand["data"]);
- data = new Array(rawData.length);
- }
-
- public function getItemAt(index:int):Object
- {
- if (data[index] == undefined)
- {
- data[index] = itemConverter.convertItem(rawData[index]);
- }
- return data[index];
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/svg/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/svg/staticControls/TextButton.as b/frameworks/as/src/org/apache/flex/svg/staticControls/TextButton.as
deleted file mode 100644
index a493e31..0000000
--- a/frameworks/as/src/org/apache/flex/svg/staticControls/TextButton.as
+++ /dev/null
@@ -1,32 +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.svg.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.html.staticControls.TextButton;
-
- public class TextButton extends org.apache.flex.html.staticControls.TextButton
- {
- public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/BeadMetrics.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/utils/BeadMetrics.as b/frameworks/as/src/org/apache/flex/utils/BeadMetrics.as
deleted file mode 100644
index 3ec3827..0000000
--- a/frameworks/as/src/org/apache/flex/utils/BeadMetrics.as
+++ /dev/null
@@ -1,79 +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.utils
-{
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.UIMetrics;
- import org.apache.flex.core.ValuesManager;
-
-public class BeadMetrics
-{
-
- public static function getMetrics(strand:IStrand) : UIMetrics
- {
- var borderThickness:Object = ValuesManager.valuesImpl.getValue(strand,"border-thickness");
- var borderOffset:Number;
- if( borderThickness == null ) {
- borderOffset = 0;
- }
- else {
- borderOffset = Number(borderThickness);
- if( isNaN(borderOffset) ) borderOffset = 0;
- }
-
- var paddingLeft:Object;
- var paddingTop:Object;
- var padding:Object = ValuesManager.valuesImpl.getValue(strand, "padding");
- if (padding is Array)
- {
- if (padding.length == 1)
- paddingLeft = paddingTop = padding[0];
- else if (padding.length <= 3)
- {
- paddingLeft = padding[1];
- paddingTop = padding[0];
- }
- else if (padding.length == 4)
- {
- paddingLeft = padding[3];
- paddingTop = padding[0];
- }
- }
- else if (padding == null)
- {
- paddingLeft = ValuesManager.valuesImpl.getValue(strand, "padding-left");
- paddingTop = ValuesManager.valuesImpl.getValue(strand, "padding-top");
- }
- else
- {
- paddingLeft = paddingTop = padding;
- }
- var pl:Number = Number(paddingLeft);
- var pt:Number = Number(paddingTop);
-
- var result:UIMetrics = new UIMetrics();
- result.top = borderOffset + pt;
- result.left = borderOffset + pl;
- result.bottom = borderOffset + pt;
- result.right = borderOffset + pl;
-
- return result;
- }
-}
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/BinaryData.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/utils/BinaryData.as b/frameworks/as/src/org/apache/flex/utils/BinaryData.as
deleted file mode 100644
index 48cfd00..0000000
--- a/frameworks/as/src/org/apache/flex/utils/BinaryData.as
+++ /dev/null
@@ -1,106 +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.utils
-{
- import flash.utils.ByteArray;
-
-public class BinaryData
-{
- public function BinaryData()
- {
-
- }
-
- private var ba:ByteArray = new ByteArray();
-
- /**
- * Get the platform-specific data for sending.
- * Generally only used by the network services.
- */
- public function get data():Object
- {
- return ba;
- }
-
- public function writeByte(byte:int):void
- {
- ba.writeByte(byte);
- }
-
- public function writeShort(byte:int):void
- {
- ba.writeShort(byte);
- }
-
- public function writeUnsignedInt(byte:uint):void
- {
- ba.writeUnsignedInt(byte);
- }
-
- public function writeInt(byte:uint):void
- {
- ba.writeInt(byte);
- }
-
- public function readByte():int
- {
- return ba.readByte();
- }
-
- public function readShort():int
- {
- return ba.readShort();
- }
-
- public function readUnsignedInt():uint
- {
- return ba.readUnsignedInt();
- }
-
- public function readInt():int
- {
- return ba.readInt();
- }
-
- public function get length():int
- {
- return ba.length;
- }
-
- public function get bytesAvailable():int
- {
- return ba.bytesAvailable;
- }
-
- public function get position():int
- {
- return ba.position;
- }
-
- public function set position(value:int):void
- {
- ba.position = value;
- }
-
- public function growBuffer(extra:int):void
- {
- // no need to do anything in AS
- }
-}
-}