Just a guess, but do you have a package declaration in the SoundPlayer.as file?
Arleston Lueders wrote: > Newbie question: > I'm trying to import/include the SoundPlayer.as to my Flex app. > <mx:Script source="SoundPlayer.as"/> > And after this in a panel Im putting the code: > <SoundPlayer source=" fortminor.mp3"/> > But it's giving an error: > 1037: Packages cannot be nested. > > What am I doing wrong? > Thanks > > On 5/6/07, *Manish Jethani * <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > On 5/6/07, Sebastian Mohr <[EMAIL PROTECTED] > <mailto:sebastian.mohr%40gmail.com>> wrote: > > > is there anybody who can explain how to > > give a mx:HSlider-component the ability to > > scrub in a MP3-file? > > Basically you have to call play() on the Sound object with the new > position as the argument. > > Or you can use the SoundPlayer component: > > http://mannu.livejournal.com/343918.html > > <SoundPlayer source="boombastic.mp3" position="{slider.value}" /> > > >

