Solved

A dynamic XML flash gallery

Posted on 2006-06-20
2
707 Views
Last Modified: 2006-11-18
Hi,
The goal of my flash file is to create an image gallery dynamically through XML.  
The program should:
1.  load an XML file
2.  create buttons for each image in the folder
3.  Load the appropriate image into a blank movie clip when its corresponding button is clicked

All this should happen automatically based on the XML file and image folder.

I think im fairly close, but there could be a major flaw in my code that I just don't know about.
There are some comments in the code that may help to clarify things.
It should be noted that all the code in the 2nd frame is on the dot movie clip in the center of the stage, but this is definitely not where the problems are.  The code is on the first frame of the actions layer.

you can grab the zip file, which has the XML file, .fla, and image folder from here:
http://www.geocities.com/sporkzeus2010/gallery.zip

Thanks in advance!
0
Comment
Question by:jayatpitt
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 16951109
Hi,

I have fixed it and uploaded the fixed version here:
http://www.4shared.com/file/2147319/7dfd546e/gallery_fixed.html

Rgds
Aneesh
0
 
LVL 1

Author Comment

by:jayatpitt
ID: 16953390
Its good to know that I was indeed fairly close.  Thanks a ton aneesh!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now