A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how to upload flash file properly

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    19

    how to upload flash file properly

    simple question as far as uploading a flash site online. What do I do to set the path so the file can find the loadMovies online. Do I do it with the flas or can it be done from the ftp? the file is online at www.mkzero.com and the loadMovies do not show. thanks for your time

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    The paths has to be set IN the fla. Note that realtive paths are relative to the html document and not the Flash file. Thats the most common reason things work locally but not online.

    So either have the html in the same folder as the rest of the files or use absoulute paths (urls) when referencing a external file..

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Nov 2003
    Posts
    19

    how do I referance the external urls

    hmmm all my swf.s and html are in the same folder. but where do I write the script to referance absolute path to the url.here is my load movie script.
    on (press) {
    this.gotoAndStop(3);
    _root.loadInfo.loadMovie(this._name+".swf");

    }
    I tried to write a url referance script yesterday but it did not work.

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    An absolute url starts with http://www.

    on (press) {
    this.gotoAndStop(3);
    _root.loadInfo.loadMovie("http://www.myServerName.com/"+this._name+".swf");
    }

    I dont think its a good idea to name variables with a underscore in the beginning.

    Your code indicates its placed in a movieclip, which means that you have specified the variable _name in there too. Is that true?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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