Results 1 to 3 of 3
Thread: I Need Help Please!!!
May 4th, 2012, 11:30 PM #110Registered User
I Need Help Please!!!
I have been working on a project using some external classes to have multiple types(4 different movieClips) of fish swim around and then have them breathe out a bubble occasionally. I keep getting several errors in my compiler and I was just wondering if anyone would take a look and see if you can figure out what I am doing wrong. Thanks in advance!
May 5th, 2012, 10:26 AM #21,391Registered User
alrighty - well for the relative sophistication of your code here, i was surprised that you had missed so many basic declaration errors - mostly concerning specifying variables, but there were some problems in the Fish Class definition, where you had nested the moveMe and other functions within the constructor - in addition you are Base Classing the different Fish Type Class instances, but the original Fish instance was not, which was kind of 'duplicating' the properties within the scope
i've quickly revised your code so that it now compiles, take a look at the differences between the two to see the changes i've made to do so
(btw with AS3 we also 'like' to type our variables, i did not do so here)
May 5th, 2012, 09:31 PM #310Registered User
Thank you so much! I can't believe I missed the declaring all the variables. I didn't even think to check that I had put my other functions in the constructor. I just wasn't paying attention to all my brackets. I really appreciate your help!