Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Flashants Support Forum

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-22-2002, 11:19 PM   #1
MikeG
Registered User
 
Join Date: May 2002
Location: New Jersey
Posts: 8
Default Buffering, preloading, end of clip

Could somebody explain buffering to me.

fas.avclip.SetBufferingTime - does this command allow you to preload video before running it. If so, how do I use it properly.

fas.event.NewStream - Does this command allow me to have flash wait until the video is ready to continue? How does this work.

Below is the current code I'm using to load video clips. what can I add to preload the video into memory. And if there is a command, what do I do to flush it from memory?

fscommand ("fas.avclip.VideoOnTop", "false");
fscommand ("fas.avclip.load", "media/MPEG/34.mpg");
fscommand ("fas.avclip.xy", "14,105");
fscommand ("fas.avclip.Autosize", "TRUE");


I noticed that the video clips I'm using sometimes go out of synch with audio and was hoping preloading the video clips would fix this. Any ideas on what I should do?

One last thing,

fas.event.EndOfStream - If I add this as a key frame, does this tell the flash movie to wait until the video is done to continue?

I'm sorry for so many questions but the help isn't very informative in respects as to what these commands do.

Thank you in advance.
MikeG is offline   Reply With Quote
Old 05-27-2002, 01:23 PM   #2
Mentor Lee
Registered User
 
Join Date: Apr 2002
Posts: 38
Default

Quote:
fas.avclip.SetBufferingTime - does this command allow you to preload video before running it. If so, how do I use it properly.
The SetBufferingTime is for streaming video only, if you load the video from local drive, you don't need this command.





Quote:
fas.event.NewStream - Does this command allow me to have flash wait until the video is ready to continue? How does this work.
This command notifies your flash file that a video file was opened.
Then you can call fas.clipinfo.GetAuthor ... to get the clip information




Quote:
I noticed that the video clips I'm using sometimes go out of synch with audio and was hoping preloading the video clips would fix this. Any ideas on what I should do?
You may set the VideoOnTop to true, or
Change the video dimension(w*h) to smaller, or
reduce the video frame rate when you encode the video file





Quote:
fas.event.EndOfStream - If I add this as a key frame, does this tell the flash movie to wait until the video is done to continue?
Yes. for example
frame 1:
fsCommand("fas.avclip.load", ".baby.mpg")
fsCommand("fas.event.EndOfStream",_target + ".EndStream");
stop()

frame 2 ~ frame 10 ...other animation

frame 11, label as EndStream:
goto frame 5

Then the flash stop at frame 1, and continue to play frame 5 when finish playing video.


[Tips]: If you want the event/variable to work in movie clips,
you may pass
_target + ".yourEventFrameLabel" or
_target + ".yourVariable"
to fas.event.xxx commands
Mentor Lee is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1161 09-03-2009 04:45 PM
preloading a duplicate movie clip sel ActionScript 1.0 (and below) 5 08-01-2003 10:57 AM
An OOP question?? texbala ActionScript 1.0 (and below) 5 07-25-2003 11:13 PM
smart clip... vidda ActionScript 1.0 (and below) 0 12-14-2001 03:57 PM
I'm sorry, but.........what is smart clip please? black ActionScript 1.0 (and below) 1 12-10-2001 08:31 PM


All times are GMT. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.