4388 posts Community Mod Building awesome stuff for your mobile devices!
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+14 more
Enabled Moderator says

Hey guys, I hit a brick wall with something.

How in God’s name do I a button to run these 2 functions ,

This one calls the box up
sbox_tween.onRelease = function() {
    box.tween("_y",Math.round(-40),2,"easeInOutExpo");

}
This one should put the box back in after doing the getURL request.
// Should put the box back where it was after finishing usage
<strong> SECOND FUNCTION CALL </strong>
sbox_btn.onRelease=function(){
         getURL(irelevant); 
         box.tween("_y",Math.round(+40),2,"easeInOutExpo");
}

Any help from someone who has encountered this ?

14 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
indusporus says

i don’t if you’ve found an answer for this question, but you can use the “onMOtionFinished” Event of Tween class to achieve what you’re trying to do: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003605.html

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003605.html

by
by
by
by
by
by