Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-20-2006, 01:38 AM   #1
LostInRecursion
Language Lizard
 
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
Default dragDrop, Tile List to List Component

God, I need help on this. I am totally up the creek...

I am using a TileList component with a custom renderer which has all the following properties:

stylename
typename
colorname
...

I have made the TileList dragEnabled and the target List component dropEnabled.

Here's the rub...

When I drag from the TileList component to the List component, I get the following string in the List box "[object Object]"

Ok, so I went ahead and used this code to try and format the data to what I need it to look like. I called the function from the dragDrop property of the target List component:

PHP Code:
            private function addToCart(event:DragEvent):void{        
                var 
items:Array = event.dragSource.dataForFormat("items") as Array;
                var 
blindLabel:String items[0].typename " | " items[0].stylename " | " items[0].colorname;
                
aCart.push({labelblindLabeldataitems[0].blindID});
            } 
Problem is, I still get the [object Object] right before what I have added.

Anyway to format the data correctly without having t jump through all these hoops?
LostInRecursion is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Major Problems trying to capture "click" event in List component ManinBlaq Components 11 01-30-2007 07:12 PM
Scope Problem with List Component Inside Accordion Scottiedazzle ActionScript 2.0 1 07-18-2006 03:51 PM
how can i know when list component is created/loaded. awa ActionScript 2.0 1 07-10-2006 05:01 AM
Extending List Component actionscriptLearner Components 2 01-06-2006 11:46 PM
using the List component in my class?? dangerhotrod Components 5 11-18-2004 07:34 AM


All times are GMT. The time now is 05:58 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.