Craete a photo gallery in flash 5

Hi kirupa friends, i am searching for a tutorial about creating an „intelligent” photo gallery in flash 5.
Means, importing images directly from the server one-by-one by choice.
Any idea? Please help…

-Piet :frowning:

I’m not sure if this is what you are talking about but…

I currently use the example from:
Flash MX > Photo Gallery > Flash 5 example
for the actual photo viewing.

But instead of hardcoding my images into an array I pull their names from an XML file that I create with the url of those photos. So I can add/remove them when I choose.:tie:

well i recomend just putting all the images on seperate fla’s and using the load movie method. :slight_smile:

If I understand your question, dynamic images were not supported in Flash 5 without Generator2 .

:frowning:

Rev

reverendflash:
You can use dynamic images in FLASH 5. You just call them via loadmovie.

DMX:
If you are using a true dyamic gallery, its not logical to add each image to a fla file. When you can view them directly from the server.

imvain:

I’m sorry, but you are incorrect. If you call them via load movie, they are not truly dynamic. Dynamic images site on a server, then are called when needed. At any time simply changing the variables will change which images are shown.

Dynamic Images were not supported without Generator2, until MX. As a Generator2 specialist, I know this as a fact.

Rev

When you use:
loadmovie(‘images/myPhoto.jpg’,_root.Photo)
You can load jpgs.

(Where _root.photo is an instance name of a movieclip)

I have a working version of this with XML to hold the file names.
And, I only have FLASH 5.

Not to mention I found it on Kirupa.com.

how do you change the fact that in loadmovie you have hard coded the myPhoto.jpg image? That is what I mean by dynamic.

What if you want to call something other than myphoto.jpg?

Rev

I dont see how its possible to load .jpgs into Flash unless they are in their own SWF file. because it was a new feature in Flash MX—

http://www.macromedia.com/devnet/logged_in/mchambers_mx.html

and

http://www.kirupa.com/developer/mx/loading.htm

and I can’t get images to load in my Flash 5…

I can only get it to work with Gen2…

iamvain, can you post a sample .fla ?

Rev

If you are saying: If a user is on my flash page, and I update my XML file they won’t have access to the updated XML file with file names until they refresh or I have my flash page reload the XML file with the updates.

I still don’t see how to load .jpg in Flash 5.

Rev

I will when I go home.

If you check out:
http://www.kirupa.com/developer/mx/photogallery.htm

Scroll to the bottom and their is a place to download the FLASH 5 version. I couldn;t get it to work with the fade functions provided, so I just used the changephoto function.

For the hard coding I load my XML file into a simple one dimensional array. Then I can cycle from photo to photo, by calling the array instead of the file name. Just like the example I found from the link I provided before.

we understand the XML part. That isn’t the problem. You aren’t supposed to be able to load .jpg images into Flash unless they are placed in their own separate SWF file…

gotta talk to beener…

http://www.macromedia.com/software/flash/productinfo/newfeatures/

Macromedia even says that its a new feature… i’m confused…

and here they say that you can’t with Flash 5…

http://www.macromedia.com/support/flash/ts/documents/runtime_import.htm

but maybe you can still code it in Flash 5, and the FLash 6 plug in will still load it… ya know?

All I know is, I wanted this to work in Flash 5. And everyone said it wasn’t possible. But, I found Kirupa.com. And my hats off to you guys. You guys have it working in Flash 5!

Where there is a will there is a way!

yeah i think this is why it works:

It doesn’t work in Flash 5, but you can still code it in Flash 5. Then you load the Flash 5 content to the web and it will work because you have the Flash 6 plug-in installed. The Flash 6 plug-in is the key to interpreting the code…

we were just confused as to why you could get it to work and we couldn’t… :slight_smile:

that is what I think has happened. I worked with MM for a couple years in just this problem. If it were possible, and none of us could find out how, then maybe we shouldn’t have been heading the project… :wink:

Rev