Groups | Blog | Home
all groups > flash data integration > september 2005 >

flash data integration : URGENT!!! Contents of dynamic text box does not show


cash118
9/22/2005 12:37:31 AM
I have a dynamic text box that gets its content from an external text file. I
have set the dynamic text box to render its content as HTML. Anyway, everything
works fine when i run it from within flash, or when I run it's output swf file.
The problem occurs when I load this swf file into another movieclip. Everything
else shows except for the content of the dynamic text box.. please please
please.. I really need help on this one ASAP.. Thanks in advance!!
chaos58
9/22/2005 12:22:12 PM
It may be a path problem. When you reference the external txt file is it in the
right place for your SWF to grab it?

Or maybe this URL helps:
http://www.peachpit.com/articles/article.asp?p=174349&seqNum=7&rl=1
Matthew The Programmer
9/23/2005 12:00:00 AM
Yes, the problem is path related. When you load a movie1 into another movie2,
the path contained in movie1 will now need to be relative to movie2 not movie1.
So you need to make the path be relative to the final movie container.

Here's what I do in my project. I use classes to store my code outside of the
fla's. It adds a bit more permanance to relative paths. What I do is I have a
directory called ProjectX. At the root level of ProjectX I have a directory
called SWFS where all the fla files go. Then I have another directory in the
root level of ProjectX called DataFiles. It is in this folder that you would
put the datafile needed by your text field. All of my fla's import my classes
when needed, so my custom classes specific to this project can contain the
relative paths needed.

I hope this helps. The simplest thing to do is change the path to be relative
to the outermost movieclip.
AddThis Social Bookmark Button