I tried to create now..
<mx:Script>
        <![CDATA[
            import soundplayer;
        ]]>
    </mx:Script>
and calling <SoundPlayer source="fortminor.mp3"/>

My SoundPlayer.as is:
package soundplayer
{

import flash.events.Event;
import flash.events.EventDispatcher;
import flash.media.ID3Info;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.net.URLRequest;
import flash.utils.Timer;
.....

(and all the code from the example).
...

Could not resolve <SoundPlayer> to a component implementation.



On 9/27/07, Paul deCoursey <[EMAIL PROTECTED]> wrote:
>
>   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]<manish.jethani%40gmail.com>
> > <mailto:[EMAIL PROTECTED] <manish.jethani%40gmail.com>>> wrote:
> >
> > On 5/6/07, Sebastian Mohr <[EMAIL PROTECTED]<sebastian.mohr%40gmail.com>
> > <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}" />
> >
> >
> >
>
>  
>

Reply via email to