Skip navigation
Currently Being Moderated

SWF Frames and Flash Player Frames

Nov 3, 2009 2:02 PM


Could I have the definition about these concepts?
What is the relationship between them?
In particular, I would know if they are paired each other or not during execution.

Thanks in advance.

  • Currently Being Moderated
    Nov 3, 2009 4:16 PM   in reply to Bilbo1984

    A SWF has one or more Frames, and code that dictates when to switch to the next Frame (stop, play, gotoAndStop, etc).  A SWF also has an initial frame rate that can be changed later by code.


    The player basically had a timer based on the current frame rate.  When that timer goes off (or as soon as possible later if the player is busy), the player determines whether to run scripts in the last SWF Frame or a new SWF frame depending on whether the last SWF Frame had any code that called stop.


    Most Flex SWFs have two SWF frames (preloader, and app) and, on a slow network, you watch the preloader frame on each frame tick until the rest of the app is downloaded then we switch to frame 2 and you're stuck there for the rest of the duration of the app.

    Mark as:
  • Currently Being Moderated
    Nov 4, 2009 9:56 AM   in reply to Bilbo1984

    No video of that presentation.


    When a frame is finally downloaded, the player will try to render that SWF frame on its next frame (so it is paired) and it can take "forever" if there are enough code to run and objects to render.

    Mark as:
  • Currently Being Moderated
    Nov 5, 2009 10:40 AM   in reply to Bilbo1984

    Are you referring to getTimer()?  I don't know exactly, but it appears to reset to 0 when the SWF bytes start to stream in.

    Mark as:
  • Currently Being Moderated
    Nov 6, 2009 12:26 AM   in reply to Bilbo1984

    When FR1 is completely loaded, you should get the first enterFrame.  Because there is a stop() on FR1, you will get enterframes at the frame rate (unless lots of code and rendering slow it down), and the currentFrame will remain FR1.  Meanwhile, FR2 is downloading.  When it is finished, unless there is code that switches to FR2, you will remain getting enterframes at the frameRate and currentFrame will remain FR1.


    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.


    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points