swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Reference instance inside a button


From: michelts
Subject: [Swftools-common] Reference instance inside a button
Date: Fri, 3 Nov 2006 15:20:58 -0200

Hi guys!

I'm trying to do a button that, when clicked, grows until a stop is
called, I try a code as above:

.flash filename="output.swf" bbox=108x756 background=white version=6 fps=12

   .jpeg c1 "chakra/cha1.jpg" quality=80%

   .sprite c1_mc
       .frame 1
           .put c1 scalex=50% scaley=50%
           .action:
               Stop();
           .end
       .frame 12
           .change c1 scalex=100% scaley=100%
           .action:
               Stop();
           .end
   .end


   .button c1_bt
       .show c1_mc as=idle
       .show c1_mc as=area
       .show c1_mc as=hover
       .show c1_mc as=pressed
       .on_press:
           c1_mc.Play(); ???
           this.c1_mc.Play(); ???
       .end
   .end

   .put c1_bt


.end

Look at the on_press action of the button, how can I refer to the movieclip?
Or if I can't, how I can define an event in a movieclip (a sprite)?

Thanks for any help...

--
Michel Thadeu Sabchuk
Curitiba - Brasil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]