|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Here a fairly simple question yet I can't find an awnser anywhere.
I'm droping an object on one of my component which is HBox based and everything works fine execept for the fact that I can only do the drop when I'm on the HBox border or one of the objects it contains. Do I need to set something so the HBox background accepts the drop ... ? Code:
// Check if drag proxy has format ...
private function doDragEnter(event:DragEvent):void{
if(event.dragSource.hasFormat('treeItems'))
DragManager.acceptDragDrop(IUIComponent(event.target));
}
// Performs the drop op.
private function doDragDrop(event:DragEvent):void{
var items:Object = event.dragSource.dataForFormat("treeItems");
for (var i:int=0; i<items.length; i++)
Object(dataBox.getChildAt(i))._value.text = '#ref('+items[i].@id+':'+items[i].localName()+')';
}
Code:
this.addEventListener(DragEvent.DRAG_ENTER, doDragEnter); this.addEventListener(DragEvent.DRAG_DROP, doDragDrop);
__________________
I have nothing to advertise ... yet. |
|
|
|
|
|
#2 |
|
ICQ:649699063
Industry Role:
Join Date: Mar 2003
Posts: 27,763
|
Good luck, qw12er.
You posted the stoned smiley. Quit using printed paper with your codes as rolling paper. This might help you.
__________________
Send me an email: [email protected] |
|
|
|