LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-10-2002, 02:01 PM
bullpwap bullpwap is offline
Registered User
 
Join Date: Nov 2002
Location: Scotland
Posts: 6
Rep Power: 0
bullpwap is on a distinguished road
Aid drag and drop help please

This is driving me right off my nut.

Im working on a puzzle game for a 2nd year assessment at college using drag and drop with droptargets. Simple enough.

The pieces are buttons inside movie clips, as usual.

Now I've got a piece of code which rotates the buttons and
I use the getProperty(this, _rotation); to determine the buttons orientation.

I've a piece of dynamic text on the main stage which displays the orientation, variable is "rot".


_root.rot = getProperty(this, _rotation);

And that works fine. Perfect.

But, when I try to test the code versus the droptarget, it
ignores it.

Its like this:

if (_root.rot eq 0){ <- this bit get ignored
if (this._droptarget eq "/dz24"){
this._x=_root.dz24._x; <- this bit works fine.
this._y=_root.dz24._y;
}
}

You see I only want the piece to drop into it's droptarget if it's
rotation is 0.

Can anyone please help?
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag and Drop ScottyEvil Flash MX 2004 1 05-18-2007 05:02 PM
drag and drop into a box in any order kazooki Flash 8 1 03-19-2007 12:11 PM
Drag & Drop: Deleting when pulled off main area GrittyKitty Newbies 6 12-01-2006 10:42 PM
Drag & Drop Help! jmwebcenter Flash MX 2004 1 02-08-2004 07:27 PM
How to unable Drag and Drop movies. choi_kathryn Flash 5 Actionscript 1 11-30-2002 02:14 PM




All times are GMT. The time now is 07:42 PM.