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.

Exemple<br />

L'exemple suivant illustre la métho<strong>de</strong> removeListener.<br />

import flash.net.FileReferenceList;<br />

var listener:Object = new Object();<br />

listener.onCancel = function(fileRefList:FileReferenceList) {<br />

trace("onCancel");<br />

trace(fileRefList.removeListener(this)); // true<br />

}<br />

listener.onSelect = function(fileRefList:FileReferenceList) {<br />

trace("onSelect: " + fileRefList.fileList.length);<br />

}<br />

var fileRef:FileReferenceList = new FileReferenceList();<br />

fileRef.addListener(listener);<br />

fileRef.browse();<br />

Function<br />

Object<br />

|<br />

+-Function<br />

public dynamic class Function<br />

extends Object<br />

Les fonctions définies par l'utilisateur et les fonctions intégrées dans <strong>ActionScript</strong> sont<br />

représentées par <strong>de</strong>s objets Function, qui sont <strong>de</strong>s instances <strong>de</strong> la classe Function.<br />

Disponibilité : <strong>ActionScript</strong> 1.0 ; Flash Player 6<br />

Résumé <strong>de</strong>s propriétés<br />

Propriétés héritées <strong>de</strong> la classe Object<br />

constructeur (propriété Object.constructor), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype, propriété), __resolve<br />

(Object.__resolve, propriété)<br />

Function 617

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

Saved successfully!

Ooh no, something went wrong!