PDA

Volledige versie bekijken : geluid inladen


vegeto
%Europe/Berlin %656 %2005, 16:45
ik gebruik deze code om geluid in teladen het probleem is nu ik wil dus de eene keer het geluid up gebruiken en de andere keer down gebruiken maar als ik dan 2 geluiden inlaad drait ie het tegelijk af

code 1
mySound = new Sound();
mySound.attachSound("up");


code 2
mySound = new Sound();
mySound.attachSound("up","down");

en de code om af te spelen is
_root.mySound.start(0, 1);

Laiverd
%Europe/Berlin %753 %2005, 19:05
Wat is mySound.attachSound("up","down");voor maffe code? ff uit de help:
Sound.attachSound()
Availability
Flash Player 5.

Usage
my_sound.attachSound("idName":String) : Void

Parameters
idName The identifier of an exported sound in the library. The identifier is located in the Linkage Properties dialog box.

1 parameter dus.

John