[Tweener] scrollbar API and tweener

Adrien realeon at hotmail.com
Sat Dec 19 04:05:00 PST 2009


Thanks a lot.
Adrian
Le 18 déc. 09 à 16:39, Zeh Fernando a écrit :

> Well, first you have to figure how to create and use the scrollbar  
> with no tweening engine whatsoever -- they may have examples of that  
> in their documentation. Then you can proceed to the stage of  
> tweening the value.
>
> It seems that after you've created a ScrollManager, you can set the  
> scroll property with:
>
>      scrollManager.setCurrentPosition();
>
> This means it's not something you can directly tween. You need to  
> create a property for that -- then either updating the value  
> onUpdate, or with a getter/setter for that. In the latter, it'd look  
> something like this added to your class:
>
>      protected var _scrollPos:Number;
>
>      public function get scrollPos(): Number {
>          return _scrollPos;
>      }
>
>      public function set scrollPos(__value:Number): void {
>          _scrollPos = __value;
>          scrollManager.setCurrentPosition(__value);
>      }
>
> Then you can tween it with:
>
>      Tweener.addTween(this, {scrollPos:10, time:1});
>
> Or use any other random tweening extension in the same way.
>
>
> HTH,
> Zeh
>
> On Fri, Dec 18, 2009 at 10:32 AM, Adrien <realeon at hotmail.com> wrote:
> I must say i'm not shure since there is a big amount of Classes.
> But on this page of the doc, concerning the  scrollManager Class,  
> there is the method move explanation.
>
> http://www.astorm.ch/scrollbar/doc/ch/component/scrollbar/ScrollManager.html
>
> the sources are here :
> http://wiki.mediabox.fr/_media/tutoriaux/flash/scrollbar/scrollbarapi19.zip?id=tutoriaux%3Aflash%3Ascrollbar&cache=cache
>
> Please don't bother if it's too much of a pain in the***
>
>
> Le 18 déc. 09 à 15:22, Zeh Fernando a écrit :
>
>> How do you set the scroll position (not using Tweener)?
>>
>> On Fri, Dec 18, 2009 at 7:21 AM, Adrien <realeon at hotmail.com> wrote:
>> Hello I'm working on a scrollbar
>> The author suggests to use the method move to do an effect on the  
>> clipContent...
>> I would like to use tweener to do that but I don't know how to do it
>> Help would be appreciated
>> Adrian
>>
>>
>>
>>
>> import ch.component.scrollbar.*;
>>
>>
>> import caurina.transitions.Tweener;
>>
>>
>>
>> var m:ScrollManager = sc.getModel().getScrollManager();
>>
>>
>>
>> m.move = function(target:MovieClip, property:String,  
>> value:Number):Void
>>
>>
>> {
>>    ///default should be :  target[property] =  
>> getVirtualPosition();                                  //????//  
>> Tweener.addTween(clipContent, {_y:100, time:0.8,  
>> transition:"easeInOutCubic"});}
>>
>> _______________________________________________
>> Tweener mailing list
>> Tweener at lists.caurinauebi.com
>> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>>
>>
>> _______________________________________________
>> Tweener mailing list
>> Tweener at lists.caurinauebi.com
>> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20091219/05ccb047/attachment.htm>


More information about the Tweener mailing list