![]() ![]() |
Mar 24 2009, 07:12 PM
Post
#1
|
|
![]() Advanced Member ![]() ![]() ![]() Group: New Members Posts: 349 Joined: 1-August 03 From: Berlin Member No.: 1463 |
Hi,
the very funny content scroller from brian (here and here in deutsch/german ) can extend with a few line of code with easing. Step by Step: 1. Make with object attribute context menu all script editable 2. go to function doObjectScroll() - > search for this: CODE eval(this.scrollTarget)._y = this.startY - totDist; replace with this CODE eval(this.scrollTarget).easeY(this.startY - totDist); 3. go to onSelfEvent(load) { and write below: CODE MovieClip.prototype.easeY = function(y){ this.onEnterFrame = function(){ this._y = y-(y-this._y)/1.2; if(this._y > y-1 && this._y < y+1){ delete this.onEnterFrame } } } 4. Save component back to your component directory When using Objectmode... objectmode has easing scrolling. Best wildthinks -------------------- »Swishmax 2 Components: Animation - Effects, Video, Picture Gallery and more [EN]!!Professionelle Komponenten [DE]
» Amazing Swishtemplates from 19.95 € Die größte deutschsprachige SwishSeite...Downloads, Videotutorials, Forum! und vieles mehr. ::SWiSHZONE.de-professionelle Flashtools:: |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 01:48 PM |