thanks.I fix the code,en,maybe it's right.I add the new function just
like:
private function choice1(event:Event):void{
if(flvideo.playheadTime != 0){
flvideo.stop();
flvideo.playheadTime=0;
}
flvideo.source="videos/xxx111.flv"
flvideo.play();
}
the function is listen the button1 click. : )
--- In [email protected], "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/6/07, underyang <[EMAIL PROTECTED]> wrote:
>
> > When I click Button to play xxx111.flv, have noquestion.But,When
> > i change slider and click another button to play xxx222.flv,the
> > question is happen.Slider's value is wrong.How can I solve this
> > problem?
>
> Try calling stop() and close() on the VideoDisplay object before
> changing the source. It's possible that the playheadTime goes out of
> sync when you change the source.
>