queen.onPress = function(){
startDrag(this,true)
}
queen.onRelease = function(){
this.stopDrag();
}
which seems to work so far but when i click on the queen without dragging her she will continue to move down slighty each time i click! so if i were to just click on and off of the movie clip of the queen it will eventually move to the bottom of the screen without even being dragged!
little bit jarring....
now how do i do the next bit? i want a different outcome depending on where she is dropped but i'm not sure what to do at all?
just found out that why my clip may be moving like that, in one of the scripts i tried the word false was in there which means the mouse position will be locked where it was when the clip was first clicked on, and true which was on anna's script always locks the mouse pointer in a central position.
i prefer the false method but i don't know where to put it in my script! ?
oh how silly of me! it has true right there in the script! I have just changed this to false and the movement is much better.
found another piece of code to make it smoother, the update after event code, which i am sure was on one of the codes i tried already? but why didn't any of them work?
I found something about using components which looks good, you can drag an item onto another and a message appears at the bottom of the screen, what is says will depend on where you put it, but I can't seem to find components on flash? i found the component inspector but it just says select a component instance to edit its parameters, bindings or schema in this panel.
erm what the hell is all that?
and what's the difference between creating the drag drop on the frame or on the instance?
}
No comments:
Post a Comment