Play "in point" to "out point" of mp3 (audio editor)

I am trying to create an audio editor/player. I want to be able to load a mp3 sound (which i can do) but then play it from lets say a set “in point” to the set “out point” and only that part.

The way i have these set is i have a 15 second slider that you can slide across the waveform. I am able to get the in point and out point via actionscript but what i need to do is lets say i’m at “in point” number 56 which would be 56 seconds into the song and the out point is set to “71” i want it so that when i scrub to that position in the waveform to play just that selection when i hit play.

So basically i am trying to get it to play a selection of the audio piece rather then the whole thing.

What i’m trying to pretty much kind of do is exactly what the itunes ringtone creator does in the new version of itunes. Any code or actual fla example would be greatly appreciated.