# Craete a photo gallery in flash 5

**URL:** <https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609>\
**Category:** Uncategorized\
**Created:** [April 7, 2003, 2:43pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609 "2003-04-07T14:43:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![piet](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@piet](https://forum.kirupa.com/u/piet)\
**Post date:** [April 7, 2003, 2:43pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/1 "2003-04-07T14:43:15Z")

</div>

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 ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:39pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/2 "2003-04-09T14:39:26Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 8:02am UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/3 "2003-04-15T08:02:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 8:15am UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/4 "2003-04-15T08:15:16Z")

</div>

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

☹

Rev ![](http://www.aulman.com/rev.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 1:31pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/5 "2003-04-15T13:31:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:12pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/6 "2003-04-15T18:12:25Z")

</div>

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 ![](http://www.aulman.com/rev.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:22pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/7 "2003-04-15T18:22:58Z")

</div>

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](http://Kirupa.com).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:28pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/8 "2003-04-15T18:28:51Z")

</div>

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 ![](http://www.aulman.com/rev.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:37pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/9 "2003-04-15T18:37:41Z")

</div>

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](http://www.macromedia.com/devnet/logged_in/mchambers_mx.html)

and

[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:39pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/10 "2003-04-15T18:39:10Z")

</div>

I can only get it to work with Gen2…

iamvain, can you post a sample .fla ?

Rev ![](http://www.aulman.com/rev.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:39pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/11 "2003-04-15T18:39:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:41pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/12 "2003-04-15T18:41:15Z")

</div>

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

Rev ![](http://www.aulman.com/rev.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:42pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/13 "2003-04-15T18:42:38Z")

</div>

I will when I go home.

If you check out:  
[http://www.kirupa.com/developer/mx/photogallery.htm](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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:46pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/14 "2003-04-15T18:46:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:47pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/15 "2003-04-15T18:47:28Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:48pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/16 "2003-04-15T18:48:56Z")

</div>

[http://www.macromedia.com/software/flash/productinfo/newfeatures/](http://www.macromedia.com/software/flash/productinfo/newfeatures/)

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 6:50pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/17 "2003-04-15T18:50:27Z")

</div>

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

[http://www.macromedia.com/support/flash/ts/documents/runtime\_import.htm](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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 7:06pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/18 "2003-04-15T19:06:33Z")

</div>

All I know is, I wanted this to work in Flash 5. And everyone said it wasn’t possible. But, I found [Kirupa.com](http://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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 7:11pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/19 "2003-04-15T19:11:25Z")

</div>

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… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 15, 2003, 7:20pm UTC](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609/20 "2003-04-15T19:20:36Z")

</div>

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… 😉

Rev ![](http://www.aulman.com/rev.gif)

[Next page](https://forum.kirupa.com/t/craete-a-photo-gallery-in-flash-5/17609.md?page=2)
