I am hoping that someone out there might be able to answer this question for me.
If you take a look at this site and go to the work section and then choose a tv ad. How is the movie loading and still able to play - can this be done using the tellTarget load movie action.
Must be streaming it, bit like media players can. I think it's an option on the load method, set it to true and it will play while it streams. Though that's just an educated guess.
here's a simple preloader for you that I've made for people having trouble getting started.. tweak the graphics symbols to your liking, but don't change the code unless you know what you're doing.. this way, you can see how it works.. if you want to preload half of the movie, then:
frame 2 of 3 frame preloader
Code:
if (_root.getBytesLoaded() < (_root.getBytesTotal()/2)) {
gotoAndPlay(1);
}
the thing that makes it half is
(_root.getBytesTotal()/2)
if it were 3, it would be 1/3rd of the movie that preloaded, if it were 4, it would be 1/4th the movie that preloaded... etc.. if you wanted to preload the whole movie, it would just be:
Code:
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay(1);}
because the division is removed and the condition is changed from "if loaded is less than total" to "if loaded is not equal to total"
to get the preloader into your movie, you can create a new scene and put it at the front, then select all the frames in the preloader .FLA timeline, use "copy frames", and use "paste frames" to paste them into the EMPTY scene (you do NOT have to create the new layers before you paste)
hope this helps you understand a bit better if you need help, ask - cheers
Just think... I'm only 2 people short of a threesome
bah, I just realized EXACTLY what you're talking about... i thought you meant the site... anyway, same concept.. just don't put up the preloader graphics.. use 3 frames with actions... the movie is probably being loaded from an external SWF, so keep that in mind... the preload actionscripting will be in the external swf, not the main swf... um... that's all I'm saying for now... goodnight
Just think... I'm only 2 people short of a threesome