Re: [Flashcoders] AIR and external mp3's

2012-03-15 Thread John R. Sweeney Jr.
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


Re: [Flashcoders] AIR and external mp3's

2012-03-15 Thread Kurt Dommermuth
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


Re: [Flashcoders] AIR and external mp3's

2012-03-15 Thread Rob Romanek
Hi John,

Yes I have developed apps that use external mp3 files, that was a last year so 
I'm trying to remember if we had any gotchyas. It should work. Are you sure you 
are bundling the mp3 files properly with your app so they exist on the iPad?

If I come up with any ideas I'll let you know.

cheers,

Rob

On 2012-03-15, at 2:25 PM, John R. Sweeney Jr. 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


[Flashcoders] AIR and external mp3's

2012-03-14 Thread John R. Sweeney Jr.
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


Re: [Flashcoders] AIR and external mp3's

2012-03-14 Thread Karl DeSaulniers
Have you tried running your mp3 through iTunes converter and using an  
exported mp3 from that?

Might be a quick fix.

Best,
Karl


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


Karl DeSaulniers
Design Drumm
http://designdrumm.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders