A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preloading

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    2

    Preloading

    I know that we could creat preload that load url, something like this.
    loadMovie("http://www.falshkit.com./fakeone.swf", _root.shell);

    My question is, is there a way to load movie that is in sub folder or in different directory. Such as C:\Flash\testing.swf.

    I try to switch the rout to local directory but got an error.

  2. #2
    Senior Mamba austriaman's Avatar
    Join Date
    Aug 2004
    Location
    Somewhere over the rainbow
    Posts
    472
    code:
    on (release) {
    loadMovie("./loadee.swf", _root.shell);
    }

    ./ = loads swf that is in the same folder
    code:
    on (release) {
    loadMovie("../loadee.swf", _root.shell);
    }

    ../ = loads swf that is in the parent folder
    code:
    on (release) {
    loadMovie("./Flash/loadee.swf", _root.shell);
    }

    or
    code:
    on (release) {
    loadMovie("Flash/loadee.swf", _root.shell);
    }

    loads swf that is in a child folder called "Flash".

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