View Full Version : Using action scripts.. PLEASE HELP!
ccr_dr
May 15th, 2003, 02:05 PM
I know that you can drag the paint brush over the computer to turn it yellow or green, in one of your tutorials, but say when the paint brush was released over the computer, the computer moved from one place to the next. How would you go about writing that?
mlk
May 15th, 2003, 04:43 PM
welcome to the forums ccr_dr, could you be a bit more explicit about what your trying to do ? what tut are you talking about ?
ccr_dr
May 16th, 2003, 09:17 AM
http://www.kirupa.com/developer/actionscript/dragdrop.htm
pom
May 16th, 2003, 12:57 PM
on (press) {
startDrag ("_root.yellow");
}
on (release) {
stopDrag ();
if (_root.yellow._droptarget == "/computer") {
// Put here what you want the comp to do
_root.computer._x += 10;
_root.computer._y += 10;
}
}pom :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.