Marc Reichelt a écrit :
>Hi there!
>
>I'm a young student from Germany. In my freetime I wrote a (very) small
>flashfilm, called "Easy Musicplayer For Flash" (EMFF).
>Until now I always used Macromedia Flash MX to create my flash movies,
>but I'm using Linux as main operating system since 2001 - and that's why
>I want to switch from Macromedia Flash to MTASC and swfmill.
>
>I wrote the new codebase of the EMFF (you can see the current developing
>status at http://dev.marcreichelt.de/emff/) with MTASC, and now I have
>to recreate the GUI. Placing movies is no problem ("<clip .../>").
>
>What I want to know is:
>How can I create a new button with swfmill?
>
>
you can create a button from a movieclip :
read the
Examples for the "simple" Dialect from this page :
http://osflash.org/swfmill
and then in a library create a clip "bouton" like this :
btnup.png btnover.png btndown .... are the images of the button
<library>
<clip id="btnup" import="btnup.png" />
<clip id="btnover" import="btnrover.png" />
<clip id="btndown" import="btndown.png" />
<clip name="bouton">
<frame name="_up">
<place id="btnup" depth="1" />
<stop />
</frame>
<frame name="_over">
<place id="btnover" depth="1" />
<stop />
</frame>
<frame name="_down">
<place id="btndown" depth="1" />
<stop />
</frame>
</clip>
</library>
then you can place the clip on the stage .....
or create a button with attachMovie like this :
var monBouton:Button;
attachMovie("bouton","monBouton", 1)
monBouton = this.monBouton;
// and create the 4 functions
btn_rond.onPress = function()
{ }
btn_rond.onRelease = function()
{ }
btn_rond.onRollOver = function()
{ }
btn_rond.onRollOut = function()
{ }
then you have a button, you can click it and see the btndown.png ... etc
if you wantr you can put code in one function to perform actions.
Hervé Grac
_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org