
Welcome Guest
|
#1
|
|||
|
|||
|
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? |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |




