Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Toni

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Toni

  1. Hi Jack,

     

    I understand, no problem :)

    Was hoping there was a post that covered something like this already, and I just missed it.

    Oh well, gonna dive in myself.

    If I come across some concrete GS roadblocks, i'll let you know

     

    Thanks,

    Toni

  2. Hello,

     

    My challenge is getting this to work:

     

    Client delivers csv file

    as3 script parses csv file and maps data into variables

    variables are placed into symbols

    symbols are animated (with GS)

     

    note: in the future html5 animation will be used, client prefers it this way for now

     

    I think at some point I need to work with a loaderclass but since i'm new to coding animation and with all the documentation on the web it's hard to know where to start, so I thought go ask the Yoda of animation: Greensock :)

     

    Kindly advice

     

    Many thanks,

    Toni

  3. This is it!

     

    I was using callbacks and appendMultiples to control when a certain tween should fire.

    I thought I could use appendMultiple to create overlapping tweens and use addCallback to let this overlap overlap another tween.

     

    I see now that the position parameter in combination with labels is what i should be using instead.

     

    Will be reading up on the to() and from().

     

    Could you provide me with a link or example when I should use appendMultiple.

    I understand you can use it for nested timelines, but in this case it's clearly not the right way to go.

     

    I want to better understand the difference and be able to identify when I should use what method 

     

    T.

  4. Hi,

     

    Package: GSAP 12 AS 
    I'm trying to use the addCallback function like this:

    public function Main() 
    { 
    
    // instantiate new TimeLineLite
    tl = new TimelineMax({}); 
    
    tl.append(TweenMax.from(optie_1, .5, {alpha:0, ease:Back.easeOut}));
    
    tl.addCallback(swapOne, tl.duration);
    
    tl.append(TweenMax.from(of, .5, {alpha:0, ease:Back.easeOut})); 
    
    tl.append(TweenMax.from(optie_2, .5, {alpha:0, ease:Back.easeOut}));
    
    tl.append(TweenMax.from(actie, .5, {alpha:0, ease:Back.easeOut})); 
    
    } 
    
    function swapOne(){
    trace ("addCallback works");
    tl.appendMultiple([ TweenMax.to(beeld_1, .5, {alpha:0}),
    TweenMax.to(beeld_2, .5, {x:180, alpha:1, ease:Back.easeOut})
    ], .2, TweenAlign.NORMAL, 1);
    }
    
     
    Problem is that addCallback  runs after the other tweens.
    I've read and watched tuts but can''t find what i'm doing wrong.
     
    What concept am i missing?
     
    Thanks in advance
     
    T.
     
×