Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 3 of 3
  1. #1

    Default can't load xml slideshow when in a new folder!

    So I've created an xml slideshow using Flash Slideshow maker pro, because its very fast and versatile and I need to update my galleries frequently. I'm trying to load it into my flash site using the following AS3 script:

    var Xpos:Number = 20;
    var Ypos:Number = 20;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("gallery.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);

    which does work fine. However, the problem I'm now having is I need the slideshow to be contained in one folder to allow me to have multiple slideshows. So I stick the slideshow in a folder named "one" and edit my script to read:

    var Xpos:Number = 20;
    var Ypos:Number = 20;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("one/gallery.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);

    and when I do that, it seems to be unable to read the xml file anymore and I get a "load fail" message. Please help, this has been doing my head in for days!!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    on looking at the error message, its trying to call the xml file from the same folder as itself. How do i tell it to get the xml file from a different folder?

  4. #3

    Default shelly42

    I've created an xml slideshow using Flash Slideshow maker pro, because its very fast and versatile and I need to update my galleries frequently. I'm trying to load it into my flash site using the following AS3 script:

    var Xpos:Number = 20;
    var Ypos:Number = 20;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("gallery.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial