View Full Version : damn drop target
watermelon
06-20-2001, 10:17 PM
how do i make a drag target so when i relesase a draged obhect on another it goto another frame in the animation? i looked at the one on the tut here but it didnt work.
many thanks
Jesse
06-21-2001, 05:06 AM
the source for the tutorial has what you need.
basically you have:
if (this._droptarget == "/somePathToAClip"){
_root.gotoAndPlay ("some scene",1);
}
take another look at the source file from the tutorial and if you still can't get it working reply here.
watermelon
06-24-2001, 09:00 PM
as it said before i tried the code in the tut but it diodnt work. is there another way to do it?
Jesse
06-25-2001, 02:06 AM
you can use hitTest but if you are using draggable objects there is no reason you can't use dropTargets. If you post more information about your probelm we will be more able to assist you. (When I get back from holidays, or someone else in the mean time). The code in the tute does work, I'm viewing the working example now...
jo72_limited_edition
06-27-2001, 02:21 PM
which version of flash are you using?
if you are using flash 4 the _.root bit won't work ... flash 4 doesn't like it and you have to use tell target to specify the movie clip
btw jesse - thanks for all your help getting my drag and drops working a few weeks ago - the thing that was preventing it working was the _.root!
Jesse
06-28-2001, 05:35 AM
np :)
watermelon
07-04-2001, 08:10 PM
im using flash 5. ive tried using hittest but it didnt work be cause when it collided with another object it would keep on going to the next frame of the target. i want it to stop and only go to the next frame of the target once.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.