Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying photos...

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
I'm a long-time ColdFusion programmer. I've had Flash installed for quite a while now, but I just don't know anything about it.

I'd like to display photographs of employees when our users go to the employee contact page on our intranet. The photos would be stored as employeenumber.jpg, so this would need to dynamically retrieve 1234.jpg if the user is looking at the employee contact for employee 1234.

Our HR director doesn't want people to be able to right-click and save, so rather than code around the right-click (which I've always thought was dumb anyway) I'd like to use Flash to display them on a web page along with other CF code.

I'm not asking for a step-by-step tutorial, because I know no one has time for that, but if anyone could point me in the right direction, I'd really appreciate it.

Thanks!

 
You can dynamically load a .jpg as you would load any external .swf file.

target_mc.loadMovie("1234.jpg");

That said, not a very good idea to use only numbers in file names...

target_mc.loadMovie("emp1234.jpg");

Also, note that there are free swf extractors, that will extract pictures, sounds, etc... from mosts .swfs.

Regards. Affiliate Program - Web Hosting - Web Design

03/13/05 -> OLDNEWBIE VS FLASHK
 
Would it be possible to just use the employee pictures as table cell backgrounds? I think then you wouldn't be able to right click on the picture. But in the source code, you would probably still be able to see the url of the picture.

If you would like to go the flash route here is a Tutorial, that I was pointed to yesterday about a similar topic:

This is about loading files from a directory into flash.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top