swftools-common
[Top][All Lists]
Advanced

[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:40:06 +0100

>2009/7/3 Chris Pugh <address@hidden>:

PS Apologies, I forgot.  Watch the version numbers.  Things differ!!

Accordinly, make,

  flash filename="01.swf" bbox=300x200 version=10 fps=60 compress

into,

  flash filename="01.swf" bbox=300x200 version=8 fps=60 compress

before you compile and run..

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




reply via email to

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