My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Yesterday

  • 26 hours ago
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page commented on by adr...@xeoen.com   -   I just finished a project for a snowboard company based in Montana. The application gives people the ability to design their own board and purchase it. The app released this last Wednesday. The link is http://www.invboards.com
    I just finished a project for a snowboard company based in Montana. The application gives people the ability to design their own board and purchase it. The app released this last Wednesday. The link is http://www.invboards.com

Last 30 days

  • Dec 11, 2009
    r64 (fix handles moving out of shape alignment when scrolling con...) committed by cou...@gmail.com   -   fix handles moving out of shape alignment when scrolling container (example1)
    fix handles moving out of shape alignment when scrolling container (example1)
  • Dec 06, 2009
    r63 (Some updates) committed by marc.hughes   -   Some updates
    Some updates
  • Nov 29, 2009
    r62 (Making ObjectHandles2 compatible with Flex 4 Added build / d...) committed by marc.hughes   -   Making ObjectHandles2 compatible with Flex 4 Added build / deploy scripts Added some documentaion.
    Making ObjectHandles2 compatible with Flex 4 Added build / deploy scripts Added some documentaion.
  • Nov 29, 2009
    ObjectHandles-2.0.0003-src.zip (Object Handles Version 2 distribution, includes source, docs...) file uploaded by marc.hughes
  • Nov 28, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page edited by marc.hughes   -   Revision r61 Edited wiki page through web user interface.
    Revision r61 Edited wiki page through web user interface.
  • Nov 28, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page edited by marc.hughes   -   Revision r60 Edited wiki page through web user interface.
    Revision r60 Edited wiki page through web user interface.
  • Nov 28, 2009
    HintsAndTips (Some hints and tips for using ObjectHandles before I get rea...) Wiki page edited by marc.hughes   -   Revision r59 Edited wiki page through web user interface.
    Revision r59 Edited wiki page through web user interface.
  • Nov 28, 2009
    HintsAndTips (Some hints and tips for using ObjectHandles before I get rea...) Wiki page edited by marc.hughes   -   Revision r58 Edited wiki page through web user interface.
    Revision r58 Edited wiki page through web user interface.
  • Nov 28, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page edited by marc.hughes   -   Revision r57 Edited wiki page through web user interface.
    Revision r57 Edited wiki page through web user interface.
  • Nov 28, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page edited by marc.hughes   -   Revision r56 Edited wiki page through web user interface.
    Revision r56 Edited wiki page through web user interface.
  • Nov 28, 2009
    r55 ([No log message]) committed by marc.hughes   -   [No log message]
    [No log message]
  • Nov 22, 2009
    issue 30 (help me ro create daynamic a tree) reported by abidreha   -   mx.collections::ArrayCollection)#0 filterFunction = (null) length = 9 list = (mx.collections::ArrayList)#1 length = 9 source = (Array)#2 [0] (Object)#3 category_id = "8" is_active = "1" level = "3" name = "Cell Phones" parent_id = 13 position = "8" [1] (Object)#4 category_id = "12" is_active = "1" level = "3" name = "Cameras" parent_id = 13 position = "12" [2] (Object)#5 category_id = "15" is_active = "1" level = "3" name = "Computers" parent_id = 13 position = "15" [3] (Object)#6 category_id = "29" is_active = "1" level = "4" name = "Hard Drives" parent_id = 15 position = "3" [4] (Object)#7 category_id = "30" is_active = "1" level = "4" name = "Monitors" parent_id = 15 position = "4" [5] (Object)#8 category_id = "31" is_active = "1" level = "4" name = "RAM / Memory" parent_id = 15 position = "5" [6] (Object)#9 category_id = "32" is_active = "1" level = "4" name = "Cases" parent_id = 15 position = "6" [7] (Object)#10 category_id = "33" is_active = "1" level = "4" name = "Processors" parent_id = 15 position = "7" [8] (Object)#11 category_id = "34" is_active = "1" level = "4" name = "Peripherals" parent = 15 position = "8" uid = "CE6F58A1-8B04-CD43-282A-1F43239D9E56" sort = (null) source = (Array)#2 this array collection convert daynamicaly to this type of array collection condition is parent category level == 3 child category is level==4 && parent_id == category_id var tmp:ArrayCollection=new ArrayCollection; tmp.addItem({ Name:'ACCOUNTING', Key:10, isBranch:true, children:[ {Name:'WARD', ShowKey:7521, draggable:true, parentKey: 10}, {Name:'JONES', ShowKey:7566, draggable:true, parentKey: 10}, {Name:'SCOTT', ShowKey:7788, draggable:true, parentKey: 10}, {Name:'KING', ShowKey:7839, draggable:true, parentKey: 10}, {Name:'JAMES', ShowKey:7900, draggable:true, parentKey: 10} ] });
    mx.collections::ArrayCollection)#0 filterFunction = (null) length = 9 list = (mx.collections::ArrayList)#1 length = 9 source = (Array)#2 [0] (Object)#3 category_id = "8" is_active = "1" level = "3" name = "Cell Phones" parent_id = 13 position = "8" [1] (Object)#4 category_id = "12" is_active = "1" level = "3" name = "Cameras" parent_id = 13 position = "12" [2] (Object)#5 category_id = "15" is_active = "1" level = "3" name = "Computers" parent_id = 13 position = "15" [3] (Object)#6 category_id = "29" is_active = "1" level = "4" name = "Hard Drives" parent_id = 15 position = "3" [4] (Object)#7 category_id = "30" is_active = "1" level = "4" name = "Monitors" parent_id = 15 position = "4" [5] (Object)#8 category_id = "31" is_active = "1" level = "4" name = "RAM / Memory" parent_id = 15 position = "5" [6] (Object)#9 category_id = "32" is_active = "1" level = "4" name = "Cases" parent_id = 15 position = "6" [7] (Object)#10 category_id = "33" is_active = "1" level = "4" name = "Processors" parent_id = 15 position = "7" [8] (Object)#11 category_id = "34" is_active = "1" level = "4" name = "Peripherals" parent = 15 position = "8" uid = "CE6F58A1-8B04-CD43-282A-1F43239D9E56" sort = (null) source = (Array)#2 this array collection convert daynamicaly to this type of array collection condition is parent category level == 3 child category is level==4 && parent_id == category_id var tmp:ArrayCollection=new ArrayCollection; tmp.addItem({ Name:'ACCOUNTING', Key:10, isBranch:true, children:[ {Name:'WARD', ShowKey:7521, draggable:true, parentKey: 10}, {Name:'JONES', ShowKey:7566, draggable:true, parentKey: 10}, {Name:'SCOTT', ShowKey:7788, draggable:true, parentKey: 10}, {Name:'KING', ShowKey:7839, draggable:true, parentKey: 10}, {Name:'JAMES', ShowKey:7900, draggable:true, parentKey: 10} ] });

Earlier this year

  • Nov 11, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page edited by cou...@gmail.com   -   Revision r54 Edited wiki page through web user interface.
    Revision r54 Edited wiki page through web user interface.
  • Nov 08, 2009
    issue 29 (ObjectHandles-1.0.0016: Rotation isNaN) reported by heikki.u...@syncrontech.com   -   What steps will reproduce the problem? 1. MyCanvas extends ObjectHandles (allowRotate = true) 2. Load swf into Canvas and add it to MyCanvas rawChildren 3. Try to move it -> isNaN(rotation) and then "bowAngle = Math.PI / 180 * rotation * -1;" isNaN and object goes to 0,0 What is the expected output? What do you see instead? Tried to set rotation=0 in MyCanvas constructor but it did not help, rotation get garbagled some other location. Fixed this adding to ObjectHandles.onMouseMove if (isNaN(rotation)) rotation = 0; What version of the product are you using? On what operating system? ObjectHandles-1.0.0016 FlashPlayer 10 FB 4 B2 Windows XP/Vista IE8
    What steps will reproduce the problem? 1. MyCanvas extends ObjectHandles (allowRotate = true) 2. Load swf into Canvas and add it to MyCanvas rawChildren 3. Try to move it -> isNaN(rotation) and then "bowAngle = Math.PI / 180 * rotation * -1;" isNaN and object goes to 0,0 What is the expected output? What do you see instead? Tried to set rotation=0 in MyCanvas constructor but it did not help, rotation get garbagled some other location. Fixed this adding to ObjectHandles.onMouseMove if (isNaN(rotation)) rotation = 0; What version of the product are you using? On what operating system? ObjectHandles-1.0.0016 FlashPlayer 10 FB 4 B2 Windows XP/Vista IE8
  • Oct 27, 2009
    issue 28 (how to add new children in array) reported by abidreha   -   var children:Array = genericTshirt.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:ObjectHandles = children[i] as ObjectHandles; } how to count ObjectHandles children.
    var children:Array = genericTshirt.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:ObjectHandles = children[i] as ObjectHandles; } how to count ObjectHandles children.
  • Oct 23, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page commented on by raju.amutha   -   i hope this sample help you...try this ... <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:oh="com.roguedevelopment.objecthandles.*" creationComplete="init()" xmlns:popupbar="com.roguedevelopment.popupbar.*" xmlns:sample="com.roguedevelopment.objecthandles.sample.*"> <mx:Script> <![CDATA[ import mx.controls.Image; import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandlesMouseCursors; [Embed(source="resize_handle.png")] protected var resize_handle:Class; [Embed(source="rotate_handle.png")] protected var rotate_handle:Class; protected function init() : void { var oh:ObjectHandles = new ObjectHandles(); oh.height = 50; oh.width = 50; oh.resizeHandleImage = resize_handle; var image:Image = new Image(); image.source = "snowflake.png"; oh.addChild(image); oh.allowRotate = false; image.percentHeight = 100; image.percentWidth = 100; image.maintainAspectRatio = false; genericExamples.addChild(oh); } ]]> </mx:Script> <mx:LinkBar dataProvider="{exampleStack}" width="100%" backgroundColor="#FFFFFF"/> <mx:ViewStack id="exampleStack" width="100%" height="100%" creationPolicy="all" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:Canvas horizontalScrollPolicy="off" verticalScrollPolicy="off"> <oh:ObjectHandles horizontalScrollPolicy="off" verticalScrollPolicy="off" id="oh11" resizeHandleImage="{resize_handle}" rotateHandleImage="{rotate_handle}" allowRotate="true" x="10" y="20" width="307" height="130" minHeight="30" minWidth="200" > <mx:Button label="Graphical Handles" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas id="genericExamples" label="Generic" backgroundColor="0xffffff" backgroundAlpha="1" width="100%" height="100%" > <oh:FixedRatioObjectHandles mouseCursors="{new ObjectHandlesMouseCursors()}" cornerMaintainAspectRatio="true" allowRotate="true" alwaysMaintainAspectRatio="false" x="226" y="161" width="125" height="50" minHeight="30" minWidth="130" > <mx:Image source="image/shofa.jpg" width="100%" height="100%" x="10"/> </oh:FixedRatioObjectHandles> </mx:Canvas> <mx:Canvas label="Horizontal" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="The top component has a horizontal movement constraint, and the bottom one has a horizontal resizing constraint." /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowHMove="false"> <mx:Button label="Movement Constraint" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false"> <mx:Button label="Sizing Constraint" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Vertical" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="The top component has a vertical movement constraint, and the bottom one has a vertical resizing constraint." /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowVMove="false"> <mx:Button label="Movement Constraint" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowVResize="false"> <mx:Button label="Sizing Constraint" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Sizing" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1"> <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="These can be moved, but not resized" /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false" allowVResize="false"> <mx:Button label="Move me!" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false" allowVResize="false"> <mx:Button label="Move me!" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Anchor" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="An anchor causes the component to always cross a coordinate. There are lines drawn below to show the anchors, but no visual que is neccessary." /> <mx:VRule x="300" height="400" y="65"/> <mx:HRule x="300" width="400" y="65" /> <oh:ObjectHandles allowRotate="false" x="133" y="229" width="250" height="30" minHeight="30" minWidth="250" xAnchor="300"> <mx:Button label="Horizontal Anchor" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="417" y="60" width="307" height="30" minHeight="30" minWidth="250" yAnchor="65"> <mx:Button label="Vertical Anchor" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="130" y="60" width="250" height="60" minHeight="30" minWidth="250" yAnchor="65" xAnchor="300"> <mx:Button label="Both Anchors" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Rotating" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="Rotation and resizing is not 100% yet, but you can see some of it here. Note that text doesn't appear once an object is rotated unless you embed the font, this is a general Flex limitation." /> <oh:ObjectHandles x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowVResize="false" allowRotate="true" > <mx:Button label="Rotate, no resize" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" > <mx:Button label="Rotate with resize" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> </mx:ViewStack> <mx:Script> <![CDATA[ import com.roguedevelopment.objecthandles.SelectionManager; ]]> </mx:Script> </mx:Application>
    i hope this sample help you...try this ... <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:oh="com.roguedevelopment.objecthandles.*" creationComplete="init()" xmlns:popupbar="com.roguedevelopment.popupbar.*" xmlns:sample="com.roguedevelopment.objecthandles.sample.*"> <mx:Script> <![CDATA[ import mx.controls.Image; import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandlesMouseCursors; [Embed(source="resize_handle.png")] protected var resize_handle:Class; [Embed(source="rotate_handle.png")] protected var rotate_handle:Class; protected function init() : void { var oh:ObjectHandles = new ObjectHandles(); oh.height = 50; oh.width = 50; oh.resizeHandleImage = resize_handle; var image:Image = new Image(); image.source = "snowflake.png"; oh.addChild(image); oh.allowRotate = false; image.percentHeight = 100; image.percentWidth = 100; image.maintainAspectRatio = false; genericExamples.addChild(oh); } ]]> </mx:Script> <mx:LinkBar dataProvider="{exampleStack}" width="100%" backgroundColor="#FFFFFF"/> <mx:ViewStack id="exampleStack" width="100%" height="100%" creationPolicy="all" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:Canvas horizontalScrollPolicy="off" verticalScrollPolicy="off"> <oh:ObjectHandles horizontalScrollPolicy="off" verticalScrollPolicy="off" id="oh11" resizeHandleImage="{resize_handle}" rotateHandleImage="{rotate_handle}" allowRotate="true" x="10" y="20" width="307" height="130" minHeight="30" minWidth="200" > <mx:Button label="Graphical Handles" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas id="genericExamples" label="Generic" backgroundColor="0xffffff" backgroundAlpha="1" width="100%" height="100%" > <oh:FixedRatioObjectHandles mouseCursors="{new ObjectHandlesMouseCursors()}" cornerMaintainAspectRatio="true" allowRotate="true" alwaysMaintainAspectRatio="false" x="226" y="161" width="125" height="50" minHeight="30" minWidth="130" > <mx:Image source="image/shofa.jpg" width="100%" height="100%" x="10"/> </oh:FixedRatioObjectHandles> </mx:Canvas> <mx:Canvas label="Horizontal" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="The top component has a horizontal movement constraint, and the bottom one has a horizontal resizing constraint." /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowHMove="false"> <mx:Button label="Movement Constraint" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false"> <mx:Button label="Sizing Constraint" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Vertical" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="The top component has a vertical movement constraint, and the bottom one has a vertical resizing constraint." /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowVMove="false"> <mx:Button label="Movement Constraint" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowVResize="false"> <mx:Button label="Sizing Constraint" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Sizing" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1"> <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="These can be moved, but not resized" /> <oh:ObjectHandles allowRotate="false" x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false" allowVResize="false"> <mx:Button label="Move me!" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" allowHResize="false" allowVResize="false"> <mx:Button label="Move me!" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Anchor" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="An anchor causes the component to always cross a coordinate. There are lines drawn below to show the anchors, but no visual que is neccessary." /> <mx:VRule x="300" height="400" y="65"/> <mx:HRule x="300" width="400" y="65" /> <oh:ObjectHandles allowRotate="false" x="133" y="229" width="250" height="30" minHeight="30" minWidth="250" xAnchor="300"> <mx:Button label="Horizontal Anchor" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="417" y="60" width="307" height="30" minHeight="30" minWidth="250" yAnchor="65"> <mx:Button label="Vertical Anchor" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles allowRotate="false" x="130" y="60" width="250" height="60" minHeight="30" minWidth="250" yAnchor="65" xAnchor="300"> <mx:Button label="Both Anchors" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> <mx:Canvas label="Rotating" width="100%" height="100%" backgroundColor="0xffffff" backgroundAlpha="1" > <mx:TextArea editable="false" borderStyle="none" width="300" height="300" text="Rotation and resizing is not 100% yet, but you can see some of it here. Note that text doesn't appear once an object is rotated unless you embed the font, this is a general Flex limitation." /> <oh:ObjectHandles x="10" y="30" width="307" height="30" minHeight="30" minWidth="250" allowVResize="false" allowRotate="true" > <mx:Button label="Rotate, no resize" width="100%" height="100%" /> </oh:ObjectHandles> <oh:ObjectHandles x="10" y="80" width="307" height="30" minHeight="30" minWidth="250" > <mx:Button label="Rotate with resize" width="100%" height="100%" /> </oh:ObjectHandles> </mx:Canvas> </mx:ViewStack> <mx:Script> <![CDATA[ import com.roguedevelopment.objecthandles.SelectionManager; ]]> </mx:Script> </mx:Application>
  • Oct 22, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page commented on by wgumaru   -   Hi, I added a canvas inside OH. Within the Canvas I added TextInput control and labels...I am able to move and resize the Canvas and all the children control within the canvas moves with the Canvas. How can I move and resize the controls that is within the Canvas... The canvas always gets the mouse event... <oh:ObjectHandles id="oh1" <mx:Canvas id="screen1"> <oh:ObjectHandles <mx:TextInput id="txt1" text="Child Control"/> </oh:ObjectHandles> <oh:ObjectHandles <mx:TextInput id="txt2" text="Child Control"/> </oh:ObjectHandles> </mx:Canvas> </oh:ObjectHandles>
    Hi, I added a canvas inside OH. Within the Canvas I added TextInput control and labels...I am able to move and resize the Canvas and all the children control within the canvas moves with the Canvas. How can I move and resize the controls that is within the Canvas... The canvas always gets the mouse event... <oh:ObjectHandles id="oh1" <mx:Canvas id="screen1"> <oh:ObjectHandles <mx:TextInput id="txt1" text="Child Control"/> </oh:ObjectHandles> <oh:ObjectHandles <mx:TextInput id="txt2" text="Child Control"/> </oh:ObjectHandles> </mx:Canvas> </oh:ObjectHandles>
  • Oct 22, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page commented on by raju.amutha   -   hi i want to resize image with equal height and width of original image size... can i do it in object handler.. anyone help me....
    hi i want to resize image with equal height and width of original image size... can i do it in object handler.. anyone help me....
  • Oct 22, 2009
    issue 5 (Still able to resize ObjectHandle event after allowVResize a...) commented on by raju.amutha   -   hi i want to resize image with equal height and width of original image size... can i do it in object handler.. anyone help me....
    hi i want to resize image with equal height and width of original image size... can i do it in object handler.. anyone help me....
  • Oct 19, 2009
    issue 27 (using chart with Object handles, Chart's tool tip doesn't...) reported by jlpcareer   -   What steps will reproduce the problem? 1. I used Chart component with ObjectHandles 2. I can resize chart without any problem.. 3. but Tool tip of chart doesn't show up, while using with Objecthandles What is the expected output? What do you see instead? Should show Chart's Tool tip when mousing hovering to Chart. What version of the product are you using? On what operating system? ObjectHandles-1.0.0016.swc Please provide any additional information below.
    What steps will reproduce the problem? 1. I used Chart component with ObjectHandles 2. I can resize chart without any problem.. 3. but Tool tip of chart doesn't show up, while using with Objecthandles What is the expected output? What do you see instead? Should show Chart's Tool tip when mousing hovering to Chart. What version of the product are you using? On what operating system? ObjectHandles-1.0.0016.swc Please provide any additional information below.
  • Oct 15, 2009
    issue 26 (FixedRatioObjectHandles does not always maintain aspect rati...) reported by mario.ernst   -   What steps will reproduce the problem? 1. Go to http://www.rogue-development.com/objectHandles.html 2. Scale down the 'Fixed Aspect Ratio' object handle in the example. What is the expected output? What do you see instead? Expected: Maintaining aspect ratio if scaling down. Instead: Height does not decrease in the same ratio like width. What version of the product are you using? 1.0.0016 Please provide any additional information below. Trying to send a fix soon.
    What steps will reproduce the problem? 1. Go to http://www.rogue-development.com/objectHandles.html 2. Scale down the 'Fixed Aspect Ratio' object handle in the example. What is the expected output? What do you see instead? Expected: Maintaining aspect ratio if scaling down. Instead: Height does not decrease in the same ratio like width. What version of the product are you using? 1.0.0016 Please provide any additional information below. Trying to send a fix soon.
  • Oct 08, 2009
    ObjectHandlesUsage (Here are some projects that use ObjectHandles, feel free to ...) Wiki page commented on by ramasamy.elango   -   TOP RIGHT handle is not working properly after using rotation, if u have any solution for that please share with me.
    TOP RIGHT handle is not working properly after using rotation, if u have any solution for that please share with me.
  • Oct 03, 2009
    issue 25 (Image with dynamic source(runtime image) does not show up) reported by stoica.ionut   -   What steps will reproduce the problem? 1. Use ObjectHandles2 2. Use a mx:Image as an objet, with dynamic image source (loaded at runtime) What is the expected output? What do you see instead? The image should display and load, but it does not What version of the product are you using? On what operating system? Current trunk of object-handles-2, windows-xp Please provide any additional information below.
    What steps will reproduce the problem? 1. Use ObjectHandles2 2. Use a mx:Image as an objet, with dynamic image source (loaded at runtime) What is the expected output? What do you see instead? The image should display and load, but it does not What version of the product are you using? On what operating system? Current trunk of object-handles-2, windows-xp Please provide any additional information below.
  • Sep 29, 2009
    issue 24 (how to get array length in arracollection ) reported by abidreha   -   <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" xmlns:local="*"> <mx:Script> <![CDATA[ import mx.rpc.events.FaultEvent; import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; import mx.containers.HBox; import mx.utils.ObjectUtil; import com.roguedevelopment.objecthandles.SelectionManager; import mx.controls.Alert; import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.zavoo.svg.nodes.SVGRoot; import com.zavoo.svg.SVGViewer; import mx.controls.Image; import com.roguedevelopment.objecthandles.ObjectHandles; import com.zavoo.svg.SvgPaths; import com.zavoo.svg.SvgPath; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.display.Graphics; public var paths:SvgPaths; public var canvas:Sprite; [Bindable] private var svgImage:Array = [ {img:"assets/coloredtoucan.svg"}, {img:"assets/eleven_below_single.svg"}, {img:"assets/spring_tree_final.svg"}, {img:"assets/eleven_below_single.svg"}, ]; [Bindable] public var myx:Number = 0; [Bindable] public var galleries:ArrayCollection = new ArrayCollection(); private function httpServicesvg_result(event:ResultEvent):void { var result:ArrayCollection = event.result.galleries.gallery is ArrayCollection ? event.result.galleries.gallery as ArrayCollection : new ArrayCollection(ArrayUtil.toArray(event.result.gallery)); galleries = result; mySvgImage(); } public function mySvgImage():void { Alert.show(ObjectUtil.toString(galleries)); var n:int = galleries.source.length; for (var i:int = 0; i < n; i++) { canvas = new Sprite(); this.rawChildren.addChild(canvas); var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(galleries.source[i].img); loader.load(request); loader.addEventListener(Event.COMPLETE, onLoadComplete); } } public function init():void { httpServicesvg.url= "assetsXml.xml"; httpServicesvg.send(); httpServicesvg.method="GET"; httpServicesvg.addEventListener(ResultEvent.RESULT, httpServicesvg_result); /*var n:int = svgImage.length; for (var i:int = 0; i < n; i++) { canvas = new Sprite(); this.rawChildren.addChild(canvas); var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(svgImage[i].img); loader.load(request); loader.addEventListener(Event.COMPLETE, onLoadComplete); } */ } private var index:int = 0; private var localX:int = 10; private var localY:int = 10; private function onLoadComplete(event:Event):void { var loader:URLLoader = URLLoader(event.target); paths = new SvgPaths(loader.data); var svgv:SVGViewer = new SVGViewer(); svgv.xml = new XML(loader.data); svgv.myWidth(50); svgv.myHeight(50); svgv.addEventListener(MouseEvent.CLICK, onVectorGraphicSelect); svgv.x = localX; svgv.y = localY; mygen.addChild(svgv); localX += 60; if(localX >180) { localY += 60; localX = 10; } } private function onVectorGraphicSelect(event:MouseEvent):void { var svgv:SVGViewer = new SVGViewer(); svgv.xml = (event.currentTarget as SVGViewer).xml; svgv.myHeight(150); svgv.myWidth(150); if(svgv != null) { var oh1:ObjectHandles = new ObjectHandles(); oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=true; oh1.mouseChildren=true; oh1.width=150; oh1.height=150; oh1.addEventListener(ObjectHandleEvent.OBJECT_RESIZED_EVENT,getNewWidthHeight); oh1.addChild(svgv); mygenw.addChild(oh1); } } public var newWidth:Number; public var newHeight:Number; public function getNewWidthHeight(e:ObjectHandleEvent):void{ var svgv:SVGViewer = e.currentTarget.getChildAt(0) as SVGViewer; var seleObject:ObjectHandles= e.currentTarget as ObjectHandles; newWidth = (e.currentTarget as ObjectHandles).width; newHeight = (e.currentTarget as ObjectHandles).height; svgv.myHeight(newHeight); svgv.myWidth(newWidth); } private function httpService_fault(evt:FaultEvent):void { var title:String = evt.type + " (" + evt.fault.faultCode + ")"; var text:String = evt.fault.faultString; //alert = Alert.show(text, title); // xmlListColl.removeAll(); } ]]> </mx:Script> <mx:HTTPService id="httpServicesvg" resultFormat="e4x" fault="httpService_fault(event);"/> <mx:Canvas id="mygen" width="100%" height="100%"> </mx:Canvas> <mx:Canvas id="mygenw" width="50%" height="50%" y="200" borderStyle="solid" borderColor="#ff00ff"/> </mx:Application>
    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" xmlns:local="*"> <mx:Script> <![CDATA[ import mx.rpc.events.FaultEvent; import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; import mx.containers.HBox; import mx.utils.ObjectUtil; import com.roguedevelopment.objecthandles.SelectionManager; import mx.controls.Alert; import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.zavoo.svg.nodes.SVGRoot; import com.zavoo.svg.SVGViewer; import mx.controls.Image; import com.roguedevelopment.objecthandles.ObjectHandles; import com.zavoo.svg.SvgPaths; import com.zavoo.svg.SvgPath; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.display.Graphics; public var paths:SvgPaths; public var canvas:Sprite; [Bindable] private var svgImage:Array = [ {img:"assets/coloredtoucan.svg"}, {img:"assets/eleven_below_single.svg"}, {img:"assets/spring_tree_final.svg"}, {img:"assets/eleven_below_single.svg"}, ]; [Bindable] public var myx:Number = 0; [Bindable] public var galleries:ArrayCollection = new ArrayCollection(); private function httpServicesvg_result(event:ResultEvent):void { var result:ArrayCollection = event.result.galleries.gallery is ArrayCollection ? event.result.galleries.gallery as ArrayCollection : new ArrayCollection(ArrayUtil.toArray(event.result.gallery)); galleries = result; mySvgImage(); } public function mySvgImage():void { Alert.show(ObjectUtil.toString(galleries)); var n:int = galleries.source.length; for (var i:int = 0; i < n; i++) { canvas = new Sprite(); this.rawChildren.addChild(canvas); var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(galleries.source[i].img); loader.load(request); loader.addEventListener(Event.COMPLETE, onLoadComplete); } } public function init():void { httpServicesvg.url= "assetsXml.xml"; httpServicesvg.send(); httpServicesvg.method="GET"; httpServicesvg.addEventListener(ResultEvent.RESULT, httpServicesvg_result); /*var n:int = svgImage.length; for (var i:int = 0; i < n; i++) { canvas = new Sprite(); this.rawChildren.addChild(canvas); var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(svgImage[i].img); loader.load(request); loader.addEventListener(Event.COMPLETE, onLoadComplete); } */ } private var index:int = 0; private var localX:int = 10; private var localY:int = 10; private function onLoadComplete(event:Event):void { var loader:URLLoader = URLLoader(event.target); paths = new SvgPaths(loader.data); var svgv:SVGViewer = new SVGViewer(); svgv.xml = new XML(loader.data); svgv.myWidth(50); svgv.myHeight(50); svgv.addEventListener(MouseEvent.CLICK, onVectorGraphicSelect); svgv.x = localX; svgv.y = localY; mygen.addChild(svgv); localX += 60; if(localX >180) { localY += 60; localX = 10; } } private function onVectorGraphicSelect(event:MouseEvent):void { var svgv:SVGViewer = new SVGViewer(); svgv.xml = (event.currentTarget as SVGViewer).xml; svgv.myHeight(150); svgv.myWidth(150); if(svgv != null) { var oh1:ObjectHandles = new ObjectHandles(); oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=true; oh1.mouseChildren=true; oh1.width=150; oh1.height=150; oh1.addEventListener(ObjectHandleEvent.OBJECT_RESIZED_EVENT,getNewWidthHeight); oh1.addChild(svgv); mygenw.addChild(oh1); } } public var newWidth:Number; public var newHeight:Number; public function getNewWidthHeight(e:ObjectHandleEvent):void{ var svgv:SVGViewer = e.currentTarget.getChildAt(0) as SVGViewer; var seleObject:ObjectHandles= e.currentTarget as ObjectHandles; newWidth = (e.currentTarget as ObjectHandles).width; newHeight = (e.currentTarget as ObjectHandles).height; svgv.myHeight(newHeight); svgv.myWidth(newWidth); } private function httpService_fault(evt:FaultEvent):void { var title:String = evt.type + " (" + evt.fault.faultCode + ")"; var text:String = evt.fault.faultString; //alert = Alert.show(text, title); // xmlListColl.removeAll(); } ]]> </mx:Script> <mx:HTTPService id="httpServicesvg" resultFormat="e4x" fault="httpService_fault(event);"/> <mx:Canvas id="mygen" width="100%" height="100%"> </mx:Canvas> <mx:Canvas id="mygenw" width="50%" height="50%" y="200" borderStyle="solid" borderColor="#ff00ff"/> </mx:Application>
  • Sep 25, 2009
    issue 23 (how to display svg image ) commented on by mail.Bhardwaj84   -   Hi Abid May be this link help you http://labs.zavoo.com/content/flex/DrawSvg/srcview/index.html
  • Sep 25, 2009
    issue 23 (how to display svg image ) reported by abidreha   -   <mx:HTTPService id="galleryData" url="mainproducts.xml" /> <mx:Tile x="10" y="30" width="100%" height="241" borderColor="#FFFFFF" themeColor="#FFFFFF" verticalAlign="middle" horizontalAlign="center"> <mx:Repeater id="imageRepeater"> <mx:HBox width="60" height="60" borderColor="#FFFFFF" themeColor="#FFFFFF" verticalAlign="middle" horizontalAlign="center" verticalScrollPolicy="off" horizontalScrollPolicy="off"> <mx:Image id="myimg1" height="50" width="50" source="{imageRepeater.currentItem.img}" horizontalAlign="center" verticalAlign="middle"/> </mx:HBox> </mx:Repeater> </mx:Tile>
    <mx:HTTPService id="galleryData" url="mainproducts.xml" /> <mx:Tile x="10" y="30" width="100%" height="241" borderColor="#FFFFFF" themeColor="#FFFFFF" verticalAlign="middle" horizontalAlign="center"> <mx:Repeater id="imageRepeater"> <mx:HBox width="60" height="60" borderColor="#FFFFFF" themeColor="#FFFFFF" verticalAlign="middle" horizontalAlign="center" verticalScrollPolicy="off" horizontalScrollPolicy="off"> <mx:Image id="myimg1" height="50" width="50" source="{imageRepeater.currentItem.img}" horizontalAlign="center" verticalAlign="middle"/> </mx:HBox> </mx:Repeater> </mx:Tile>
  • Sep 24, 2009
    issue 2 (if textArea has object handles, users cant change text) commented on by merman1222   -   I can't edit text which is include in the objecthandler tag. Some one can help me...
    I can't edit text which is include in the objecthandler tag. Some one can help me...
  • Sep 16, 2009
    issue 22 (how to get partculier object in getChildren array) commented on by mail.Bhardwaj84   -   var totalHeight:Number; var totalWidth:Number; var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:objectHandles = children[i] as objectHandles; if(child != null) { totalWidth += child.width; totalHeight += child.height; } }
    var totalHeight:Number; var totalWidth:Number; var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:objectHandles = children[i] as objectHandles; if(child != null) { totalWidth += child.width; totalHeight += child.height; } }
  • Sep 16, 2009
    issue 22 (how to get partculier object in getChildren array) reported by abidreha   -   public function getNewWidthHeight(e:ObjectHandleEvent):void{ var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:DisplayObject = DisplayObject(children[i]); //trace(child.x, child.y, child.width, child.height); //Alert.show(" width "+child.width+" height "+child.height); } // var newWidth:Number = (e.currentTarget as ObjectHandles).width; // var newHeight:Number = (e.currentTarget as ObjectHandles).height; //Alert.show(" width "+newWidth+" height "+newHeight); }
    public function getNewWidthHeight(e:ObjectHandleEvent):void{ var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:DisplayObject = DisplayObject(children[i]); //trace(child.x, child.y, child.width, child.height); //Alert.show(" width "+child.width+" height "+child.height); } // var newWidth:Number = (e.currentTarget as ObjectHandles).width; // var newHeight:Number = (e.currentTarget as ObjectHandles).height; //Alert.show(" width "+newWidth+" height "+newHeight); }
  • Sep 16, 2009
    issue 21 (how to get partculier object in getChildren array) reported by abidreha   -   var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:DisplayObject = DisplayObject(children[i]); //trace(child.x, child.y, child.width, child.height); //Alert.show(" width "+child.width+" height "+child.height); }
    var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:DisplayObject = DisplayObject(children[i]); //trace(child.x, child.y, child.width, child.height); //Alert.show(" width "+child.width+" height "+child.height); }
  • Sep 16, 2009
    issue 20 (how to get multipal object height & width ) reported by abidreha   -   public function getNewWidthHeight(e:ObjectHandleEvent):void { var newWidth:Number = (e.currentTarget as ObjectHandles).width; var newHeight:Number = (e.currentTarget as ObjectHandles).height; Alert.show(" width "+newWidth+" height "+newHeight); } private function hit(event:MouseEvent):void { var dd:String = event.currentTarget.id; var oh1:ObjectHandles = new ObjectHandles(); oh1.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected); oh1.allowRotate=false; oh1.x=158; oh1.y=94; oh1.height=47; oh1.width=168; val(oh1.id) oh1.addEventListener(ObjectHandleEvent.OBJECT_DESELECTED,getNewWidthHeight); var txt:TextArea = new TextArea(); txt.text="Click here and type your text2" txt.horizontalScrollPolicy = "off"; txt.verticalScrollPolicy = "off"; txt.percentWidth=100; txt.percentHeight=100; txt.setStyle("backgroundAlpha","0") txt.setStyle("fontSize","14"); txt.setStyle("color","#000000"); txt.setStyle("fontFamily","Verdana"); txt.setStyle("fontWeight","bold"); txt.setStyle("textAlign","center"); txt.setStyle("length","0"); txt.setStyle("borderStyle","none"); txt.condenseWhite=true; txt.addEventListener(MouseEvent.CLICK , clickDis); if(dd=="test") { oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=false; oh1.mouseChildren=true; txt.selectable=true; txt.editable=true; oh1.addChild(txt); } generic.addChild(oh1); }
    public function getNewWidthHeight(e:ObjectHandleEvent):void { var newWidth:Number = (e.currentTarget as ObjectHandles).width; var newHeight:Number = (e.currentTarget as ObjectHandles).height; Alert.show(" width "+newWidth+" height "+newHeight); } private function hit(event:MouseEvent):void { var dd:String = event.currentTarget.id; var oh1:ObjectHandles = new ObjectHandles(); oh1.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected); oh1.allowRotate=false; oh1.x=158; oh1.y=94; oh1.height=47; oh1.width=168; val(oh1.id) oh1.addEventListener(ObjectHandleEvent.OBJECT_DESELECTED,getNewWidthHeight); var txt:TextArea = new TextArea(); txt.text="Click here and type your text2" txt.horizontalScrollPolicy = "off"; txt.verticalScrollPolicy = "off"; txt.percentWidth=100; txt.percentHeight=100; txt.setStyle("backgroundAlpha","0") txt.setStyle("fontSize","14"); txt.setStyle("color","#000000"); txt.setStyle("fontFamily","Verdana"); txt.setStyle("fontWeight","bold"); txt.setStyle("textAlign","center"); txt.setStyle("length","0"); txt.setStyle("borderStyle","none"); txt.condenseWhite=true; txt.addEventListener(MouseEvent.CLICK , clickDis); if(dd=="test") { oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=false; oh1.mouseChildren=true; txt.selectable=true; txt.editable=true; oh1.addChild(txt); } generic.addChild(oh1); }
  • Sep 09, 2009
    issue 19 (how to get oh object Height & width after object resizing) reported by abidreha   -   please help me i want get object Height & width after object resizing.
    please help me i want get object Height & width after object resizing.
  • Sep 06, 2009
    issue 18 (how to creare "$f = array(array ( 'category_ids' => array ( ...) reported by abidreha   -   php array: $f = array(array ( 'category_ids' => array ( 'eq' => 35) )); i try to: var arrParams:Array = new Array(); var arrCats:Array = new Array(); var arrAtts:Array = new Array(); arrAtts.push({eq:35}); arrCats.push({category_ids:arrAtts}); arrParams.push(arrCats);
    php array: $f = array(array ( 'category_ids' => array ( 'eq' => 35) )); i try to: var arrParams:Array = new Array(); var arrCats:Array = new Array(); var arrAtts:Array = new Array(); arrAtts.push({eq:35}); arrCats.push({category_ids:arrAtts}); arrParams.push(arrCats);
  • Aug 31, 2009
    issue 17 (array collection) commented on by mail.Bhardwaj84   -   It seems problem is in array collection, Your collection is not well formed. its should be like this [Bindable] private var dataArray:ArrayCollection = new ArrayCollection ([ { id: '1',description: [{name: 'Bob Smith', city: 'Town1'}, {name: 'Abid', city: 'hello'}] }, { id: '2',description: [{name: 'Amit Bhardwaj', city: 'Jaipur'}, {name: 'Amitb', city: 'Delhi'}] } ]);
    It seems problem is in array collection, Your collection is not well formed. its should be like this [Bindable] private var dataArray:ArrayCollection = new ArrayCollection ([ { id: '1',description: [{name: 'Bob Smith', city: 'Town1'}, {name: 'Abid', city: 'hello'}] }, { id: '2',description: [{name: 'Amit Bhardwaj', city: 'Jaipur'}, {name: 'Amitb', city: 'Delhi'}] } ]);
  • Aug 31, 2009
    issue 17 (array collection) reported by abidreha   -   [Bindable] private var dataArray:ArrayCollection = new ArrayCollection( [ {id: '1' [{name: 'Bob Smith', city: 'Town1'}, {name: 'Abid', city: 'hello'}]}, {id: '2' [{name: 'Jon Doe', city: 'Town2'}]} ] );
    [Bindable] private var dataArray:ArrayCollection = new ArrayCollection( [ {id: '1' [{name: 'Bob Smith', city: 'Town1'}, {name: 'Abid', city: 'hello'}]}, {id: '2' [{name: 'Jon Doe', city: 'Town2'}]} ] );
  • Aug 27, 2009
    r53 (Making the MOVE handle easier to click on.) committed by andrewwestberg   -   Making the MOVE handle easier to click on.
    Making the MOVE handle easier to click on.
  • Aug 27, 2009
    r52 (Issue 16 - RESOLVED - MoveableTextArea.as was listening for ...) committed by andrewwestberg   -   Issue 16 - RESOLVED - MoveableTextArea.as was listening for the wrong event when the text changed. This caused the most recent change or character typed to be lost when the item is repositioned.
    Issue 16 - RESOLVED - MoveableTextArea.as was listening for the wrong event when the text changed. This caused the most recent change or character typed to be lost when the item is repositioned.
  • Aug 26, 2009
    issue 16 (ObjectHandles2) reported by andrewwestberg   -   What steps will reproduce the problem? 1. replace text in one textarea in Example4 2. Click off to unselect. click on to re-select 3. Drag to move using the center move handle What is the expected output? What do you see instead? The box moves w/o affecting text. Instead, the last character in the text field gets chopped off.
    What steps will reproduce the problem? 1. replace text in one textarea in Example4 2. Click off to unselect. click on to re-select 3. Drag to move using the center move handle What is the expected output? What do you see instead? The box moves w/o affecting text. Instead, the last character in the text field gets chopped off.
  • Aug 25, 2009
    r51 (Abstract IHandle interface for use inside ObjectHandles rena...) committed by andrewwestberg   -   Abstract IHandle interface for use inside ObjectHandles rename IHandle.descriptor to IHandle.handleDescriptor so there are no conflicts with UIComponent.descriptor Create Example7 where Handles are drawn using Degrafa.
    Abstract IHandle interface for use inside ObjectHandles rename IHandle.descriptor to IHandle.handleDescriptor so there are no conflicts with UIComponent.descriptor Create Example7 where Handles are drawn using Degrafa.
  • Aug 12, 2009
    issue 15 (how to get select object objectsource class ) reported by abidreha   -   What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below.
    What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below.
  • Aug 12, 2009
    issue 14 (my new issue) reported by abidreha   -   package com.roguedevelopment.flowchart { import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandles; import com.roguedevelopment.objecthandles.SelectionManager; import flash.events.Event; import flash.geom.Point; import mx.containers.Canvas; import mx.controls.Alert; import mx.core.ClassFactory; public class ObjectSource { protected var _factory:ClassFactory; protected var _position:Point; protected var _parent:Canvas; public var selectedObjectNew:ObjectHandles=null; public function ObjectSource(factory:ClassFactory, parent:Canvas, position:Point) { _factory = factory; _position = position; _parent = parent; createObject(); } protected function createObject() : void { var obj:ObjectHandles = _factory.newInstance() as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); obj.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected1); obj.x = _position.x; obj.y = _position.y; SelectionManager.instance.addSelectable(obj); _parent.addChild( obj ); } protected function onMoved(event:Event) : void { var obj:ObjectHandles = event.target as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); //createObject(); } private function OnObjectHandlesSelected1(event:ObjectHandleEvent):void { var obj:ObjectHandles = event.currentTarget as ObjectHandles; if(obj != null) { selectedObjectNew = obj; //Alert.show("hi"+selectedObjectNew); } } } } private function Delete():void { if(selectedObject != null) { selectedObject.removeAllChildren(); }else if(myObjSource.selectedObjectNew !=null) { Alert.show("hi"+myObjSource.selectedObjectNew); //myObjSource.selectedObjectNew.parent.removeChild(myObjSource.selectedObjectNew); } /* else if(selectedShape != null) { selectedShape.parent.removeChild(selectedShape); } */ if(cnvsParent.parent!= null) cnvsParent.parent.removeChild(cnvsParent); } [Bindable] private var myObjSource:ObjectSource; public function drawShape(id:String):void { var shape:String=id; //var myObjShp:ObjectHandlesCanvas = new ObjectHandlesCanvas(); //var myObjShpNew:ObjectHandles = new ObjectHandles(); //myObjShp.setStyle("borderStyle","none"); var myObjShp:Canvas = new Canvas(); if(shape=="circle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.CircleShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } else if(shape=="rectangle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.SquareShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } }
    package com.roguedevelopment.flowchart { import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandles; import com.roguedevelopment.objecthandles.SelectionManager; import flash.events.Event; import flash.geom.Point; import mx.containers.Canvas; import mx.controls.Alert; import mx.core.ClassFactory; public class ObjectSource { protected var _factory:ClassFactory; protected var _position:Point; protected var _parent:Canvas; public var selectedObjectNew:ObjectHandles=null; public function ObjectSource(factory:ClassFactory, parent:Canvas, position:Point) { _factory = factory; _position = position; _parent = parent; createObject(); } protected function createObject() : void { var obj:ObjectHandles = _factory.newInstance() as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); obj.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected1); obj.x = _position.x; obj.y = _position.y; SelectionManager.instance.addSelectable(obj); _parent.addChild( obj ); } protected function onMoved(event:Event) : void { var obj:ObjectHandles = event.target as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); //createObject(); } private function OnObjectHandlesSelected1(event:ObjectHandleEvent):void { var obj:ObjectHandles = event.currentTarget as ObjectHandles; if(obj != null) { selectedObjectNew = obj; //Alert.show("hi"+selectedObjectNew); } } } } private function Delete():void { if(selectedObject != null) { selectedObject.removeAllChildren(); }else if(myObjSource.selectedObjectNew !=null) { Alert.show("hi"+myObjSource.selectedObjectNew); //myObjSource.selectedObjectNew.parent.removeChild(myObjSource.selectedObjectNew); } /* else if(selectedShape != null) { selectedShape.parent.removeChild(selectedShape); } */ if(cnvsParent.parent!= null) cnvsParent.parent.removeChild(cnvsParent); } [Bindable] private var myObjSource:ObjectSource; public function drawShape(id:String):void { var shape:String=id; //var myObjShp:ObjectHandlesCanvas = new ObjectHandlesCanvas(); //var myObjShpNew:ObjectHandles = new ObjectHandles(); //myObjShp.setStyle("borderStyle","none"); var myObjShp:Canvas = new Canvas(); if(shape=="circle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.CircleShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } else if(shape=="rectangle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.SquareShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } }
  • Aug 11, 2009
    issue 13 (mycode) reported by abidreha   -   [Bindable] private var myObjSource:ObjectSource; public function drawShape(id:String):void { var shape:String=id; //var myObjShp:ObjectHandlesCanvas = new ObjectHandlesCanvas(); var myObjShp:Canvas = new Canvas(); //var myObjShpNew:ObjectHandles = new ObjectHandles(); //myObjShp.setStyle("borderStyle","none"); if(shape=="circle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.CircleShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } else if(shape=="rectangle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.SquareShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ }/* else if(shape=="polygon") { var sourceStarShape:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.StarShape), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if(shape=="traingle") { var sourceTriangleOne:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.TriangleOne), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="vline"){ var sourceRoundRect4:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect4), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="line"){ var sourceline:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.line), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="hline"){ var sourceRoundRect3:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect3), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="roundrect"){ var sourceRoundRect2:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect2), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="roundrectcon"){ var sourceRoundRect1:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect1), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="polyline"){ var sourcepolyline:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ployline), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="wedge"){ var sourceellipticalarc:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ellipticalarc), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="ellipse"){ var sourceellipse:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ellipse), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); } */ } private function Delete():void { if(selectedObject != null) { selectedObject.removeAllChildren(); }else if(myObjSource.selectedObjectNew !=null) { Alert.show("hi"+myObjSource.selectedObjectNew); //myObjSource.selectedObjectNew.parent.removeChild(myObjSource.selectedObjectNew); } /* else if(selectedShape != null) { selectedShape.parent.removeChild(selectedShape); } */ if(cnvsParent.parent!= null) cnvsParent.parent.removeChild(cnvsParent); } package com.roguedevelopment.flowchart { import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandles; import com.roguedevelopment.objecthandles.SelectionManager; import flash.events.Event; import flash.geom.Point; import mx.containers.Canvas; import mx.controls.Alert; import mx.core.ClassFactory; public class ObjectSource { protected var _factory:ClassFactory; protected var _position:Point; protected var _parent:Canvas; public var selectedObjectNew:ObjectHandles=null; public function ObjectSource(factory:ClassFactory, parent:Canvas, position:Point) { _factory = factory; _position = position; _parent = parent; createObject(); } protected function createObject() : void { var obj:ObjectHandles = _factory.newInstance() as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); obj.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected1); obj.x = _position.x; obj.y = _position.y; SelectionManager.instance.addSelectable(obj); _parent.addChild( obj ); } protected function onMoved(event:Event) : void { var obj:ObjectHandles = event.target as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); //createObject(); } private function OnObjectHandlesSelected1(event:ObjectHandleEvent):void { var obj:ObjectHandles = event.currentTarget as ObjectHandles; if(obj != null) { selectedObjectNew = obj; //Alert.show("hi"+selectedObjectNew); } } } }
    [Bindable] private var myObjSource:ObjectSource; public function drawShape(id:String):void { var shape:String=id; //var myObjShp:ObjectHandlesCanvas = new ObjectHandlesCanvas(); var myObjShp:Canvas = new Canvas(); //var myObjShpNew:ObjectHandles = new ObjectHandles(); //myObjShp.setStyle("borderStyle","none"); if(shape=="circle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.CircleShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ } else if(shape=="rectangle") { myObjSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.SquareShape), myObjShp, new Point(300,50) ); generic.addChild(myObjShp); /* myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); */ }/* else if(shape=="polygon") { var sourceStarShape:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.StarShape), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if(shape=="traingle") { var sourceTriangleOne:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.TriangleOne), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="vline"){ var sourceRoundRect4:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect4), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="line"){ var sourceline:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.line), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="hline"){ var sourceRoundRect3:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect3), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="roundrect"){ var sourceRoundRect2:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect2), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="roundrectcon"){ var sourceRoundRect1:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.RoundRect1), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="polyline"){ var sourcepolyline:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ployline), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="wedge"){ var sourceellipticalarc:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ellipticalarc), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); }else if (shape=="ellipse"){ var sourceellipse:ObjectSource = new ObjectSource( new ClassFactory( com.roguedevelopment.flowchart.shapes.ellipse), myObjShp, new Point(0,0) ); generic.addChild(myObjShp); myObjShp.addEventListener(MouseEvent.CLICK, function click(e:MouseEvent):void { var obj:ObjectHandlesCanvas = e.currentTarget as ObjectHandlesCanvas; if(obj != null) { selectedShape = obj; selectedObject = null; } }); } */ } private function Delete():void { if(selectedObject != null) { selectedObject.removeAllChildren(); }else if(myObjSource.selectedObjectNew !=null) { Alert.show("hi"+myObjSource.selectedObjectNew); //myObjSource.selectedObjectNew.parent.removeChild(myObjSource.selectedObjectNew); } /* else if(selectedShape != null) { selectedShape.parent.removeChild(selectedShape); } */ if(cnvsParent.parent!= null) cnvsParent.parent.removeChild(cnvsParent); } package com.roguedevelopment.flowchart { import com.roguedevelopment.objecthandles.ObjectHandleEvent; import com.roguedevelopment.objecthandles.ObjectHandles; import com.roguedevelopment.objecthandles.SelectionManager; import flash.events.Event; import flash.geom.Point; import mx.containers.Canvas; import mx.controls.Alert; import mx.core.ClassFactory; public class ObjectSource { protected var _factory:ClassFactory; protected var _position:Point; protected var _parent:Canvas; public var selectedObjectNew:ObjectHandles=null; public function ObjectSource(factory:ClassFactory, parent:Canvas, position:Point) { _factory = factory; _position = position; _parent = parent; createObject(); } protected function createObject() : void { var obj:ObjectHandles = _factory.newInstance() as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); obj.addEventListener(ObjectHandleEvent.OBJECT_SELECTED,OnObjectHandlesSelected1); obj.x = _position.x; obj.y = _position.y; SelectionManager.instance.addSelectable(obj); _parent.addChild( obj ); } protected function onMoved(event:Event) : void { var obj:ObjectHandles = event.target as ObjectHandles; obj.removeEventListener(ObjectHandleEvent.OBJECT_MOVING_EVENT, onMoved ); //createObject(); } private function OnObjectHandlesSelected1(event:ObjectHandleEvent):void { var obj:ObjectHandles = event.currentTarget as ObjectHandles; if(obj != null) { selectedObjectNew = obj; //Alert.show("hi"+selectedObjectNew); } } } }
  • Aug 02, 2009
    issue 11 (How can i add TextField or TextInput into objectHandle and ...) commented on by naresh.jfx   -   Hi Abidreha , This is naresh , thanks for your help . I want the out put like this 1) I have to apply OH tool to TextField. 2) When I resize the TextField throw OH ,Along with TextField Text Should be incerese in proposinal to TextField .
    Hi Abidreha , This is naresh , thanks for your help . I want the out put like this 1) I have to apply OH tool to TextField. 2) When I resize the TextField throw OH ,Along with TextField Text Should be incerese in proposinal to TextField .
  • Jul 31, 2009
    issue 12 (null pointer exception when setting and unsetting current se...) reported by tvervest   -   What steps will reproduce the problem? 1. have two different events respectively set and unset the selection with SelectionManager.instance.setSelected(obj) and .selectNone() 2. trigger the events in order of select and deselect 3. if the timing is right a nullpointer exception should occur on line 63 of SelectionManager.as This problem occurs in all versions, I have provided a .diff file that fixes the problem.
    What steps will reproduce the problem? 1. have two different events respectively set and unset the selection with SelectionManager.instance.setSelected(obj) and .selectNone() 2. trigger the events in order of select and deselect 3. if the timing is right a nullpointer exception should occur on line 63 of SelectionManager.as This problem occurs in all versions, I have provided a .diff file that fixes the problem.
  • Jul 31, 2009
    issue 11 (How can i add TextField or TextInput into objectHandle and ...) commented on by abidreha   -   var oh1:ObjectHandles = new ObjectHandles(); oh1.allowRotate=false; oh1.x=158; oh1.y=94; oh1.height=47; oh1.width=168; oh1.setStyle("backgroundAlpha","0"); oh1.setStyle("borderThickness","0"); val(oh1.id) var txt:TextArea = new TextArea(); txt.text = "Click here and type your text2."; txt.horizontalScrollPolicy = "off"; txt.verticalScrollPolicy = "off"; txt.percentWidth=100; txt.percentHeight=100; txt.setStyle("backgroundAlpha","0") txt.setStyle("fontSize","14"); txt.setStyle("color","#000000"); txt.setStyle("fontFamily","Verdana"); txt.setStyle("fontWeight","bold"); txt.setStyle("textAlign","center"); txt.setStyle("borderThickness","0"); txt.setStyle("borderThickness","0"); txt.setStyle("borderStyle","none"); txt.addEventListener(MouseEvent.CLICK , clickDis); if(dd=="test") { oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=false; oh1.mouseChildren=true; txt.selectable=true; txt.editable=true; oh1._allowKeyboardManipulation=false; oh1.addChild(txt); generic.addChild(oh1); }
    var oh1:ObjectHandles = new ObjectHandles(); oh1.allowRotate=false; oh1.x=158; oh1.y=94; oh1.height=47; oh1.width=168; oh1.setStyle("backgroundAlpha","0"); oh1.setStyle("borderThickness","0"); val(oh1.id) var txt:TextArea = new TextArea(); txt.text = "Click here and type your text2."; txt.horizontalScrollPolicy = "off"; txt.verticalScrollPolicy = "off"; txt.percentWidth=100; txt.percentHeight=100; txt.setStyle("backgroundAlpha","0") txt.setStyle("fontSize","14"); txt.setStyle("color","#000000"); txt.setStyle("fontFamily","Verdana"); txt.setStyle("fontWeight","bold"); txt.setStyle("textAlign","center"); txt.setStyle("borderThickness","0"); txt.setStyle("borderThickness","0"); txt.setStyle("borderStyle","none"); txt.addEventListener(MouseEvent.CLICK , clickDis); if(dd=="test") { oh1.allowHMove=true; oh1.allowHResize=true; oh1.allowVMove=true; oh1.allowVResize=true; oh1.allowRotate=false; oh1.mouseChildren=true; txt.selectable=true; txt.editable=true; oh1._allowKeyboardManipulation=false; oh1.addChild(txt); generic.addChild(oh1); }
  • Jul 30, 2009
    HintsAndTips (Some hints and tips for using ObjectHandles before I get rea...) Wiki page commented on by naresh.jfx   -   How can i customize the resize icon and that should be different for each corner Please send me this info if any knows how to do. Thanks a lot.
    How can i customize the resize icon and that should be different for each corner Please send me this info if any knows how to do. Thanks a lot.
  • Jul 30, 2009
    issue 11 (How can i add TextField or TextInput into objectHandle and ...) reported by naresh.jfx   -   What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below.
    What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below.
  • Jul 30, 2009
    issue 10 (how to create dyanmic moveble textarea) reported by abidreha   -   dear sir, this is my code. i try to create dynamic MoveableTextArea. textarea successfully created but bounding box not create please help. i send screen shot please help me. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:example="com.roguedevelopment_new.objecthandles.example.*" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" borderStyle="solid" borderColor="#000000" borderThickness="2" creationComplete="init()" click="if( event.target == this ) objectHandles.selectionManager.clearSelection();" > <mx:Script> <![CDATA[ import com.roguedevelopment_new.objecthandles.example.MoveableTextArea; import com.roguedevelopment_new.objecthandles.example.TextDataModel; import com.roguedevelopment_new.objecthandles.HandleRoles; import com.roguedevelopment_new.objecthandles.HandleDescription; import com.roguedevelopment_new.objecthandles.constraints.MovementConstraint; import com.roguedevelopment_new.objecthandles.constraints.SizeConstraint; import com.roguedevelopment_new.objecthandles.Handle; import com.roguedevelopment_new.objecthandles.ObjectHandles; import mx.effects.Tween; import mx.effects.Move; import com.roguedevelopment_new.objecthandles.example.SimpleSpriteShape; import com.roguedevelopment_new.objecthandles.example.SimpleDataModel; import com.roguedevelopment_new.objecthandles.example.SimpleFlexShape; protected var objectHandles:ObjectHandles; [Bindable] protected var dataModel:TextDataModel; [Bindable] protected var dataModel2:TextDataModel; [Bindable] protected var exam:MoveableTextArea; private function init() : void { objectHandles = new ObjectHandles( this ); var handles:Array = objectHandles.defaultHandles.concat(); handles.push( new HandleDescription( HandleRoles.MOVE, new Point(50,50) , new Point(0,0) ) ); dataModel = new TextDataModel(); dataModel.x = 10; dataModel.y = 150; dataModel.width = 100; dataModel.height = 100; dataModel.text = "Hello World!"; exam = new MoveableTextArea(); exam.model=dataModel; exam.id="movess"; exam.setStyle("fontSize","18"); exam.setStyle("fontFamily","myVerdana"); objectHandles.registerComponent(dataModel, exam, handles); tryone.addChild(exam); } ]]> </mx:Script> <mx:Canvas id="tryone" width="100%" height="100%"> </mx:Canvas> <example:Example4> </example:Example4> </mx:Application>
    dear sir, this is my code. i try to create dynamic MoveableTextArea. textarea successfully created but bounding box not create please help. i send screen shot please help me. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:example="com.roguedevelopment_new.objecthandles.example.*" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" borderStyle="solid" borderColor="#000000" borderThickness="2" creationComplete="init()" click="if( event.target == this ) objectHandles.selectionManager.clearSelection();" > <mx:Script> <![CDATA[ import com.roguedevelopment_new.objecthandles.example.MoveableTextArea; import com.roguedevelopment_new.objecthandles.example.TextDataModel; import com.roguedevelopment_new.objecthandles.HandleRoles; import com.roguedevelopment_new.objecthandles.HandleDescription; import com.roguedevelopment_new.objecthandles.constraints.MovementConstraint; import com.roguedevelopment_new.objecthandles.constraints.SizeConstraint; import com.roguedevelopment_new.objecthandles.Handle; import com.roguedevelopment_new.objecthandles.ObjectHandles; import mx.effects.Tween; import mx.effects.Move; import com.roguedevelopment_new.objecthandles.example.SimpleSpriteShape; import com.roguedevelopment_new.objecthandles.example.SimpleDataModel; import com.roguedevelopment_new.objecthandles.example.SimpleFlexShape; protected var objectHandles:ObjectHandles; [Bindable] protected var dataModel:TextDataModel; [Bindable] protected var dataModel2:TextDataModel; [Bindable] protected var exam:MoveableTextArea; private function init() : void { objectHandles = new ObjectHandles( this ); var handles:Array = objectHandles.defaultHandles.concat(); handles.push( new HandleDescription( HandleRoles.MOVE, new Point(50,50) , new Point(0,0) ) ); dataModel = new TextDataModel(); dataModel.x = 10; dataModel.y = 150; dataModel.width = 100; dataModel.height = 100; dataModel.text = "Hello World!"; exam = new MoveableTextArea(); exam.model=dataModel; exam.id="movess"; exam.setStyle("fontSize","18"); exam.setStyle("fontFamily","myVerdana"); objectHandles.registerComponent(dataModel, exam, handles); tryone.addChild(exam); } ]]> </mx:Script> <mx:Canvas id="tryone" width="100%" height="100%"> </mx:Canvas> <example:Example4> </example:Example4> </mx:Application>
  • Jul 30, 2009
    issue 9 (how to create dyanmic moveble textarea) reported by abidreha   -   dear sir, this is my code. i try to create dynamic MoveableTextArea. textarea successfully created but bounding box not create please help. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:example="com.roguedevelopment_new.objecthandles.example.*" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" borderStyle="solid" borderColor="#000000" borderThickness="2" creationComplete="init()" click="if( event.target == this ) objectHandles.selectionManager.clearSelection();" > <mx:Script> <![CDATA[ import com.roguedevelopment_new.objecthandles.example.MoveableTextArea; import com.roguedevelopment_new.objecthandles.example.TextDataModel; import com.roguedevelopment_new.objecthandles.HandleRoles; import com.roguedevelopment_new.objecthandles.HandleDescription; import com.roguedevelopment_new.objecthandles.constraints.MovementConstraint; import com.roguedevelopment_new.objecthandles.constraints.SizeConstraint; import com.roguedevelopment_new.objecthandles.Handle; import com.roguedevelopment_new.objecthandles.ObjectHandles; import mx.effects.Tween; import mx.effects.Move; import com.roguedevelopment_new.objecthandles.example.SimpleSpriteShape; import com.roguedevelopment_new.objecthandles.example.SimpleDataModel; import com.roguedevelopment_new.objecthandles.example.SimpleFlexShape; protected var objectHandles:ObjectHandles; [Bindable] protected var dataModel:TextDataModel; [Bindable] protected var dataModel2:TextDataModel; [Bindable] protected var exam:MoveableTextArea; private function init() : void { objectHandles = new ObjectHandles( this ); var handles:Array = objectHandles.defaultHandles.concat(); handles.push( new HandleDescription( HandleRoles.MOVE, new Point(50,50) , new Point(0,0) ) ); dataModel = new TextDataModel(); dataModel.x = 10; dataModel.y = 150; dataModel.width = 100; dataModel.height = 100; dataModel.text = "Hello World!"; exam = new MoveableTextArea(); exam.model=dataModel; exam.id="movess"; exam.setStyle("fontSize","18"); exam.setStyle("fontFamily","myVerdana"); objectHandles.registerComponent(dataModel, exam, handles); tryone.addChild(exam); } ]]> </mx:Script> <mx:Canvas id="tryone" width="100%" height="100%"> </mx:Canvas> <example:Example4> </example:Example4> </mx:Application>
    dear sir, this is my code. i try to create dynamic MoveableTextArea. textarea successfully created but bounding box not create please help. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:example="com.roguedevelopment_new.objecthandles.example.*" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" borderStyle="solid" borderColor="#000000" borderThickness="2" creationComplete="init()" click="if( event.target == this ) objectHandles.selectionManager.clearSelection();" > <mx:Script> <![CDATA[ import com.roguedevelopment_new.objecthandles.example.MoveableTextArea; import com.roguedevelopment_new.objecthandles.example.TextDataModel; import com.roguedevelopment_new.objecthandles.HandleRoles; import com.roguedevelopment_new.objecthandles.HandleDescription; import com.roguedevelopment_new.objecthandles.constraints.MovementConstraint; import com.roguedevelopment_new.objecthandles.constraints.SizeConstraint; import com.roguedevelopment_new.objecthandles.Handle; import com.roguedevelopment_new.objecthandles.ObjectHandles; import mx.effects.Tween; import mx.effects.Move; import com.roguedevelopment_new.objecthandles.example.SimpleSpriteShape; import com.roguedevelopment_new.objecthandles.example.SimpleDataModel; import com.roguedevelopment_new.objecthandles.example.SimpleFlexShape; protected var objectHandles:ObjectHandles; [Bindable] protected var dataModel:TextDataModel; [Bindable] protected var dataModel2:TextDataModel; [Bindable] protected var exam:MoveableTextArea; private function init() : void { objectHandles = new ObjectHandles( this ); var handles:Array = objectHandles.defaultHandles.concat(); handles.push( new HandleDescription( HandleRoles.MOVE, new Point(50,50) , new Point(0,0) ) ); dataModel = new TextDataModel(); dataModel.x = 10; dataModel.y = 150; dataModel.width = 100; dataModel.height = 100; dataModel.text = "Hello World!"; exam = new MoveableTextArea(); exam.model=dataModel; exam.id="movess"; exam.setStyle("fontSize","18"); exam.setStyle("fontFamily","myVerdana"); objectHandles.registerComponent(dataModel, exam, handles); tryone.addChild(exam); } ]]> </mx:Script> <mx:Canvas id="tryone" width="100%" height="100%"> </mx:Canvas> <example:Example4> </example:Example4> </mx:Application>
 
Hosted by Google Code