Jump to content
Fórum Script Brasil
  • 0

Função do menu



Eu tenho um botão que chama um SWF.

O problema é que ele chama esse arquivo toda vez que clica no botão, eu gostaria

que se ele já tiver carregado o "Artwork.swf", não fosse mais possível carregá-lo a

não ser que outro botão esteja chamando ou já tenha chamado outro swf..

Alguém pode me ajudar?

var chamaimg:URLRequest = new URLRequest("Artwork.swf")
var carregador:Loader = new Loader();
carregador.contentLoaderInfo.addEventListener(Event.COMPLETE, ArtworkMenu);

function ArtworkMenu(event:Event):void
    Tweener.addTween(bloco1, { x:533.4, y:1300, time:0.4, delay:0.2, transition:"easeOutBack"});
    Tweener.addTween(bloco2, { x:762.4, y:1300, time:0.7, delay:0.2, transition:"easeOutBack"});
    Tweener.addTween(bloco3, { x:991.9, y:1300, time:1, delay:0.2, transition:"easeOutBack"});
    Tweener.addTween(bloco4, { x:1223.7, y:1300, time:1.3, delay:0.2, transition:"easeOutBack"});

Edited by Johnkilla
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...