Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites. Exist some tutorial for this? Do you know what i mean? If no I will found some example.
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-17-2005, 02:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites.
Exist some tutorial for this?
Do you know what i mean?
If no I will found some example.
Easing Scrollbar
Hey,
Can anyone help me create this easing scrollbar...
http://www.stevemurray.com/flashindex.html
Thanks.
Easing Scrollbar
Hi guys,
I've been searching high and low for a tutorial on creating an easing scrollbar similar to those in use over at fontsforflash.com, but have only found things like flashloaded payperuse components and woudl obviously rather make my own..
Does anyone know of any good tuts on the subject or has a fla I ca take a look at? I'm really after something that can just ease/scroll my dynamic text content.
Thanks in advance..
Easing A Scrollbar..
Hi kirupians.. heheh well im trying to add "inertia" to this tutorial
http://www.actionscript.org/tutorial...II/index.shtml
i want when you scroll down the text kinda sliiiides... or boings, so its not so choppy .. if anyone knows this it would be MUCH appreciated!!!
Another Easing Scrollbar
I got a request and decided to package my scrollbar as a component at put it up for download.
There is of course already plenty of scollbars to choose from, and mine is not that special but quite flexible and very lightwieght (4k uncompressed).
It's not using the V2 framework to keep it lean and simple and it should be fairly easy to use I hope.
The features:
Can scroll one or several movie clips, text fields or buttons.
Responds to mousewheel, arrow keys and page up/down keys.
Configurable easing.
Fairly easy to alter style by simply editing the component.
Drag area that resizes with the amount of content to scroll.
Can update when changing the size of the content to be scrolled.
Get the download here.
Easing Scrollbar?
Can anyone help to get an easing effect in the custom scrollbar by kirupa ( http://www.kirupa.com/developer/flash8/scrollbar.htm )? I saw an old post by MichaelxxOA in the forums on this topic ( http://www.kirupa.com/forum/showthre...=206127&page=3 ) , but did not get the code to work...
Scrollbar Easing
Hi guys,
I've been searching high and low for a tutorial on creating an easing scrollbar similar to those in use over at fontsforflash.com, but have only found things like flashloaded payperuse components and woudl obviously rather make my own..
Does anyone know of any good tuts on the subject or has a fla I ca take a look at?
Thanks.
Easing Scrollbar
Hi guys,
I've been searching high and low for a tutorial on creating an easing scrollbar similar to those in use over at fontsforflash.com, but have only found things like flashloaded payperuse components and woudl obviously rather make my own..
Does anyone know of any good tuts on the subject or has a fla I ca take a look at? I'm really after something that can just ease/scroll my dynamic text content.
Thanks in advance..
Easing Scrollbar
hi does anyone know how to make a scrollbar that when you drag it it blurs?
if they do please post it
thanks
MX2004 Scrollbar With Easing
Anyone know of a good place or have some source code for a textbox & scrollbar with ease?
I would like to be able to load an external text file, apply CSS to it, and have motion easing when you drag the scrollbar.
Any help would be much appreciated!
Thanks,
Cody
[F8] How To Actionscript Easing For Scrollbar
Hi, I hope someone can help me with this.
I need help with using actionscript to ease/add inertia to scrolling of a movie clip that is controleld by a scroll bar. I hope this could prove more fruitful than other posts on this because I have the scroll bar working, it just works like a normal scrollbar and doesn't ease.
You can view my testing page here
The actionscript basically produces a number which the main content is moved by. It really isn't a complicated setup but I will post my source if someone needs it.
I was previously told setInterval might work but I haven't had any success with that.
Thanks
Custom Scrollbar With Easing
can someone point me in the direction of a good tute or info on creating a scroller mc with easing? The scrollbar type NOT the up and down buttons that require a mouseclick.
I want to be able to scroll mc's based on the vertical or horiz. position of a custom scrollbar made in photoshop.
not interested in skinning pre-built flash components quite yet...
I'm interested in figuring out how to set up the scrolling function based on the height of my content and all that good stuff...
i've been trying to dissect several posted .fla's but can't quite figure out how to get the code working with my specific graphics/objects...
any pointing in the right direction is appreciated!
MX Scrollbar Component Easing?
hey all I know ive seen ppl use easing on scrollbars before, although Im not sure if they were components....does anyone know how this is done exactly?
Easing The MX Scrollbar Component?
Has anyone achieved this yet?
I found a thread on the actionscript.org forums where someone managed to create an easing effect that can point to X and Y values of the content and move there with easing, but the scrollbar itself isn't eased.
Can anyone point me to a tutorial or thread on how to make the scrollbar in flashMX easing?
Thanks
Problem With Easing Scrollbar
Hi there,
can someone help me with thisone: I've used the script from this board that was posted a week ago I presume.
ActionScript Code:
fscommand("allowscale", "false");_root.main.attachMovie("boxContect", "boxContect", 1)bar.useHandCursor = false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() { drag = true; this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height); dragger.scrollEase();};dragger.onMouseUp = function() { this.stopDrag(); drag = false;};bar.onPress = function() { drag = true; if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) { this._parent.dragger._y = this._parent._ymouse; this._parent.dragger._y = this._y+this._height-this._parent.dragger._height; } else { this._parent.dragger._y = this._parent._ymouse; } dragger.scrollEase();};bar.onMouseUp = function() { drag = false;};moveDragger = function (d) { if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) { clearInterval(myInterval); } else { dragger._y += d; dragger.scrollEase(); updateAfterEvent(); }};up_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () { clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() { this.onEnterFrame = function() { if (Math.abs(dy) == 0 && drag == false) { delete this.onEnterFrame; } r = (this._y-y)/(bar._height-this._height); dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction); main._y += dy; };};
this was the script so if I try to load some thing dynamicly into the main MovieClip, it works but the scrollbar doesn't works properly, he doesn't noticed that the height from main has changed.
Can someone help me.
thx Kind regards
Flax
As2.0 Scrollbar With Easing Effect
this is probably a cliché problem, but how do you work out a scrollbar with ease ?
I know how to use easing pretty well on anything else, I just can't get it to work on my scrollbar
any tips ?
cheers!
Easing The MX Scrollbar Component?
Has anyone achieved this yet?
I found a thread on the actionscript.org forums where someone managed to create an easing effect that can point to X and Y values of the content and move there with easing, but the scrollbar itself isn't eased.
Can anyone point me to a tutorial or thread on how to make the scrollbar in flashMX easing?
Thanks
Problem With Easing Scrollbar
Hi there,
can someone help me with thisone: I've used the script from this board that was posted a week ago I presume.
ActionScript Code:
fscommand("allowscale", "false");_root.main.attachMovie("boxContect", "boxContect", 1)bar.useHandCursor = false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() { drag = true; this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height); dragger.scrollEase();};dragger.onMouseUp = function() { this.stopDrag(); drag = false;};bar.onPress = function() { drag = true; if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) { this._parent.dragger._y = this._parent._ymouse; this._parent.dragger._y = this._y+this._height-this._parent.dragger._height; } else { this._parent.dragger._y = this._parent._ymouse; } dragger.scrollEase();};bar.onMouseUp = function() { drag = false;};moveDragger = function (d) { if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) { clearInterval(myInterval); } else { dragger._y += d; dragger.scrollEase(); updateAfterEvent(); }};up_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () { clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() { this.onEnterFrame = function() { if (Math.abs(dy) == 0 && drag == false) { delete this.onEnterFrame; } r = (this._y-y)/(bar._height-this._height); dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction); main._y += dy; };};
this was the script so if I try to load some thing dynamicly into the main MovieClip, it works but the scrollbar doesn't works properly, he doesn't noticed that the height from main has changed.
Can someone help me.
thx Kind regards
Flax
How Do You Make A Easing Scrollbar
Hi all, I was just wondering if anyone knows how to do a scrollbar with easing. I'm looking to scroll a dynamic text box (the contents will be loaded from external sources, in my case from a mySQL database using PHP). I saw this effect in numerous websites already but can't seem to be able to do it at all..
a very nicely done scrollbar would be from this website. http://www.advanceflash.com/ This website scrolls more than html text I suppose.
thanks for any help..
Making A Custom Scrollbar With Easing?
hey was just wondering if anyone could give me a kickstart with any tutorials or anything? i was hoping to make one like the flashloaded one etc..
aiming to make it work with dynamic text though
Resizing Mask, Easing Scrollbar Problem
hey, i used the example for an easing scrollbar that someone made on this forum (sorry cant remember who).
as shown here, the scroller works fine working
however you can see that the area to scroll is too small and id like to enlarge it a bit.
So i tried enlarging the mask and the textfield, now heres the problem..
broke
look at the way the dragger for the scrollbar moves position and goes all off..
i looked through the AS but only really found how i can change the _x value..
so i was wondering if anyone could help me enlarge the textfield and mask but keep the scrollbar working nicely as it used to.
FLA for the working copy is here
Mayan
A Simple Scrollbar With Easing, But A Small Glitch.
I believe it was here that I once found this custom scroller. The problem is this: when you first use the dragger it spontaneously shifts a couple pixels to the left. I tried putting it into this position physically before publishing thinking it wouldn't show if it already starts in the correct place. But it still shifts. That lead me to assume it was in the AS and that the starting position defined in the AS caused this. But for whatever reason I am still overlooking it. Anyone wanna find a quick solution?
http://www.justforthealofit.com/sample/jjScroller.fla
Furthermore, according to the movieclip properties, the dragger is at 404.4 for x position. But I put a trace(dragger._x) at the very top of the code and it reports that the initial x position is 409.85. If I change the x position and test, the reported number is always greater than what it really is. And no matter what, the left shift still occurs when the dragger is first clicked.
PLEASE HELP Easing Scrollbar Code Needed To Add Mouse Wheel Function Not Working?
Hi,
I really appreciate some help here is the code below for my scrollbar which works fine but I can't get the mouse wheel code to work (I've taken it out since) How to add a mouselistener and get it to work with my scrollbar? Apparently some simple code but when I put it in nothing works please help if you could add the code in my code that might work.
I think I need to add some code that listens to the mouse wheel? PLEASE HELP! I only know VERY basic action script.
HERE is the code:
//Scrollbar Control//
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 0;
friction = 0.3;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,
I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.
At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.
I am not sure how to do this as I have just used the built in Flash components to get what I have so far.
Any help is appreciated.
Thanks,
Martin
Easing Text
can anyone point me to a good tutorial on how to ease text in a scroll pane, or scroll bar
Easing Text Box...
Hey all,
Have you seen those 'easing' text boxes on some web sites?
I would like to know if theres a tutorail on the net on how to make them before a take a shot at making it my self.
i googled it but nothing really came up...
my text will by dynamicailly loaded so i would think i'd use the maxscroll paramter to get me the max end of the text field that link a scroll bar's x axis to proportionally scroll the text box. am i on the right track.
Easing Text Box...
Hey all,
Have you seen those 'easing' text boxes on some web sites?
I would like to know if theres a tutorail on the net on how to make them before a take a shot at making it my self.
i googled it but nothing really came up...
my text will by dynamicailly loaded so i would think i'd use the maxscroll paramter to get me the max end of the text field that link a scroll bar's x axis to proportionally scroll the text box. am i on the right track.
Easing Text Area
i want to make a text area that moves with easing, i will be using pixel fonts so it needs to move on whole pixel coordinates. At the moment i'm using a scrollbar to move it but this could just as easily be buttons. I know that i need to place the text area inside an mc and target this mc but beyond that i'm stumpted, any help would be much appreciated.
Easing Text Window
can someone show me how to make a scrolling text box like this one:
http://free.onebyonedesign.com/
I have one that loads text through actionscript and the arrows work and all, but I would really like the scrollbar as well as the easing effect. Thanks.
Easing Text Scroller
Hi Guys. Hope someone can help.
I've been using the same easing text scroller on my projects for a few months now and it works fine, but I've just noticed (after looking at other sites) that the one I'm using isn't very smooth. but when I scroll I find that the text changes between clear and fuzzy, even if I use pixel fonts? I can understand why but I've been looking at some which dont go fuzzy at all.
Does anyone know any tips for a good easing scroller that keeps the text clear or point me to a tutorial/fla file?
Is it something in the script to say only move in integres so that the text stays clear??
Thanks guys. Phil
Dynamic Text In Easing
When I use an easing menu I can't use dynamic text to improve my font. When I use it dynamic it's gone . The easing still works but there isn't any text on it. That isn't a problem if the entire site had static text. But i've used only dynamic text and then it looks crummy. Is there a way to still use dynamic text in my easing?
Dynamic Text 'easing'
i would really like to learn how to make scrollable text 'ease' up and down. an example would be the news section of the 2210 media site (http://www.2210media.com/main/flash.html). if anyone could point me in the direction of a tutorial, that would be great. also, would it require a special text scroller to be created? just curious...
thanks!
trig
Scripted Easing Text
I'm looking for a way to program some sliding text - slides to the center of the stage, pauses for a second then slides down off-stage while a new line of text slides to the center of the stage. Rinse and repeat. I would like to loop a certain number of these text clips indefintely.
Here's what I have so far - using the Tween class and setInterval but I'm open to any slick scripted solution. The more over the text movement and timing of the clips the better. Note that there's a 3 second delay before the text enters the stage:
http://www.tornedgedesign.com/_test/...ease_text.html
Work files:
http://www.tornedgedesign.com/_test/kirupa/ease.zip
Dynamic Text In Easing
When I use an easing menu I can't use dynamic text to improve my font. When I use it dynamic it's gone . The easing still works but there isn't any text on it. That isn't a problem if the entire site had static text. But i've used only dynamic text and then it looks crummy. Is there a way to still use dynamic text in my easing?
Text Scroll With Easing
Hi guys!
Guys need you help (Action script masters) i have a flash project with text scroll,
and the clients wants no ordinary text scroll, they wanted a text scroll with easing, just like what www.zfort.com has,( for those flash gurus-how do you handle this one) ive been searching for a week now, from flash kit to kirupa, but havent find one. guys hope you could help me out here!!, a source file would be great so i could figure out how its done.
thanks a lot!!!!!
Easing Text Field
Hey
Trying to create my own text scroller using my own code so i completely understand whats going on. Problem is my logic is messed up so need for someone to look at my code and tell me where the wholes are in the logic.
The problem i am having is when i make a call to the eastTo function, where i am trying to ease the text field to a new resting position, the behavior gets really messed. It works correctly the first time you release the button, but then breaks after that. Well it works the first time if you don't scroll up for too long. I think the issue is that the y position of the target text field goes from being a positive value on the stage to a negative value which throws off the logic in the easTo function.
here is the FLA file
http://www.imagesbystone.com/custom_scroller.zip
and Here is the code i have created so far.
btw aboutText is the instance name of my text MovieClip
any help is very much appreciated
////////////////////////////////////////////////////////////////////////////////////////////
var interval:Number;
var interval2:Number;
btn_1.onPress = function() {
interval = setInterval(scrollDown, 3, aboutText);
updateAfterEvent();
}
btn_1.onRelease = function() {
clearInterval(interval);
var nPosition:Number =-( _root.aboutText._y+50);
interval2=setInterval(easeTo, 3, nPosition, aboutText);
updateAfterEvent();
//trace(nPosition);
trace(_root.aboutText._y);
}
//This function moves the target text field down
function scrollDown( mText:MovieClip ){
if(mText._y<= -710 ) {
clearInterval(interval);
}
else
mText._y = mText._y -1;
}
//This Function slows the target text field down once the user released the scroll button
function easeTo(nPosition:Number, mText:MovieClip)
{
if( mText._y<= nPosition ) {
clearInterval(interval2);
}
else
mText._y = mText._y +(nPosition - mText._y)/100 ; //this equation finds the distance between the target text and nPosition
}
Scrolling Text With Easing?
Does anyone know how to scroll text with easing? I am looking for a tutorial that will show me how to do it.
Text+easing = Blured Text
I want to make horizontal easing that depends on stagewidth. I have made all coding and it works fine, but text in easing MC becomes sometimes slightly blured. I use pixel fonts and the start position is a round number: x.0 y.0
Is there any way to put some variable that makes corrections, like in some scrollers? Maybe it’s impossible because when someone resizes browser window it isn’t on round number, or it is?
Easing Text Prototype Problem
Hello there,
I want to use a prototype for easing text on a text field.
So far the one I'm using works fine until I add another movieclip and I use the same prototype.
Here is my code,
Any ideas why this is happening?
Thanks
ActionScript Code:
loadVarsText = new LoadVars();
loadVarsText.load("news.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace ("Done loading news");
newsmain.scroller.html = true;
//trace("* " + this.news.toString());
newsmain.scroller.htmlText = this.news;
newsmain.scroller.autoSize = "left";
trace("Text height: " + newsmain.scroller._height);
trace("Mask Height: " + mask_mc._height);
if(newsmain.scroller._height <= mask_mc._height){
up_btn._visible = false;
newsdragger._visible = false;
bar._visible = false;
down_btn._visible = false;
}
trace("TEXTFIELD HEIGHT: " + newsmain.scroller._height);
trace("CLIP HEIGHT: " + newsmain._height);
offset = newsmain._height - newsmain.scroller._height;
trace("OFFSET: " + _level0.thumbsnews_mc.offset);
bottom = (newsmain._y+mask_mc._height-newsmain._height-space)+offset;
} else {
trace ("not loaded");
}
};
stop();
fscommand("allowscale", "false");
bar.useHandCursor = newsdragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 5;
y = newsdragger._y;
top = newsmain._y;
bottom = newsmain._y + mask_mc._height - newsmain._height - space;
newsdragger.onPress = function() {
drag = true;
trace(this._parent._name); //thumbsnews_mc
trace(this._name); //newsdragger
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
newsdragger.scrollEase();
};
newsdragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.newsdragger._height) {
this._parent.newsdragger._y = this._parent._ymouse;
this._parent.newsdragger._y = this._y+this._height-this._parent.newsdragger._height;
} else {
this._parent.newsdragger._y = this._parent._ymouse;
}
newsdragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((newsdragger._y>=y+bar._height-newsdragger._height && d == 1) || (newsdragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
newsdragger._y += d;
newsdragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 20, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
up_btn.onRollOver = function() {
this.gotoAndPlay("over");
};
up_btn.onRollOut = function() {
this.gotoAndPlay("out");
};
down_btn.onRollOver = up_btn.onRollOver;
down_btn.onRollOut = up_btn.onRollOut;
up_btn.onPress = function() {
this.gotoAndPlay("down");
myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function() {
this.gotoAndPlay("down");
myInterval = setInterval(moveDragger, 20, 1);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
//trace("news** " + this._name);
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-newsmain._y)/speed)*friction);
newsmain._y += dy;
// trace(newsmain._y);
};
};
Adding Easing To Text Slider
Can anyone advise on on how to add easing to my text slider?
here's my code:
ActionScript Code:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {
scrollText.text = e.target.data.main;
}
myTextLoader.load(new URLRequest("main.txt"));
//scrolling
scrollBar.addEventListener(MouseEvent.MOUSE_DOWN, dragSlider);
stage.addEventListener(MouseEvent.MOUSE_UP, dropSlider);
var bounds:Rectangle = new Rectangle(scrollBar.x, scrollBar.y,0,70);
var dragging:Boolean = false;
function dragSlider(event:MouseEvent):void
{
scrollBar.startDrag(false,bounds);
dragging = true;
}
function dropSlider(event:MouseEvent):void
{
scrollBar.stopDrag();
dragging = false;
}
function checkSlider(event:Event):void
{
//if(dragging){trace("scroll");}
scrollText.scrollV = Math.round ((scrollBar.y - bounds.y)* scrollText.maxScrollV/70)
}
stage.addEventListener(Event.ENTER_FRAME, checkSlider);
function textScrolled(event:Event):void
{
scrollBar.y = bounds.y + (scrollText.scrollV * 70/scrollText.maxScrollV);
}
scrollText.addEventListener(Event.SCROLL, textScrolled);
Text Easing In Without Mouse Clicking
looked at the tutorial in for text easing on mouse click i took out the mouse click funcion. now what do i do now? need some understanding. I take out the mouseclick function
Code:
onClipEvent (load) {
_x = 600.4;
_y = 535.4;
speed = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
now it starts out aht onClipEvent(load)
but it ends up in 0.0 / 0.0
I dont understand how i would change the OnClipEvent (enterFrame) code to make it move where i want to go.
Mc Resize Via Text Input With Easing
Okies,
Thanks before to tha legends who helped me with an easy problem.
I have a movieclip (flooring) that resizes via text input. Now i want to add easing to that.
I have posted a fla with both easing and text input examples...
any takers??
Thanks....
|