Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-29-2008, 12:00 PM   #1
samrin
Registered User
 
Join Date: Apr 2008
Posts: 3
Default 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.
samrin is offline   Reply With Quote
Old 04-29-2008, 12:45 PM   #2
samrin
Registered User
 
Join Date: Apr 2008
Posts: 3
Default found the solution

I don't know why but it seems that .swf and mac Projector do not like to look for txt file outside the parent directory... (text/introduction.txt) But the .exe does look for it so that the txt file appear.

Now, I've moved the introduction.txt out of the 'text' folder into the parent directory so it's sitting together with the .swf and mac Projector and exe file........

Now the text appears in the swf! I have to try it at my friend's macintosh computer tomorrow, I hope it will work. If it doesnt, then I will need your help, forum.

Thanks,
Samrin
samrin is offline   Reply With Quote
Old 04-29-2008, 12:50 PM   #3
samrin
Registered User
 
Join Date: Apr 2008
Posts: 3
Default stupid me...

i think the problem was simple. I just have to change the

/text/introduction.txt


to

text/introduction.txt



that first / caused the problem... the swf /mac won't read it.
samrin is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a PDF file in Flash AudryLucy Projectors and CDs 20 12-30-2006 01:43 PM
Dynamic text shows in Test Movie but not swf... flashpipe ActionScript 2.0 10 12-06-2006 02:03 PM
UI Scrollbar and Dynamic Text Jason129 Components 7 07-28-2006 01:52 PM
Dynamic flash - external text files, please help!! rickid ActionScript 2.0 2 02-25-2005 03:38 PM
dynamic text 'undefined' in browser only banca ActionScript 2.0 2 02-07-2005 07:33 AM


All times are GMT. The time now is 04:42 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.