briedis Posted October 12, 2008 Report Share Posted October 12, 2008 Nu kaut kas nesanāk un viss. Šitā skaņa skan: stop(); stage.addEventListener(MouseEvent.CLICK, advance); function advance(event:MouseEvent) { //var skana_url = root.loaderInfo.parameters.skana; var skana_url = "sound.mp3"; var s:Sound = new Sound(); s.load(new URLRequest(skana_url)); s.play() } bet ja mēģinu ielādēt skaņu padodot caur HTML parametru: <param name="FlashVars" value="skana=sound.mp3" /> un stop(); stage.addEventListener(MouseEvent.CLICK, advance); function advance(event:MouseEvent) { var skana_url = root.loaderInfo.parameters.skana; var s:Sound = new Sound(); s.load(new URLRequest(skana_url)); s.play() } Nekas neskan ;( Esmu diezgan izmisis. Šito lietu steidzami vajag nodarīt, bet esmu iestrēdzis, un nesaprotu kas par vainu. (Action Scripts 3.0) Kur varētu būt problēma? Link to comment Share on other sites More sharing options...
briedis Posted October 12, 2008 Author Report Share Posted October 12, 2008 Atrisināts! Link to comment Share on other sites More sharing options...
andrisp Posted October 12, 2008 Report Share Posted October 12, 2008 Nu varbūt padalies ar risinājumu... Link to comment Share on other sites More sharing options...
briedis Posted October 12, 2008 Author Report Share Posted October 12, 2008 Manis paša stulbums. Karoč, publicējot caur flash, viņs uztaisa html gan javascript objekta ievietoshanu, gan arii bez skriptu objektu ievietoshanu ar <embed> tagu. Es mainu vislaik embed tagam tos parametrus, bet izraadaas, ka vajadzeeja mainiit javascript, jo izpildaas tikai tas. Ja buutu JS izsleegts, tad varbuut buutu kkas noticis :) Link to comment Share on other sites More sharing options...
Recommended Posts