A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Converting timeline tween to as3

Threaded View

  1. #5
    Senior Member
    Join Date
    Oct 2005
    Posts
    198
    Hi 5Five555,

    yes, I am aware of the yoyo property...but I would be using the reverse property as I want the animation to reverse on a RollOver event attached to a different clip. I think my major issue is that I put that attached flas timeline into the main fla's library and that is where converting it to pure as3 using TweenMax got really confusing as I had to scale down the original clip to ~25% of the initial size ,reposition it and figure out the time per tween based on a new fps rate. The main fla runs at 41 fps and I think the one I posted was 24 fps. So, in order to replicate the animation through TweenMax I was trying to calculate the new values based on the new smaller size and new positions and framerate. I don't know, the math got a bit complicated and the resultant animation was really off. So what I was hoping is that someone could take that fla and figure out some code I could use which wouldn't be so hard coded as my numbers were all wrong, so that I could just have variables storing the initial positions(scale? And fps)and then just be able to place the sticker wherever I wanted(at whatever scale)and have it work. What would you suggest I do about the inline functions, as I believe there are around 4 tweens each for the sticker back and its mask that need to fire sequentially?

    Thanks,
    ---Yvette
    Last edited by yvillicana; 04-07-2012 at 04:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center