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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mc.curveTo(r+x, Math.tan(Math.PI/8)*r+y, Math.sin(Math.PI/4)*r+x,<br />

Math.sin(Math.PI/4)*r+y);<br />

mc.curveTo(Math.tan(Math.PI/8)*r+x, r+y, x, r+y);<br />

mc.curveTo(-Math.tan(Math.PI/8)*r+x, r+y, -Math.sin(Math.PI/4)*r+x,<br />

Math.sin(Math.PI/4)*r+y);<br />

mc.curveTo(-r+x, Math.tan(Math.PI/8)*r+y, -r+x, y);<br />

mc.curveTo(-r+x, -Math.tan(Math.PI/8)*r+y, -Math.sin(Math.PI/4)*r+x,<br />

-Math.sin(Math.PI/4)*r+y);<br />

mc.curveTo(-Math.tan(Math.PI/8)*r+x, -r+y, x, -r+y);<br />

mc.curveTo(Math.tan(Math.PI/8)*r+x, -r+y, Math.sin(Math.PI/4)*r+x,<br />

-Math.sin(Math.PI/4)*r+y);<br />

mc.curveTo(r+x, -Math.tan(Math.PI/8)*r+y, r+x, y);<br />

}<br />

Vous trouverez également un exemple dans le fichier drawingapi.fla <strong>du</strong> dossier<br />

Samples\<strong>ActionScript</strong>\DrawingAPI. La liste suivante présente les chemins type vers ce<br />

dossier :<br />

■ Windows : \Program Files\Macromedia\Flash 8\Samples et Tutorials\Samples\<br />

■ Macintosh : HD/Applications/Macromedia Flash 8/Samples et Tutorials/Samples/<br />

Voir également<br />

beginFill (métho<strong>de</strong> MovieClip.beginFill), createEmptyMovieClip (métho<strong>de</strong><br />

MovieClip.createEmptyMovieClip), endFill (métho<strong>de</strong> MovieClip.endFill),<br />

lineStyle (métho<strong>de</strong> MovieClip.lineStyle), lineTo (métho<strong>de</strong> MovieClip.lineTo),<br />

moveTo (métho<strong>de</strong> MovieClip.moveTo), Math<br />

_droptarget (propriété MovieClip._droptarget)<br />

public _droptarget : String [lecture seule]<br />

Renvoi le chemin absolu, en utilisant une notation <strong>de</strong> syntaxe à barre oblique, <strong>de</strong> l'occurrence<br />

<strong>de</strong> clip sur laquelle ce clip a été déposé. La propriété _droptarget renvoie toujours un<br />

chemin qui commence par une barre oblique (/). Pour comparer la propriété _droptarget<br />

d'une occurrence à une référence, utilisez la fonction eval() afin <strong>de</strong> convertir la valeur<br />

renvoyée d'une syntaxe à barre oblique en référence <strong>de</strong> syntaxe à point.<br />

Remarque : Vous <strong>de</strong>vez effectuer cette conversion si vous utilisez <strong>ActionScript</strong> <strong>2.0</strong> car celui-ci<br />

ne prend pas en charge la syntaxe à barre oblique.<br />

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

MovieClip 887

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

Saved successfully!

Ooh no, something went wrong!