Hi John,

Yes, I have a couple apps out their on iPad.  One specifically does indeed
play external mp3s loaded from a sub directory.  It also records and plays
back wavs.

All doable.

I haven't responded because I did the last one approximately 10 months ago
and really don't recall the details.  I do vaguely remember some hurdles,
but I think most of the struggle revolved around recording sounds.

I just found where I loaded the mp3 -  perhaps this helps?

public static function playMP3File(sound_id:String):void
{
var existFile:File = File.applicationDirectory .resolvePath("mp3s/sound_" +
sound_id + ".mp3");
 if(existFile.exists)
{
sound_playing = true;
existFile.addEventListener(Event.COMPLETE,onfileOpenLoad);
existFile.load();
 function onfileOpenLoad(evt:Event):void
{
existFile.removeEventListener(Event.COMPLETE,onfileOpenLoad);
var song:Sound = new Sound()
song.load(new URLRequest(existFile.url));//nativePath
 mp3channel = song.play();
          mp3channel.addEventListener(Event.SOUND_COMPLETE,
doSoundComplete);
}
 function doSoundComplete(e:Event):void
{
mp3channel.removeEventListener(Event.SOUND_COMPLETE, doSoundComplete);
sound_playing = false;
}
}

}

On Thu, Mar 15, 2012 at 2:25 PM, John R. Sweeney Jr. <jr.swee...@comcast.net
> wrote:

> So no one has dabbled in iPad apps? That's a bit surprising or is that
> saying "don't"?
>
> :(
>
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
>
>
> On Mar 14, 2012, at 1:57 PM, John R. Sweeney Jr. wrote:
>
> > Has anyone built a app in AIR for iPad? I'm experimenting now, for a
> project coming up and have found that when I access an external mp3 and try
> to load and play, that it doesn't play. Works on my desktop, but not on the
> iPad.
> >
> > I have internal audio that works just fine, but can't hear the external,
> so I'm assuming that is not loading? I'm sure there are other gotcha's
> going to the iPad, so any ideas of a good resource or book on the specific
> subject of AIR for iPad that someone would recommend.
> >
> > This one is going to be fun… :)
> >
> > John
> >
> > Senior Interactive Multimedia Developer
> > OnDemand Interactive Inc
> > Hoffman Estates, IL 60169
> >
> >
> >
> >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to