Extending the Flash/XML Photo Gallery Support Product Page

This topic was archived

Adding Functionality

Shared 12 Jan 2006 16:52:20
1
likes this idea
12 Jan 2006 16:52:20 Jeff Witters posted:
I am trying to add to your flash tutorial for my portfolio to show work. What I am trying to do is by removing the combo box and using a custom scroll pane to show thumbnails of selected projects a user can click on the thumbnail which would be a project or client, which would be on the right and that would open the image in a larger window on the left for a full view, which under that would be the number of "views" of a project. So if on the left you have vertically Projects A through F and a user clicks on Project B and you have 7 different slides of project B the numbers 1 through 7 would show up under the slidefor the user to navigate. I have posted a layout to illustrate better what I am talking about. But I cannot seem to get the files to work.

Here is the link to the "comp" of what I am trying to accomplish.

www.silent7.com/template.jpg

If you could help that would be great.


Jeff

Replies

Replied 13 Jan 2006 00:10:29
13 Jan 2006 00:10:29 Sas Jacobs replied:
Hi Jeff

Thanks for the post.

At the moment, I have a lot of paying work to complete which means that I have to give free work a low priority. However, it occurs to me that this might be an interesting subject for a tutorial.

Let me run the idea past DMXZone see if they think it's a good idea. If so, I'll probably aim to complete it in about a fortnight.

Cheers

Sas

Replied 13 Jan 2006 00:27:38
13 Jan 2006 00:27:38 Jeff Witters replied:
Hey thanks for the quick reply

That would be great for a tutorial I think alot of people would love to know how to do it. But let me ask you one question I have been poking around in the code for about 5 hours trying to get the contents of what loads into the combo box into a mc. Once I change the code to the mc the xml doesnt parse at all.

Can you just point me in the right direction, See If I can figure it out....

here is the AS I replace the Combo box Function with. There is a MC on the stage root level with the instance name thumbnails which is the thumb container and i added an attribute for a thumbnail in the xml
<pre id=code><font face=courier size=2 id=code>

function() {
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i&lt;numimages; i++) {
this.picHolder = RootNode.firstChild.childNodes.length; i++];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
this.thumbHolder._y = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
};
}
};

</font id=code></pre id=code>


XML

<pre id=code><font face=courier size=2 id=code>

PhotoGallery
gallery name="Asia" thmb="bug.jpg"
photo jpegURL="heianshrine.jpg" Heian Shrine /photo
photo jpegURL="taj.jpg"&gt;Taj Mahal /photo
/gallery
/PhotoGallery
</font id=code></pre id=code>

took off the " &gt;'s " so it would show the xml
Replied 14 Jan 2006 07:35:39
14 Jan 2006 07:35:39 Sas Jacobs replied:
Hi Jeff

Can you email me the file so I can have a quick look at it?

Sas
( )

Reply to this topic