Click to See Complete Forum and Search --> : Am I Crazy ... App Idea

05-28-2004, 02:56 PM

I have been asked to create a flash application where a user can upload a jpg file somehow into a swf and have it replace an image that i already have there.

Is this possible? How?

I read something about load movie commands...is this the way to go

Thanks for any help or responses


05-29-2004, 01:10 PM
It is possible. Using a scripting language like PHP, you can create a wafor users tp upload (http://us4.php.net/ftp) their files. Keep track of the location and name of the file, and send that informaion to your flash movie using LoadVars. From there, you can use loadMovie (provided you are using Flash MX or greater) to display a jpg inside a movie clip in your swf

05-31-2004, 11:59 AM
I used coldfusion to do the first step you said. right now the user uploads there files gif or jpeg and then it spits out a text file with one line that says: C:\Remote\Client1\Uploads\picture.jpg
How do i load the information in this text file into the flash movie and then use that to load the image specified in the txt document.

I appreciate your help thus far


05-31-2004, 02:56 PM
I now have it working so that i can load the variable from the text file into flash. The variable is called picture and it ='s 1.jpg


I can can get the movie to load an external jpg as well using the loadmovie command

loadMovieNum("1.jpg", 0);

However i can not get the loadmovie command to load using the variable that contains 1.jpg. How would i do this

loadMovieNum("picture", 0); <---Does not work

How do I tell flash that picture is a variable and not a file that it should be looking for?

Thanks for any help

06-03-2004, 12:23 PM
get rid of the quotes around picture in the loadMovieNum. This is treating picture as a string and not a variable.