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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-11-2010, 05:39 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
:stoned FLEX guru in here ?

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()+')';
			}
and in Init() I add the two event listners.
Code:
this.addEventListener(DragEvent.DRAG_ENTER, doDragEnter);
this.addEventListener(DragEvent.DRAG_DROP, doDragDrop);
thanks for your help.
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2010, 09:42 PM   #2
fatfoo
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]

Last edited by fatfoo; 08-11-2010 at 09:45 PM..
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.