Tell me how to call this function in Javascript?
import flash.external.ExternalInterface; ExternalInterface.addCallback("play", pt); function pt() { var mySound:Sound = new Sound(); mySound.load(new URLRequest("myFavSong.mp3")); mySound.play(); } Tell me how to call this function in Javascript?
import flash.external.ExternalInterface; ExternalInterface.addCallback("play", pt); function pt() { var mySound:Sound = new Sound(); mySound.load(new URLRequest("myFavSong.mp3")); mySound.play(); } Source: https://ru.stackoverflow.com/questions/521661/
All Articles