PDA

View Full Version : loading external files



3DHendo
May 2nd, 2005, 08:31 AM
Hey, on Flash MX 2004 having problems with loading external jpegs and stuff.
I got a tutorial from here and loading from a web address on it is okay,
but I can't get my one to load from my hard drive because there is always an error with the path. I know it'll ultimately be on line anyway but I want to know what I'm doing wrong.

Each of my buttons has this assigned

button6.onPress = function() {
my_mc.loadClip("file:///c:/flash pictures/picture6.jpg", "container");
};

and results in this error

Error opening URL "file:///c:/flash pictures/picture6.jpg"

What's the correct format for putting in a file path? This may be an immensely stupid question, but I'm new to this and totally confounded.

aldomatic
May 2nd, 2005, 08:51 PM
delete the file?////c:flash leave the rest if pictures is a folder and / pictures.jpeg

glkngs
May 3rd, 2005, 03:37 AM
try this:
my_mc.loadClip("c:/flash pictures/picture6.jpg", "container");

if my memmory serves me right, thats what worked for me ;)

3DHendo
May 3rd, 2005, 03:42 AM
Thanks for the help chaps, will give it a go. Cheers again.