Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : flv


leanne827
8/2/2005 10:56:33 PM
hi all
thanks in advance for your help.
i am working with a bunch of flvs and i need to have one play [say for 5
seconds] and then
when that flv is done, another one should start playing. does any one know how
this can be
achieved? basically how can the flv play and then flash move onto another
frame in the timeline
to play another flv?


a little background if you need it;
- i have a wall of graphic tv screens- sometimes one flv plays in all the
screens [very large flv]
sometimes a bunch of flvs play [one flv in each tv screen]
- i have a mask over the flv movie clip [containing the flvs] to keep the flv
inside the tv screens
- all the flvs have to be in one movie clip
- the flvs play in different sized media windows [depending on if one flv is
playing in all the tv screens
or each tv screen has its own flv]

hope this is clear?
thanks
leanne
leanne827
8/3/2005 12:00:00 AM
hi
thanks for the quick reply
i don't write action script so please bear with me
do i put this code as is in the flv frame?
leanne827
8/3/2005 11:50:34 AM
bump bump

hi all
thanks in advance for your help.
i am working with a bunch of flvs and i need to have one play [say for 5
seconds] and then
when that flv is done, another one should start playing. does any one know how
this can be
achieved? basically how can the flv play and then flash move onto another
frame in the timeline
to play another flv?
Rajesh199
8/3/2005 12:34:03 PM
//use onMetaData event handler to know duration of a flv file
// and using enterframe u can check its duration and after completing play
next movie
//some code

nc=new NetConnection()
nc.connect(null)
ns=new NetStream(nc)
vid.attachVideo(ns)
ns.onMetaData=function(obj)
{
var TotalDuration:Number=obj.duration

}
ns.play("my.flv")


// enJOY :)
AddThis Social Bookmark Button