I had the problem that if I had a Vector of IAction, I wanted to be able to know what type of Action my instance was. I felt the cleanest way would be to look at the code property but there was no area these values were maintained besides the SWFActionFactory switch statement. I looked at how it's handled in SWFTagFactory and then made changes along the same lines. So every subclass of Action now contains a static property CODE with its byte value.
Hi there
I had the problem that if I had a Vector of IAction, I wanted to be able to know what type of Action my instance was. I felt the cleanest way would be to look at the code property but there was no area these values were maintained besides the SWFActionFactory switch statement. I looked at how it's handled in SWFTagFactory and then made changes along the same lines. So every subclass of Action now contains a static property CODE with its byte value.
Thanks InsomniacZA