PDA

View Full Version : drop "n" drag tutorial


Bigshero
07-19-2002, 05:32 AM
i have tried for several days to get this to work --i have used the search function to see what i am doing wrong --but to no avail---could someone please look at my zip and tell me what i am doing wrong ----this is really frustrating -- i have got the pink button working at one stage --but i just wish i could get the drag onto the green box working----any help really appreciated

terry

sfa
07-19-2002, 08:11 AM
To make the drag work just select the button, and change it into a movie clip. I dont know what you are trying to do with the hitTest, where is the target mc?

SFA

Bigshero
07-21-2002, 07:25 AM
i have struggled here because i was unaware of the old button in the movie trick--even tho Jesse said so --i didnt realise that i had to actionscript the button as soon as i converted it to a button -- i had been dragging the button out of the library-----its the first time i have used a button in this manner ---well i have the button working and when i drag it over the green box nothing happens --it goes behind the green box instead of activating the green box ---i think that i have the wrong path but i cant find the right path ---can anyone please guide me here by looking at the file---- i am as new as one can be trying to learn flash 5


Thanks for any help ----------Terry

Billy T
07-21-2002, 01:23 PM
see attached

cheers

Bigshero
07-22-2002, 03:50 AM
Thankyou Billy T for sticking with me on this problem and am grateful for the help

i dont know if i am just plain dumb !!! (must be)

1. when i am in normal mode and get to this part

if(this._droptarget == green_box) so far so good from here on {

i cant enter the rest of the actions when i put my cursor into the { because there is a green hilite line running thru what has been printed and i cant enter any more text from the { onward

2. so i go to the expert mode to put the rest of

_root.green_box.gotoAndStop(2); }
}

to finish the script

3. is there something like an operator or something else that i add there to get rid of the green line ????

well i can get the drop down ok but it still goes under the green_box and when i release the mouse the green_box text appears---even if i dont move the top and just release it the text in the green box appears

your movie works perfect but i cant imitate it ----many thanks ---terry

Billy T
07-22-2002, 04:47 AM
this is what your if statement needs to be

this._droptarget == "/green_box"

you can make your dragable clip appear above the other one by selecting it and choosing Modify/Arrange/bring to front

this might help - http://www.tableau.com.au/tutorials/drag_drop_tut/

cheers