Skip to main content
Known Participant
January 19, 2010
Question

Can some HELP with a SOUND ERROR?

  • January 19, 2010
  • 1 reply
  • 692 views

Iam trying to control my sound via AS3.  My code looks like this:

var mysound:Mysound = new Mysound();

addChild (mysound);

var mysound:CustomSoundClass =

new SoundClas();

mysound.play();

I gives me an error code:1151: A conflict exist with definition mysound in namespace internal. I and also the website doesn't function properly like my intro movie doesn't play and then it skips thorough everthing else.

What do I need to do, I found something on the internet that helped me to put the first (var mysound:Mysound......), which cut down 90% of the errors. When I Test Movie my site.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 19, 2010

mysound can't be both a Mysound instance and a CustomSoundClass instance.

and, unless Mysound is a displayobject, it doesn't make any sense to add it to the display list.

HTIMS_GAuthor
Known Participant
January 19, 2010

Still getting two errors after I took away the addChild. my two errors are:

1046 Type was not found or was not a compile time contant:SoundClass

1180: Call to possiable undifine method SoundClass

kglad
Community Expert
Community Expert
January 19, 2010

that means you have no SoundClass defined in the class path of your swf.