PDA

View Full Version : loaded movie won't load text file


pixelNymph
10-19-2003, 02:44 PM
I'm sure there's a simple answer to this:

I've got myScroller.swf with a text scroller that loads a text file just fine on it's own, but when I load myScroller.swf into another movie, mainMovie.swf, I see the scrollbar graphics in mainMovie so i know it loaded, but the text file doesn't load. How do I get my text file to load?


PixelNymph

free mojo
10-19-2003, 04:46 PM
Is the text file saved in the same folder as the one you targeted from the scrollbar? The target route may be wrong now as the file is loading into a new movie. Check out the route of the file.
for an example:
Are you loading "textfiles/text.txt" or "textfiles/news/text.txt"?
If your main movie, and scrollbar movie are in the same one as your text, and you specify the same route to the file it should work.

pixelNymph
10-20-2003, 10:48 AM
I suspect it's something to do with variable scope. On the time line of myScroller movie - 1st frame - I have a loadvariableNum set up to load the text file so I guess that variable "dies" in the main movie?

But I figured that since all the code for the text scroller is contained within the myScroller movie it wouldn't be an issue...??

Variable scope and pathing...the banes of my Flash existence...

:confused: Pix