lordnoble
October 4th, 2004, 02:13 PM
I'm sure custom buttons act differently than the mx button component, and that is why I'm having this problem...
I'm working on a project where the actionscript is all inclusive in its own file (I'm trying to be a good OOP programmer in flash here)
For this project I had a regular mx button within the fla, I gave it an instance name and properly linked it so within the .as, I was able to say:
my_btn.addEventListener("click", myObject_eh);
you would click on the button and it would work.
However I do not want to use the regular mx button so I created my own button, same instance name and everything what is the proper syntax to get this to work in similar fashion
thanks in advance for your help.
-noble
I'm working on a project where the actionscript is all inclusive in its own file (I'm trying to be a good OOP programmer in flash here)
For this project I had a regular mx button within the fla, I gave it an instance name and properly linked it so within the .as, I was able to say:
my_btn.addEventListener("click", myObject_eh);
you would click on the button and it would work.
However I do not want to use the regular mx button so I created my own button, same instance name and everything what is the proper syntax to get this to work in similar fashion
thanks in advance for your help.
-noble