|
|
Dynamic News Ticker
Hi,
I'm trying to create a vertically scrolling news banner, where the text is an external XML file. Each news story scrolls up and pauses, then moves on to the next one. I have already managed to load in this text into a dynamic text box with a scroll bar (but don't want that). I have seen some tutorials, but they're not really what I'm after. Also seen a little app that does what I want, but I want to able to code it myself - http://www.scriptocean.com/flashn.html
Any help much appreciated!
Ultrashock Forums > Flash > ActionScript
Posted on: 2003-08-08
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic LED News Ticker Help
Hello all, I'm new to the forums here but I've been using the site for awhile now but anyhoo here's my problem:
Im using Shakib's LED ticker off of the site -> <a href="http://www.flashkit.com/movies/Scripting/Dot_Matr-Shakib-4210/index.php">Shakib's Ticker</a>
...and the problem is when I try and use it in another piece of work the ticker will show up but it will not run. The code is as follows:
function initialise () {
var k = 1;
for (var i=1; i<=60; i++) {
for (var j=1; j<=7; j++) {
var target = "dot_"+i+"_"+j;
duplicateMovieClip ("dot", target, k);
eval(target)._x = i*6 + 5;
eval(target)._y = j*6 + 5;
var k = k+1;
dots = k
finalx = eval(target)._x;
finaly = eval(target)._y - 35;
}
}
startdots = dots
countx = 0;
county = 0;
getText();
}
//
function frameAction () {
moveDots();
currLet = text.charAt(countx);
currCol = eval(currLet)[county];
for (var row=0; row<7; row++) {
if (currCol[row]==1) {
var target = "dot_"+dots;
newDots.attachMovie( "dm", target, dots);
target = "newDots."+target;
eval(target)._x = finalx
eval(target)._y = finaly + row*6
dots = dots + 1;
}
}
checker();
}
//
function moveDots () {
for (var thisDot in newDots) {
newDots[thisdot]._x -= 6
if (newDots[thisdot]._x <= 5) {
removeMovieClip(newDots[thisdot]);
}
}
}
//
function checker() {
if (dots>1.5*startdots) {
dots=startdots;
}
county = county + 1;
if (county > 5) {
county = 0;
countx = countx+1;
if (countx > text.length) {
countx = 0;
getText();
}
}
}
//
function getText() {
text = textClips[textCount];
textCount = textCount+1;
if (textCount>textClips.length){
textCount = 0;
}
}
//
gap = [0,0,0,0,0,0,0];
_ = [gap,gap,gap,gap,gap,gap];
a1 = [0,1,1,1,1,1,1];
a2 = [1,0,0,1,0,0,0];
a3 = [1,0,0,1,0,0,0];
a4 = [1,0,0,1,0,0,0];
a5 = [0,1,1,1,1,1,1];
a = [a1,a2,a3,a4,a5,gap];
b1 = [1,1,1,1,1,1,1];
b2 = [1,0,0,1,0,0,1];
b3 = [1,0,0,1,0,0,1];
b4 = [1,0,0,1,0,0,1];
b5 = [0,1,1,0,1,1,0];
b = [b1,b2,b3,b4,b5,gap];
c1 = [0,1,1,1,1,1,0];
c2 = [1,0,0,0,0,0,1];
c3 = [1,0,0,0,0,0,1];
c4 = [1,0,0,0,0,0,1];
c5 = [0,1,0,0,0,1,0];
c = [c1,c2,c3,c4,c5,gap];
d1 = [1,1,1,1,1,1,1];
d2 = [1,0,0,0,0,0,1];
d3 = [1,0,0,0,0,0,1];
d4 = [1,0,0,0,0,0,1];
d5 = [0,1,1,1,1,1,0];
d = [d1,d2,d3,d4,d5,gap];
e1 = [1,1,1,1,1,1,1];
e2 = [1,0,0,1,0,0,1];
e3 = [1,0,0,1,0,0,1];
e4 = [1,0,0,1,0,0,1];
e5 = [1,0,0,0,0,0,1];
e = [e1,e2,e3,e4,e5,gap];
f1 = [1,1,1,1,1,1,1];
f2 = [1,0,0,1,0,0,0];
f3 = [1,0,0,1,0,0,0];
f4 = [1,0,0,1,0,0,0];
f5 = [1,0,0,0,0,0,0];
f = [f1,f2,f3,f4,f5,gap];
g1 = [0,1,1,1,1,1,0];
g2 = [1,0,0,0,0,0,1];
g3 = [1,0,0,0,0,0,1];
g4 = [1,0,0,1,0,0,1];
g5 = [0,1,0,0,1,1,0];
g = [g1,g2,g3,g4,g5,gap];
h1 = [1,1,1,1,1,1,1];
h2 = [0,0,0,1,0,0,0];
h3 = [0,0,0,1,0,0,0];
h4 = [0,0,0,1,0,0,0];
h5 = [1,1,1,1,1,1,1];
h = [h1,h2,h3,h4,h5,gap];
i1 = [1,0,0,0,0,0,1];
i2 = [1,0,0,0,0,0,1];
i3 = [1,1,1,1,1,1,1];
i4 = [1,0,0,0,0,0,1];
i5 = [1,0,0,0,0,0,1];
i = [i1,i2,i3,i4,i5,gap];
j1 = [1,0,0,0,0,0,0];
j2 = [1,0,0,0,0,0,1];
j3 = [1,0,0,0,0,0,1];
j4 = [1,1,1,1,1,1,0];
j5 = [1,0,0,0,0,0,0];
j = [j1,j2,j3,j4,j5,gap];
k1 = [1,1,1,1,1,1,1];
k2 = [0,0,0,1,0,0,0];
k3 = [0,0,1,0,1,0,0];
k4 = [0,1,0,0,0,1,0];
k5 = [1,0,0,0,0,0,1];
k = [k1,k2,k3,k4,k5,gap];
l1 = [1,1,1,1,1,1,1];
l2 = [0,0,0,0,0,0,1];
l3 = [0,0,0,0,0,0,1];
l4 = [0,0,0,0,0,0,1];
l5 = [0,0,0,0,0,0,1];
l = [l1,l2,l3,l4,l5,gap];
m1 = [1,1,1,1,1,1,1];
m2 = [0,1,0,0,0,0,0];
m3 = [0,0,1,0,0,0,0];
m4 = [0,1,0,0,0,0,0];
m5 = [1,1,1,1,1,1,1];
m = [m1,m2,m3,m4,m5,gap];
n1 = [1,1,1,1,1,1,1];
n2 = [0,1,0,0,0,0,0];
n3 = [0,0,1,0,0,0,0];
n4 = [0,0,0,1,0,0,0];
n5 = [1,1,1,1,1,1,1];
n = [n1,n2,n3,n4,n5,gap];
o1 = [0,1,1,1,1,1,0];
o2 = [1,0,0,0,0,0,1];
o3 = [1,0,0,0,0,0,1];
o4 = [1,0,0,0,0,0,1];
o5 = [0,1,1,1,1,1,0];
o = [o1,o2,o3,o4,o5,gap];
p1 = [1,1,1,1,1,1,1];
p2 = [1,0,0,1,0,0,0];
p3 = [1,0,0,1,0,0,0];
p4 = [1,0,0,1,0,0,0];
p5 = [0,1,1,0,0,0,0];
p = [p1,p2,p3,p4,p5,gap];
q1 = [0,1,1,1,1,1,0];
q2 = [1,0,0,0,0,0,1];
q3 = [1,0,0,0,1,0,1];
q4 = [1,0,0,0,0,1,0];
q5 = [0,1,1,1,1,0,1];
q = [q1,q2,q3,q4,q5,gap];
r1 = [1,1,1,1,1,1,1];
r2 = [1,0,0,1,0,0,0];
r3 = [1,0,0,1,1,0,0];
r4 = [1,0,0,1,0,1,0];
r5 = [0,1,1,0,0,0,1];
r = [r1,r2,r3,r4,r5,gap];
s1 = [0,1,1,0,0,1,0];
s2 = [1,0,0,1,0,0,1];
s3 = [1,0,0,1,0,0,1];
s4 = [1,0,0,1,0,0,1];
s5 = [0,1,0,0,1,1,0];
s = [s1,s2,s3,s4,s5,gap];
t1 = [1,0,0,0,0,0,0];
t2 = [1,0,0,0,0,0,0];
t3 = [1,1,1,1,1,1,1];
t4 = [1,0,0,0,0,0,0];
t5 = [1,0,0,0,0,0,0];
t = [t1,t2,t3,t4,t5,gap];
u1 = [1,1,1,1,1,1,0];
u2 = [0,0,0,0,0,0,1];
u3 = [0,0,0,0,0,0,1];
u4 = [0,0,0,0,0,0,1];
u5 = [1,1,1,1,1,1,0];
u = [u1,u2,u3,u4,u5,gap];
v1 = [1,1,1,1,1,0,0];
v2 = [0,0,0,0,0,1,0];
v3 = [0,0,0,0,0,0,1];
v4 = [0,0,0,0,0,1,0];
v5 = [1,1,1,1,1,0,0];
v = [v1,v2,v3,v4,v5,gap];
w1 = [1,1,1,1,1,1,1];
w2 = [0,0,0,0,0,1,0];
w3 = [0,0,0,0,1,0,0];
w4 = [0,0,0,0,0,1,0];
w5 = [1,1,1,1,1,1,1];
w = [w1,w2,w3,w4,w5,gap];
x1 = [1,1,0,0,0,1,1];
x2 = [0,0,1,0,1,0,0];
x3 = [0,0,0,1,0,0,0];
x4 = [0,0,1,0,1,0,0];
x5 = [1,1,0,0,0,1,1];
x = [x1,x2,x3,x4,x5,gap];
y1 = [1,1,0,0,0,0,0];
y2 = [0,0,1,0,0,0,0];
y3 = [0,0,0,1,1,1,1];
y4 = [0,0,1,0,0,0,0];
y5 = [1,1,0,0,0,0,0];
y = [y1,y2,y3,y4,y5,gap];
z1 = [1,0,0,0,0,1,1];
z2 = [1,0,0,1,1,0,1];
z3 = [1,0,0,1,0,0,1];
z4 = [1,0,1,1,0,0,1];
z5 = [1,1,0,0,0,0,1];
z = [z1,z2,z3,z4,z5,gap];
//#include "alphabet.as" --- not used in fk version
textCount = 0;
textClips = ["websight_________","dynamic______","text________" ,"ticker_______"];
initialise();
apologies for the long post. The only other thing that he has code in is the enterframe movie clip which is:
onClipEvent (enterFrame) {
_parent.frameAction();
}
I have no idea what the problem is. I keep everything the same and I have looked over the code to see if I needed to change anything. I'm also a novice at actionscripting so I'm stumped. Can any of you give me a hand with this? It would be much appreciated! Thanks!
Dynamic News Ticker?
Hello all,
Due to a recent hard drive crash I have lost most of my .fla's. I just happen to lose a flash news ticker that I once had that read either a .txt file or was xml that just simply scrolled news/links.
I Googled the topic and found a bunch of tickers but none of them will allow my client to just update the ticker by editing a .txt file.
* Does anyone know where I could get a free ticker like this without buying the one from Flashloaded?
Thank you so much !
Dynamic News Ticker?
Hello all,
Due to a recent hard drive crash I have lost most of my .fla's. I just happen to lose a flash news ticker that I once had that read either a .txt file or was xml that just simply scrolled news/links.
I Googled the topic and found a bunch of tickers but none of them will allow my client to just update the ticker by editing a .txt file.
* Does anyone know where I could get a free ticker like this without buying the one from Flashloaded?
Thank you so much !
News Ticker, Dynamic Content
I've looked through the 'Movies' section on this site, but I cannot find the specific movie that I need.
What I would like, is a Flash movie that simply scrolls text vertically at an adjustable speed. I don't need to scroll images, and I don't want a scrollbar to let the end-user adjust what is displayed. I would like to have the content read from a text file, and allow me to specify as many different entries (variables) as I need.
Please advise if anyone can point me in the direction of something that is already out there, or if we are going to have to build this from scratch.
Thanks,
Matt
EDIT: I found this one: http://www.flashkit.com/movies/Scrip...8875/index.php
Right now, the different 'news' items are built into the actionscript. How could I make these read from an Access database? I'm fine with being limited to a certain number of entries (say 4).
Thanks again,
Matt
Dynamic Horizontal News Ticker
Hey could someone help me. I'm doing a flash player and I have the song title coming in a dynamic field. I want to make the title scroll horzontally like a news ticker can someone help me with this. I have no clue where to even start with this idea.
Dynamic XML Flash News Ticker
Hi guys,
please help me to do a Dynamic XML Flash News Ticker...text hv to scroll up..
if any 1 know please tell me how to do it....
tc
Auto Scrolling Dynamic Text Field(news Ticker)
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3272625483_2679871
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Does anyone know how to make a scrollable dynamic text field scroll on its
own and also with user interaction?
Thanks in advance for your help.
Bill
--B_3272625483_2679871
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Auto scrolling dynamic text field(news ticker)</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Does =
anyone know how to make a scrollable dynamic text field scroll on its own an=
d also with user interaction?<BR>
<BR>
Thanks in advance for your help.<BR>
<BR>
Bill</SPAN></FONT>
</BODY>
</HTML>
--B_3272625483_2679871--
News Ticker: Error While Converting Static Text To Dynamic Text.
I made a simple news ticker. But am stuck with a silly error. I made the text static text. now when I make the text dynamic to load data from xml the text is not visible.
Not sure what is wrong with this.. Any help would be greatly appreciated. Thanks in advance.
Ruben Benjamin
www.rubenbenjamin.com
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
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
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?
|
|
|