Hi kennethkawamoto
This is what I did with your code and sorry top say I goofed.
stop();
x=new XML();
x.onLoad=init;
x.load(exemel);
x.ignoreWhite=true;
// scroller variables //
var last=-1; //set to -1 bc if set to 0 it skips the first char
var delayFlag=false; // scroll pause toggle
scroller.text=""; // clear scroller text
scroller.border=true;
function init(success){
if(success==true){
gotoAndPlay(2);
root=x.firstChild;
getView(root);
getSpeed(root);
getHotSpot(root);
formatTextBox(root);
getText(root);
}else{
// the fun path

trace("error reading xml["+exemel+"]");
}
}
function getView(dat){
// set the view var
return view=dat.attributes.textsize;
}
function getSpeed(dat){
// set the speed var
return sParam=dat.attributes.speed;
}
function getText(dat){
// load text + buffer(x amount of spaces)
bufferSize=dat.attributes.buffersize;
for(var x=0;x<=bufferSize;x++){
buffer+=" ";
}
first=dat.firstChild;
return theText=first.firstChild.nodeValue add buffer;
}
function getHotSpot(dat){
// load hotspot variables
hsInfo=dat.firstChild.nextSibling;
useHotSpot=hsInfo.attributes.hotSpot;
hsTarget=hsInfo.attributes.hsTarget;
hsUrl=hsInfo.attributes.hsUrl;
// flash gave me issues with this, so i just passed a big string
// and had the hotspot actions rip it apart
return cat=useHotSpot+"~"+hsUrl+"~"+hsTarget;
}
function formatTextBox(dat){
first=dat.firstChild.nextSibling.nextSibling; //jump to txtFormat tags
// set border/background tags
if(first.attributes.border=="true"){scroller.border=true;}else{scroller.border=false;}
if(first.attributes.background=="true"){scroller.background=true;}else{scroller.background=false;}
// set colors
scroller.textColor=("0x"+first.attributes.textColor);
scroller.backgroundColor=("0x"+first.attributes.bgColor);
}