It's not clear where you want the dragged image to appear. Is it on the
tab itself or on the container contained in the SuperTabNavigator? If
it's on the container, then just implement drag and drop operations for
your container and that should do the trick. If you are looking to drag
the image on top of the SuperTabNavigator's SuperTabBar and expect it to
create a container that will hold the image, then it's a bit more
complicated.
 
The SuperTabNavigator, through its SuperTabBar handles the drag and drop
operations but only of SuperTab controls. Anything else is ignored. If
you want the SuperTabBar to handle other type of drag and drop
operation, you'll need to extend the classes or listen to the drag and
drop events of the SuperTabBar. If you use the mx_internal namespace,
you can get a handle on the SuperTabBar of the SuperTabNavigator by
using the method getTabBar() and casting the returned object to a
SuperTabBar. Just remember that you cannot add an Image as a child of a
SuperTabNavigator, only Containers can be child of this object.
 
Hope it helps!

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Evan
Sent: Monday, January 05, 2009 4:49 PM
To: [email protected]
Subject: [flexcoders] Dragging to Super Tab Navigator



I have a grid this is filled with images. I have a SuperTabNavigator 
on the same screen. How do I set it up, so I can drag images to each 
tab in the navigator? That is, if I have ten tabs, I want to drag 
different objects to each one. 

The dragging works fine to a separate canvas, but how do I add a 
separate canvas to each tab? I think I need to do something at the 
point where the child is added that shows the contents for each tab, 
but I'm missing something. 

Thank you so much!!!! 



 

Reply via email to