4145 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer 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
  • Exclusive Author
  • Has been a member for 4-5 years
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