More "TypeError: Error #1006: value is not a function." trouble

var pntClk:int = -1;
for(var t:int=0;t<tab1PointsArray.length;t++) {
     tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <Problem code i think. Error points to line 117
     trace("Event listener added to " + tab1PointsArray[t].name);
function tab1PointClicked (event:MouseEvent):void {
     for(var T:int=0;T< tab1PointsArray.length;T++) {
          if (event.currentTarget == tab1PointsArray[T]) {
               pntClk = T;
               openInfoTab();
               trace("Point Clicked: " +  tab1PointsArray[T].name);
I wrote some previous code that worked and i copy pasted over to this project and it doesn't work.
The weird part to me is that it still runs the first set of trace statements (there are 8 objects in that array). But, it won't run the second set...
for(var l:int=0;l<Tab2PointsArray.length;l++) {
     Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
     trace("Event listener added to " + Tab2PointsArray[l].name);
function tab2PointClicked (event:MouseEvent):void {
     for(var t:int=0;t< Tab2PointsArray.length;t++) {
          if (event.currentTarget ==  Tab2PointsArray[t]) {
               pntClk = t;
               openInfoTab();
               trace("Point Clicked: " +  Tab2PointsArray[t].name);
if you need more code or info to help me figure this out let me know
I don't know actionscript that well so bare with

The output window:
Event listener added to PointHitch
Event listener added to PointPTO
Event listener added to PointSafety
Event listener added to PointGearBox
Event listener added to PointBlade
Event listener added to PointTeeth
Event listener added to PointGrapple
TypeError: Error #1006: value is not a function.
at TractorSawFlash_fla::MainTimeline/frame1()[TractorSawFlash_fla.MainTimeline::frame1:115]
I think the first set of listeners is added then the error happens and the second set of listeners doesn't get added.
Here is more code.
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
var infoTabIsOpen:Boolean = false;
//TAB CODE
var TractorSawTabToggle:Boolean = false;
var TabButtonArray:Array = new Array(TabTR3200.TR3200BTN, TabTR3200LT.TR3200BTNLT);
for (var i:int=0; i<TabButtonArray.length; i++)
     TabButtonArray[i].id = i;
     TabButtonArray[i].addEventListener(MouseEvent.CLICK, onClick);
TabTR3200.TR3200BTN.mouseEnabled = false;
TabTR3200.TR3200BTN.buttonMode = false;
function onClick(event:MouseEvent):void{
     if (TractorSawTabToggle == true) {
          TractorSawTabToggle = false;
          swapChildren(this.TabTR3200,this.TabTR3200LT);
          TabTR3200LT.TR3200BTNLT.mouseEnabled = true;
          TabTR3200LT.TR3200BTNLT.buttonMode = true;
          TabTR3200.TR3200BTN.mouseEnabled = false;
          TabTR3200.TR3200BTN.buttonMode = false;
     else {
          TractorSawTabToggle = true;
          swapChildren(this.TabTR3200,this.TabTR3200LT);
          TabTR3200LT.TR3200BTNLT.mouseEnabled = false;
          TabTR3200LT.TR3200BTNLT.buttonMode = false;
          TabTR3200.TR3200BTN.mouseEnabled = true;
          TabTR3200.TR3200BTN.buttonMode = true;
//END TAB CODE
//MovieTab
MovieButton.addEventListener(MouseEvent.CLICK, clickedMainMovie);
MovieTab.Exit_BTN.addEventListener(MouseEvent.MOUSE_DOWN, outMainMovieTrigger);
function clickedMainMovie(event:MouseEvent):void {
     var TabMainMovieDown:Tween = new Tween(MovieTab, "y", Strong.easeOut, -600, 0, 1, true);
     var TabMainMovieAlphaIn:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 0, 1, 1, true);
     if (infoTabIsOpen == true) {
          closeInfoTab();
function outMainMovieTrigger(event:MouseEvent):void {
     outMainMovie();
function outMainMovie():void {
     trace("Three Sixty MOUSE_OUT");
     var TabMainMovieUp:Tween = new Tween(MovieTab, "y", Strong.easeOut, 0, -600, 1, true);
     var TabMainMovieAlphaOut:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 1, 0, 1, true);
     MovieTab.FLVPlayback.stop();
//END MovieTab
//INFO TAB ARRAYS AND FUNCTIONS
var placeHolder:String = "null";
var tab1PointsArray:Array = new Array(this.TabTR3200.PointHitch, //0
                                                         this.TabTR3200.PointPTO, //1
                                                         this.TabTR3200.PointSafety, //2
                                                         this.TabTR3200.PointGearBox, //3
                                                         this.TabTR3200.PointBlade, //4
                                                         this.TabTR3200.PointTeeth, //5
                                                         this.TabTR3200.PointGrapple, //6
                                                         placeHolder); //7
var Tab2PointsArray:Array = new Array(this.TabTR3200LT.PointHitch, //0
                                                          this.TabTR3200LT.PointPTO, //1
                                                          this.TabTR3200LT.PointSafety, //2
                                                          this.TabTR3200LT.PointGearBox, //3
                                                          this.TabTR3200LT.PointBlade, //4
                                                          this.TabTR3200LT.PointTeeth, //5
                                                          placeHolder, //6
                                                          this.TabTR3200LT.PointPushingBar);//7
var pictureArray:Array = new Array(placeHolder,
                                                   placeHolder,
                                                   placeHolder,
                                                   placeHolder,
                                                   placeHolder,
                                                   placeHolder,
                                                   placeHolder,
                                                   placeHolder);
var textArray:Array = new Array(InfoTab.txtHitch, //0
                                               InfoTab.txtPTO, //1
                                               InfoTab.txtSafety, //2
                                               InfoTab.txtGearbox, //3
                                               InfoTab.txtBlade, //4
                                               InfoTab.txtTeeth, //5
                                               InfoTab.txtGrapple, //6
                                               InfoTab.txtPushingBar); //7
//Point Clicked Code
var pntClk:int = -1;
for(var t:int=0;t<tab1PointsArray.length;t++) {
     tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <LINE 115 were it says the error is happening
     trace("Event listener added to " + tab1PointsArray[t].name);
function tab1PointClicked (event:MouseEvent):void {
     for(var T:int=0;T< tab1PointsArray.length;T++) {
          if (event.currentTarget == tab1PointsArray[T]) {
               pntClk = T;
               openInfoTab();
               trace("Point Clicked: " +  tab1PointsArray[T].name);
for(var l:int=0;l<Tab2PointsArray.length;l++) {
     Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
     trace("Event listener added to " + Tab2PointsArray[l].name);
function tab2PointClicked (event:MouseEvent):void {
     for(var t:int=0;t< Tab2PointsArray.length;t++) {
          if (event.currentTarget ==  Tab2PointsArray[t]) {
               pntClk = t;
               openInfoTab();
               trace("Point Clicked: " +  Tab2PointsArray[t].name);
//Info Tab
var ImageLoader:Loader;
ImageLoader = new Loader();
// make text invisible
function makeTextInvisible():void {
     for (var txt:int=0; txt<textArray.length; txt++) {
          textArray[txt].visible = false;
InfoTab.Exit_BTN.buttonMode = true;
InfoTab.Exit_BTN.addEventListener(MouseEvent.CLICK, closeInfoTrigger);
function closeInfoTrigger(e:MouseEvent):void {
     trace("close feature triggered");
     closeInfoTab();
//OPEN INFO TAB
function openInfoTab():void {
     //EnableExitButton
     var EnableExitButton:Timer = new Timer(333, 1);
     InfoTab.mouseEnabled = true;
     InfoTab.mouseChildren = true;
     var tabIn:Tween = new Tween(InfoTab, "y", Regular.easeOut, 600, 60, 10, false);
     var tabAlphaIn:Tween = new Tween(InfoTab, "alpha", Regular.easeOut, 0, 1, 10, false);
     //pictureSetter
     if (pictureArray[pntClk] != "null") {
          ImageLoader.load(new URLRequest(pictureArray[pntClk]));
          this.InfoTab.ImageHolder_MC.addChild(ImageLoader);
     textArray[pntClk].visible = true;
     infoTabIsOpen = true;
//end open info tab
//CLOSE INFO TAB
function closeInfoTab():void{
     //deactivating setters
     InfoTab.mouseEnabled = false;
     InfoTab.mouseChildren = false;
     trace("feature tab deactivated");
     //unload picture
     if (pictureArray[pntClk] != "null") {
          ImageLoader.unload();
          this.InfoTab.ImageHolder_MC.removeChild(ImageLoader);
          ImageLoader = null;
     //tab action variables
     var tabAlphaOut:Tween = new Tween(InfoTab, "alpha", Regular.easeIn, 1, 0, 8, false);
     var tabOut:Tween = new Tween(InfoTab, "y", Regular.easeIn, 60, 600, 8, false);
     infoTabIsOpen = false;
     //exit timer
     var exitTimer:Timer = new Timer(200, 1);
     exitTimer.addEventListener(TimerEvent.TIMER, exitHandler);
     exitTimer.start();
     function exitHandler(event:TimerEvent):void
          trace("exit handler fired");
          makeTextInvisible();
     //end exit timer
     pntClk = -1;
//end closeFeatureTab

Similar Messages

  • Error #1006: value is not a function

    I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this:
    In foo.h:
        class Foo
            static Bar m_pBar;
            static void doSomething (int a);
    In foo.cpp:
        Bar Foo::m_pBar;
        void Foo::doSomething (int a)
            m_pBar.doSomething(a);
    When I do Foo::doSomething(a), I get TypeError: Error #1006: value is not a function.
    On the other hand, if I use a local variable of the same type in the static function (just to test), it works :
        void Foo::doSomething (int a)
            // Test
            Bar pBarTest;
            pBarTest.doSomething(a);
    So my guess is that the static variable is not being initialized. This works fine when compiled with g++ in Linux and Mac and with Visual C++ 2008 in Windows so it looks like Alchemy is doing something wrong.
    Has anyone encountered this same issue?

    Ignore, it was something in the called class, oops

  • TypeError: Error #1006: getInstance is not a function.

    I having some problems implementing Flex for the first time.
    At the moment I'm getting
    TypeError: Error #1006: getInstance is not a function.
    I suspect that I'm missing a library or something in the
    compile but I don't know how to resolve it.
    When I Run the Application in Flex Builder I get an error
    that the file isn't in the project and that some of the features
    are disabled. This would be consistent with an incomplete compile
    but the file is in a project. I even recreated a new project but I
    get the same errors.
    What am I missing?

    More detail on the error:
    TypeError: Error #1006: getInstance is not a function.
    at mx.core::Singleton$/getInstance()
    at mx.styles::StyleManager$cinit()
    at global$init()
    at mx.containers::Form$cinit()
    at global$init()
    at global$init()
    In debug it was stopping here in Singleton.as
    public static function getInstance(name:String):Object
    var clazz:Class = classMap[name];
    return Object(clazz).getInstance();
    I changed the container from mx:Form to mx:Application so now
    it seems to be working, but I'm not sure why mx:Form was giving me
    this issue.

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • TypeError: Error #1006: when rearranging array of objects

    I have an array of objects, which I call in a loop thus:
    myObjectArray[index].method()
    However, when I splice one object from the array and put it
    at the front via unshift, it no longer understands the method call
    and spouts a Type Error#1006 :value is not a function:
    Looks like a bug to me. Or am I missing something?

    Thanks for the quick reply
    tried this but got Coercion failed message:
    var arrayObj:*;
    arrayObj=altArray.splice(altToTop,1);
    AlternativeGUI(arrayObj); //coercion failed
    var newlength:int=altArray.unshift(arrayObj);
    All objects held by altArray are subclasses of AlternativeGUI
    However, even simpler to avoid that untyped arrayObj returned
    by the splice:
    altArray.unshift(altArray[altToTop]);
    altArray.splice(altToTop+1,1);
    now it works!

  • Why do I get the following msg's on startup start Firefox? (1) Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function; (2) Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function; (3) Exc in ev handl: Error: Bad NPObject as private data!

    I get the following msg's. This happening more often, and when I back out to restart it may take a couple of times so that I do not get the error msg's?
    Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function
    Exc in ev handl: Error: Bad NPObject as private data!

    This issue can be caused by the McAfee Site Advisor extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Bug Report : Upgraded to Firefox v10. Holding CTRL+ [F4] too long after all tabs are closed causes error. "Exc in ev handl: TypeError: this.oPlg.onTabClosed is not a function"

    Bug Report :
    Upgraded to Firefox v10. Holding CTRL+ [F4] too long after all tabs are closed causes error.
    "Exc in ev handl: TypeError: this.oPlg.onTabClosed is not a function"

    What extensions do you have? (Go to Firefox > Customize > Add-ons to see or Help > Troubleshooting info for a copy-pasteable list)

  • No longer able to add bookmarks on Yahoo Toolbar, Error message: "Exc in ev handl: TypeError: this.oRoot.enable is not a function" started when I updated to Firefox 6.0

    Since updating to Firefox 6.0 I am no longer able to add bookmarks on Yahoo Toolbarl. I receive the following Java Error message: "Exc in ev handl: TypeError: this.oRoot.enable is not a function." When I hit the OK button in the error message it opens up "Add a Bookmark" and when I attempt to add the bookmark there I get this error message: "A problem occured while trying to save the bookmark. Please try again later."
    Is this a comparability issue that you are not aware of? Below are the versions of Firefox and Yahoo Toolbar that I currently have installed:
    Firefox: 6.0.02
    Yahoo Toolbar: 2.4.0.20110815110908
    Windows XP, Service Pack 3
    I am having this issue on my laptop and desktop. Since I use both computers the Yahoo toolbar has been great for having my bookmarks available on both computers at the same time but no I don't have that feature. I'm told that Google's toolbar also doesn't work either.
    Do you guys do any testing or Quality Assurance testing before releasing these versions?

    Add-ons are the responsibility of their authors. McAfee does not even put their extension on http://addons.mozilla.org you had to install it from their site.
    Disable "McAfee Site Advisor" extension which was just updated to 3.4.0, which probably took it out of the addons block list.
    * "Ctrl+Shift+A" > find McAfee Site Advisor and use "Disable", and then restart Firefox.
    * Do a Google Search no problem
    * It seems that if you re-enable Site Advisor again, and restart Firefox you are okay. At least you know where to look if you get the error again or Google searches slow down.

  • Get error: "[Java Script Application] Exc in ev handl: TypeError: this.oRoot.enable is not a function"--huh?

    This error is received a LOT (but not every time) when I try to select a link. This only started happening in the last few days. It's always received when I'm initially signing on. If I hit cancel or okay (there's only one option, I forget right now the exact wording) USUALLY the action then proceeds as I'd expect. But sometimes I'm presented with an incomplete web page.

    Exc in ev handl: TypeError: this.oRoot.enable is not a function" i also faced this problm bt thanks to u .....its eliminated by doing my site advisor disabled.thanks a lot

  • What does (JavaScript Application) Error: TypeError. JSON stringify is not a function, mean and how do I stop it popping up.

    Several times a day I get the message '(JavaScript Application)
    Error: TypeError. JSON stringify is not a function' popping up - how do I stop it?

    Hi!
    Does this problem appear on many different sites or just one?

  • I occasionally get error messages popping up when I run Firefox 7. The messages often say "Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function". does anyone know how to fix this?

    After I downloaded and installed the latest version of Firefox, I started getting these error messages every so often when I launched the browser. These messages will usually pop up every third time or so I open the browser and pop up on every page, sometimes multiple times, and I have to clear them away before I can do anything on the page. The message usually reads "Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function". Is there any thing we can do to fix this?

    Please see solution in http://kb.mozillazine.org/Problematic_extensions
    for "McAfee Site Advisor".
    (Windows): For best results you should uninstall '''McAfee Site Advisor''' from Control Panel > add/change programs (Programs and Features). Reboot the system. Then Reinstall from http://www.siteadvisor.com/ and reboot the system. When installing refuse other suggested (crapware) applications.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I am getting a javascript error on startup "Exc in ev handl: TypeError:this.oRoot.enable is not a function"

    When I start Firefox, I get an error box labeled [JavaScript Application] with the message "Exc in ev handl: TypeError: this.oRoot.enable is not a function"
    I then need to click the OK button before Firefox will start.

    This issue can be caused by the McAfee Site Advisor extension
    *https://community.mcafee.com/message/203466
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • TypeError: Error #1006 (SET_OPEN)

    Hi,
    When creating a segementation model I suddenly (without beeing aware of any changes) get the error message TypeError: Error #1006 (SET_OPEN).
    Have anybody seen this before?
    regards Camilla

    Hi Camilia,
    I am also facing similar type of error. Is it related to Internet Settings. Would you please help me in resolving it.
    Thanks for your help.
    Thanks,
    Rahul

  • Other than moving to Version 4 or 5, neither of which support Java which I need, is there a way to fix the "Exc in ev handl: TypeError: this.oRoot.enable is not a function" bug I am getting in version 3.6.23?

    I have used Version 4 and 5 and unfortunately neither supports Java functions that I require. I like the look and feel of 3.6.23 but there seems to be a script error on startup of Mozilla. When I double click the Icon to open the program I get "'''Exc in ev handl: TypeError: this.oRoot.enable is not a function'''" and so far haven't been able to locate the code line to fix it. I would rather not reverse Engineer the program.

    This issue can be caused by the McAfee Site Advisor extension
    *https://community.mcafee.com/message/203466
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • The following keeps popping up before firefox will load, Exc in ev handl: TypeError: this.oRoot.enable is not a function

    There is a pop up box, it says,"Exc in ev handl: TypeError: this.oRoot.enable is not a function" It pops up before Firefox will load, what is it?

    Disable "McAfee Site Advisor" extension which was just updated to 3.4.0, which probably took it out of the addons block list.
    * "Ctrl+Shift+A" > find McAfee Site Advisor and use "Disable", and then restart Firefox.
    * Do a Google Search no problem
    * It seems that if you re-enable Site Advisor again, and restart Firefox you are okay. At least you know where to look if you get the error again or Google searches slow down.

Maybe you are looking for

  • How do I set up my C6380 to print on Vellum?

    I am trying to print on Vellum.  I'm running Windows 7 Ultimate and use Microsoft Publisher 2010.  So far the only printer option that recognizes the Vellum on my C6380 is the Transparency setting from the Printing Preferences / Features / Paper Type

  • Trouble hooking ipod to the computer

    I am new to the ipod.  I downloaded an ebook from my library onto my itunes on my computer.  Then I attached my ipod to the computer. Nothing is showing up on my computer that indicated that my ipod is actually connected.  Any advice?

  • Blocked Account - So Frustrated!

    Decided to share the most frustrated experience I've ever had with any technologies - Skype service! It happened second time with my Skype account. But this time it's blocked at the time when I extremely needed it - holidays. My whole family lives ov

  • SAP F&R: Release Order Proposals automatically

    Hi, I am not able to find the necessary SPRO Customizing settings in SAP F&R 5.1 wherein I can define the order proposals to be released immediately after the forecasting run. It would be great if someone would be able to guide me through. Best Regar

  • RMI JNDI Lookup on remote iAS causing "Not Authorised"

    Hi all I'm running through an OJMS example using AQ and all is looking good until I try and Update my plan from Design Studio.. I get: IMessageSourceReceiver->messageReceive: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationExce