dynamic text shows as 'undefined'
Hi, I'm making an interactive CD-ROM which has dynamic text with scroller bar, using Flash 8 Professional.
The text does appear in the .exe PC file. But,
The text does not appear in the .swf file nor the mac Projector file. It only appears as 'undefined'.
Here is the action script of the text section of the CD:
================================================== =====
title_txt.text = "Introduction";
//the following line sets the indicator movie clip on the side menu to a y value corresponding to the
//section you click
_root.side_mc.sidecontent.indicatorclip._y = 97.3;
myData = new LoadVars();
myData.onLoad = function() {
_root.bottom_mc.holder.myText_txt.html=true;
_root.bottom_mc.holder.myText_txt.htmlText = this.myVariable;
};
myData.load("/text/introduction.txt");
_root.bottom_mc.holder.scrolla._targetInstanceName .scroll = 0;
stop();
================================================== ======
And below is the shortened version of the 'introduction.txt' file :
================================================== ======
myVariable=<b>Introduction</b>
Welcome to our interactive CD-ROM.
You are currently viewing the introduction section.
================================================== ======
Please help me how to solve this problem. Why won't the text (introduction.txt) appear in the .swf and mac Projector file ??? Why does it show only in the .exe PC file ?
Thanks,
Samrin
Last edited by samrin; 04-29-2008 at 12:05 PM.
|