how do i integrate xml based photo gallery into flash cs3

Posted on 2008-11-07
Medium Priority
Last Modified: 2013-12-04
I have asked this question before but I think  I have to ask it differently.

I have created an xml base photo gallery which give me ( file.swf, file.xml, and other file names)
I want to use flash cs3 action script to integrate this gallery into my page.

what step should I take to do that.

Question by:eladgraphics
  • 2
LVL 39

Expert Comment

ID: 22929325
if your gallery swf file is developed in AS2 you can load it into an AS3 file, but you wont' have any access to it.

Author Comment

ID: 22931425
thanks so much for replying.  I don't understand your answer.  can you give me an example of the script I have to right in the as3. and what do you mean by I am not going to have access to it?  It is a photo gallery for displaying customer history in his flash website.

again thanks
LVL 39

Accepted Solution

blue-genie earned 2000 total points
ID: 22938267
by access it i mean for example if you had a variable that said currentImage - the container (the file you're loading into that you're using AS3) will not be able to read that value.
why do you want to use AS3 to load the AS2 file?

in terms of loading the file you just can use the Loader Class
example from help file where banana.jpg will be replaced with the path to your swf.
try this first- i'm willing to put a whole lot of money down that you'll get lots of error messages, but lets see.

import flash.net.URLRequest;

var pictLdr:Loader = new Loader();
var pictURL:String = "banana.jpg"
var pictURLReq:URLRequest = new URLRequest(pictURL);


Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 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