PDA

View Full Version : loading a jpg - help!!!


supergeri
01-07-2005, 02:41 PM
Hi all,

I am trying to load a jpg ("myimage.jpg") from an MS access file and I'm having problems with it. I'll systematically say what's going on;

When I use dynamic text to display the path to the image in a textbox, the path is correctly displayed."myimage.jpg" is declared as an "image" in my the file "myasp.asp" i.e.

var = image(declared in the dynamic text textbox)

loadVariables("myasp.asp", 0, "POST);

It displays:

myImages/myimage.jpg

If I use the following line

loadMovie("myImages/myimage.jpg", "myplaceholder", "POST");

The image is displayed correctly. However, I am selecting the pictures at random so I need to use the line:

loadMovie("image", "myplaceholder", "POST");

This does not work. Is there anyway to declare the variable "image" in loadMovie in the same way as its done in dynamic text?

Big thanks in advance,

Taff
01-07-2005, 09:52 PM
take away the speech marks.

myImage= "myImages/myimage.jpg";

myPlaceHolder.loadMovie(image);

Look into LoadVars if you are using flash mx or higher too, its a lot better and safer that loadVariables

Taff