What i need help with is realeasing a mouse event.
By that I mean, Im clicking on ONE movie clip (movieA) and releasing it on another movie clip (movieB).
But, when I release on movieB, it doesnt get the mouse event, since it was first clicked on movieA, it only does the onRelease on the movie click you Clicked on.
I was wondering if there is a way to RELEASE the mouse event, as in, as soon as they click, it does the onmouseclick event, and then doesnt hold the release to that same movie…get it?
I want the onClick to happen on one movie, and the onRelease to take place on top of another movie, depending on what movie they released their mouse on.
movieA and movieB are just examples, im actually duplicating a movie clip many times and I have action set for that movie clip.
But what happens is, When i click on a movie, and i release over another movie, the onRelease doesnt take place, it only takes place when i release on TOP of the same movie i clicked on. I dont want that, so what im trying to do is release the mouse event so it notices the onRelease on another movie…
when i press the mouse button on the blue button down, a appropriate mouseevent has to be executed. then i keep the mouse button clicked and move over to the red button. there i release the mouse button, and an appr. release-mouse event has to be executed.
I still think that is a weird way of doing it… but… here’s another option. It is untested, but I’ll throw it out there…
Your event will NOT register as an on release for a different button than the one where you initiated the click. However, if you were to turn the second button into a movie clip “button2mc”
you could…
click on button 1…execute event…
with mouse still down, go to button 2 and release…
on Release, do a hittest with the mouse cursor on the button2mc…
um… yeah… hittest… and, I don’t think you have to do all the prototyping… but, that doesn’t make it wrong, nor does it make mine wrong. That’s why you just have to love this stuff!
ive found a simple solution for my problem using buttons.
1st button: set a flag in the on (dragOut) event. and do also the things that has to be done.
2nd button: when you release the mouse button, a on (rollOver) event is executed. there you can test if the flag was set and if yes do the things you need there.