| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object | +--com.mosesSupposes.util.MixerFX
Field Summary | |
| public static | PAN: String |
| Tweens a Sound object's pan level | |
| public static | VOLUME: String |
| Tweens a Sound object's volume level | |
Method Summary | |
| public | addTween ( target: Object, prop: String, endval: Object ): Boolean |
| Required by IFuseFX for compliance with FuseFX. Setup, called just prior to tweening. | |
| public | defineProperties ( ): Array |
| Required by IFuseFX for compliance with FuseFX. | |
| public | destroy ( target: Object ): Void |
| Required by IFuseFX for compliance with FuseFX. Cleanup, called just prior to deletion. Listeners are removed by FuseFX. | |
| public | onTweenUpdate ( o: Object ): Void |
| Required by IFuseFX for compliance with FuseFX. Standard event fired by the engine on its update pulse just after updating the property. | |
| public static var PAN: String = "panFX" |
| Tweens a Sound object's pan level |
| public static var VOLUME: String = "volumeFX" |
| Tweens a Sound object's volume level |
|
| Required by IFuseFX for compliance with FuseFX. Setup, called just prior to tweening. | |||||||||
|
|
| Required by IFuseFX for compliance with FuseFX. |
|
|
| Required by IFuseFX for compliance with FuseFX. Cleanup, called just prior to deletion. Listeners are removed by FuseFX. | |||
|
|
| Required by IFuseFX for compliance with FuseFX. Standard event fired by the engine on its update pulse just after updating the property. | |||
|
import com.mosesSupposes.fuse.*; import com.mosesSupposes.fusefx.*; import com.mosesSupposes.util.*; ZigoEngine.register( PennerEasing ); FuseFX.register( MixerFX ); var mySound:Sound = new Sound(); mySound.attachSound("librarySound"); mySound.start(0, 10); // Fade to half volume using the engine ZigoEngine.doTween(mySound, MixerFX.VOLUME, 50, 2, "easeInOutQuint"); // You can't use the constants with Fuse's object-literal syntax, // so instead of MixerFX.pan you should use the value of the constant "panFX" var f:Fuse = new Fuse({ target:mySound, panFX:100, time:2, ease:"easeInOutQuint" }); f.start();This extension provides only the most basic controls, volume and pan. It could be updated to include more complex Sound.setTransform controls.