ActionScript 2 and Object Oriented Programming; an entire day of trouble

I was back to work today after the holidays and my first day hasn’t been that fun. First of all I’m back working in ActionScript 2 after working on the cool Christmas card which was in ActionScript 3. Second, I have been trying all day to make my menu work while programming it in an object oriented kinda way but all my efforts have been in vain.

┬áThe first big problem I encountered is that even if you assign a class to a symbol in the library, if you put that symbol on the stage, it won’t use the class you assigned to it. You have to use the attachMovie method in order to make that work. Ok that’s fine I can find workaround in order to make that work.

Now I finally get that working the trouble is that the onRollOver and other onSomething won’t work in that class because of where it is situated (in an other class or other bug I just couldn’t find). Well I lost my whole day on that…

I feel it’s kinda wasteful to spend time on problems like this (in ActionScript 2) because I am not really learning something that will be useful in the long run. Anyway I don’t usually like to make post like this, because I don’t provide an answer to my problem but I really had to get this out of my system. Sorry about this, better post next time.

, ,

  1. #1 by Dan - February 8th, 2008 at 11:16

    Can I recommend the delegate class? I’m not sure if it will fix any of your problems, but I can’t make anything in as2 without it.

  2. #2 by dgelineau - February 8th, 2008 at 16:41

    I will definetly look at it when I have some time.

(will not be published)
Subscribe to comments feed

Parse error: syntax error, unexpected ';' in /homepages/25/d169645162/htdocs/wp-content/themes/fusion/footer.php on line 13