Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Convert Movieclip Scroller To Dynamic Text Scroller



I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-04-2008, 10:48 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Convert Movieclip Scroller To Dynamic Text Scroller
I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave

Convert Vertical Scroller To Horizontal Scroller
Hi have a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.
Can someone help ??
Below is the code for vertical scroller:
Thanks to anyone who can help.

//code by Billy T

//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;
line._x = 370;
//set the drag action of the dragger
//drag is restricted to the height of the mask
dragger.onPress=function(){
startDrag(this,false,this._x,0,this._x,theMask._he ight-this._height);
}
//stop the drag
dragger.onRelease=dragger.onReleaseOutside=functio n(){
stopDrag();
}
//set the mask for the text
theText.setMask(theMask);
//the scrolling animation
theText.onEnterFrame=function(){
/*set a variable
this variable basically stores info regarding what fraction of the total text
is being displayed through the mask and ensures that dragging the dragger
from top to bottom will reveal all the text.
this allows you to change the amount of text and the scroller will update itself
*/
scrollAmount=(this._height-(theMask._height/1.3))/(theMask._height-dragger._height);
//set a new target y position
targY=-dragger._y*scrollAmount;
//set the y of the text to 1/5 of the distance between its current y and the target y

//change the 5 to a lower number for faster scrolling or a higher number for slower scrolling
this._y-=(this._y-targY)/5;
}

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Text Scroller With Image With Mouse Scroller
Hi to all,
I have problem with flash. that i want to creat dynamic text & image scroller in scroller by creating custom scroller (not inbuilt component) That scroller i can scroll with help of mouse's scroller. (the mouse's scroller & image must be include in to the scroller box)
Help me !
Help me !
Reply me fast if u have solution for it!!!!

Regards,
Samual

Text Scroller Help - Scroller Won't Scroll Full Length Of Text?
I have a text scroller that calls for a external text file. I have 16 numbered items in the .txt file but only 12 items will scroll. Why is this and how do I fix it? Also, is there any way to format text in the .txt file so that it appears formatted in flash? Right now there is a bunch of spaces between the numbered items. Thanks anyone!!

Dynamic Text Scroller ...
I've got the scroll button working on my dynamic text box, but it only goes one line at a time ... how do I make it scroll as long as the button is pressed?? Here's the current code for the 'up' button ...


on (press) {
displaysupdates.scroll = displaysupdates.scroll-1;
}


Anyone?? Does it have something to do with the number of lines it's moving determined with the "-1" of line 2???

Thanks a million ... in advance ... hehehe.


greg
420
http://www.20202020.net

Dynamic Text Box Scroller
I am having issues making dynamic text change font colors. Here is the link to the site:

http://www.largelab.com/diplomatic/test/home.html

Click on links, and you will see the field I'm trying it on.

Here is the link to the .txt file if it helps. It is a long string, but at the end, where "The End" is, I have a font tag around it which isn't working.

http://www.largelab.com/diplomatic/t...data/links.txt


What am I missing?

Dynamic Text Scroller
Hi,

I got some text pulled out of a file and displayed in a dynamic text field which works fine. Is there a way to create a custom scroller for dynamic text so not the yuck default scroller I just want simple two buttons up down. The problem is once I create this using action script I discovered that dynamic text can't be masked out so my whole scroller is useless in this case. Is there a way to go around this ?

Cheers

Scroller And Dynamic Text Help
HI

i have flash mx2004 professional.
is there a way to change the color of the scrollbar and make the dynamic text box transparent. actually is there a scrollbar in this version cuz i can't seem to find it.

thanks

Need Some Help With A Dynamic Text Scroller
Hi I'm having some problems understanding the scripting in a file listed on this site, and also hope to make some modifications.

Here is the link to the file I am trying to figure out:

http://www.flashkit.com/movies/Scrip...5640/index.php

So everything works great, but if you run the file you can click on the top tab and you are able to drag the whole box around. I want to modify so that the text box is stationary.

The second thing I am looking to do is working with the location of the tab.. When the box is loaded, I want the box to stay in this spot, but when it is minimized, as you will see in the file, I want the tab to move itself to a new location. Then when the minimized tab is clicked to maximize, I want the text box to open in the original location.

Is this possible, and if so how do I modify the code? I'm a newbie, so please be gentle!

Thanks so much!

-patrick

Dynamic Text Scroller
Im working on adding a dynamic scrolling text area to a project and have been referencing these two tutorials.
http://www.flashkit.com/tutorials/I..._-640/more5.php
http://www.actionscript.org/resourc...-box/Page3.html

I am coming across a problem where my dynamic text box doesn't show up. Right now I have the main timeline with a movieclip containing the animation and content. Inside this movie clip, on its own layer is my containerMC with the text box, buttons and scripts. Any ideas or a different tutorial that may work better?

Thanks

Help For Dynamic Text Scroller
I am looking to create a good dynamic text scroller like the one that
is a component. Any one have information on how to make one it is
really appreciated.

Thanks
Randy

Scroller For Dynamic Text
I can make a scroller work for input text but when I do the same thing for dynamic it does not work ..whats the secrete or the action scripting I need to make my scroller work with the dynamic text box....I linked the scroller to the instance name of the text box and set the var to the txt file in the supporting yellow folder just like ya do for input any help here would be appreciated....

Dynamic Text Scroller
I've successfully created a dynamic text box which displays an external text file, and scrolls via up and down buttons that I created.

The problem I'm having is that on one of the text boxes, it displays the text, but when I go to scroll, it only scrolls about 2 clicks then just stops scrolling, when there are about four more paragraphs that are not showing up. It just won't scroll anymore.

And, the first scroll box that I have, it scrolls down with 4 or 5 clicks, and shows everything.

Any clue why the above mentioned scroll box would just stop scrolling when there is plenty more text to reveal.

Here's the actionscript I have on the first frame on that frame....
loadText = new loadVars();
loadText.load("exp.txt");
loadText.onLoad = function() {
expbox.text = this.exptext;
};

here's the actionscript on the down button:
on (press) {
expbox.scroll +=1;
}

Any help is greatly appreciated!!!!

Thanks!

Dynamic Text Scroller Box Help
Hi All,

I've been looking for a basic dynamic text scroll box - nothing fancy like the Flash default one, which I can customise.

I have several external .txt files which populate a dynamic text field in a movieClip based on the user selection. The movieClip needs to adjust the scroll bars according to the volume of text in the external file.

That's about the long and short of it. Thought this would be simple but it's driving me nuts.

I've searched many a flash web sites but no luck. I've even had a look at skinning the Flash one but it's way past my newbie experience.

Would greatly appreciate any help, suggestions, etc.


Thanks
T

Dynamic Text Scroller
So I've spent hours on this, and will be grateful beyond belief if someone can help me.

I followed this example, and the txt scroller bar is white with no controls. What am I doing wrong?

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Scroller And Dynamic Text
i am using the flash 8 scroller component with a dynamic text field.
The problem i am running into is that the xml takes longer to load than the scroller and the scroller does not seem to update itself once the dynamic text field is populated, any ideas?

Dynamic Text Scroller HELP
I'm trying to make a scroller just like in the attached image...

The text needs to be read from a .txt or xml file so I can easily update it outside of flash... and it must be right aligned too

I've been looking trough tons of other scrollers out there, but not one seams to be exactly what I'm looking for... It doesn't need easing or anything else fancy...

I'm sure some of the flash-experts in here know how to do this

Dynamic Text Scroller
Hello everyone!

I am having a problem that for the life of me I cannot figure out.

I have a text box that is being filled dynamically by some data being read from an XML file. That is working fine, but I want to make a custom scroll bar.

I have already created a slider like the one detailed in the Kirupa tutorial (here: http://www.kirupa.com/developer/mx/slider.htm), and that's what I want to use as my scoll bar... however I do not know where to go from here.

If anyone could give me a kick in the right direction it would be a great help. I have a deadline at work and I am going to lose my mind if I can't get this figured out.

Thanks,

--d

Scroller With Dynamic Text
I have been following this tutorial http://www.kirupa.com/developer/mx/textscroller.htm to create a scroller. I can get this to work when I just follow the tutorial and copy and paste the text directly into the text box, but I have been trying to load text from a .txt file and haven't been able to get the scroller to work. Originally before i included a scroller I was using this code to load my text into the dynamic text box: loadVariables("assets/Welcome_Home.txt", this); and had labeled the text box with a variable name of content. I'm not really sure how to get the text to load and the scroller to work. I can get the text to load from the txt file, but the scroller won't work. I've labled the instance of the dynamic text box as scroller. So basically I want to know what I need to do to get the scroller to work with loading dynamic text from the .txt file.

Scroller For Dynamic Text
I can make a scroller work for input text but when I do the same thing for dynamic it does not work ..whats the secrete or the action scripting I need to make my scroller work with the dynamic text box....I linked the scroller to the instance name of the text box and set the var to the txt file in the supporting yellow folder just like ya do for input any help here would be appreciated....

Dynamic Text Scroller
I've successfully created a dynamic text box which displays an external text file, and scrolls via up and down buttons that I created.

The problem I'm having is that on one of the text boxes, it displays the text, but when I go to scroll, it only scrolls about 2 clicks then just stops scrolling, when there are about four more paragraphs that are not showing up. It just won't scroll anymore.

And, the first scroll box that I have, it scrolls down with 4 or 5 clicks, and shows everything.

Any clue why the above mentioned scroll box would just stop scrolling when there is plenty more text to reveal.

Here's the actionscript I have on the first frame on that frame....
loadText = new loadVars();
loadText.load("exp.txt");
loadText.onLoad = function() {
expbox.text = this.exptext;
};

here's the actionscript on the down button:
on (press) {
expbox.scroll +=1;
}

Any help is greatly appreciated!!!!

Thanks!

Dynamic Text Scroller Help
I have a txt dynamic driven text reader that does display the text correctly in the dynamic text field however I am having trouble with the scroller. This is what i have so far.


this is the code I have in frame 1:
up_btn.onPress = function() {
    text1.scroll += 1;
};



I have 2 arrows to move it, this is the code for the up arrow button:

on (press) {
        text1.scroll = text1.scroll+10;
    }


It isn;t working - can anyone advise on what I am doing wrong or am missing here??

thanks!




XML Dynamic Text Scroller
Ok just throwing it out there. Does anyone have a FLA to share that is an XML based dynamic text scroller. If it has easing that would be even better. The one Ive been using for last 2 years doesn't seem to agree with CS3. All good things must come to an end I suppose. Thanks

Dynamic Text Scroller Like OS Scrollbars
Does anyone know of a good scroller that uses scroll bars but can be used for dynamic text from a database or text file and the text area is resizable? Thanks!

Dynamic Flash Text Scroller?
Hi, I need to create a text "scroller" for headlines on a website, that moves vertically (up and down) not horizontally (left to right) and brings in text dynamically from a text file. I know that dynamic text can be brought into a flash movie for a scroller horizontally, but can you create a text scroller box that moves Vertically? I can't seem to get it to work. Thanks!

Loading Dynamic Text With Scroller
While loading dynamic text (txt files using loadVariablesNum)

how do I get it to work while using the Flash MX scroller?

Help With External Dynamic Text And Scroller
can anyone help me ?
here is my situation.
my client wants an external .txt file that he can update himself,
the problem i'm having is that the external file wont load into a mc with a scroll bar? it only works without a scroll bar...

any help would be great thanks!!!

~Zain

find_zain@hotmail.com

Text Scroller With Dynamic Buttons...
Hi all,
Newbie to the forum, sp excuse any vagueness. I'm trying to construct a text scroller that is populated by links that refer to an external file eg a PDF. I know how to do a standard text scroller, dynamically fed etc, but I am lost now trying to solve this one.

Any help would be greatly appreciated. FYI, it is for a cd based product brochure with the PDF's containing the product info.

Hope this is clear enough & thanks in advance.

The Crate

More Dynamic Text/scroller Probs
Hey guys,
Ok I posted a problem last week I was having with Flash MX and dynamic text interaction with text files. Now I thought I solved the problem, however I'm still having small problems I'm not understading. Now on the site, which is currently up (http://www.cesium137.com), when you enter the site and click on the news section it brings up the Dynamic text however the scroll bar doesnt function. Now when you hit refresh and reopen the page it works. Every section subsequently does this. Does anyone know why this is or how to fix it?
i.r.

Loading Text Into A Dynamic Scroller
another dynamic scroller question
is there a way to load text that was created in word into a dynamic scroller or can you only use notepad.
also what would the script be to load the text into the script

Scroller Componet Htm Dynamic Text ?
Hi all
I have a dynamic text field which is attached to the UIscrollbar componendt. I have html render checked on the text field but it will not render. If I just use the text field with out attaching it to the scroll bar it will render. Is there a textfield scrollbar component out there that will render html. Or do I have to return to creating my own scroll bars. As I have a lot of text fields that will need this a component solution would be much better.

Dynamic Text Scroller Error
I'm using Flash MX to make a dynamic text scroller, but the output says:

"Error: A 'with' action failed because the specified object did not exist."

What's wrong? I'm new to flash and I've only managed to make scrollers by following a step-by-step tutorial. Which can be found at http://www.gurusnetwork.com/tutorial...xternal_text/2

Is there something wrong with this script:

on (press) {
with (down_script) {
gotoAndPlay (2);
}
}
on (release, releaseOutside) {
with (down_script) {
gotoAndStop (1);
}
}

Or do you think I've messed up something else? I'd really appreciate if someone would help me out.

Custom Scroller - Dynamic Text
Okay - I know that this has been asked several times and I apologize in advance for being a pest. About a week ago, Oldnewbie helped me out by providing an FLA file.

I still cannot get this thing to work. Is there anyone willing to have a peek and see what I am doing wrong?

Here are the specifics:

1. Please look at the "credentialscontentMC" movie clip. Here you will see what I am trying to do by using a custom made scroller where you can drag the heart shape down and see the text scroll.

2. The text does not even show up but the scroll bar does. I want the text to fade in when the user clicks on "Credentials" which is located in the drop down menu under "About Us."

3. Pleae note that this client was very adamant about using the horrific font - against my suggestion not to use it. I think it look ridiculous and is hard to read. But Whatever! I am so over it at this point.

4. I have only done About Us and Services as far as the drop down menu and content goes.

As always, any help is greatly appreciated!!

Denise

Scroller Not Adjusting To Dynamic Text
I have a dynamic text box that adjust in height according to how much text is inserted by xml. The problem is that my scroll bar is not recognizing that the text box has grown in length, therefore it doesn't scroll all the way.

I need to find a way to get the scroll to recognize that the text box has grown.

Help, please! Thanks!

Dynamic Text Scroller Not Working At All
Hi all,
I'm sure that you're all tired of these scroller questions but always run into problems when I use files or codes from the net. I don't know if somethings wrong with my flash program or not.
I'm building a lyrics retrieval page for my friend but the darn scroll buttons won't work as they have before.

Any help is appreciated.
Here's the file:

Help Needed For Dynamic Text Scroller
I am looking to create a good dynamic text scroller like the one that
is a component. Any one have information on how to make one it is
really appreciated.

Thanks
Randy

Dynamic Text Scroller In MX04?
Ok, I've done the "create a text scroller in MX tut." Works fine. I've opened that MX fla in MX04, again works fine. Here's the problem-if I try to create the same dynamic text box in MX04, it won't let me make the box smaller than the content it holds. Example-in the tut, the dynamic text box is 131 px high but holds 1100 px worth of text. If I try to make a new dynamic text box with all of the same parameters (dynamic, multiline) the text box will resize itself to fit the content inside. So I wind up with a textbox that's 1100 px high. What am I doing wrong? In the attached file, Kirupa's on the left & mine is on the right. Thanks

Hyperlinks In Dynamic Text Scroller?
Is there a way to display hyperlinks in a text scroller in which the text is dynamically loaded using variables? I'm talking about the basic text scroller tutorial here on Kirupa.

Adding Scroller To Dynamic Text Box?
hey guys,

Great site! I have a question tho. How do i add a scroller to my dynamic text box in flash mx 2004?

thanks in advance.

and thanks for every1s hard work on this community^^

Dynamic Text Scroller - Not The Component
Hi all,

Still new to flash... still asking dumb questions... sorry.

I found out how to use the Flash UI Component scroller through the kirupa tutorials, but I couldn't find anything on how to customize the scrollbar itself, or how to create your own (i.e. http://www.angryblue.com) Not to say that I want to make it grungy, I just want two little arrows at the top and bottom and a small slider bar (for placeholder-sake), But I can't find anything on this Anywhere.

If anyone could point me in the direction of a tutorial for this or just explain, I'd be very grateful! Thanks a lot!

J.

Claudio Scroller + Dynamic Text
I have a movie clip with a dynamic text box that is set to "autosize" according to how much content there is. It works really well, but the Claudio scroller is not recognizing that the text box has grown in length, therefore it doesn't scroll all the text.

How can I get claudio scroller to recognize that the text box has grown?

Thanks!

Dynamic Text Scroller Problem . . .
here's the deal.
i have 2 buttons that each load a different text file into a dynamic text box.

if i press the first button and scroll down on the first text file, when i press the second button to load the second text file, it loads the text scrolled down (to where the first text file was?) this is driving me bonkers . . .

how can i get it so that no matter how far i scroll in the first loaded text, the second loaded text will be loaded scrolled to the top? and then after scrolling text 2 pressing the button to load text 1 and have that scrolled all the way to the top?

also, i'd like to add some code to allow the scrolling up and down to happen on mouse press and not have to keep clicking

i've attached my flash mx file (and the text files-gibberish mostly). . . below is the actionscript code as well.

thanks!

peace,


here is the code on the buttons that loads text file 1:
--------------------------------------------------------------------
on (release) {
loadText = new loadVars();
loadText.load("manny.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.mannytext;
};
}
---------------------------------------------------------------------

here is the code on the buttons that loads text file 2:

on (release) {
loadText = new loadVars();
loadText.load("manny2.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.manny2text;
};
}

---------------------------------------------------------------------
here is the code on my down scroll arrow:

on (press, release, keyPress "<Down>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)<Number(scrollableText.maxsc roll)) {
scrollableText.scroll = Number(currentScroll)+1;
}
}

---------------------------------------------------------------------
here is the code on my up scroll arrow:

on (press, release, keyPress "<Up>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}

Cutomised Dynamic Text Scroller?
is there any way you can customise the look of the scrollbar component or use normal buttons with action script to scroll dynamic text in MX 2004 professional?

Dynamic Scroller With Html Text
Hi,



I have got the tutorial regards the html text with dynamic scroller. And I have also succeeded in implementing the same in my project. But here we can only add the text cannot apply the html tags eg: <li>, <strong>, <a href>, <src img>



We cannot add these in the text. This particular project that I’m working on has loads of images. I was thinking if we could add the image dynamically through the html file, which becomes easier to maintain the site. How do we get this done?


thanx
bncreator

Dynamic Text Scroller Scrolling Help
Hey i made a dynamic text scroller and it is too choppy


on (press, release, keyPress "<Up>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}

thats the code i use for the up and the down button though you gotta chnage somthings,but anyways is there anything i can do to make it scroll smooth like instead of

currentScroll-1

cuz it looks way too choppy and i want it too scroll smoothly


please help me thnx in advanced i greatly appreciaate it!!!!!!

Custom Dynamic Text Scroller
Hello everyone,

I, may be asking for to much, but I need to create a custom scrollbar with easing capabilities, which loads dynamic text from an external file or files. it does not sound like much to ask, but i am just a designer and I am trying to break my way into site development. Can some one please help me with this issue.

Dynamic Text Inside Scroller...
Does anyone know how to create a working dynamic textbox which loads a normal txt file inside this scrollbar? :

http://www.kirupa.com/developer/flash8/scrollbar.htm

Copyright © 2005-08 www.BigResource.com, All rights reserved