...

View Full Version : sound problem



gencoglu
01-17-2009, 06:38 PM
Whats wrong with my code.. the sound does not work :confused:


thanks


var bir = new Array(m1, m2, m3, m4, m5);
var hedef = new Array(h1, h2, h3, h4, h5);
var say=0;
for (i=0; i<=bir.length; i++) {
bir[i].j = i;
bir[i].onPress = function() {
startDrag(this);
this.onEnterFrame = function() {
if (this.hitTest(hedef[this.j])) {
//.........................
snd = new Sound(this);
snd.attachSound("ses1");
this.snd.start();
//..................
unloadMovie(hedef[this.j]);say++;
kutu.text=say*10;

}
};
};
bir[i].onRelease = function() {
stopDrag();
};
}

gnomeontherun
01-17-2009, 10:25 PM
Could you load the FLA for us to download and test? I have no idea where to begin with this.

gencoglu
01-18-2009, 09:33 AM
okay .. thanks I solved the problm..deleteing (this) in "this.snd.start()"
fixed the problem..

ashton
02-03-2009, 02:10 AM
Thanks for your thread, I have met the same problem.
Really helpful forum



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum