Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Preloading a swf
From: Gregg Caines
Date: Mon, 30 Oct 2000 23:15:29 GMT

In that case, you can just use 'load movie' and have your loaded movie's
first frame be blank, with a 'stop' actionscript in it. When you need it to
play, just target it and tell it to play.

That's the method I use because I avoid client-side scripting like the
plague.

---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesatneometrixsystems [dot] com

> yes, but is there any way to use Javascript to cache flash movies before
> actually playing them? ie
>
> i have a flash movie three levels deep into my website, but i don't want
> people to have to look at a "loading..." screen when they link to it.
There
> is a lot of content on my homepage, and chances are people will spend some
> time viewing it before moving along. is there any way to cache the movie
> from the homepage? for images, you just put this between the head tags:
>
> if (document.images) {
> cached_image = New Image();
> cached_image.src = "image.gif";
> }
>
> I haven't tried it yet, but I think replacing "image.gif" with "movie.swf"
> should work fine. I don't think Javascript checks file extensions.
>
> You'd probably want to put the code inside a function and call it from an
> OnLoad event, so that it loads the page before caching the movie.
>
> david



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save 200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Preloading a swf, Ken Grygienc
  Re: FLASH: Preloading a swf, Gregg Caines
  Re: FLASH: Preloading a swf, David Gee

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]