Hello -
I was just wondering if anyone else has experienced problems with
using Drag and Drop functionality after going to Flex Builder 3, beta
3? I have 3 projects that all use drag/drop in a similar fashion, and
ever since installing FB3 b3 they now error out no matter what I try.
My drag handler is the code at the bottom of this message, and the
error I get is this:

undefined
at
mx.collections::ArrayList()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayList.as:79]
at mx.collections::ArrayCollection/set
source()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:114]
at
mx.collections::ArrayCollection()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:78]
at
com.wowway.Store.views.components::Product()[/Users/andrewjones/Documents/Flex
Builder
3/WowPrototype/src/com/wowway/Store/views/components/Product.mxml:233]
at
com.wowway.Store.views.components::AllProducts/thumbDragStartHandler()[/Users/andrewjones/Documents/Flex
Builder
3/WowPrototype/src/com/wowway/Store/views/components/AllProducts.mxml:37]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:9041]

FB3 also opens up the ArrayList.as class, so its trying to tell me
something...

Thanks!
Andrew

##MY CODE:

private function thumbDragStartHandler(event:MouseEvent):void
                        {
                                trace('Drag Handler...Broken');
                                if (DragManager.isDragging == false)
                                {
                                    var thumb:IUIComponent = event.target as 
Product;
                                    var ds:DragSource = new DragSource();
                                    ds.addData(thumb, "activityFormat");
                                
                                    var di:Product = new Product();
                                    trace('setting imageProps');
                                    di.setDragImageProps(thumb);
                                    di.width = 120;
                                    di.height = 120;
                                   DragManager.doDrag(thumb, ds, event, di, 0, 
0, 1, false);
                                    //DragManager.doDrag(ini, ds, evt, dragimg, 
9, 0, , )
                                } 
                        }

Reply via email to