Tutorial gone bad

I got this code from the tutorial section… made sure the jpg wasn’t progressive… but

image03.onPress = function () {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“primrosr combo2.jpg”, “container”);
container._x = 150 ;
container._y = 20 ;
}

i keep getting an error message

“Error opening URL “file:///F|/My%20Documents/kate%20web/primrosr combo2 .jpg””

any ideas?

hmm… maybe try taking the space out of your file name and see if that changes anything all the other spaces in your error are represented by a %20 but the file name isn’t.

If u tested it with spaces offline, yoy will notice that it would work, but online it would’nt, Try adding an underscore “_”, and it should work. :slight_smile:

changed file name, still getting an error message… actually I tried downloading a couple of files from the tutorial page, and I get a loading error message from all of them. Is it a settings issue …or the way my computer is partitioned?

HELP!

what tutorial is it? i copied the code and loaded a jpg that I gave the same name just fine, the image didn’t resize but i didn’t get an error.

I tried a bunch of different ones, load_pic , geturl ect… it’s like flash can’t find the path to the images

Hang on a sec, ill make u a zip now!

Check the attached ZIP.

Error opening URL “file:///C|/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/Temporary%20Directory%201%20for%20davekunz.zip/test.jpg”

this is the message I got.

you need to unzip everything to one directory, if your picture isn’t in the same directory with your flash movie then the script will not work.

It worked fine here!!

*Originally posted by Sorcerer *
**you need to unzip everything to one directory, if your picture isn’t in the same directory with your flash movie then the script will not work. **

Yes, u should unZip everything in same directory!!

sorry, your right I was in a hurry to try it and didn’t unzip it correctly.

IT WORKS …now if I could just figure out why it can’t find my images in the movie I made… they are in the same folder as the movie I created, they are not progressive jpg

I have exact the same problem and it’s drivin’ me crazy. I you solve the problem please let me know. thanks.

Try dowloading the Zip File!

ok, so I’m used to working on a Mac, and I’m trying to learn windows XP and flashmx at the same time… I found the “hide extensions for known file types option” and turned it off, at that point I could see that my file name had .jpg.jpg behind it. so the bottom line is that you have to make sure its in the same folder as your movie, AND the file name matches exactly…

sorry I wasted your time everyone!

It works

Hmm, that should appear in the output window!!

actually it wouldn’t, it just knows it can’t find that picture name and gives up. As far as flash goes it doesn’t know a picture_name.jpg.jpg file exists.

LOL, how da hell did’nt i realize that Sorcerer, sorry, was’nt thinking correctly

Hi h88,

Thanks for the file, it works perfect. When I create a new document with my own files it also works but my original file doesn’t work. It’s part of a big portfolio-site. The buttons that have to be clicked are part of another MC(a slider). Any idea what the problem could be?