[Papervision3D] 3D Sound in AS3 (source)

gamera gamera at detuner.org
Wed Mar 7 03:14:00 EST 2007


thank you!

playing a little...
http://klabo.org/3dSound_as3_6.swf

[k]

Il giorno 07/mar/07, alle ore 06:16, De'Angelo Richardson ha scritto:

> whoops wrong fla. heres the right one...
>
> De'Angelo Richardson <dialeoson at yahoo.com> wrote:
> I added the 3d sound controler DisplayObject3D.
>
> You can set the maximum distance for the sound like this,
> obj.maxSndDist.
>
> To control the volume and pad you can use it like this,
> obj.SndVol and obj.SndPan which are read only. obj is a  
> DisplayObject3D.
>
> To attach a sound you can use,
> var sound1 :Sound3D = new Sound3D("mysound.mp3");
> and you can control that sound using,
> sound1.setVolume(obj.SndVol); // the object controls the volume and  
> the pan
> sound1.setPan(obj.SndPan);
>
> Sound3D.as goes in the scene folder of pv3d. It includes all the  
> sound objects to have sound in a scene except SoundMixer which is  
> used to compute spectrum data.
>
> enjoy...
>
>
> -De'Angelo
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> -De'Angelo
> <3dSound_as3.fla>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

--------------------
RELIGION IST HEILBAR
--------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070307/7350b8cc/attachment-0001.htm


More information about the Papervision3D mailing list