<?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"

                     creationComplete="init();"

                     >

     

      <fx:Script>

            <![CDATA[

                  private function init():void

                  {

                        var s:Sound = new Sound(new URLRequest("test.mp3"));

                        s.play();

                  }

            ]]>

      </fx:Script>

</s:Application>

 

매우 간단합니다. 사운드 클래스에 URLRequest로 MP3파일 읽어와서 넘겨주면 끝~.

저작자 표시 비영리
신고
YOUR COMMENT IS THE CRITICAL SUCCESS FACTOR FOR THE QUALITY OF BLOG POST