The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 3 of 3

Thread: I Need Help Please!!!

  1. #1

    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!
    Attached Files Attached Files

  2. #2
    1,391
    posts
    Registered 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)
    Attached Files Attached Files

  3. #3
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012