Problem with AVFoundationMBS

Hi,

The following code generates “Item not found” for the AVFoundation call. Where do I go wrong?

[code] Dim successful as Boolean

For i as Integer = 1 to 4

if p1.play then
  // ok
else
  MsgBox "p1 failed to play!"
end if

AVFoundation.audioPlayerDidFinishPlaying(p1,successful)

Next[/code]

Any help appreciated.

Strange

audioPlayerDidFinishPlaying is an event for the AVFoundationMBS class.

You need to make a subclass of AVFoundationMBS and implement the event if you want to see it called.

Hi Christian,

Being a newbie I have to ask how I make a subclass of AVFoundationMBS?

Strange

OK, I will find out for myself.

Thanks for previous reply.

Strange