TileList drag and drop issue

  • dhina.techno
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Sep 22, 2007
  • Posts: 8
  • Status: Offline

Post November 4th, 2007, 9:41 am

Hi,
i have a tilelist which has drag and drop enabled.

my code:

<mx:TileList id="mytile" x="684" y="47"
dropEnabled="true" dragEnabled="true">

When i try to drag an item from my tilelist to the same tilelist, i get a new copy of the item, which i dont want to happen. Please help me solve this problem.

Thanks,
Dhina
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 4th, 2007, 9:41 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post November 5th, 2007, 10:59 pm

Hmm, never seen such code, is that actionscript 3?
don't know this particular case, but generally speaking, there shoul be an event triggered when the item is dropped. When that event happens, check if the object on which the item is dropped is your tilelist, and if so, cancel the drop.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post November 6th, 2007, 2:29 pm

yup looks like AS3 inside of Flex...

I believe there are callbacks available for TileList's
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 32 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.