Jump to content
Fórum Script Brasil
  • 0

Mc Dinamico Com Funcao De Botao


Guest Peter Hahmann
 Share

Question

Guest Peter Hahmann

Fala galera, tudo bem?

Estou com o seguinte problema:

Eu estou criando um mc via as e carrego uma imagem nele. Mas ele tambem deveria servir como botão, mas isto não acontece, porque?

var mcimg01:MovieClip = createEmptyMovieClip("mcimg01", getNextHighestDepth());

mcimg01._x = mask01._x=172.2;

mcimg01._y = mask01._y=142.2;

var mcl01:Object = new Object();

mcl01.onLoadInit = function(mcimg01:MovieClip) {

mcimg01.setMask("mask01");

};

var car01:MovieClipLoader = new MovieClipLoader();

car01.loadClip("produtos/01.png",mcimg01);

mcimg01._xscale = 50;

mcimg01._yscale = 50;

car01.addListener(mcl01);

mcimg01.onPress = function() {

xxxx

};

Para completar, no momento q mcimg01 é pressionado, os outros (mcimg02, 03 e 04) devem deixar de ser "clicaveis"

espero que tenha sido claro,

abracos,

peter

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
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.

 Share



  • Forum Statistics

    • Total Topics
      150.2k
    • Total Posts
      647.5k
×
×
  • Create New...