Flash guru needed.
- Started
- Last post
- 12 Responses
- lw-d
Hi all,
I am trying to loop an external flash video file. Thought it would be easy, seems it isn't. Can anyone help me out?
Thanks.
- CyBrain0
Make sure you don't have too many or not enough frames for your video object on the timeline.
Don't put any actions on there and you should have it loop by default, just like any other movie clip.
- lw-d0
ok, I'll try that, I may have totally bypassed common sense there and jumped into code.
Let me check.
- lw-d0
Didn't work, just to note, the video file is being sourced externally, so there is only one frame in the flash movie.
- acescence0
don't think you can loop an external file, but you can create a listener that checks for complete and plays again
- CyBrain0
I'll have to check out why that didn't work, but try putting a gotoAndPlay(1); on the last frame.
- Mimio0
Are you using the NetStream object?
use a conditional event...
netStream.onStatus = function(infoObject) {
if (infoObject.code == "NetStream.Play.Stop") {
netStream.seek(0);
netStream.play();
}
};
- ********0
what mimio said is the best way.
- PonyBoy0
what mimio said... does that present a 'hickup' in the loop or is it pretty smooth?
- CyBrain0
Hey jared. Are you still at R/GA. Say hi to Mike.
- lw-d0
Still not got it working, do I just place the above code into a frame or do I need to attach it to the movie?
p.s. I am using the FLVPlayback component if that makes a difference?
Thanks,