4600 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by