Jump to content
Search Community

Search the Community

Showing results for tags 'sending a value oncomplete'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hello everyone I wonder something about TweenMax, onComplete function. Normally when i use onComplete function its working just perfect but when i try to send a value like a movieclip, onComplete function starting with TweenMax. Here is my code : import flash.events.MouseEvent; import com.greensock.*; import com.greensock.easing.*; for(var i:int= 0;i<5;i++) { this["k"+i.toString()].buttonMode = true; this["k"+i.toString()].addEventListener(MouseEvent.CLICK, sendMyMC); } function sendMyMC(e:MouseEvent) { TweenMax.to(e.currentTarget,1,{x:400,ease:Back.easeOut,onComplete:KillMC(e.currentTarget.name)}); } function KillMC(name:String) { removeChild(this[mc]); } In this code I want tween first then removeChild but it just remove my mc on stage and i cant see that Tween :/
×
×
  • Create New...