SourceTec Software

It is currently Wed Apr 16, 2014 10:28 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: AS3 Playing a sound
PostPosted: Sun May 15, 2011 2:12 am 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
I sent a support request to Sothink and I don't think they can help me.

All I need to do is play a sound form the library using AS3.

If anyone knows how to do this please tell me.


Thank you all for your time.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Sun May 15, 2011 1:23 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Hi Lord_Garland,

so you moved to AS3? :)

Have you tried this: http://www.8bitrocket.com/2008/5/23/Tut ... ds-in-AS3/


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Sun May 15, 2011 10:01 pm 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
That was the very tut I was trying to use. I have had no luck with it.

I get the following errors when trying to get this to work.

ERROR: Scene 1, Layer 2, Frame 1, Line 11: Type was not found or was not a compile-time constant: SoundId.
ERROR: Scene 1, Layer 2, Frame 1, Line 11: Call to a possibly undefined method SoundId.


Code is

var my_sound:SoundId = new SoundId();
var my_channel:SoundChannel = new SoundChannel();
my_channel = my_sound.play();


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Mon May 16, 2011 3:14 am 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Have you imported flash library for sounds? Just a thought.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Mon May 16, 2011 3:16 am 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
import flash.media.Sound;
import flash.media.SoundChannel;

Yes I have. I have no idea why this isn't working.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Tue May 17, 2011 2:47 am 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
Could someone send me a SQF with a working sound effect? Called in AS3?

That would be very helpful.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Wed May 18, 2011 2:24 am 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Unfortunately i don't use sound in my project, so I cannot really help you.

Has someone from Quicker replied to your ticket?


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Wed May 18, 2011 2:47 am 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
They sent back one msg saying they didn't understand what I was asking. I sent another one trying to be clearer.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Thu May 19, 2011 3:31 am 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
I know. Sometimes Quicker is not perfectly aligned to Flash and you need to apply some simple trick they will suggest.


Top
 Profile  
 
 Post subject: Re: AS3 Playing a sound
PostPosted: Sat May 21, 2011 1:47 am 
Offline
Guru

Joined: Fri Jan 19, 2007 2:56 pm
Posts: 215
Location: Canada
Have not heard back from them. I really hope I can do this or I will have to give up.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group