hey folks,
I’m doing a tutorial found here:
http://www.flash-db.com/Tutorials/loading/loadingData.php?page=2
The problem I’m having is loading my .jpg image.
I’ve attached the .zip file with my .fla the .txt file and the .jpg image.
any ideas?
hey folks,
I’m doing a tutorial found here:
http://www.flash-db.com/Tutorials/loading/loadingData.php?page=2
The problem I’m having is loading my .jpg image.
I’ve attached the .zip file with my .fla the .txt file and the .jpg image.
any ideas?
okay a few things wrong. the most obvious is your Actionscript:
myData = new LoadVars()
myData.load(“anastasio.txt”)
you don’t even have a text file called anastasio.txt
Your text file name is:
loaddata.txt
so change your AS to:
myData = new LoadVars()
myData.load(“loaddata.txt”)
then one more thing. Open loaddata.txt, you have:
Title=loading external data&Comments=This sure is a pain in the butt&Image=Bella_eve3.JPG
that is fine and all but after Bella_eve3.JPG you have a bunch of spaces or line feeds or something. Either take them out or change your text file to this:
&Title=loading external data&Comments=This sure is a pain in the butt&Image=Bella_eve3.JPG&
it is always a good idea to put ‘&’ before and after the last variable in the text file so that flash does not read in extra whitespace.
After that it worked fine for me
-Jake
:: Copyright KIRUPA 2024 //--