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 04-30-2002, 12:54 PM   #1
Flashants
Moderator
 
Join Date: Apr 2002
Location: Taipei, Taiwan
Posts: 147
Default Loop the video.

1.To loop the video in the LoadVideo Smartclip:
Add the OnNewStream function definition in the first frame action of the SmartClip:
function OnNewStream () {
PlayCount(3);
}
Description: Because setting PlayCount only works after the video is loaded, you should call the PlayCount function inside the NewStream action function. Check the frame 4,5,6 actionscripts, the NewStream event finally call to the OnNewStream function.

2. Descriptions of following fscommands in the LoadVideo smartclip
-- fscommand ("fas.event.NewStream", _target+":NewStream");
Once a new video is loaded, go execute the actionscripts in the frame labeled with "NewStream"

-- if (OnEndOfStream) fscommand ("fas.event.EndOfStream", _target+":End");
If OnEndOfStream function is defined, then:
Once a video is end, go execute the actionscripts in the frame labeled with "End"

3. If you wanna load another video file when the first video is end, add the OnEndOfStream function declaration in the first frame action of the LoadVideo SmartClip:
function OnEndOfStream () {
Load("video2.mpg"); // this function is defined in the same(1st) frame
}

4. Please refer to the website tutorial and faq for more information. Pls also feel free to ask us here.
--- --- --- --- --- --- --- --- ---

Replying to:

I am trying to loop a video and load another one...
1) Issue Looping
function PlayCount(nCount)
{
fscommand("fas.avclip.PlayCount",nCount);
What gets changed here to tell it to loop?

2) Playing another file:

fscommand ("fas.event.NewStream", _target+":NewStream");
if (OnEndOfStream) fscommand ("fas.event.EndOfStream", _target+":End");

Where does the code go in this fscommand?

Thanks
Flashants 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
FLV Video Loop (using NetStream)- How do I clear Video/Ram after every video plays? andrewf ActionScript 1.0 (and below) 4 07-28-2006 04:09 PM
i'd like to loop a flv video with actionscript porre ActionScript 2.0 7 12-30-2004 12:44 AM
how can i optimize this further ? if possible fantasio ActionScript 1.0 (and below) 10 07-10-2004 02:18 AM


All times are GMT. The time now is 04:40 PM.


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.