<?xml version="1.0" encoding="utf-8"?> <mx:Application width="439" height="387" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*" creationComplete="init()" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import flash.net.navigateToURL; import mx.collections.ArrayCollection; [Bindable] private var files:ArrayCollection; private function init():void { files = new ArrayCollection(); files.addItem({label:"New-York", data:"new-york.flv"}); files.addItem({label:"Football", data:"football.flv"}); files.addItem({label:"NBA", data:"nba.flv"}); files.addItem({label:"Whales", data:"whales.flv"}); files.addItem({label:"Giants", data:"amonggiants.flv"}); } private function handleChanged():void { sphericVR.video.source = "videos/"+myCombo.selectedItem.data; } ]]> </mx:Script> <mx:Panel y="10" width="419" height="362" layout="absolute" title="Video360" x="10"> <ns1:SphericVR id="sphericVR" right="0" left="0" top="0" bottom="0"/> <mx:ControlBar horizontalAlign="right"> <mx:ComboBox id="myCombo" dataProvider="{files}" change="handleChanged()" width="126"/> </mx:ControlBar> </mx:Panel> </mx:Application>