A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: HTML loaded before flash

  1. #1
    Junior Member
    Join Date
    Sep 2000
    Posts
    2
    I am sure there is a template or an action script that will allow an HTML page to fully load before the .swf starts to download, I cant find it though. I have tried a timer and load movie action script that worked ok, on initial loading of the page, but when returning back to that page had to wait through the timer again after the movie was loaded the first time. What I need is some way of checking that the HTML is fully download before the flash movie starts to play.
    Thanks Mike

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Manchester UK
    Posts
    259
    perhaps have a javascript function that sets a variable in the flash movie. Have the flash movie paused at the start - and play when it recieves the variable. - have the call
    to the function in an onLoad(setVariable()); - the onload
    event will not execute until the page is rendered, so when
    it has rendered it will set the variable which will cause the flash movie to play. Also this will make your back button work - as the page will render immediately - immediately calling the variable and starting the movie.

    hope this helps

    flishkut

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    266
    you can solve this problem by using
    two-frames loop in your movie to wait until some variable become true.

    And in HTML tag <BODY> you should place onLoad event to set
    varable which movie is waiting to the appropriate value.

    If necessary, write me and I'll make a sample for you.

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Location
    Manchester UK
    Posts
    259
    thankyou kost - i should have mentioned both those things as they where how it worked in my head. -i sometimes forget to mention the less intricate steps

    Assume nothing!!



  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    266
    Dear flishkit!

    I did not saw your post before sending my!

    Your post were 10-10-2000 10:44 AM
    and my were 10-10-2000 10:45 AM.

    Of course, your answer is fully enough!

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Location
    Manchester UK
    Posts
    259
    *laughs* great minds think alike

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