Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : VIDEO: Loading from CD


wmffra
5/14/2004 11:06:39 PM
'Flash/Video/CD'

Hello all,
I've been searching the forums for a few weeks, seen loads of different ideas
tested most of them only to find:
"@~*BALLS*!#" didn't work, carry on looking!
I've searched so much my computer's starting to fall asleep, the mouse is
complaining of exhaustion and the keyboard just

wont talk to me anymore!

The Problem: 'CD-Based project'
Does anyone know a way of decreasing the long waiting time when loading an
external (embedded video) .swf into a main movie?
Quick example a 16mb .swf will take approximately 8-10seconds to load from cd
before starting to play . . . . .

I've tried all sorts of different combinations of preloaders they all have the
same result: while the movie loads all the

animation and mouse movements stop dead then the preloader flashes on the
screen for a split second.

This doesn?t work either:
loadSWF = function (swf, startFrame) {
_root.container_mc.loadMovie(swf);
checkLoaded = function () {
total = _root.container_mc.getBytesTotal()*0.25;
if (_root.container_mc.getBytesLoaded() >= total) {
stopAllSounds();
_root.container_mc.gotoAndPlay(startFrame);
clearInterval(itv);
}
};
itv = setInterval(checkLoaded, 10);
};

The above code was given to me by Kalliban(Cheers mate ;o)
It also by-passes, so the video still fully loads . . . .


Any ideas?????????????
I?m sure a lot of us are in the same boat . . . .

Many thanks
WmffraText
jon j
5/14/2004 11:17:22 PM
You shouldn't have that long of a wait. Loading a swf file with the video
inside will start playing as soon as enough has loaded to do so. You don't need
to preload it, loading swf will load progressively from the web, or cd.
If you must preload (very slow machine) place a stop(); action in the first
frame with a play button.
This way it will load in the background until the user clicks the button. I do
this for video on-line when authoring
for flash player 6
Jon
wmffra
5/14/2004 11:41:36 PM
Thanks for the reply,
The main problem is that the video wont start playing until it has fully
loaded from the cd, no preloader/progress indicator works or even displays
until the whole video is in memory.

If I could reassure the user that they are actually waiting for something to
load or just decrease the waiting time. At the moment when the user clicks to
view any of the videos it just looks like their computer has crashed, nothing
moves not even the mouse for 10 seconds . . . . .

Cheers
Wmffra
jon j
5/15/2004 1:48:56 AM
I'm not sure how your doing it but.....
Use a empty movieclip on your time line you wish to show the video.
Use the loadMovie() function to load the swf embedded with video into the
empty clip.
It should start in a second or two.
Really! I do it all the time?!! Here is an online example...
Go to http://jaschob.com and in the right hand column, click on "The Evolution
of Man".
The video is loading in the background till you click the play button. This is
a 10mb video.
This works for player 6 and 7.
Jon
wmffra
5/15/2004 11:50:04 AM
I agree totally with you:
It works fine online, I've done it before with no problems.

But have you ever tried it on a cd?
It will always fully load direct from the cd then start playing, totally stuck
on this one . . . . .


jon j
5/15/2004 5:49:11 PM
Hi,
I just did a test using the same video I use on-line.
It seemed to work fine. I am publishing through an html page.
I tested with and without a play button, both videos started within 2 seconds.
Seems strange yours hangs the machine. How do you have your timeline set up?
Jon
wmffra
5/15/2004 7:54:25 PM
Me again,

Not sure if I've made myself clear on this one, so here we go:
The main movie is published as a projector, the videos(x16 all 16-20mb) have
been setup in separate .swf files that are called and loaded into a _mc when
required using buttons etc inside the projector. All files are then saved to a
cd, when the projector is running from the cd an initial 10 second delay will
occur before any of the videos start playing . . . . .

Are you doing the same type of thing?

Cheers
Wmffra
Virtual Man 2
8/27/2004 10:17:29 PM
So please I need to your help now on this subject exactly

FlashJester Support Team
8/30/2004 11:06:38 AM
You can use JMovie

http://jmovie.flashjester.com

or use FLV files

http://www.flashjester.com/?section=faq&cPath=14_53

--
Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

"Happiness is not so much in having as sharing."
"We make a living by what we get, but we make a life by what we give."




AddThis Social Bookmark Button