ActionScript/Propriedades: diferenças entre revisões

[edição verificada][revisão pendente]
Conteúdo apagado Conteúdo adicionado
He7d3r.bot (discussão | contribs)
→‎Algumas propriedades do MovieClip: Trocando categorização manual por AutoCat (o indexador da categoria estava incorreto) [ usando AWB ]
m <source> -> <syntaxhighlight> (phab:T237267)
 
Linha 11:
|-
| Localização (em pixels)
| <sourcesyntaxhighlight lang='actionscript3'>box.x = 100; // Horizontal
box.y = 200; // Vertical</sourcesyntaxhighlight>
|-
| Escala (em porcentagem: 0-1)
| <sourcesyntaxhighlight lang='actionscript3'>box.scaleX = 0.5;
box.scaleY = 0.5;</sourcesyntaxhighlight>
|-
| Tamanho (em pixels)
| <sourcesyntaxhighlight lang='actionscript3'>box.width = 100; // Largura
box.height = 50; // Altura</sourcesyntaxhighlight>
|-
| Rotação (em graus: 0-360)
| <sourcesyntaxhighlight lang='actionscript3'>box.rotation = 90;</sourcesyntaxhighlight>
 
|-
| Transparência (em porcentagem: 0-1)
| <sourcesyntaxhighlight lang='actionscript3'>box.alpha = 0.5;</sourcesyntaxhighlight>
 
|-
 
| Visibilidade (em booleano)
| <sourcesyntaxhighlight lang='actionscript3'>box.visible = false;</sourcesyntaxhighlight>
|}
 
Linha 39:
É simples modificar os valores dos atributos:
 
<sourcesyntaxhighlight lang='actionscript3'>
// Mais 40 graus de rotação ao box...
box.rotation += 40;
</syntaxhighlight>
</source>
{{AutoCat}}