VideoHive

turn off on release functionality on movieclip? AS2

905 posts
  • Has been a member for 5-6 years
  • Bought between 100 and 499 items
  • United States
unchartedrealms says

I have this file from here that uses this code to turn a movie clip into a button. http://pastie.org/575874

What I want to do is disable that button so the interactivity and functionality in that movie clip will show through instead of just the whole clip being a button.

Any advice how to remove that would be great. There are already some functions in the den file that I could place the new remove OnRelease code on that that would be the right place for this removal to happen. Thanks for any time or help anyone may have to offer. :) or

3 years ago
1471 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • India
  • Referred between 1 and 9 users
rahulbist says

do you want the movieclip to have no event?

3 years ago
2350 posts
  • Has been a member for 4-5 years
  • Won a Competition
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 50 and 99 users
wickedpixel says

fish.onRelease = null ?

3 years ago
1945 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 10 and 49 users
Emroni says

delete mc.onRelease;

or you could use mc.disabled = true; to just disable its functions, and enable it again whenever needed

3 years ago
905 posts
  • Has been a member for 5-6 years
  • Bought between 100 and 499 items
  • United States
unchartedrealms says

Thanks for the help guys, I really appreciate it. I tried each suggestion in many parts of the code.

So far Emromni’s suggestion delete mc.onRelease; disabled the onRelease listener and made my underlying .swf interactivity work perfect.

But the new question is once it is deleated can I enable it again? I tried the suggestion to use mc.disabled = true but that would not disable the clip the same way the delete did.

Oh well I know this is a long shot because I you all dont see the whole code I am editing so feel free to ignore post. Thanks for the previous help though :)

3 years ago
99 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
Palehosefan says
Thanks for the help guys, I really appreciate it. I tried each suggestion in many parts of the code.

So far Emromni’s suggestion delete mc.onRelease; disabled the onRelease listener and made my underlying .swf interactivity work perfect.

But the new question is once it is deleated can I enable it again? I tried the suggestion to use mc.disabled = true but that would not disable the clip the same way the delete did.

Oh well I know this is a long shot because I you all dont see the whole code I am editing so feel free to ignore post. Thanks for the previous help though :)

Have you tried just simply yourMC.enabled = true, or yourMC.enabled = false;

3 years ago
1945 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 10 and 49 users
Emroni says

Oops! Made a mistake there :P Its not mc.disabled = true; but mc.enabled = false;. Sorry for the mixup :) To re-enable it, just do mc.enabled = true;

3 years ago
133 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Germany
  • Referred between 1 and 9 users
Realtimefreak says

And if you want to click through the mc then set mc._visible = false; too.

3 years ago
by
by
by
by
by