A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AS2] How do I Create Object-Orientated Functions?

Threaded View

  1. #3
    Member
    Join Date
    Apr 2009
    Posts
    62
    I'm guessing "missile" is a previously created object, right?

    EDIT: What about doing something like this(javascript)
    PHP Code:
    cat.prototype.changeName = function(name) {
        
    this.name name;
    }

    firstCat = new cat("pursur")
    firstCat.changeName("Bill")
    firstCat.talk() //alerts "Bill says meeow!" 
    in Actionscript?
    Last edited by Vadersapien; 12-18-2009 at 03:57 AM.
    Check out my firefox theme "PacStrata" here

Tags for this Thread

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center