Hi guys,
I've been working on this for a while now and while i can get the game to compile with the Import statements:
import com.anttikupila.events.StreamingEvent;
import com.anttikupila.media.SoundFX;
import com.anttikupila.media.filters.DelayFilter;
import com.anttikupila.media.filters.FlangeFilter;
import com.anttikupila.media.filters.LowpassFilter;
Adding a new code block with: (Which I assume is the constructor code for the filter) :
import com.anttikupila.media.SoundFX;
var sound : SoundFX = new SoundFX( new URLRequest( "beat.mp3" ) );
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
sound.play( );
Causes all sorts of mayhem:
Behavior: Design_3_3_SoundFX at line 47
Implicit coercion of a value of type int to an unrelated type Class.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Illegal assignment to class int.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Implicit coercion of a value of type Class to an unrelated type stencyl.api.engine.actor:Actor.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Implicit coercion of a value of type int to an unrelated type Class.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Illegal assignment to class Number.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Implicit coercion of a value of type Class to an unrelated type stencyl.api.engine:GameState.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Incorrect number of arguments. Expected no more than 2.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Implicit coercion of a value of type Number to an unrelated type Class.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
Behavior: Design_3_3_SoundFX at line 47
Illegal assignment to class Number.
sound.filters = [ new FlangeFilter (int = 17600, Number = 880, Number = 0.7) ];
I guess I'd be better off working in Flash instead?
Hansbe, any more tips you can share?