http://www.mootorial.com/wiki/mootorial/02-class/01-class.extras#the-chain-class

On Thu, Jan 15, 2009 at 9:53 AM, Tim-10 (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

>
> Hey David, thanks for your reply,
>
> Ok, so in the mootools.net example:
> ---------------------------------------------------------------------------
>
> var myFx = new Fx.Tween('myElement', 'opacity');
> myFx.start(1,0).chain(
>     //Notice that "this" refers to the calling object (in this case,
> the myFx object).
>     function(){ this.start(0,1); },
>     function(){ this.start(1,0); },
>     function(){ this.start(0,1); }
> );
> ---------------------------------------------------------------------------
>
> I see what you're talking about. What I'm wondering about is how can I
> do a chain with objects other than 'myElement' and change things other
> than 'opacity'. I want the chain to change object a and then change
> object b and then change object c. Is there a way to do this?
>
> Thanks again -tim
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/Chain-function-doesn%27t-work-as-advertised%21-tp2160894p2163870.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/Chain-function-doesn%27t-work-as-advertised%21-tp2160894p2164154.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to