
Originally Posted by
elminator
'm really sorry to post 3 issues in 1 post
No need to say sorry at all because we are here to solve the issues
.
The audio was playing fine when I had all the screens in a single swf but now I think since I am loading the child swf to the parent that why the audio is no playing. Is there any simple method to achieve this i.e., playing audio in the child swf and loading the same to the parent ...
Hmm..The simplest alternative in my mind is to save your audio file locally as an mp3 file then just load this mp3 file into the flash by providing its path and then play it, using this actionscript :
Code:
this.createTextField("status_txt", this.getNextHighestDepth(), 0,0,100,22);
var my_sound:Sound = new Sound();
my_sound.onLoad = function(success:Boolean) {
if (success) {
my_sound.start();
status_txt.text = "Sound loaded";
} else {
status_txt.text = "Sound failed";
}
};
my_sound.loadSound("E:\\Sounds\\Digital\\Song.mp3", true);
Hope it helps..
Best Regards,
SajiSoft