actionscript 3 - SoundTouch Class Example -
i've classes , i'm trying call function of class main swf. i'm getting error 1120. here's main fla:
import playerclass; simpleplayer.play(sound1);
edit: i've found example i'm still getting error.
var source:sound = new sound1(); var output:sound = new sound(); var soundtouch:soundtouch = new soundtouch(); soundtouch.pitchsemitones = -6; var filter:simplefilter = new simplefilter(sound, soundtouch); output.addeventlistener(sampledataevent.sample_data, filter.handlesampledata); output.play();
this gives me error:
sahne 1, katman ‘katman 1’, kare 1, satır 18, sütun 44 1120: sound tanımlanmamış özelliğinin erişimi.
when try:
var source:sound = new sound1(); var output:sound = new sound(); var soundtouch:soundtouch = new soundtouch(); output.play();
i'm getting error
argumenterror: error #2068: invalid sound. @ flash.media::sound/play() @ adsız_08_fla::maintimeline/frame1()
the class source here: https://github.com/also/soundtouch-as3
all in every single cases trying play empty sound:
var output:sound = new sound();//this empty sound output.play();//nothing play error
you need follow tutorial on how play sound in actionscript 3. believe actionscript 3 docs have working example. suggest start there.
Comments
Post a Comment