Groups | Blog | Home
all groups > flash (macromedia) > may 2007 >

flash (macromedia) : Links in Variable Txt field


SymbioticMEG
5/9/2007 6:46:30 PM
In my carousel there is a variable text field. I want to be able to put a link
to a url within this txt field. Now, rumor has it that I cant do this because
my XML file wont recognize certian charicters that are required for a tag.
Anyone know a solution to this problem?

Thanks

http://www.symbioticmeg.com to see what im talking about.
dzedward
5/9/2007 6:58:03 PM
disable it from loading from xml, and load it from txt file. the text file
should look something like this..
&titleText=SOME TEXT SOME TEXT SOME TEXT&linkText=Click Here&link=www.link.com

var textVar:LoadVars = new LoadVars();
textVar.load("file.txt");
textVar.onLoad = function(){
_global.dyn1 = (textVar.titleText);
_global.dyn2 = (textVar.linkText);
_global.dyn3 = (textVar.link);
instanceName_txt.html = true;
instanceName_txt.htmlText = dyn1+"<a href=\""+dyn3+"\">"+dyn2+"</a>"
}
dzedward
5/9/2007 7:07:13 PM
AddThis Social Bookmark Button