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








Xml Text Scroller


does anyone know how to make a dynamic scroller that reads all text from an xml file.

Kinda like a way to insert text into a movieclip without it having a set text field height..

any help is much appreciated.

brndn




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 08-15-2007, 01:54 PM


View Complete Forum Thread with Replies

Sponsored Links:

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

View Replies !    View Related
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

View Replies !    View Related
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!!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

View Replies !    View Related
Copy And Paste Of TEXT SCROLLER, CHANGING TEXT, To Stay For Each Section......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

View Replies !    View Related
Loss Of Text Formatting When Using Dynamic Text Field & Scroller
Hi all,

Using MX...

Another small problemo im having is when i format text in my dynamic text field and attch the scroller component to it, in preview mode i lose all the text format and it goes to the first text format it encounters and uses that for everything else in the dynamic text box.

Im not actually loading any text into the dynamic text box, im just using it with static text, so i can use the scroller component.(as i understand it, you can only attach the scroller component to a dynamic text box ??)

Why am i losing my text format AND is there a better way to have a scrolling text field when i just want to use static text...???

Thanks guys..hope thats not too confusing

Cheers

View Replies !    View Related
Dynamic Text Scroller (text Crawler?) NOT WORKING?
Hi, I am trying to make a movie that gets text from an external text file, and then scrolls it horizontally across the screen. I made a function that takes the object (movie clip with text) and moves it across the screen. it works fine except if the text is more than the width of the text field, i get this nasty trailing effect. it really sucks!

does anyone know a good way to do this? i would also like to be able to have mulitple texts, following eachother, and then looping to start over.

any info would be greatly appriciated!

-matt

View Replies !    View Related
Vertical Text Scroller That Works From Dynamic Text.
found this which is handy:

http://www.scriptocean.com/

but does not allow for external txt files to feed the info to it.

can anyone help me with a version of this ticker but with the use of an external txt file.

I want the file to link to a txt or xml file that can feed the swf file animation.

Thanks

View Replies !    View Related
Vertical Text Scroller That Works From Dynamic Text.
Vertical Text scroller that works from dynamic text.
found this which is handy:

http://www.scriptocean.com/

but does not allow for external txt files to feed the info to it.

can anyone help me with a version of this ticker but with the use of an external txt file.

I want the file to link to a txt or xml file that can feed the swf file animation.

Thanks

View Replies !    View Related
Cannot Paste Text Into Action For Text Scroller-i Get An Error
Hi guys!

ok hehe can anyone tell me whats going on here??? I am using a pritty cool little text scroller and need to use about 10 versions of the same one im doing in a flash file..so about on 10 different scenes.Anyhow for some reason this text here works when i copy it into the action for the text scroller:


content.expList = "Vibez Recordings was set up in '95 as an artistic outlet for London based, urban music producer, Dave Stewart - otherwise known as SUBJECT 13. The Vibez imprint offered its own unique brand to the sound of Drum and Bass, enabling the independent to gain credibility and critical acclaim within the genre. Through the fusion of jazz, funk, ambient soundscapes and deep drums, Vibez defined its sound as experimental and forward thinking..<br><br>"+"Subject 13's initial releases on Vibez Recordings and tracks such as 'Oceans' on Fabio's Creative Source imprint and 'Faith' on LTJ Bukem's Good Looking Records, have cemented '13 and Vibez as one of the original pioneers of the DnB sound, gaining him recognition in the UK scene and from abroad. After signing solo album 'Disclosed Knowledge' to Sony Japan, the 'Vibez Presents' compilation enabled Stewart the unique opportunity to highlight some of his talented new producers at Vibez Recordings, facilitating the international distribution of their music whilst developing Vibez growing status in the Far East..</font><br><br>"+"Vibez has always let the music do the talking and with 27 single releases, 2 albums and 1 compilation under its belt has managed to keep production quality and artistic values at a high level throughout its history. With artists hailing from places such as Russia, Estonia, Sweden, Holland, Finland & Germany, and affiliations with majors Sony and EMAP Performance Network, Vibez has always prided itself with diversification and experimentation of styles.<br><br>"+"Those of you familiar with Vibez will not be surprised at the development of styles that the label has undertaken for it's new wave of releases. With sister label Pauze set to release an eclectic format of music and Vibez concentrating on experimental DnB, with Artists such as Alaska, Nucleus and Seba contributing, expect more innovative and groundbreaking releases form the label.";



AND THIS TEXT DOES NOT WORK..IT HAS ALL SAME CODE BUT DOES NOT?:


content.expList = "Liquinova is: Sean McCaff (DJ-Producer)& Sven Figee (Keyboards/Producer)Sean McCaff and Sven Figee first started working together in 1998 on a lounge/dance project for the "Waterloo/Le Zoo" compilation (NY, USA), which had great reviews in the New York magazine "Time Out"...<br><br>"+"Having realized they had a great vibe when working together in the studio creating new sounds and beats, they decided to take things seriously.Liquinova was born.Combining the dance/electronic/DJ background of Sean McCaff with the musicianship and "acoustic" experience of Sven Figee, the Liquinova sound was released..</font><br><br>"+"Liquinova just licenced 5 tracks to Club Cocoon (The Hague, Holland) for their special anniversary lounge-cd, mixed by DJ Menno.In addition, PAUZE Recordings (London, UK) got some tracks coming out on their new "Pauze" compilation series – Volume 1 , Eclectic Development that is being launched autumn 2004.Liquinova is currently working on their first album, planned to be released winter 2004.This album will be a result of creative collaborations with various artists like Rose (vocals), Dez (vocals), Fammy (vocals), Bart (sax), Victor Muli (vocals), Subject 13 (vibez productions), DJ Menno and DJ Ramon..<br><br>"+"Get ready for a dive into the world of Liquinova.";


THE ACTIONS ON THE CLIPBOARD CONTAIN ERRORS-ACTIONS WITH ERRORS CANNOT BE PASTED IN NORMAL MODE IS ERROR I GET WHEN I TRY TO COPY PASTE TEXT.
IF ANYONE CAN HELP TELL ME WHY ID BE REALLY PLEASED!!THANKS DUDES!

CC

View Replies !    View Related
Creating My OWN Text Scroller For Text Loaded From A .txt File?
im loading my text from an external .txt file... and i know how to make a regular flash component scroller scroll this... but how would i make MY OWN text scroller... just like an up and down arrow...

i tried the one in the kirupa tutorials but it was for flash 5 and it didnt work for me...

View Replies !    View Related
Loading External Text Files Into A Text Scroller
hello,
i'm second guessing my methods of loading info. from a text file into a text scroller , i've created. what i have is a text scroller, but depending which button i press, i would like new content loaded into that textfield(scroller) I sorta have an idea, but not sure of the procedure ..can some help ...Cheers!

View Replies !    View Related
Text Scroller - Adjusting Scollbar As Text Changes
I've created a simple dynamic text scroller and have a question relating to the scrollbar - the files for this can be downloaded at:

http://www.weazelweb.co.uk/dump/dyntextmx.fla
http://www.weazelweb.co.uk/dump/text1.txt
http://www.weazelweb.co.uk/dump/text2.txt

and the SWF file can be viewed online at

http://www.weazelweb.co.uk/dump/dyntextmx.html

The movie is dead simple, when you reach a certain point in the timeline, the text changes.

Unfortunately, in my second text file the content is much shorter but the scrollbar does not adjust to the size of the new text - it just remains the size of the first one. Even though the text doesnt move, the scrollbar can still be pulled up and down.

If I change the text files around so that the smaller one opens first, then I get no scrollbar at all for either.


Any suggestions as to sorting this problem out - puh-lease.... thanks.

View Replies !    View Related
Text In Dynamic Text Scroller Not Showing
I have a main movie that loads another movie on level 100, but doesn't show the dynamic text file the second movie is supposed to load. if you just play the second movie it loads fine. what have i done wrong?

View Replies !    View Related
Addin Text Scroller To Text Filed
hey guys,,

im trying to add a scrollbar to a text field

when i drag the scrolbar from the componets onto the text field in a new movie it works ok.

however the exisiting movie im trying to modify wont have a bar of it.

i have the text box set as dynamic text etc.. when i drag the scrollbar onto the field it doesnt automatically position..

any ideas?

cheers
vamps

View Replies !    View Related
Basic Text Text Scroller Hyperlinks?
Header says it. this is a great little tutorial but what piece of code needs to be put in the value window to make a hyper link show up as clickable? Thanks so much

elkq

View Replies !    View Related
Addin Text Scroller To Text Filed
hey guys,,

im trying to add a scrollbar to a text field

when i drag the scrolbar from the componets onto the text field in a new movie it works ok.

however the exisiting movie im trying to modify wont have a bar of it.

i have the text box set as dynamic text etc.. when i drag the scrollbar onto the field it doesnt automatically position..

any ideas?

cheers
vamps

View Replies !    View Related
Text Scroller
What is the script to make a text scroller?
I've tried a few, anyone know one?

View Replies !    View Related
Text Scroller
Can anyone help an old dog do a relatively new trick?
I've been trying to understand actionscript for a while now and can never seem to grasp anything more than goto next frame when it comes to scrollong text vertically. Could someone help with scrolling text smoothly with one onPress instead of lots of clicks. I know this involves setting up variables...but to tell you the embarrassing truth I'm not that clued up on this.....but I'm willing to learn if anyone has the patients with a dumb ass like me.
Cheers

View Replies !    View Related
MC Text Scroller....
Hey Guys,

I was wondering if anyone out there knew of a really nice text scroller..

the problem is it has to go into a MC which means it has to have onclip event handlers and has to have a text file where i can input the text..

i have tried fk movies but cannot find any..

any help would be greatly appreciated..

thanx
mdesign

View Replies !    View Related
Text Scroller
I have read every tutorial in existance, even those that practically hold your hand, and I still do not understand how to make a working scrollbar in flash. If anyone could let me know how this works, or point me to a tutorial that works, it would be greatly appreciated. Thanx.

View Replies !    View Related
Please, Some Text Scroller Help
I can't figure it out. Its a simple text scroller that scrolls text from a .txt file. But when I'm scrolling it, it suddenly stops scrolling the text half way down. As well, the spacing is all messed up. There are huge gaps between text, but on a Mac there are no gaps?? Would the scrolling length have something to do with the actions that make the text scroll? Would I maybe have to set a specified ......um, length value for it to properly scroll the whole thing? I don't know, can someone please shed some light!

View Replies !    View Related
Text In A Scroller
hi
I have a mc that scrolls using ...

-----code------------------------------

header1._y = Math.round (header1._y+(header1Y-header1._y)/ntitleInertia);

-----end------------------------------
...when a button is clicked

that works fine until i put text into the mc then it slows the player down to the point that it almost stops! It works with one line of text but if i put a block of say 10/15 lines it slows down.

what is the best, if any, way of gettin round this.

cheers

3quid

View Replies !    View Related
Text Box Scroller
can any one help? i'm trying to make a text scroller in
a flash movie. please help or a source file for a Mac.
Thx. -Kearns

View Replies !    View Related
Text Scroller
hi

there is a site called http://www.coriolisnetworks.com .i want to know how did they do "news & event" text scroller. i also want to add to "up" & "down" button is a "stop" button to work as well & what should i do if i want the text to go at a certain speed without any pause.please help me here.

thanx
anu

View Replies !    View Related
Text Scroller
I created some text in freehand to use on my 'about' page.The scroller, when dragged onto the text box on my about page, does not work when I paste the text into the box. Is there a better method to set up a scroller on a text box? I am using MX.
Appreciated!!!

...sorry for the confusion, garbage. My turn to take out the trash!

View Replies !    View Related
Text Scroller...
Hey all, I have a prob with my text scroller from the UI components. I'm having it so that the text being loaded from the "loadVariables("news.txt") command and I just have the scroller there and it's connected but theres a prob, it's not scrolling down like I want it to. Can someone HELP!? Actions in the text body mc.

View Replies !    View Related
Text Scroller
Hi,
I want a text scroller in flash mx. Withe text scroller i mean a rectangle where a text appear from the right and go to the left and disappear on the left. I can make something like that.
Thanks anyway,

Persone

View Replies !    View Related
Help With Text Scroller
I have an example of a text scroller I downloaded from flashkit, unfortunately there is no contact for the person who created it (name of zip file - Simple_S-Alan_Wis-864), so I am posting the question here!

There is only two scripts involved -

the script on the scrollable text box mc -

onClipEvent (load) {
loadVariables ("text.txt", "");
}
onClipEvent (enterFrame) {
textbox.scroll = _root.slider.b;
}


and the script on the dragable bar -

onClipEvent (enterFrame) {
a = new Object();
a.y = this._y;
a.x = this._x;
_root.path.globalToLocal(a);
b = int(a.y/(100/_root.text.textbox.maxscroll)) ;
}


All I want is to make the text scroll via two buttons,one for moving text up and one for moving text down, on roll over! instead of dragging the bar up and down

Can someone help me out please?

Thanks

deef

View Replies !    View Related
Text Scroller Help
Ok I have made a a text box that you can scroll up in down. What I want to be able to do is add a picture that will scroll with text, and that thtext wraps around. Does anone know hoe to da this or where to go to see how this is done.

View Replies !    View Related
Text Scroller
http://www.actionscript.org/tutoria...box/index.shtml

In this tutorial, it statedd that hyperlink bttns can be inserted.
I have tried a number of things to make this happen without any
positive results.

Also, the text that scrolls in the box, some of the characters seem
to be thinner than the rest.

help!

Thanks in advance.

View Replies !    View Related
Dyn Text Scroller
It seems there are many scroller threads but I couldn't find one to this effect...

I have a dyn text box with a scroller. I am loading the text via statements within the piece (not eternal files) as such:

_root.scroller.text = "...";

The text shows up in the feild but the scroller doesn't work. I can click within the text area and drag to move it up and down, but not using the scroller elements.
Any ideas?

Thanks in advance,
1M.

View Replies !    View Related
CSS Within Scroller Text Box
I went thru some tutorials on ActionScript.org and found them very helpful. In particular Tutorial 41 CSS in Flash MX 2004 from the Beginner Tutorials and Tutorials 33/34 Scrolling a text box from the Intermediate Tutorials. I was successful with both tutorials but wasn't able to combine the concepts of both into one.

I am trying to have an external file (txt) load into the Scroller text box and have the text formatted based on CSS. This may seem very easy to do but I am having trouble with it as I am an ActionScript newbie. The Scroller text box portion works fine but I cannot get it to load/recognize the CSS.

View Replies !    View Related
Text Scroller
Unfortunately i need to create a scroller that works in Flash 5, even though almost everyone has the flash 6 plug in...oh well...

Can anyone recommend a good scroller that is easy to use, and put in text, cos i have to create like 10 different versions of it with all different text.

Thanks

View Replies !    View Related
Text Scroller
I've been searching flashkit for a good scroll bar for scrolling text.

I haven't found anything that I am needing. I need to make a scroller where I can change the "look" of the scroll bar. Unlike using the scroller component that comes in flash.

I also need something where the text is managed in the text box and not in an external file or in the actionscript code itself.

Can someone direct me to a good tutorial with source?

thanks!

View Replies !    View Related
Help Text Scroller
I need help making a text scroller. i have text but it all doesnt fit on the screen. My friend mentioned something about a text scroller, so i thought i would go to the the website that knows what there talking about. Thank you in advance.

View Replies !    View Related
Text Scroller
I am trying to create a simple text scroller using the UI components in MX 2004. I draw a text box, set the properties to multiline and dynamic then whilst the text box has the cursor flashing inside i drag the UIscrollbar over to the side i want it on and drop it. It WILL NOT attach to the side like it should, it associates with the text box but will not "cling" to it? Please help before I take my life. I have attached what happens

View Replies !    View Related
Text Scroller Help Please
I have made a text scroller in Flash MX to add to a web page.

The problem is that when it scrolls from right to left it is very jerky. I have tried different speeds but I cannot get it to scroll smoothly?

Can anyone please help?
Cheers

View Replies !    View Related
Can Someone Help Me With My Text Scroller?
I have researched several scrollers and I found one I like, but I can't get it to work properly.

The scrollbar goes down to far, and the when you scroll p, it dowsn't reach the top.

There's only twelve lines of code, so it's fairly simple. I tried working with the code but no luck.

Here's the fla: http://www.caillouette.com/scrollbar-new.zip

here's the code:
Code:
ysize = 800;
targY=0;

dragger._x=-84.8;
dragger._height = (theMask._height / theText._height) * scrollbar._height;



dragger.onPress=function(){
startDrag(this,false,this._x,0,this._x,theMask._height-this._height);
}
dragger.onRelease=dragger.onReleaseOutside=function(){
stopDrag();
}

theText.onEnterFrame=function(){
scrollAmount=(this._height-(theMask._height/1.1))/(theMask._height-dragger._height);
targY=-dragger._y*scrollAmount;
this._y = targY;
}

thanks

View Replies !    View Related
Can Anyone Help With This Text Scroller
Hi guys,

I have made a text scroller in flash however I can not get the text to scoll on my desired trajectory.

can anyone have a quick look at my AS and maybe advise me as to where I am going wrong.

here is the example I am working with:


Code:
//set my variable
targY = 0;
targY = 0;
//set the x position of my scroller
scroller._x = theMask._width;
//set the drag action of the scroller

//drag is restricted to the height of the mask
scroller.onPress = function() {
startDrag(this, false, this._x, 0, this._x, theMask._height-this._height);
};
//stop the drag
scroller.onRelease = scroller.onReleaseOutside=function () {
stopDrag();
};
//set the mask for the text
theText.setMask(theMask);
//the scrolling animation
theText.onEnterFrame = function() {
//set the scroll amount
yscrollAmount = (this._height-(theMask._height/1.3))/(theMask._height-dragger._height);
//set a new target y position
targY = -scroller._y*yscrollAmount;
//set the y of the text to 1/5 of the distance between its current y and the target y
this._y -= (this._y-targY)/5;
trace("yscrollAmount = " + yscrollAmount + " : scroller._y = " + scroller._y + " : targY = " + targY + " : this._y = " + this._y);

//set the scroll amount
xscrollAmount = (this._width-(theMask._width/1.3))/(theMask._width-dragger._width);
//set a new target y position
targY = -scroller._x*xscrollAmount;
//set the y of the text to 1/5 of the distance between its current y and the target y
this._y -= (this._x-targX)/5;
trace("xscrollAmount = " + xscrollAmount + " : scroller._y = " + scroller._y + " : targY = " + targY + " : this._x = " + this._x);
};


alternately I thought I would be able to achieve the same effect with a different script. I found this one on the internet, am trying to modify atm.

Which one do you guys think would work better?


Code:
//+++++++++++++++++++++++++++++++++++++++++++ slider

scroller.onPress = function () {
this.startDrag(false,3,14,3,116);
}
scroller.onRelease = function () {
this.stopDrag();
}
scroller.onRollOver = function () {
this.nextFrame();
}
scroller.onRollOut = function () {
this.prevFrame();
}
scroller.onEnterFrame = function () {
_parent.info._y = -this._y-30;
}

//+++++++++++++++++++++++++++++++++++++++++++ down

down.onRollOver = function () {
this.nextFrame();
}
down.onRollOut = function () {
this.prevFrame();
}
down.onRelease = function () {
if(scroller._y+5<115) {
scroller._y+=5;
} else {
scroller._y = 115;
}
}

//+++++++++++++++++++++++++++++++++++++++++++ up

up.onRollOver = function () {
this.nextFrame();
}
up.onRollOut = function () {
this.prevFrame();
}
up.onRelease = function () {
if(scroller._y-5>13) {
scroller._y-=5;
} else {
scroller._y = 13;
}
}

//+++++++++++++++++++++++++++++++++++++++++++ sliderBg


sliderBg.onPress = function () {
if(this._ymouse>13 && this._ymouse<116) {
scroller._y = this._ymouse;
}
}
sliderBg.useHandCursor=false;

View Replies !    View Related
Text Scroller
Hello there,

I think this could be an easy thing but however, I couldn't figure it out. included I have a really great text scroll file. But there's one thing I like to change: now the text comes from actionscript, and I would like to load it in from a text file or more preferably and .xml file. It would be really great when someone could have a look at it. On forehand thanks !!

Yntze

View Replies !    View Related
Text Scroller
Hi everyone, I need your urgently help, please.
I have this file, with a scroller, but when I want to see it in the swf file, it doesn`t appears the text!
PLEASE, HELP!!!

www.historiareal.com.ar/scroller.zip

View Replies !    View Related
Help With Text Scroller
I'm trying to create a simple text scroller, but want the scroller to be custom and on a slightly diagonal line.

I found a drag along path tutorial in another thread and tried to add it to my project, but I'm having some problems. It scrolls down fine, but if you get to the bottom, it locks and stops working.

Tutoral Link: http://www.peterjoel.com/Samples/

Please see my attached .fla

Thanks!

View Replies !    View Related
Text Scroller
I want to create a text scroller where you click an up or down button and the text scrolls. I found a code for the two buttons...but I'm not sure how I put in the text. I need a step by step on how to do this. Thanks!

View Replies !    View Related
Text Scroller
Hi,
I have a text scroller with easing that scrolls a static text field. The problem is that if I make the text field too long, the text just drops off after awhile? Is there a limit as to how much text you can scroll. Here is some snippets of code. The height of my text box in just over 3000. Any help would be greatly appreciated. Thanks in advance.

//frame1
mh = 273;
contenth = content._height;
ratio = (contenth - mh) / mh;
if (contenth < mh) {
setProperty("barre", _visible, "0");
}

//frame2
ctpos = content._y ;
edpos = ((barre.drag._y) * ratio) * -1;
dgm = (edpos - ctpos) / 5;
if (dgm < -0.05 or dgm > 0.05) {
setProperty("content", _y, ctpos + dgm);
} else {
}

//frame3

gotoAndPlay("roll");

View Replies !    View Related
Scroller Text
I made a text scroller (see code below), and everything works fine, excpet for when i test my movie, the text disappears. It will still scroll but you cant see any of the text. Back in the edit mode you can see it, the mask is even hiding the part its supposed to. Any ideas?

var scrollUpper:Number = -152.9;
var scrollLower:Number = 67;
var textLower:Number = -152.9;
var textUpper:Number = -567.6;

var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower - textUpper;

function scroll() {
var moved:Number = scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text_mc._y = textLower - textMove;
}

scroller_mc.onPress = function() {
this.startDrag(false,this._x,scrollUpper,this._x,s crollLower);
this.onMouseMove = scroll();
}

scroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {
this.stopDrag();
this.onMouseMove = null;
}

View Replies !    View Related
Help For Text Scroller.
I got this text scroller with buttons on an external .swf file. When I preview this file everything works fine. However, when it is loaded on the main movie on of the buttons does not work. I am not familiar with actionscript but I tried deleting '_root' from the code... still does not work. It is the upper button which does not work.

The code for the upper btn. is :

on (press) {
_root.text.rev.play();
}
on (release, releaseOutside) {
_root.text.stop();
_root.text.rev.stop();
}


Where as the code for the bottom btn is:

on (press) {
if (text._currentframe <text._totalframes) {
text.play();
text.rev.stop();
}
}
on (release, releaseOutside) {
text.stop();
}

View Replies !    View Related
Text Scroller....
I know its probably easy to fix....but how do I get the text to look better in the scroll box???

heres the link:http://www12.brinkster.com/21stfoot/itsastart.html




Thanks in advance

View Replies !    View Related
New Text Scroller?
hi all,
1-------how can i make a text scroller like the one i see here?
http://www.hugeinc.com/workbook/

*i noticed they can move without the scroller arrows and bars

2-------and when u click on them, they have these funny jagged lines appearing and disappearing...almost looking like someone is drawing them....how is tat done?

any ideas?

i would appreciate any tutorial or sample files..

thanks
flash 5 user

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved