A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: photo viewer works local but not online (hosting from NAS)

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    2

    photo viewer works local but not online (hosting from NAS)

    hi peeps,

    i have a photo viewer script from (simple viewer)

    it works local, but not online

    i have adobe flash cs6 as2 and hosting my website from my nas server, so files are on W:\

    how to adjust my script to make it work online (www.dion.com for example is my website)

    this is my script that works local but not online (www)



    //Example of loading multiple SimpleViewer swfs into another flash movie.
    //set width and height of SimpleViewer swf
    _global.SVStageWidth = 2350;
    _global.SVStageHeight = 1865;

    //Set button actions
    mcGal1.onRelease = function(){
    loadGallery("photo/ds/graffiti/hunnik/load.xml");
    }

    mcGal2.onRelease = function(){
    loadGallery("gallery2.xml");
    }

    function loadGallery(galName){
    _root.xmlDataPath = galName;
    mcLoader.loadMovie("photo/viewer.swf");
    }

    //load first gallery
    loadGallery("photo/ds/graffiti/hunnik/load.xml");





    please help me

  2. #2
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    wow nobody?!?!


    Quote Originally Posted by deevinity View Post
    hi peeps,

    i have a photo viewer script from (simple viewer)

    it works local, but not online

    i have adobe flash cs6 as2 and hosting my website from my nas server, so files are on W:\

    how to adjust my script to make it work online (www.dion.com for example is my website)

    this is my script that works local but not online (www)



    //Example of loading multiple SimpleViewer swfs into another flash movie.
    //set width and height of SimpleViewer swf
    _global.SVStageWidth = 2350;
    _global.SVStageHeight = 1865;

    //Set button actions
    mcGal1.onRelease = function(){
    loadGallery("photo/ds/graffiti/hunnik/load.xml");
    }

    mcGal2.onRelease = function(){
    loadGallery("gallery2.xml");
    }

    function loadGallery(galName){
    _root.xmlDataPath = galName;
    mcLoader.loadMovie("photo/viewer.swf");
    }

    //load first gallery
    loadGallery("photo/ds/graffiti/hunnik/load.xml");





    please help me

  3. #3
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    make sure your files are at the root access, and also try using a crossdomain policy file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center