how do i integrate xml based photo gallery into flash cs3

Posted on 2008-11-07
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
    LVL 39

    Expert Comment

    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

    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

    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.


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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    Read about why website design really matters in today's demanding market.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
    The goal of the tutorial is to teach the user how to how to record live broadcast.

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now