Flashants
04-30-2002, 12:54 PM
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
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