1: <?xml version="1.0"?>
2: <!-- http://blog.flexexamples.com/2010/04/29/rewinding-a-video-when-changing-the-selected-item-in-the-mx-accordion-container-in-flex-4/ -->
3: <s:Application name="Spark_NavigatorContent_hide_test"
4: xmlns:fx="http://ns.adobe.com/mxml/2009"
5: xmlns:s="library://ns.adobe.com/flex/spark"
6: xmlns:mx="library://ns.adobe.com/flex/mx">
7:
8: <mx:Accordion id="acc"
9: left="40" right="40" top="40" bottom="40">
10: <s:NavigatorContent label="Video 1"
11: width="100%" height="100%"
12: hide="vidPlay1.seek(0);">
13: <s:VideoPlayer id="vidPlay1"
14: source="http://helpexamples.com/flash/video/water.flv"
15: autoPlay="false"
16: left="0" right="0" top="0" bottom="0" />
17: </s:NavigatorContent>
18: <s:NavigatorContent label="Video 2"
19: width="100%" height="100%"
20: hide="vidPlay2.seek(0);">
21: <s:VideoPlayer id="vidPlay2"
22: source="http://helpexamples.com/flash/video/clouds.flv"
23: autoPlay="false"
24: left="0" right="0" top="0" bottom="0" />
25: </s:NavigatorContent>
26: <s:NavigatorContent label="Video 3"
27: width="100%" height="100%"
28: hide="vidPlay3.seek(0);">
29: <s:VideoPlayer id="vidPlay3"
30: source="http://helpexamples.com/flash/video/cuepoints.flv"
31: autoPlay="false"
32: left="0" right="0" top="0" bottom="0" />
33: </s:NavigatorContent>
34: <s:NavigatorContent label="Video 4"
35: width="100%" height="100%"
36: hide="vidPlay4.seek(0);">
37: <s:VideoPlayer id="vidPlay4"
38: source="http://helpexamples.com/flash/video/caption_video.flv"
39: autoPlay="false"
40: left="0" right="0" top="0" bottom="0" />
41: </s:NavigatorContent>
42: </mx:Accordion>
43:
44: </s:Application>
訂閱:
張貼留言 (Atom)
0 張貼意見:
張貼留言