-
is it possible to drag an image into a specific area that then activates an action? Preferably happening all on the same scene.
is it possible to drag multiple images into the same area at different times that then activate different actions?
Am I being clear?
thanks
b-
-
creat 2 MC's
the one which is going to be dragged had this actions on the timeline
----
on (press) {
startDrag ("/dragthis", true);
}
on (release, dragOut) {
stopDrag ();
if (getProperty("/dragthis", _droptarget) eq "/drop") {
tellTarget ("/drop") {
gotoAndPlay (1);
}
tellTarget ("/dragthis") {
gotoAndPlay ("play");
}
}
}
on (press) {
setProperty ("/dragthis", _x, "");
}
-------
Hope this helps!
Joris
-
little confused
[QUOTE]Originally posted by JorisRotteveel
[B]creat 2 MC's
the one which is going to be dragged had this actions on the timeline
----
on (press) {
startDrag ("/dragthis", true);
}
on (release, dragOut) {
stopDrag ();
if (getProperty("/dragthis", _droptarget) eq "/drop") {
tellTarget ("/drop") {
gotoAndPlay (1);
}
tellTarget ("/dragthis") {
gotoAndPlay ("play");
}
}
}
on (press) {
setProperty ("/dragthis", _x, "");
}
I'm still having some difficulty with this script.
Should "play" be a seperate scene or MC?
Why the need to tellTarget ("/drop") gotoAndPlay (1);?
Also is the setProperty necessary as well?
Just trying to make understand how actionscripting works.
Thank you
b-
-
send an email to ja.rotteveel@chello.nl
adn i'll send you an fla
cya
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|