4947 posts Community Mod Building awesome stuff for your mobile devices!
  • Had an item that was trending
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
+17 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 5 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