A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Can Mac's load movies from external folders?

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    95

    Can Mac's load movies from external folders?

    I exported an HQX from my PC which works fine on my friend's Mac. However, from my main movie file which is in the root folder, it appears that I am unable to load movies that are contained inside a 'data' folder. EG) a button which opens /data/movie1.swf. Do I need to do something different for Mac users?

    Thanks in advance.

  2. #2
    Junior Member
    Join Date
    May 2002
    Posts
    17
    You shouldn't need to do anything different as long as your pathing is correct.

  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    95
    It doesn't appear to be working. When I click on a button, it just loads a blank page.

    This is the script I'm using:

    on (release) {
    loadMovieNum("\\data\\movie.swf", 0);
    }

    Any ideas what could be causing it?

  4. #4
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    The paths are wrong, you can't use backslash (that's PC only, and won't work on a webserver either), use forward slash /.
    You don't need to escape them either.

    on (release) {
    loadMovieNum("/data/movie.swf", 0);
    }
    Sam



  5. #5
    Member
    Join Date
    Jan 2002
    Posts
    95
    Still having no luck. Any other ideas?

    I'm using this:

    on (release) {
    loadMovieNum("/data/movie.swf", 0);
    }
    Last edited by fruiter; 07-17-2003 at 04:20 PM.

  6. #6
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    If you want to load a file from a subfolder of the directory that has the projector in, then use

    code:
    on (release) {
    loadMovieNum("data/movie.swf", 0);
    }



    Otherwise, you're referencing the top level with the first slash.
    Generally the syntax is this:
    code:

    . == current directory
    .. == parent directory
    / == root directory when at the start of a path

    Sam



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