| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Moderator
Join Date: Apr 2002
Location: Taipei, Taiwan
Posts: 147
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |