Topic: Marquee/Ticker (embeddable?) solutions... (Page 1 of 1) |
|
|---|---|
|
Maniac (V) Inmate From: zero divided. |
posted 03-05-2007 18:18
First-off, let me please apologise if I've plonked this down in the wrong place - as I'm not entirely sure what I'm asking for, I've little idea of which section is most relevant. |
|
Paranoid (IV) Inmate From: Paris, France |
posted 03-06-2007 00:03
Using : code: //init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
/******************************/
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("kungfu.css");
myText.styleSheet = kungFuStyle;
/******************************/
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
var intervalId:Number;
function executeCallback():Void {
kungFuContent.load("kungfu.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
}
intervalId = setInterval(this, "executeCallback", 5000);
code: <kungfu> <drunken>Modify me</drunken> <monkey>Monkey style is deceptive and versatile. It is generally meant for smaller size persons.</monkey> <span class='snake'>Snake style does not deal in humaneness, it only deals with delivering [...]</span> <dragon>Dragon Style is a highly aggressive kung fu style, relentlessly pressing against [...]</dragon> </kungfu>
|
|
Maniac (V) Inmate From: zero divided. |
posted 03-06-2007 17:04
Thanks Moonshadow - that certainly points me in the right direction. Worst case scenario, I come out of this a little better educated. Thanks for the links. |