# Why cant I call this prototype?

**URL:** <https://forum.kirupa.com/t/why-cant-i-call-this-prototype/249021>\
**Category:** Uncategorized\
**Created:** [January 14, 2008, 6:37pm UTC](https://forum.kirupa.com/t/why-cant-i-call-this-prototype/249021 "2008-01-14T18:37:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [January 14, 2008, 6:37pm UTC](https://forum.kirupa.com/t/why-cant-i-call-this-prototype/249021/1 "2008-01-14T18:37:58Z")

</div>

I have a prototype function I found online, but I cant figure out how to call it. I am trying to disable components of my flv player

```auto

mx.video.FLVPlayback.prototype.enableButtons = function(bEnabled:Boolean) {
    trace("DF");
    this.skin_mc.seekBar_mc.handle_mc._visible = bEnabled;
    this.skin_mc.seekBar_mc.volumeBarHandle_mc._visible = bEnabled;
    if (bEnabled) {
        this.playButton = this.skin_mc.layout_mc.play_mc;
        this.stopButton = this.skin_mc.layout_mc.stop_mc;
        this.backButton = this.skin_mc.layout_mc.back_mc;
        this.forwardButton = this.skin_mc.layout_mc.forward_mc;
        this.seekBar = this.skin_mc.seekBar_mc;
        this.muteButton = this.skin_mc.layout_mc.volumeMute_mc;
    } else {
        this.onEnterFrame = function() {
            this.playButton = this.skin_mc.layout_mc.play_mc.disabled_mc;
            this.stopButton = this.skin_mc.layout_mc.stop_mc.disabled_mc;
            this.backButton = this.skin_mc.layout_mc.back_mc.disabled_mc;
            this.forwardButton = this.skin_mc.layout_mc.forward_mc.disabled_mc;
            this.muteButton = this.skin_mc.layout_mc.volumeMute_mc.disabled_mc;
            this.seekBar = null;
            this.volumeBar = null;
            updateAfterEvent();
            delete this.onEnterFrame;
        };
    }
};

```

I cant even get it to trace out…ive tried

enableButtons(false);  
vidPlayer.enableButtons(false);

no luck…any idea?
