[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] One button two hover effects
From: |
Chris Pugh |
Subject: |
Re: [Swftools-common] One button two hover effects |
Date: |
Fri, 3 Jul 2009 08:35:16 +0100 |
2009/7/2 Jorge <address@hidden>:
> Hi,
>
> is possible to have two (or more) hover effects with one button object?
>
> I need that when I pass the cursor over a zone, the zone becomes highligted
> and an associated text object (or several objects) changes its filter
> properties or text color.
>
> I have tried whith .button object but only the last action is executed.
>
> I have used an examples from
> http://technoargia.free.fr/swftools/examples/button2/button2.html, but I
> have not obtain the desired effect.
>
> I have sent attached to this email the sc source file and the swf file as
> compiled with swfc.exe version 0.9.0
>
> Can anyone help me?
>
> Thanks in advance.
>
> Jorge Colaccini
> Rosario, Argentina
Something like this maybe?
===========================
.flash filename="01.swf" bbox=300x200 version=10 fps=60 compress
.font tahoma "fonts/tahoma.ttf"
.edittext edata font=tahoma size=8pt width=100 height=50
color=salmon text="Am I Blue?" variable=etext
.box button_pressed width=22 height=15 color=green fill=salmon line=2
.box button_idle width=22 height=15 color=red fill=salmon line=2
.box button_hover width=22 height=15 color=orange fill=salmon line=2
.button abutton
.show button_idle as=idle
.show button_idle as=shape
.show button_idle as=area
.show button_hover as=hover
.show button_pressed as=pressed
.on_move_in:
var col=new Color(edata);
col.setRGB(0xff9933);
edata.text="No, I'm Orange!";
.end
.on_move_out:
var col=new Color(edata);
col.setRGB(0x229900);
edata.text="But I could be Green!";
.end
.end
.put edata x=20 y=30
.put abutton x=30 y=50
.end
================================
HTH.
Regards,
Chris.