Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want a solution for playing an flash ani. after my htm page loads

Status
Not open for further replies.

8577

IS-IT--Management
Jun 13, 2000
6
KR
Hello to everyone,

I have a query. I have created a flash animation and incorporated it into my htm page. Till this it is fine but I want the animation to start playing when the whole page loads. Is there anything that I can do.

Plz help me as i have to submit the project as early as possible.

Thanks in advance.

shilps

[sig][/sig]
 
This can be done in your page with Javascript.
I don't know if you code in JS but I will assume that you know a bit since you are an IT person and are using queries.

First count the number of images in your page or use the document.images.lenght property to get it. (If you don't have images it would be a good idea to add one at the bottom of the page, even an invisible one.)

Now that you have the number of images you can create a loop and use the document.image.complete property to see if the last image is loaded (if you have an image at the bottom then you will be able to see if the whole page is loaded)

When the loop exits, then you can use the document.fmovie.play() command to make the movie play. Where fmovie is the name of your movie in the page (not the URL but the name="fmovie" in the EMBED tag.

If you need more information email me.

Good luck. [sig]<p>Fernando Regueiro<br><a href=mailto:ferhelping@yahoo.com>ferhelping@yahoo.com</a><br><a href= > </a><br> [/sig]
 
Sorry, but I can't help you with your loading problem because I'm new to Flash. I was wondering if you might help me though. I have created a typical banner dimension/size animated .gif for a web page. My problem is I don't know how to reduce its size. It's 175k which is way too big! I'm thinking it should weigh in around 10-15k. Do I need to change some setting when I publish and export this file? I've tried everything I can think of. Any help you can offer would be greatly appreciated! [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top