www.webdeveloper.com
Results 1 to 4 of 4

Thread: Flash- works locally but not on server

Hybrid View

  1. #1
    Join Date
    Jun 2004
    Location
    midlands uk
    Posts
    274

    Flash- works locally but not on server

    hi all,

    ive created a slideshow in flash that works perfectly locally
    but when i uploaded it the images do not show.

    i have a forward (loadButton) and back (unloadButton)

    heres the script in the main timeline

    var photo = 0;
    checkStatus();
    function loadSWF() {
    photo++;
    holder.loadMovie("art" + photo + ".jpg");

    checkStatus ();
    }
    function unloadSWF() {
    photo--;
    holder.loadMovie("art" + photo + ".jpg");
    checkStatus ();
    }
    function checkStatus(){
    if(photo <= 1){_root.unloadButton._visible=false}
    else {_root.unloadButton._visible=true}
    if(photo == 48) {_root.loadButton._visible=false}
    else {_root.loadButton._visible=true}
    }


    the images are loaded into a holder movie clip..

    ive put the images in the same folder as the .swf file so it should work

    any ideas?

    andy
    Last edited by andyshep; 02-13-2005 at 05:10 PM.

  2. #2
    Join Date
    Jun 2004
    Location
    midlands uk
    Posts
    274

    solved

    i had to place the .htm page in the same folder as the .swf file.

  3. #3
    Join Date
    Feb 2005
    Posts
    10
    i reconstructed a flash movie form your code, and like u said it works fine local, but when u upload it doesnt working.

    upload pictures to server, and set absolute loadmovie path to pics, like this:

    holder.loadMovie("http://www.yourhost.com/picsdir/art"+photo+".jpg");

    and test your flash local. it doesnt work well again. i think its all about preloading pics into the movie (holder).

  4. #4
    Join Date
    Jun 2004
    Location
    midlands uk
    Posts
    274
    the button should have this code on them
    (unloadbutton)
    on (release) { unloadSWF() }
    (loadbutton)
    on (release) { loadSWF() }

    the flash worked fine once i put the htm file with the flash in
    the same folder as the .fla file and the images.

    andy

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles