Updated Branches:
  refs/heads/develop 2ab957fa6 -> 66246d8a8

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as 
b/frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as
deleted file mode 100644
index 3538e51..0000000
--- a/frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as
+++ /dev/null
@@ -1,321 +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.IBead;
-import org.apache.flex.core.IDocument;
-import org.apache.flex.core.IParent;
-import org.apache.flex.core.IContainer;
-
-public class MXMLDataInterpreter
-{
-    public function MXMLDataInterpreter()
-    {
-        super();
-    }
-       
-    
-    public static function generateMXMLObject(document:Object, 
data:Array):Object
-    {
-        var i:int = 0;
-        var cls:Class = data[i++];
-        var comp:Object = new cls();
-        
-        var m:int;
-        var j:int;
-        var name:String;
-        var simple:*;
-        var value:Object;
-        var id:String;
-        
-        m = data[i++]; // num props
-        for (j = 0; j < m; j++)
-        {
-            name = data[i++];
-            simple = data[i++];
-            value = data[i++];
-            if (simple == null)
-                value = generateMXMLArray(document, null, value as Array);
-            else if (simple == false)
-                value = generateMXMLObject(document, value as Array);
-            if (name == "id")
-            {
-                document[value] = comp;
-                id = value as String;
-            }
-            else if (name == "_id")
-            {
-                document[value] = comp;
-                id = value as String;
-                continue; // skip assignment to comp
-            }
-            comp[name] = value;
-        }
-        if (comp is IDocument)
-            comp.setDocument(document, id);
-        return comp;
-    }
-    
-    public static function generateMXMLArray(document:Object, parent:IParent, 
data:Array, recursive:Boolean = true):Array
-    {
-        var comps:Array = [];
-        
-        var n:int = data.length;
-        var i:int = 0;
-        while (i < n)
-        {
-            var cls:Class = data[i++];
-            var comp:Object = new cls();
-                        
-            var m:int;
-            var j:int;
-            var name:String;
-            var simple:*;
-            var value:Object;
-            var id:String = null;
-            
-            m = data[i++]; // num props
-            if (m > 0 && data[0] == "model")
-            {
-                m--;
-                name = data[i++];
-                simple = data[i++];
-                value = data[i++];
-                if (simple == null)
-                    value = generateMXMLArray(document, parent, value as 
Array, recursive);
-                else if (simple == false)
-                    value = generateMXMLObject(document, value as Array);
-                comp[name] = value;
-                if (value is IBead && comp is IStrand)
-                    IStrand(comp).addBead(value as IBead);
-            }
-            var beadOffset:int = i + (m - 1) * 3;
-            if (beadOffset >= -1)
-                trace(beadOffset, data[beadOffset]);
-            if (m > 0 && data[beadOffset] == "beads")
-            {
-                m--;
-            }
-            else
-                beadOffset = -1;
-            for (j = 0; j < m; j++)
-            {
-                name = data[i++];
-                simple = data[i++];
-                value = data[i++];
-                if (simple == null)
-                    value = generateMXMLArray(document, null, value as Array, 
recursive);
-                else if (simple == false)
-                    value = generateMXMLObject(document, value as Array);
-                if (name == "id")
-                    id = value as String;
-                if (name == "document" && !comp.document)
-                    comp.document = document;
-                else if (name == "_id")
-                    id = value as String; // and don't assign to comp
-                else
-                    comp[name] = value;
-            }
-            if (beadOffset > -1)
-            {
-                name = data[i++];
-                simple = data[i++];
-                value = data[i++];
-                if (simple == null)
-                    value = generateMXMLArray(document, null, value as Array, 
recursive);
-                else if (simple == false)
-                    value = generateMXMLObject(document, value as Array);
-                else
-                    comp[name] = value;
-                var beads:Array = value as Array;
-                var l:int = beads.length;
-                for (var k:int = 0; k < l; k++)
-                {
-                    var bead:IBead = beads[k] as IBead;
-                    IStrand(comp).addBead(bead);
-                }
-            }
-            m = data[i++]; // num styles
-            for (j = 0; j < m; j++)
-            {
-                name = data[i++];
-                simple = data[i++];
-                value = data[i++];
-                if (simple == null)
-                    value = generateMXMLArray(document, null, value as Array, 
recursive);
-                else if (simple == false)
-                    value = generateMXMLObject(document, value as Array);
-                comp.setStyle(name, value);
-            }            
-            
-            m = data[i++]; // num effects
-            for (j = 0; j < m; j++)
-            {
-                name = data[i++];
-                simple = data[i++];
-                value = data[i++];
-                if (simple == null)
-                    value = generateMXMLArray(document, null, value as Array, 
recursive);
-                else if (simple == false)
-                    value = generateMXMLObject(document, value as Array);
-                comp.setStyle(name, value);
-            }
-            
-            m = data[i++]; // num events
-            for (j = 0; j < m; j++)
-            {
-                name = data[i++];
-                value = data[i++];
-                comp.addEventListener(name, value);
-            }
-            
-            if (parent)
-            {
-                parent.addElement(comp);
-            }
-
-            var children:Array = data[i++];
-            if (children)
-            {
-                if (recursive)
-                               {
-                    generateMXMLInstances(document, comp as IParent, children, 
recursive);
-                                       if (comp is IContainer)
-                                       {
-                                               
IContainer(comp).childrenAdded();
-                                       }
-                               }
-                else
-                    comp.setMXMLDescriptor(children);
-            }
-            
-            if (id)
-                document[id] = comp;
-            
-            if (comp is IDocument)
-                comp.setDocument(document, id);
-            comps.push(comp);
-        }
-        return comps;
-    }
-    
-    public static function generateMXMLInstances(document:Object, 
parent:IParent, data:Array, recursive:Boolean = true):void
-    {
-               if (!data) return;
-               
-        generateMXMLArray(document, parent, data, recursive);
-    }
-    
-    public static function generateMXMLProperties(host:Object, data:Array):void
-    {
-               if (!data) return;
-               
-        var i:int = 0;
-        var m:int;
-        var j:int;
-        var name:String;
-        var simple:*;
-        var value:Object;
-        var id:String = null;
-        
-        m = data[i++]; // num props
-        var beadOffset:int = i + (m - 1) * 3;
-        if (beadOffset >= -1)
-            trace(beadOffset, data[beadOffset]);
-        if (m > 0 && data[beadOffset] == "beads")
-        {
-            m--;
-        }
-        else
-            beadOffset = -1;
-        for (j = 0; j < m; j++)
-        {
-            name = data[i++];
-            simple = data[i++];
-            value = data[i++];
-            if (simple == null)
-                value = generateMXMLArray(host, null, value as Array, true);
-            else if (simple == false)
-                value = generateMXMLObject(host, value as Array);
-            if (name == "id")
-                id = value as String;
-            if (name == "_id")
-                id = value as String; // and don't assign
-            else
-                host[name] = value;
-        }
-        if (beadOffset > -1)
-        {
-            name = data[i++];
-            simple = data[i++];
-            value = data[i++];
-            if (simple == null)
-                value = generateMXMLArray(host, null, value as Array, true);
-            else if (simple == false)
-                value = generateMXMLObject(host, value as Array);
-            else
-                host[name] = value;
-            var beads:Array = value as Array;
-            var l:int = beads.length;
-            for (var k:int = 0; k < l; k++)
-            {
-                var bead:IBead = beads[k] as IBead;
-                IStrand(host).addBead(bead);
-                bead.strand = host as IStrand;
-            }
-        }
-        m = data[i++]; // num styles
-        for (j = 0; j < m; j++)
-        {
-            name = data[i++];
-            simple = data[i++];
-            value = data[i++];
-            if (simple == null)
-                value = generateMXMLArray(host, null, value as Array, true);
-            else if (simple == false)
-                value = generateMXMLObject(host, value as Array);
-            host[name] = value;
-        }
-        
-        m = data[i++]; // num effects
-        for (j = 0; j < m; j++)
-        {
-            name = data[i++];
-            simple = data[i++];
-            value = data[i++];
-            if (simple == null)
-                value = generateMXMLArray(host, null, value as Array, true);
-            else if (simple == false)
-                value = generateMXMLObject(host, value as Array);
-            host[name] = value;
-        }
-        
-        m = data[i++]; // num events
-        for (j = 0; j < m; j++)
-        {
-            name = data[i++];
-            value = data[i++];
-            host.addEventListener(name, value as Function);
-        }
-    }
-    
-}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/SolidBorderUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/utils/SolidBorderUtil.as 
b/frameworks/as/src/org/apache/flex/utils/SolidBorderUtil.as
deleted file mode 100644
index cb43da1..0000000
--- a/frameworks/as/src/org/apache/flex/utils/SolidBorderUtil.as
+++ /dev/null
@@ -1,39 +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.display.Graphics;
-
-public class SolidBorderUtil
-{
-       public static function drawBorder(g:Graphics, x:Number, y:Number, 
-                                                                         
width:Number, height:Number,
-                                                                         
color:uint, backgroundColor:Object = null, 
-                                                                         
thickness:int = 1, alpha:Number = 1.0):void
-       {
-               g.lineStyle(thickness, color, alpha);
-               if (backgroundColor != null)
-                       g.beginFill(uint(backgroundColor));     
-               
-               g.drawRect(x, y, width, height);
-               if (backgroundColor != null)
-                       g.endFill();
-       }
-}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/Timer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/utils/Timer.as 
b/frameworks/as/src/org/apache/flex/utils/Timer.as
deleted file mode 100644
index 541ddfd..0000000
--- a/frameworks/as/src/org/apache/flex/utils/Timer.as
+++ /dev/null
@@ -1,45 +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.events.TimerEvent;
-import flash.utils.Timer;
-
-import org.apache.flex.events.Event;
-
-[Event(name="timer", type="org.apache.flex.events.Event")]
-
-public class Timer extends flash.utils.Timer
-{
-    public function Timer(delay:Number, repeatCount:int = 0)
-    {
-        super(delay, repeatCount);
-               addEventListener("timer", interceptor, false, 9999);
-    }
-
-       private function interceptor(event:flash.events.Event):void
-       {
-               if (event is TimerEvent)
-               {
-                       event.stopImmediatePropagation();
-                       dispatchEvent(new Event("timer"));
-               }
-       }
-}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/utils/ViewSourceContextMenuOption.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/src/org/apache/flex/utils/ViewSourceContextMenuOption.as 
b/frameworks/as/src/org/apache/flex/utils/ViewSourceContextMenuOption.as
deleted file mode 100644
index e119377..0000000
--- a/frameworks/as/src/org/apache/flex/utils/ViewSourceContextMenuOption.as
+++ /dev/null
@@ -1,63 +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.display.InteractiveObject;
-import flash.events.ContextMenuEvent;
-import flash.net.URLRequest;
-import flash.net.navigateToURL;
-import flash.ui.ContextMenu;
-import flash.ui.ContextMenuItem;
-
-import org.apache.flex.core.IBead;
-import org.apache.flex.core.IStrand;
-
-public class ViewSourceContextMenuOption implements IBead
-{
-    public function ViewSourceContextMenuOption()
-    {
-    }
-
-       private var _strand:IStrand;
-       
-       public function set strand(value:IStrand):void
-       {
-               _strand = value;
-               
-               var menuHost:InteractiveObject = InteractiveObject(value);
-               var cm:ContextMenu = menuHost.contextMenu;
-               if (!cm)
-               {
-                       cm = new ContextMenu();
-                       menuHost.contextMenu = cm;
-               }
-               var cmi:ContextMenuItem = new ContextMenuItem("View Source...");
-               cm.hideBuiltInItems();
-               cm.customItems.push(cmi);
-               cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, 
viewSource);
-       }
-       
-       private function viewSource(e:ContextMenuEvent):void
-       {
-               var urlRequest:URLRequest = new 
URLRequest("srcview/index.html");
-               navigateToURL(urlRequest, "_blank");    
-       }
-}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/svg-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/svg-manifest.xml b/frameworks/as/svg-manifest.xml
deleted file mode 100644
index 89d7728..0000000
--- a/frameworks/as/svg-manifest.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.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.
-
--->
-
-
-<componentPackage>
-
-    <component id="TextButton" 
class="org.apache.flex.svg.staticControls.TextButton"/>
-
-</componentPackage>

Reply via email to