A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preloading swf

  1. #1

    Post

    Hi,

    How do I preload a swf.
    I'm not that good in actionscripting but I know it involves loading swf in to location of a movie clip.
    I'm so confused.




  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    911
    Actually it doesnt involve loading swf into location...much simplier. First create a new scene and move it ahead of everything...if you click on windows > inspectors > scene you can rearrange all of your scenes. Now put 2 keyframes on the first layer of your new scene. In the first keyframe put these actions:

    If Frame Is Loaded (_totalframes)
    Go to Next Scene
    End Frame Loaded

    That checks if the last frame of your entire movie is loaded (_totalframes is the count of ALL your frames...scenes and everything). If that frame is loaded then you know your entire movie is loaded so you go to the next scene...if it isnt Flash will just go to the next frame. The in the next frame put this action:

    Go To and Play (1)

    Then after that create a new layer and put some kind of animation or whatever you want to show up while its loading INSIDE a movie clip and put that movie clip on the new layer.

    If that didnt help you then there are tutorials all over the place (including here) that cover this area...Hope it helps.

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