<?xml version=
"1.0"
?
encoding=
"utf-8"
?>
<s:Application xmlns:fx=
"http://ns.adobe.com/mxml/2009"
???????????????
xmlns:s=
"library://ns.adobe.com/flex/spark"
xmlns:mx=
library://ns.adobe.com/flex/mx"
?
minWidth=
"955"
?
minHeight=
"600"
>
????
<s:layout>
????????
<s:BasicLayout/>
</s:layout>
?
<fx:Script>
<![CDATA[
????????????
protected
?
function
?
button1_clickHandler(event:MouseEvent):
void
????????????
{
????????????????
vd.play();
}
?
button2_clickHandler(event:MouseEvent):
void
{
vd.pause();
}
?
?
button3_clickHandler(event:MouseEvent):
void
{
vd.stop();
}
?
]]>
</fx:Script>
?
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
?
</fx:Declarations>
<s:VideoDisplay id=
"vd"
?
source=
"http://localhost/flex/M2U00883.flv"
?
x=
"59"
?
y=
"83"
?
width=
"496"
?
height=
"335"
?
autoPlay=
"false"
>
</s:VideoDisplay>
<s:BorderContainer x=
"63"
?
"427"
?
"43"
>
<s:Button x=
"105"
?
"10"
?
label
=
"播放"
?
click=
"button1_clickHandler(event)"
/>
"212"?
"暂停"
?
"button2_clickHandler(event)"
/>
"327"?
"停止"
?
"button3_clickHandler(event)"
/>
</s:BorderContainer>?
</s:Application>