Adobe Air & Flex/Air개발

Air 비디오 함수 라이브러리 사용

꿈꾸는새벽별 2010. 4. 17. 13:41

Kr.co.mdsl.MosVideo.as

 

<?xml version="1.0" encoding="utf-8"?>

<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

                     xmlns:s="library://ns.adobe.com/flex/spark"

                     xmlns:mx="library://ns.adobe.com/flex/mx"

                     creationComplete="init();">

    <fx:Declarations>

        <!-- Place non-visual elements (e.g., services, value objects) here -->

    </fx:Declarations>

    

    <fx:Script>

        <![CDATA[

            import kr.co.mdsl.flash.MosVideo;

            

            private function init():void

            {

                var mosVideo:MosVideo = new MosVideo(null,"http://www.helpexamples.com/flash/video/cuepoints.flv");

                mos.addChild(mosVideo);

            }

            

        ]]>

    </fx:Script>

    <s:VideoDisplay id="mos" />

</s:WindowedApplication>

 

사용방법은 같다