03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Résumé <strong>de</strong>s événements<br />

Evénement Description<br />

onID3 =<br />

function() {}<br />

Résumé <strong>de</strong>s constructeurs<br />

Résumé <strong>de</strong> la métho<strong>de</strong><br />

1134 Chapitre 2: Classes <strong>ActionScript</strong><br />

Appelé dès que <strong>de</strong> nouvelles données ID3 sont disponibles pour un fichier<br />

MP3 que vous chargez à l'ai<strong>de</strong> <strong>de</strong> Sound.attachSound() ou<br />

Sound.loadSound().<br />

onLoad = Appelé automatiquement lorsqu'un son est en cours <strong>de</strong> chargement.<br />

function(success<br />

:Boolean) {}<br />

onSoundComplete<br />

= function() {}<br />

Signature Description<br />

Appelé automatiquement lorsque la lecture d'un son est finie.<br />

Sound([target:Object Crée un nouvel objet Sound pour un clip spécifique.<br />

])<br />

Modificateurs Signature Description<br />

attachSound(id:Strin<br />

g) : Void<br />

getBytesLoa<strong>de</strong>d() :<br />

Number<br />

getBytesTotal() :<br />

Number<br />

Associe le son spécifié par le paramètre id à l'objet<br />

Sound spécifié.<br />

Renvoie le nombre d'octets chargés (transmis en<br />

continu) pour l'objet Sound spécifié.<br />

Renvoie la taille, en octets, <strong>de</strong> l'objet Sound spécifié.<br />

getPan() : Number Renvoie le niveau panoramique défini dans le <strong>de</strong>rnier<br />

appel setPan() en tant qu'entier compris entre -100<br />

(gauche) et +100 (droite).<br />

getTransform() :<br />

Object<br />

Renvoie les informations <strong>de</strong> transformation <strong>du</strong> son<br />

pour l'objet Sound spécifié défini avec le <strong>de</strong>rnier appel<br />

Sound.setTransform().<br />

getVolume() : Number Renvoie le niveau <strong>de</strong> volume sonore en tant qu'entier<br />

compris entre 0 et 100, où 0 correspond à un son<br />

coupé et 100 à un volume maximum.<br />

loadSound(url:String Charge un fichier MP3 dans un objet Sound.<br />

,<br />

isStreaming:Boolean)<br />

: Void

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!