A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: How do you call a parent class'es method?

Threaded View

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    7

    Arrow How do you call a parent class'es method?

    '->title says it all

    how!!?!!?
    EDIT-or get a variable in a parent class(no i dont want to declare it with the child), i want to be able to on-demand call it, because it changes.

    as in, here is my main code
    _______________________________

    import MyClass;
    var WantThis:int = 7
    var myObject:MovieClip
    function getWantThis():int{
    return WantThis
    }

    myObject = new MyClass()
    addChild(myObject)

    _________________________
    now this is part of the code of "MyClass"
    _________________________

    package*bla bla bla...
    trace("the value of WantThis in my parent class is "+********************)

    _________________________


    '->what do i put here so that i can always have an updated value of the variable WantThis, on demand whenever i want to, because it would change!! do i access the variable? or call that method getWantThis??? how do i do either of those!!

    thanks for any help!!
    **i cant find anything on google :`(
    Last edited by AuxV3i; 12-17-2008 at 10:12 PM.

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