News Ticker
Hi ,
I'm in the process of building a news ticker for my home page. I'm using external txt file, the problem I am having is I would like the links that you press on the news ticker to open in a new window. I've tried the target="_blank" but I don't think that works in txt file, or i'm putting it in wrong place! Any ideas would be greatly appreciated, if you need me to explain better let me know. Below is the way the link is at the moment:
message1=Harrison will be a star - Maloney&link1=http://www.sussexexboxers.com/newsite/news.html#newsite&date1=06/10/05-View story and comment
thank you
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 10-07-2005, 12:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
News Ticker
Hi could somebody help me out. I'm trying to make a small box with scrolling text in it, I want the text to scroll like in a news ticker tape script. However I want the scroll to be vertical instead of horizontal.
I'm unsure whether I would use action script to achieve this or is there another way as my action script isn't very good.
If anybody could advise me I'd be most grateful.
Many thanks
Simon
News Ticker In MX Help....
Hey all, I'm lost on this one...
Does anyone have a tutorial or a sample .fla on how to do a horizontal news ticker that will load in external text and be able to have links in it?
Any help would be greatly appreciated!
thanks all.
News Ticker
I need to create a flash news ticker. The data comes from a mysql database. I use php pages.
But I don't have any idea how to get the news titles from the database and how to dynamically create the news textboxes.
Help would be more than welcome!
Tanx
News Ticker
Can anyone point me to a tutorial on a simple 'news ticker'. Well, actually I just need the effect of scrolling text in a dynamic textfield, but you know what I mean.
If you have an old code hidden away, that will do just fine too.
I know, this is very basic, but that's just how it is ..
Lars
Need News Ticker
I am in search of a news ticker component.
Not just a horizontal slider, but a textbox that can have links and scrolls vertically. Also would like it to be loaded externally by xml..
Can anyone make some suggestions to find a tutorial or component.
thanks
Help With News Ticker
I am lookign for a news box ticker tutorial or component. I have been unable to find one.. I am lookign for what that text is loaded dynamically.
Any help would be greatly appreciated..
Thanks
Ticker News
Hello people... at first sorry by my bad english..
so.. i'm a PHP programmer and i'm working in a portal project and my customer wants to show the news in his website in a little flash presentation.
So, these news shoud be dynamic (come from a database)
Ok, I had studed a few about flash and php interation and i can get data from php to the flash presentation.
but i have no idea to create this movie ..
if anyone had some sample or example to send me it will help me a lot ..
For those that are understand nothing what i'm saying you can can check in this website (www.ig.com.br).. There ther's a example of what i need..
News Ticker
Hi ,
I'm in the process of building a news ticker for my home page. I'm using external txt file, the problem I am having is I would like the links that you press on the news ticker to open in a new window. I've tried the target="_blank" but I don't think that works in txt file, or i'm putting it in wrong place! Any ideas would be greatly appreciated, if you need me to explain better let me know. Below is the way the link is at the moment:
message1=Harrison will be a star - Maloney&link1=http://www.sussexexboxers.com/newsite/news.html#newsite&date1=06/10/05-View story and comment
thank you
RSS News Ticker Help
Hello there,
New to the site and flash so very much hoping I can find what I'm after here.
I have spent hours over the last few days trying to find a news ticker that’s suits my needs.
What I am after is..........a ticker that has a constant horizontal scroll from right to left that reads in news from RSS feeds. The best way to describe what I am after is what you see on a news channels.
The type that scrolls across the bottom of the screen. See www.worldflash.com for a good example of what it needs to look like and do.
It's for a offline webpage so PHP/downloadable programmes etc are out of the question. I am at a loss, I cant find Tuts, downloads etc etc anywhere.
Has anyone got an Idea, I'm starting to get desperate now lol.
News Ticker?
I'm not new to flash I have been using the animation side of flash but, I have only just begun to realize the potential of AS. Anyway my question is whether or not this is possible and if so can someone please show me how! it would be so greatly appreciated ok here goes. This is what I want a text box that loads text externally so flash inst needed to update the news each day and then through actionscript allows that text to move like a news feed ticker. Sorta like the one you see on G4 or On CNN. My mind can't possibly grasp this concept (if it is possible at all) I hope someone can help me figure it out and help me with my actionscript Thanks in advance I leave a copy of what I have done so far..its not much but yeah. Cheers.
News Ticker
Anyone know how to create a srolling news ticker? Like on news programs? I tried just using a motion tween, but it looks really choppy.
Need XML News Ticker Help
Hi,
Please view http://pdim.net/XMLTicker/ .
1) I need help to set URL links to the specified URL on the individual URL items to open up a _blank browser window.
2) The contents are generated through external XML file.
Here are the ActionScript below (Please keep in mind that there are 5 rows dynamic text fields each titled from "Zeile0 - Zeile 4"):
ON FRAME 1 :
ActionScript Code:
// Init variables
// Maximum Number of Chars in one Line
var maxZeichen = 63;
// Number of Lines
var zeilenAnzahl = 5;
// Looping the whole Ticker-Text enabled (true/false)
//var loopText = false;
// ------
// tickerText which should show up at the start if there is no XML to be loaded and parsed
var lauftext = "";
// Number of chars in tickertext
var lauftextLen = lauftext.length;
// Init counter
var counterZeichen = 0;
var aktZeile = 0;
// initialize array of rows
zeilen = new Array(zeilenAnzahl);
for (var i=0;i<zeilenAnzahl;i++) {
zeilen[i] = "";
}
// Copy the rows in in the textfields
function copyTextField(num) {
set ("zeile" + num, zeilen[num]);
}
// add next char
function printNextChar() {
var wordChar = "";
var wordCharLen = 0;
var umbruch = false;
// are there any chars left in tickertext?
if (counterZeichen < lauftextLen) {
// How long is the next word?
while ((counterZeichen+wordCharLen < lauftextLen) && (wordChar != " ")) {
wordCharLen++;
wordChar = lauftext.charAt(counterZeichen+wordCharLen);
if ((lauftext.charAt(counterZeichen+wordCharLen)+lauf text.charAt(counterZeichen+wordCharLen+1)) == "/n") {
umbruch = true;
break;
}
}
// Does the word fit in the row (are there enough chars left)
if (!umbruch) {
if ((zeilen[aktZeile].length + wordCharLen) < maxZeichen) {
// get next char
thisChar = lauftext.charAt(counterZeichen);
// add next char
zeilen[aktZeile] += lauftext.charAt(counterZeichen);
// copy text in textfield
copyTextField(aktZeile);
// add to charcounter
counterZeichen ++;
}
else {
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen++;
}
}
else {
// Zeilenumbruch
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen+= 3;
}
}
else {
// Text is loaded, loop text?
//if (!loopText) stop();
//else counterZeichen = 0;
counterZeichen = 0;
}
}
// XML
// New XML object
urlText = new XML();
urlText.load("text.xml");
urlText.onLoad = onXmlText;
// Read text from XML-file
function onXmlText() {
mainTag = new XML;
mainTag = this.lastChild.previousSibling;
if(mainTag.nodeName.toLowerCase() == "tickertext") {
lauftext = mainTag.firstChild.nodeValue;
lauftextLen = lauftext.length;
}
}
FRAME 2:
ActionScript Code:
printNextChar();
FRAME 3:
ActionScript Code:
gotoAndPlay(2);
Here is the XML file:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<tickertext>-http://macromedia.com /n-http://adobe.com /n-http://apple.com /n-http://microsoft.com /n-http://amazon.com /n-http://google.com /n-http://gunstig.de /n /n </tickertext>
Thanks for any help in this.
News Ticker
Hi
Im trying build a news ticker which retrieves text from a .txt file and places it into a dynamic text field. For some reason the text is always cut short (regardless of how long the field is) - is there a limit to how much text can be brought into the dynamic field from the .txt file? - Any thoughts or suggestions most welcome...
News Ticker
Here is a ticker tape I made, it works fine, but I dont know how to change the font/size/color, how would i go about doing that?
Help With News Ticker
i followed the tutorial on how to make a news ticker, but i cant get it to work. please help!
News Ticker
attached is the file im working with. whats wrong???
News Ticker Help
Hey there,
I use to use flash awhile ago, but I can't remember what to do.. and I can't do any actionscript whatsoever.
Can someone help me figure out how to make something like this? www.bigbrothernet.com .. in the middle.. the news ticker thing.. I want something exactly like that.. but of course with my own headlines.
please help
Xml Fed News Ticker?
i'm trying to figure out a solid way to do this. basically i just want a horizontal news ticker that loops a bunch of news headlines that are housed in an xml file. the headlines will link to pages will the full news story. can anyone help?
thanks in advance!
Need XML News Ticker Help
Hi,
Please view http://pdim.net/XMLTicker/ .
1) I need help to set URL links to the specified URL on the individual URL items to open up a _blank browser window.
2) The contents are generated through external XML file.
Here are the ActionScript below (Please keep in mind that there are 5 rows dynamic text fields each titled from "Zeile0 - Zeile 4"):
ON FRAME 1 :
// Init variables
// Maximum Number of Chars in one Line
var maxZeichen = 63;
// Number of Lines
var zeilenAnzahl = 5;
// Looping the whole Ticker-Text enabled (true/false)
//var loopText = false;
// ------
// tickerText which should show up at the start if there is no XML to be loaded and parsed
var lauftext = "";
// Number of chars in tickertext
var lauftextLen = lauftext.length;
// Init counter
var counterZeichen = 0;
var aktZeile = 0;
// initialize array of rows
zeilen = new Array(zeilenAnzahl);
for (var i=0;i<zeilenAnzahl;i++) {
zeilen[i] = "";
}
// Copy the rows in in the textfields
function copyTextField(num) {
set ("zeile" + num, zeilen[num]);
}
// add next char
function printNextChar() {
var wordChar = "";
var wordCharLen = 0;
var umbruch = false;
// are there any chars left in tickertext?
if (counterZeichen < lauftextLen) {
// How long is the next word?
while ((counterZeichen+wordCharLen < lauftextLen) && (wordChar != " ")) {
wordCharLen++;
wordChar = lauftext.charAt(counterZeichen+wordCharLen);
if ((lauftext.charAt(counterZeichen+wordCharLen)+lauf text.charAt(counterZeichen+wordCharLen+1)) == "/n") {
umbruch = true;
break;
}
}
// Does the word fit in the row (are there enough chars left)
if (!umbruch) {
if ((zeilen[aktZeile].length + wordCharLen) < maxZeichen) {
// get next char
thisChar = lauftext.charAt(counterZeichen);
// add next char
zeilen[aktZeile] += lauftext.charAt(counterZeichen);
// copy text in textfield
copyTextField(aktZeile);
// add to charcounter
counterZeichen ++;
}
else {
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen++;
}
}
else {
// Zeilenumbruch
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen+= 3;
}
}
else {
// Text is loaded, loop text?
//if (!loopText) stop();
//else counterZeichen = 0;
counterZeichen = 0;
}
}
// XML
// New XML object
urlText = new XML();
urlText.load("text.xml");
urlText.onLoad = onXmlText;
// Read text from XML-file
function onXmlText() {
mainTag = new XML;
mainTag = this.lastChild.previousSibling;
if(mainTag.nodeName.toLowerCase() == "tickertext") {
lauftext = mainTag.firstChild.nodeValue;
lauftextLen = lauftext.length;
}
}
FRAME 2:
printNextChar();
FRAME 3:
gotoAndPlay(2);
Here is the XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<tickertext>-http://macromedia.com /n-http://adobe.com /n-http://apple.com /n-http://microsoft.com /n-http://amazon.com /n-http://google.com /n-http://gunstig.de /n /n </tickertext>
Thanks for any help in this.
News Ticker
I just downloaded the Kirupa source file for the News Ticker under the Flash 2004 area (http://www.kirupa.com/developer/mx2004/newsticker.htm) and wondered how I can change the size of the dynamic text box to allow a longer message to be displayed. When I scale my box or the news MC the same number of characters are displayed but the font is stretched instead of allowing more characters to be displayed?
Can anybody help?
BK
News Ticker
Has any one got a clue how to change the news tickers text or change the location of the xml file. it doesn't seem to work when i try....
Please help
News Ticker.
hi,
I am trying to adapt the News Ticker from the tutorials section to display headlines from the bbc's technology feed, but when i change the url in the code from
xmlData.load("http://www.kirupa.com/developer/mx2004/swf/news.xml?blarg="+new Date().getTime());
to
xmlData.load("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/technology/rss.xml?blarg="+new Date().getTime());
I just get the BBC main headline flashing continuously and it doesn't cycle through the actual news items.
I think this has something to do with how the xml is being parsed, but have so far been unable to get it right. any help would be greatly appreciated.
thanks.
News Ticker Help - Like Ign
I would like to create a news ticker some what like ign.com and canada.com. Any ideas where and how to start? I would love it to be xml driven. Hope someone can help. I've hit a roadblock with this one.
News Ticker Q
How can I make the news ticker select random news and how can i get the news fades in?
Thanks
XML News Ticker?
I have been tasked with creating a news ticker for an NFL fansite. I have found an RSS feed that I can use to power the ticker here:
http://www.totallyscored.com/rss/sport/7
Is it even possible to make a news ticker that will display this 1 entry at a time? I am decent at Flash but programming isn't my strong suit, and this will be my first go round with Flash/ XML.
I heard there can be cross-domain security issues but i don't know how to determine if this will be the case here.
I intend to use the news ticker tutorial from Kirupa:
http://www.kirupa.com/developer/mx2004/newsticker.htm
If possible.
News Ticker
Hi everyone,
I would like to know how to do a news ticker. i've this one from 50 best techniques for flash but is not working . So can anyone please help?
Thanks
News Ticker
Hello,
I am trying to create a news ticker in flash that does 3 things:
1. Pulls the Text from an XML File (for easy updating)
2. Automatically scrolls (vertically and its multi-line) but pauses when you mouse over it
3. Is controllable meaning I have up and down arrows to fast foward through the text.
I found a tutorial here on news tickers but, it was a horizontal one. How can i make a vertical version that has the features above? Any help is GREATLY appretiated. Thanks
News Ticker Help
Is it possible to fade in the news items in the ticker tutorial?
I can't seem to figure it out.
Thanks
About The News Ticker (in Xml)
Hello,
I tried to install the newsticker and it worked perfect. I still have a problem: there is no way to use the accent as é,à,è... they just get ignore. I also tried to code them in html in the xml file but it didn't work. Is it becaus of the encoding (<?xml version="1.0" encoding="utf-8" standalone="yes"?>)? thanks for helping out.
nF
News Ticker
Hi Guys,
I am currently working on my Dad's web site for his cleaning firm. What I was looking for was a horizontal news ticker that can go along the bottom of the page and which my Dad is easily able to change, via a XML file or HTML. Could anyone offer me handy tips or a guide to how to get this done?
Cheers,
Lewn
XML News Ticker
Have recently found this tutorial, which was perfect for my needs and also very simple to edit the xml file.
http://www.kirupa.com/developer/mx2004/newsticker.htm
Now I want to have the same xml file, only changing the way it appears in Flash (8) and, instead of having one single line fading in and out, I would like to have a normal vertical text scroller WITHOUT any fadings as well.
Can anyone help on this one?
News Ticker
Hi, I want to make a news ticker with ASP & Flash. Each trun will show one news. Anybody knows a tutorial for this? Thanks!
News Ticker
I have a news ticker on the top of every page on my site. The ticker works great when you open the page the first time, but when you click a link to a different page with the same ticker, it's blank. Any ideas?
Thanks.
I'm using the code from the tutorial http://www.kirupa.com/developer/mx2004/newsticker.htm
Here is the my code, which I am pretty sure is identical to that in the tutorial:
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
caption = [];
url = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
first_item();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://mywebsite.com/news.xml?blarg="+new Date().getTime());
//
function first_item() {
delay = 1000;
p = 0;
display(p);
p++;
}
function timer() {
myInterval = setInterval(ticker, delay);
function ticker() {
clearInterval(myInterval);
if (p == total) {
p = 0;
}
fadeout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = true;
//
out = new TextFormat();
out.underline = false;
//
newsMC.newsText._alpha = 100;
newsMC.newsText.text = caption[pos];
newsMC.onRelease = function() {
getURL(url[pos], "_blank");
};
newsMC.onRollOver = function() {
this.newsText.setTextFormat(over);
};
newsMC.onRollOut = function() {
this.newsText.setTextFormat(out);
};
timer();
}
function fadeout() {
this.onEnterFrame = function() {
if (newsMC.newsText._alpha>=0) {
newsMC.newsText._alpha -= 5;
} else {
display(p);
p++;
delete this.onEnterFrame;
}
};
}
Help With News Ticker
Hello friends,
my english is weak.
I need help related to kirupa's News Ticker Tutorial. I want the text to be fade in like it's fade out. Currently the text does not come with fade in effect.
You can see the news ticker here:
http://intelkids.co.in/thumbnails/news_ticker.html
Pleaseeeeee help out from this. Thanks.
Code:
function loadXML(loaded) {
if(loaded) {
xmlNode = this.firstChild;
caption = [];
url = [];
date = [];
total = xmlNode.childNodes.length;
for(i=0;i<total;i++) {
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
date[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
first_item();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
function first_item() {
delay = 5000;
p = 0;
display(p);
p++;
}
function timer() {
myInterval = setInterval(ticker,delay);
function ticker() {
clearInterval(myInterval);
if(p == total) {
p = 0;
}
fadeout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = true;
over.color = 0xFF0000;
out = new TextFormat();
out.underline = false;
out.color = 0x000000;
newsMC.newsText._alpha = 100;
newsMC.dateText._alpha = 100;
newsMC.newsText.text = caption[pos];
newsMC.dateText.text = date[pos];
/*newsMC.onRelease = function() {
getURL(url[pos],"_self");
}
newsMC.onRollOver = function() {
this.newsText.setTextFormat(over);
}
newsMC.onRollOut = function() {
this.newsText.setTextFormat(out);
}*/
timer();
}
function fadeout() {
this.onEnterFrame = function() {
if(newsMC.newsText._alpha && newsMC.dateText._alpha >= 0) {
newsMC.newsText._alpha -= 5;
newsMC.dateText._alpha -= 5;
} else {
display(p);
p++;
delete this.onEnterFrame;
}
}
}
News Ticker
How can i convert this
http://www.kirupa.com/developer/mx2004/newsticker.htm
like
http://www.showtvnet.com
?
i want a news ticker like
http://www.showtvnet.com
at the top left corner?
XML News Ticker
Okay, i was trying to make a XML News Ticker, and no matter what i do i can't get it to work!!! Its driving me nuts. This is the tutorial: http://www.kirupa.com/developer/mx2004/newsticker.htm
And i even went as far as Copy and Pasting EVERY SINGLE FILE into my website!! So any help would be nice, all thats happening is nothing, the codes okay when inspected, and just nothing shows up when you look at the news ticker section!
Help With News Ticker
hello,
i am trying the news ticker http://www.kirupa.com/developer/mx2004/newsticker.htm
It works fine, but when i update my xml file the news dosent get updated.
I have downloaded the source code from the website and tested it as well, its just not loading the changes made in xml file.
Can anyone guide me on this?
Thanks
in2minds
News Ticker
Here is a ticker tape I made, it works fine, but I dont know how to change the font/size/color, how would i go about doing that?
Help With News Ticker
i followed the tutorial on how to make a news ticker, but i cant get it to work. please help!
News Ticker
attached is the file im working with. whats wrong???
News Ticker Help
Hey there,
I use to use flash awhile ago, but I can't remember what to do.. and I can't do any actionscript whatsoever.
Can someone help me figure out how to make something like this? www.bigbrothernet.com .. in the middle.. the news ticker thing.. I want something exactly like that.. but of course with my own headlines.
please help
Xml Fed News Ticker?
i'm trying to figure out a solid way to do this. basically i just want a horizontal news ticker that loops a bunch of news headlines that are housed in an xml file. the headlines will link to pages will the full news story. can anyone help?
thanks in advance!
News Ticker...
There seems to be a lot of scrollbar,, how can I create a news like ticker that automatically scrolls up until the news is done, and pauses when the mouse mouses over it>?
Need XML News Ticker Help
Hi,
Please view http://pdim.net/XMLTicker/ .
1) I need help to set URL links to the specified URL on the individual URL items to open up a _blank browser window.
2) The contents are generated through external XML file.
Here are the ActionScript below (Please keep in mind that there are 5 rows dynamic text fields each titled from "Zeile0 - Zeile 4"):
ON FRAME 1 :
// Init variables
// Maximum Number of Chars in one Line
var maxZeichen = 63;
// Number of Lines
var zeilenAnzahl = 5;
// Looping the whole Ticker-Text enabled (true/false)
//var loopText = false;
// ------
// tickerText which should show up at the start if there is no XML to be loaded and parsed
var lauftext = "";
// Number of chars in tickertext
var lauftextLen = lauftext.length;
// Init counter
var counterZeichen = 0;
var aktZeile = 0;
// initialize array of rows
zeilen = new Array(zeilenAnzahl);
for (var i=0;i<zeilenAnzahl;i++) {
zeilen[i] = "";
}
// Copy the rows in in the textfields
function copyTextField(num) {
set ("zeile" + num, zeilen[num]);
}
// add next char
function printNextChar() {
var wordChar = "";
var wordCharLen = 0;
var umbruch = false;
// are there any chars left in tickertext?
if (counterZeichen < lauftextLen) {
// How long is the next word?
while ((counterZeichen+wordCharLen < lauftextLen) && (wordChar != " ")) {
wordCharLen++;
wordChar = lauftext.charAt(counterZeichen+wordCharLen);
if ((lauftext.charAt(counterZeichen+wordCharLen)+lauf text.charAt(counterZeichen+wordCharLen+1)) == "/n") {
umbruch = true;
break;
}
}
// Does the word fit in the row (are there enough chars left)
if (!umbruch) {
if ((zeilen[aktZeile].length + wordCharLen) < maxZeichen) {
// get next char
thisChar = lauftext.charAt(counterZeichen);
// add next char
zeilen[aktZeile] += lauftext.charAt(counterZeichen);
// copy text in textfield
copyTextField(aktZeile);
// add to charcounter
counterZeichen ++;
}
else {
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen++;
}
}
else {
// Zeilenumbruch
// Are there any rows left?
if (aktZeile + 1 < zeilenAnzahl) aktZeile++;
else {
// copy rows
for (var i = 0; i < zeilenAnzahl;i++) {
zeilen[i] = zeilen[i+1].valueOf();
copyTextField(i);
}
}
// add [Space]
counterZeichen+= 3;
}
}
else {
// Text is loaded, loop text?
//if (!loopText) stop();
//else counterZeichen = 0;
counterZeichen = 0;
}
}
// XML
// New XML object
urlText = new XML();
urlText.load("text.xml");
urlText.onLoad = onXmlText;
// Read text from XML-file
function onXmlText() {
mainTag = new XML;
mainTag = this.lastChild.previousSibling;
if(mainTag.nodeName.toLowerCase() == "tickertext") {
lauftext = mainTag.firstChild.nodeValue;
lauftextLen = lauftext.length;
}
}
FRAME 2:
printNextChar();
FRAME 3:
gotoAndPlay(2);
Here is the XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<tickertext>-http://macromedia.com /n-http://adobe.com /n-http://apple.com /n-http://microsoft.com /n-http://amazon.com /n-http://google.com /n-http://gunstig.de /n /n </tickertext>
Thanks for any help in this.
News Ticker
Does anyone know of any good tutorials that explain how to produce a news ticker in flash.
I havent been able to find any good ones so far that really explain the code and how it works!
Any help would be grand!
Cheers
Jemes
Trying To Add A News Ticker
I am trying to add a news ticker to my flash file, but i need to have it easily updateable to add new text (i.e. something like a text file that can be edited and the flash pulls the text from the text file as news events change over time, I will have to change the text) Is there any easy way to do this? I found a site that had a news ticker extension but could not get it to work. Please let me know if anyone has any ideas, thanks.
Jack -357-
|