Does anyone know how to go about creating a symbol of type 'button' and then linking that symbol to actionscript code?
Every example I can find shows how to create a 'movieclip' symbol and then linking that to actionscript code. The actionscript code for the 'movieclip' linkage looks something like:
class myClip extends MovieClip{
.
.
.
}
I would assume a symbol of type 'button' would extend a different class such as:
class myButton extends Button{
.
.
.
}
I've tried all kinds of combinations but the symbol ignores the actionscript code. It works fine with type 'movieclip' but this isn't what I need.
I am building a very extensive data driven system and would like to create button symbols such as 'cancel_btn', 'save_btn', etc. that are linked with actionscript class code. This allows me to visually use the symbol in the layout but encapsulate the logic at the class level.
Anyone know the magic formula for getting this to work? Maybe I'm just using the wrong superclass?
Thanks in advance!!
Every example I can find shows how to create a 'movieclip' symbol and then linking that to actionscript code. The actionscript code for the 'movieclip' linkage looks something like:
class myClip extends MovieClip{
.
.
.
}
I would assume a symbol of type 'button' would extend a different class such as:
class myButton extends Button{
.
.
.
}
I've tried all kinds of combinations but the symbol ignores the actionscript code. It works fine with type 'movieclip' but this isn't what I need.
I am building a very extensive data driven system and would like to create button symbols such as 'cancel_btn', 'save_btn', etc. that are linked with actionscript class code. This allows me to visually use the symbol in the layout but encapsulate the logic at the class level.
Anyone know the magic formula for getting this to work? Maybe I'm just using the wrong superclass?
Thanks in advance!!