<?xml version="1.0"?>
<!-- http://blog.flexexamples.com/2010/04/29/rewinding-a-video-when-changing-the-selected-item-in-the-mx-accordion-container-in-flex-4/ -->
<s:Application name="Spark_NavigatorContent_hide_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<mx:Accordion id="acc"
left="40" right="40" top="40" bottom="40">
<s:NavigatorContent label="Video 1"
width="100%" height="100%"
hide="vidPlay1.seek(0);">
<s:VideoPlayer id="vidPlay1"
source="http://helpexamples.com/flash/video/water.flv"
autoPlay="false"
left="0" right="0" top="0" bottom="0" />
</s:NavigatorContent>
<s:NavigatorContent label="Video 2"
width="100%" height="100%"
hide="vidPlay2.seek(0);">
<s:VideoPlayer id="vidPlay2"
source="http://helpexamples.com/flash/video/clouds.flv"
autoPlay="false"
left="0" right="0" top="0" bottom="0" />
</s:NavigatorContent>
<s:NavigatorContent label="Video 3"
width="100%" height="100%"
hide="vidPlay3.seek(0);">
<s:VideoPlayer id="vidPlay3"
source="http://helpexamples.com/flash/video/cuepoints.flv"
autoPlay="false"
left="0" right="0" top="0" bottom="0" />
</s:NavigatorContent>
<s:NavigatorContent label="Video 4"
width="100%" height="100%"
hide="vidPlay4.seek(0);">
<s:VideoPlayer id="vidPlay4"
source="http://helpexamples.com/flash/video/caption_video.flv"
autoPlay="false"
left="0" right="0" top="0" bottom="0" />
</s:NavigatorContent>
</mx:Accordion>
</s:Application>
TEST
訂閱:
張貼留言 (Atom)
0 張貼意見:
張貼留言