dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: SWF file should not reload!

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    11
    Help - I have a website made up of 4 main SWF files which link to each other. Problem is that in Internet Explorer on both Mac & PC, the SWF files don't seem to be cached - ie. I have to wait for them to reload each time I go back to that page. I am using:

    if (_framesloaded >= _totalframes) {
    gotoAndPlay ("end");
    } else {
    play();
    }

    Which should detect whether the movie has loaded or not, and skip the loading routine. The code seems to be right - so does anyone know what the problem might be? Perhaps you have had a similar problem?

    Thanks in advance

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Post a link to these files?

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    11

    RE: Link

    http://www.atticusmedia.net

    As requested - does your browser have the same prob?

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Although I'm not sure it's really re-loading (might just be a display problem), but add a trace action in your script, to see if your condition is ever met:

    if (_framesloaded >= _totalframes) {
    trace("Condition met!");
    gotoAndPlay ("end");
    } else {
    play();
    }

    If you don't see "Condition met!" popup in the output window when testing this within the application then there lies your problem!


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