A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Two quick question

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    119
    1) Preloader question: I have a movie and there is a preloader attached to it. How does a preloader work? Does it wait for all the frames of the movie to be downloaded and all the embedded movie clips and the movie clips embedded within movie clips? It seems that when I play my movie it starts playing and then it stops to download the movie clips and thus the motion is jerky. If you want to, you can see an example on an incomplete movie at http://www.merajsami.com -- click on the About Me link. What else can I do to resove the problem?

    2) Sound Question: a)I have a movie clip that has two frames. The first frame has the Stop action. The second frame, named, soundframe, has a sound file attached to it and then the Stop action. When I import this movie clip into another movie and call the soundframe on a button press, it seems that it works only on the alternate click. If I take out the Stop action from the second frame , then it works fine. What is the sequence of action that is taking place here? You can see the example at http://www.merajsami.com/soundmaintest.html and can download the movie at http://www.merajsami.com/soundtest.zip
    If you take out the stop action in the second frame of the mcsound, it will work fine. Does anyone know?

    b)Since we do not have attachmovie method of the Sound object yet, the only way to attach the sound files are through frame actions -- Does it mean we cannot control the volume of the sound through action script or is there another way to do it if anyone knows?

    Thanks.

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    440
    befeft...

    I fixed it...

    1) in the main fun file, set the tween on the only frame to "0" (not required, but just to be sure.

    2) in the mssound, add another frame. On the 2 frame set the tween to 20.

    3) In the sound -actions setting, remove the stop movie from the 2nd frame.

    What was happening was, that the movie would stop on frame 2. Adding the 3rd frame allows the movie to play back to frame one. The 20 tweens allows you time for the sound to play.

    Hope that helps. Any problems email me and I will send your files back fixed!!

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    The preloader has no knowledge of loaded movies. Putting a stop action on a first frame is asking for trouble.

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Posts
    440
    Bob,

    Why is "stop movie" trouble on a first frame? I have never had problems with it that I know of.

    just wondering

  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    119
    Frank,

    Yes, please send me your files so I can take a look at it. I solved it in another way, but I'd like to take a look at it too.

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Originally posted by fwhilton
    Bob,

    Why is "stop movie" trouble on a first frame? I have never had problems with it that I know of.

    just wondering
    It is a problem becuse the First frame in KM without a preloader is really SWF Frame 0. The Flash Player often skips SWF Frame 0 as it loads from the web but not from a projector...

    If you don't belive me- Make a Simple Animation with a stop frame on Frame 0 without a preloader- Then play it in a Web Browser- The first time through it skips the stop frame.

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