Adding DragAndDropExample.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/64790cc9 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/64790cc9 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/64790cc9 Branch: refs/heads/browser-event Commit: 64790cc90d781af78bc0ee8365595e48daa89269 Parents: e440ae9 Author: Peter Ent <[email protected]> Authored: Wed Jul 19 14:44:25 2017 -0400 Committer: Peter Ent <[email protected]> Committed: Wed Jul 19 14:44:25 2017 -0400 ---------------------------------------------------------------------- examples/build.xml | 3 + examples/flexjs/DragAndDropExample/build.xml | 66 +++++++++++++ examples/flexjs/DragAndDropExample/pom.xml | 85 +++++++++++++++++ .../src/main/flex/DragAndDropExample.mxml | 36 +++++++ .../src/main/flex/MyInitialView.mxml | 95 +++++++++++++++++++ .../src/main/flex/models/ProductsModel.as | 54 +++++++++++ .../src/main/flex/products/Product.as | 43 +++++++++ .../main/flex/products/ProductItemRenderer.as | 66 +++++++++++++ .../src/main/resources/assets/smallbluerect.jpg | Bin 0 -> 13500 bytes .../main/resources/assets/smallgreenrect.jpg | Bin 0 -> 13542 bytes .../main/resources/assets/smallorangerect.gif | Bin 0 -> 821 bytes .../main/resources/assets/smallorangerect.jpg | Bin 0 -> 13571 bytes .../main/resources/assets/smallpurplerect.jpg | Bin 0 -> 13517 bytes .../src/main/resources/assets/smallredrect.jpg | Bin 0 -> 13477 bytes .../main/resources/assets/smallyellowrect.jpg | Bin 0 -> 13598 bytes 15 files changed, 448 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/build.xml ---------------------------------------------------------------------- diff --git a/examples/build.xml b/examples/build.xml index 601993a..5913b78 100644 --- a/examples/build.xml +++ b/examples/build.xml @@ -85,6 +85,7 @@ <ant dir="${basedir}/flexjs/DataGridExample"/> <ant dir="${basedir}/flexjs/DateControlsExample"/> <ant dir="${basedir}/flexjs/DesktopMap"/> + <ant dir="${basedir}/flexjs/DragAndDropExample"/> <ant dir="${basedir}/flexjs/FlexTeamPage_MDL"/> <ant dir="${basedir}/flexjs/FlexWebsiteStatsViewer"/> <ant dir="${basedir}/flexjs/FlexJSStore"/> @@ -129,6 +130,7 @@ <ant dir="${basedir}/flexjs/DataGridExample" target="clean"/> <ant dir="${basedir}/flexjs/DateControlsExample" target="clean"/> <ant dir="${basedir}/flexjs/DesktopMap" target="clean"/> + <ant dir="${basedir}/flexjs/DragAndDropExample" target="clean"/> <ant dir="${basedir}/flexjs/FlexTeamPage_MDL" target="clean"/> <ant dir="${basedir}/flexjs/FlexWebsiteStatsViewer" target="clean"/> <ant dir="${basedir}/flexjs/FlexJSStore" target="clean"/> @@ -163,6 +165,7 @@ <ant dir="${basedir}/flexjs/DataGridExample" target="examine"/> <ant dir="${basedir}/flexjs/DateControlsExample" target="examine"/> <ant dir="${basedir}/flexjs/DesktopMap" target="examine"/> + <ant dir="${basedir}/flexjs/DragAndDropExample" target="examine"/> <ant dir="${basedir}/flexjs/FlexTeamPage_MDL" target="examine"/> <ant dir="${basedir}/flexjs/FlexWebsiteStatsViewer" target="examine"/> <ant dir="${basedir}/flexjs/FlexJSStore" target="examine"/> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/build.xml b/examples/flexjs/DragAndDropExample/build.xml new file mode 100644 index 0000000..8be8d37 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/build.xml @@ -0,0 +1,66 @@ +<?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. + +--> + + +<project name="draganddropexample" default="main" basedir="."> + <property name="FLEXJS_HOME" location="../../.."/> + <property name="example" value="DragAndDropExample" /> + + <property file="${FLEXJS_HOME}/env.properties"/> + <property environment="env"/> + <property file="${FLEXJS_HOME}/build.properties"/> + <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> + + <include file="${basedir}/../../build_example.xml" /> + + <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}"> + <mkdir dir="${basedir}/bin/js-debug/assets" /> + <copy todir="${basedir}/bin/js-debug/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy> + <mkdir dir="${basedir}/bin/js-release/assets" /> + <copy todir="${basedir}/bin/js-release/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy> + </target> + + <target name="clean"> + <delete dir="${basedir}/bin" failonerror="false" /> + <delete dir="${basedir}/bin-debug" failonerror="false" /> + <delete dir="${basedir}/bin-release" failonerror="false" /> + <delete dir="${basedir}/target" failonerror="false" /> + </target> + + <target name="examine" depends="build_example.get.browser"> + <property name="which" value="debug" /> + <echo message="Make sure list appears."/> + <exec executable="${browser}" dir="${basedir}/bin-${which}" failonerror="true"> + <arg value="${basedir}/bin-${which}/${example}.html"/> + </exec> + <exec executable="${browser}" dir="${basedir}/bin/js-${which}" failonerror="true"> + <arg value="${basedir}/bin/js-${which}/index.html"/> + </exec> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/pom.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/pom.xml b/examples/flexjs/DragAndDropExample/pom.xml new file mode 100644 index 0000000..8e5afc9 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/pom.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- + Flash Version: CSS problems + --> + + <parent> + <groupId>org.apache.flex.flexjs.examples</groupId> + <artifactId>examples-flexjs</artifactId> + <version>0.9.0-SNAPSHOT</version> + </parent> + + <artifactId>DragAndDropExample</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <name>Apache Flex - FlexJS: Examples: FlexJS: DragAndDropExample</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flexjs-maven-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <mainClass>DragAndDropExample.mxml</mainClass> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <!-- Already added in parent --> + <!--dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Core</artifactId> + <version>0.8.0-SNAPSHOT</version> + <type>swc</type> + </dependency--> + + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Network</artifactId> + <version>0.9.0-SNAPSHOT</version> + <type>swc</type> + <classifier>swf</classifier> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>Network</artifactId> + <version>0.9.0-SNAPSHOT</version> + <type>swc</type> + <classifier>js</classifier> + </dependency> + + <!-- Needed for Flash compilation --> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>20.0</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + </dependencies> +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/flex/DragAndDropExample.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/flex/DragAndDropExample.mxml b/examples/flexjs/DragAndDropExample/src/main/flex/DragAndDropExample.mxml new file mode 100644 index 0000000..41989f8 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/src/main/flex/DragAndDropExample.mxml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// +--> +<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:local="*" + xmlns:models="models.*" + xmlns:js="library://ns.apache.org/flexjs/basic" + > + + <js:valuesImpl> + <js:SimpleCSSValuesImpl /> + </js:valuesImpl> + <js:model> + <models:ProductsModel /> + </js:model> + <js:initialView> + <local:MyInitialView /> + </js:initialView> +</js:Application> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/flex/MyInitialView.mxml b/examples/flexjs/DragAndDropExample/src/main/flex/MyInitialView.mxml new file mode 100644 index 0000000..33347f7 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/src/main/flex/MyInitialView.mxml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + +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. + +--> +<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:gen="simple.*" + className="MainView"> + <fx:Style> + @namespace gen "simple.*"; + @namespace js "library://ns.apache.org/flexjs/basic"; + + .MainView { + backgroundColor: #FFFFFF; + } + + .TitleLabel { + fontSize: 18pt; + fontWeight: bold; + } + + .FootNote { + fontSize: 14pt; + fontWeight: normal; + color: #666666; + } + + .DragImage { + backgroundColor: #DDDDDD; + opacity: 0.80; + } + </fx:Style> + + <js:Label className="TitleLabel" text="Drag and Drop Example" x="20" y="20" /> + + <!-- + Use SingleSelectionDragSourceBead with DataGrid or List to enable dragging an item in + the grid or list. Set dragType="copy" if you do not want the grid or list to remove the + item being dragged once it has been dropped. + + Use SingleSelectionDragImageBead (or your own derivative) to provide feedback during the + drag operation. + --> + <js:DataGrid id="dataGrid" x="20" y="50" width="400" height="300" rowHeight="40"> + <js:beads> + <js:DataGridPercentageView /> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:SingleSelectionDragSourceBead dragType="copy" /> + <js:SingleSelectionDragImageBead /> + </js:beads> + <js:columns> + <js:DataGridColumn label="Image" dataField="image" columnWidth="15" itemRenderer="products.ProductItemRenderer" /> + <js:DataGridColumn label="Title" dataField="title" columnWidth="60" /> + <js:DataGridColumn label="Sales" dataField="sales" columnWidth="25" /> + </js:columns> + </js:DataGrid> + + <js:Label className="FootNote" text="Drag items from here..." x="20" y="360" /> + + <!-- + Use SingleSelectionDropTargetBead with DataGrid or List to indicate that the + component can be the recipient of a drag operation. The dropped item will be incorporated + into the data model of the list or grid. + --> + <js:List x="500" y="50" width="400" height="300" rowHeight="40"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="stateNames" + destinationPropertyName="dataProvider" /> + <js:SingleSelectionDropTargetBead /> + </js:beads> + </js:List> + + <js:Label className="FootNote" text="...and drop here" x="500" y="360" /> + +</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/flex/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/flex/models/ProductsModel.as b/examples/flexjs/DragAndDropExample/src/main/flex/models/ProductsModel.as new file mode 100644 index 0000000..22f55e2 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/src/main/flex/models/ProductsModel.as @@ -0,0 +1,54 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 models +{ + import org.apache.flex.collections.ArrayList; + import products.Product; + + public class ProductsModel + { + /** + * Used for the DataGrid. + */ + private var _productList:ArrayList = new ArrayList([ + new Product("ps100","Widgets",44,200,"assets/smallbluerect.jpg"), + new Product("tx200","Thingys",5,285,"assets/smallgreenrect.jpg"), + new Product("rz300","Sprockets",80,105,"assets/smallyellowrect.jpg"), + new Product("dh440","Doohickies",10,340,"assets/smallredrect.jpg"), + new Product("ps220","Weejets",35,190,"assets/smallorangerect.jpg") + ]); + + public function get productList():ArrayList + { + return _productList; + } + + /** + * Used for the List + */ + private var _stateNames:Array = [ + "Maine", "New Hampshire", "Vermont", "Massachusetts", "Rhode Island", "Connecticut" + ]; + + public function get stateNames():Array + { + return _stateNames; + } + } +} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/flex/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/flex/products/Product.as b/examples/flexjs/DragAndDropExample/src/main/flex/products/Product.as new file mode 100644 index 0000000..fd4b31e --- /dev/null +++ b/examples/flexjs/DragAndDropExample/src/main/flex/products/Product.as @@ -0,0 +1,43 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 products +{ + public class Product + { + public function Product(id:String,title:String,detail:Number,sales:Number,image:String) + { + this.id = id; + this.title = title; + this.detail = detail; + this.sales = sales; + this.image = image; + } + + public var id:String; + public var title:String; + public var detail:Number; + public var image:String; + public var sales:Number; + + public function toString():String + { + return title; + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/flex/products/ProductItemRenderer.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/flex/products/ProductItemRenderer.as b/examples/flexjs/DragAndDropExample/src/main/flex/products/ProductItemRenderer.as new file mode 100644 index 0000000..eec3730 --- /dev/null +++ b/examples/flexjs/DragAndDropExample/src/main/flex/products/ProductItemRenderer.as @@ -0,0 +1,66 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 products +{ + import org.apache.flex.html.Image; + import org.apache.flex.html.supportClasses.DataItemRenderer; + + public class ProductItemRenderer extends DataItemRenderer + { + public function ProductItemRenderer() + { + super(); + } + + private var image:Image; + + override public function addedToParent():void + { + super.addedToParent(); + + // add an image and two labels + image = new Image(); + addElement(image); + } + + override public function get data():Object + { + return super.data; + } + + override public function set data(value:Object):void + { + super.data = value; + + image.src = value.image; + } + + override public function adjustSize():void + { + var cy:Number = this.height/2; + + image.x = 4; + image.y = cy - 16; + image.width = 32; + image.height = 32; + + updateRenderer(); + } + } +} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallbluerect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallbluerect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallbluerect.jpg new file mode 100644 index 0000000..80ed275 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallbluerect.jpg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallgreenrect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallgreenrect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallgreenrect.jpg new file mode 100644 index 0000000..c5f9ce6 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallgreenrect.jpg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.gif ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.gif b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.gif new file mode 100644 index 0000000..603f810 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.gif differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.jpg new file mode 100644 index 0000000..4982d87 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallorangerect.jpg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallpurplerect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallpurplerect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallpurplerect.jpg new file mode 100644 index 0000000..201f625 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallpurplerect.jpg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallredrect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallredrect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallredrect.jpg new file mode 100644 index 0000000..d2cfa31 Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallredrect.jpg differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64790cc9/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallyellowrect.jpg ---------------------------------------------------------------------- diff --git a/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallyellowrect.jpg b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallyellowrect.jpg new file mode 100644 index 0000000..b17b62d Binary files /dev/null and b/examples/flexjs/DragAndDropExample/src/main/resources/assets/smallyellowrect.jpg differ
