PDA

View Full Version : Uploading JPEG from file to FlashMX


djnbh
12-23-2002, 02:42 AM
Hi, I was wonder if there is any way to load JPEG in files to FLASH MX. I am trying to load certain JPEG file form a C:\ to flash(resized).

Any help will be appriciated.:confused:

avatar
12-23-2002, 09:51 AM
If you are trying to load a JPG in a SWF file you can try this:
http://www.macromedia.com/support/flash/action_scripts/objects/moviecliploadmovie.html or http://www.macromedia.com/support/flash/action_scripts/actions/loadmovie.html
Just replace URL by the link to your JPG. If this is on your C-disk and you are making an online application, make sure the relative link stays the same when you place it online...

Hope this is what you meant???

djnbh
12-23-2002, 02:12 PM
Thanks for the reply.
Do you know of an example how this can be done?

Thanks

avatar
12-23-2002, 02:59 PM
http://actionscript-toolbox.com/samplemx_loadjpg.php
it's actually quite simple... check the zip file...

Ciao...
Avatar

djnbh
12-23-2002, 03:42 PM
THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!
:D :D :D :D