I have tried every way to load a very simple text file into a Flash document
and display it in a textField. Works fine on my machine, when I upload it to
the hosting server (same configuration, same everything) stops working. Please
can someone even tell me what to look at. Out of ideas.
Thanks
Dave
derobinson - 31 Jan 2007 22:45 GMT
Sounds like you're running into the Flash Security Sandbox. I'd go read the
tech notes on the Player's security features here:
http://www.adobe.com/products/flashplayer/security/
first thing to check is in your export settings...make sure the "Local
Playback Security" option is set to access network files.
Good luck!
jesse harding - 31 Jan 2007 22:59 GMT
Dave,
What actionscript are you using to load the text? It's probably one of two
things:
1- It could just be an error in the path to the text. For example if your
action script is pointing to text in a "text" folder but the text file on
the server is not in that folder
2- When online your LoadVar function will take a little longer than it will
locally. If you move on from the loadVar frame before the vars are loaded,
the data from your text file will never make it into your Flash. You can
use onLoad to make sure the vars are loaded before moving on:
stop();
myLoadVar = new LoadVars ();
myLoadVar.load("yourtextfile.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
gotoAndPlay("where ever you want it to go");
}
}
Let me know if that solves your problem
Jesse
> I have tried every way to load a very simple text file into a Flash
> document
[quoted text clipped - 5 lines]
> Thanks
> Dave