A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: preloading external filez

  1. #1
    Junior Member
    Join Date
    Sep 2003
    Posts
    8

    preloading external filez

    hey,
    well i was wondering on how to preload an external file like a textfile.

    thanks,
    njkt

  2. #2
    Junior Member
    Join Date
    Oct 2003
    Posts
    4
    try this:

    <instance name>.autosize = true;
    <instance name>.background = true;
    dataLoad = new LoadVars();
    dataLoad.onload = function(){
    showAll.text = this.<var name>;
    };
    dataLoad.load("<file name>");

    note: fla file and file to load must be in the same directory for this code to work.
    Flashes away....=P

  3. #3
    Junior Member
    Join Date
    Sep 2003
    Posts
    8
    hey,
    thanks for ur help, it worked.

  4. #4
    Junior Member
    Join Date
    Oct 2003
    Posts
    4
    no problemz!
    Flashes away....=P

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