|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Flash Drag and Drop problem
Having a problem with _droptarget when I use loadMovie("file", target);
Here's the details: making a "fill-in the blanks" clip. drag/drop the words "onto" a target. and when all of the words are filled in it will move on to next scene, etc. here's how i have the drop target coded. myClip.onRelease = function(){ this.stopDrag(); if (this._droptarget == "/target"){ someCode... } } works fine by itself, but when I load this into another FLA using loadMovie("file.swf", target); the droptarget is not recognized. i have no idea what to do. hope someone can help ![]() thanks, k |
|
#2
|
|||
|
|||
|
I'm not sure about this but I don't think your problem is with _droptarget...you are comparing it to '/target' and since you have loaded this .swf in another it is looking for 'target' at the root level. I am more familiar with actionscript using the dot notation but I'm assuming '/target' looks to the root timeline???
I may very well be wrong but I thought I would at least give you something easy to try. ~panhead490 |
|
#3
|
|||
|
|||
|
i figured it out.
you are correct that it was "looking' for that target on the root timeline. i am mostly familiar with dot notation too, but "_droptarget" uses the old "/" notation. my solution: if (eval(clip._droptarget) == target){ etc etc. } this will convert the slash notation to dot notation. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Flash Drag and Drop problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|