PDA

View Full Version : Using dynamic images



rball
04-01-2003, 11:22 AM
I have a list of images that I wish to display depending on an action. Simple hur? Well not exactly, i don't want to setup loads and loads of image placeholders and hide or unhide depending on the action - too many.
What I want is to dynamically display, say a file reference (c:\image1.bmp) on the page for one action and maybe (c:\image2.bmp) for another - is this possible.

I've heard some talk about using Html, write out to file with variable name etc. but this means using the brower window.

Can anyone think of another way - i.e. one image placeholder and mulitple images depending on action.

Cheers

Worm
04-01-2003, 11:50 AM
You can use the Media Player Object to display images too. I'm guessing you're wanting to do it without another object though.

Lorne, How would you know the name of the file to swap out? I've never looked, but does the name of the image in the data folder change with each build?

Lorne
04-01-2003, 12:51 PM
I'm not sure. You'd have to test that out.

rball
04-01-2003, 02:46 PM
Thanks, I think that will work
What do I use on the Media Player Object , Load-Play-Loop?
russ

Worm
04-01-2003, 02:56 PM
Here is a link to a thread that has a sample project that I made that uses the media player object to load images.

Click Here (http://www.indigorose.com/ubbthreads/showthreaded.php?Cat=&Board=UBB2&Number=17261&Sear ch=true&Forum=All_Forums&Words=Worm&Match=Username &Searchpage=4&Limit=25&Old=allposts&Main=17261)

rball
04-01-2003, 03:15 PM
Thanks Worm, just what I needed

Keep up the good work!!

Cheers
Russ

feilong
04-03-2003, 04:48 AM
This file is of great use for something i'm trying too. Only thing i'd like to add to this way of making a dynamic slideshow is the option to make it a little more entertaining.

Simple thing, which would be enough for me, is a simple wipe in, or some other basic transition.

I think the problem with transitions is that you'd need something like Flash. Could Flash handle a imageslide show from a dynamic location (say a cdrom with jpg's) and automatically add the transition?

Corey
04-03-2003, 05:12 AM
Yep.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

feilong
04-03-2003, 06:02 AM
As not being a Flash a experienced Flash user, any change anyone could show me the way on how to do this.

I already thought that Flash would be the way to go...going through this forum makes you clear that almost anything can be done by using flash

Corey
04-03-2003, 10:02 PM
OK what do you need to know? If you have never used flash it's probably best to pop it open and experiement with the built in lesson tutorials until you have a feel for the very basics. From there it's simple...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

feilong
04-04-2003, 12:53 AM
What I would like to have is the following:

1. I have a cdrom containing .jpg images.
2. I want to present those image to an audience.
3. But instead of showing image after image in 5 seconds, I'd like to present it a bit more classy, for example by using a fade in/out combination, or a move in/out combination

That's it actually: a flashfile reading .JPG's of the cdrom and showing them in a nice way.

Corey
04-04-2003, 04:22 AM
Actually I cover that in depth on the new Powertips CD (out this week) but it's a bit beyond the scope of the forum for me to describe the whole process here. My best advice is to hang on a few days until the powertips CD is out and check out the sample lessons and grab that if you like it ($29), and if not re-post at that time and I'll put together some sort of sample file for you...

In the meanwhile if you have specific problems as you try to build it yourself in Flash just post here and I'll help you through whatever's going on...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

feilong
04-22-2003, 11:13 AM
Hi Corey,

How 'bout that powertips cdrom? If been looking at the announcements for some time now, and haven't seen it popping up there.. Some delays?

I'm getting quite desperate for this little project, which I explained earlier. Maybe you could give me a hint or part of the flashfile so I can start looking at it myself. The project self is quite basic: the flashfile dynamically loads jpg files from a location of the peecee. It shows the JPG and than with a basic powerpoint effect like whipe, shows the next JPG.

Thanks for any assistance

Worm
04-22-2003, 12:58 PM
Here is a free set of scripts to use inside IE that does a slide show with transitions.

http://dynamicdrive.com/dynamicindex14/dhtmlslide.htm

feilong
04-22-2003, 01:44 PM
Thanks Brad,

I also found that page. They have some great HTML scripts with some very nice page transitions. Only problem is, it's not dynamic. The script itself call the image1 to image5. What I need is that the script 'finds' the jpg's in a dir on my harddrive.

If you find anything like THAT...that would be great.

Worm
04-22-2003, 01:49 PM
You could find the images using AMS and then pass them to the WebBrowser Object in the URL.

feilong
04-22-2003, 02:24 PM
Why do you always make things sound so easy....

rball
04-23-2003, 07:56 AM
What I did in the end was to create a template html page with place-holders for the image names ie %%image1%%, read in the template, used the replace string %%image1%% with selected/choosen (dynamic) image (full path) and wrote this to the hdrive and displayed it with the browser.
Works a treat.

Russ