Code: Detail

ActionScript - (Portuguese)

Incluir link URL no AS3

Segue o comando para que o AS3 abra o link em uma nova janela.

Last update: 09/08/2010

Criar um Layer, nesse layer fazer um retângulo
  - f8
  - button

Entrar nesse botão e arrastar a frame para o Hit, agora temos um botão invisível.

- Instanciar o botão como "logo"
 - clicar na layer 
 - f8

Inserir o seguinte código:

logo.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void{
	navigateToURL(new URLRequest("link"));
	trace ("I'm clicked");	

Users who have marked this routine as a favorite
The site ti4fun is not responsible for the content on sites for which you have external links

Articles, routines, tips, forums, blogs or any other content posted on ti4fun site is not tested and not validated, so you should test and validate any information collected on the ti4fun site before applying it to final use environment, such as example, production. the TI4FUN site is not responsible for quality or for any damages, direct, indirect or consequential, from use of any content posted by the authors in the site.

All content published on the ti4fun site is the responsibility of the author and do not necessarily express the views of the site ti4fun and its employees.