Error #1006 Problem

Hi I'm getting this error and can't figure out why.
error#1006 addEventListener is not a function -at the following class.
Here's the class where it says I'm having the problem, it's one of 4 classes I'm working with:
package mvc
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
public class PlayerShipView extends MovieClip
private var _model:Object;
private var _controller:Object;
private var _playerShip:PlayerShip;
public function PlayerShipView(model:Object, controller:Object):void
_model = PlayerShipModel;
_model.addEventListener(Event.CHANGE, changeHandler);
_controller = PlayerShipController;
_playerShip.x = _model.xPos;
_playerShip.y = _model.yPos;
_playerShip = new PlayerShip;
addChild(_playerShip);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
public function onAddedToStage(event:Event):void
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyUp);
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
public function onKeyDown(event:KeyboardEvent):void
_controller.processKeyDown(event);
public function onKeyUp(event:KeyboardEvent):void
_controller.processKeyUp(event);
public function changeHandler(event:Event):void
_playerShip.rotation = _model.rotationValue;
If anyone knows why I'm getting the error please let me know. Thanks

sorry I had the code written incorrectly, Ifixed it and now get this error, error#1009 cannot access a property or method of null object reference
package mvc
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
public class PlayerShipView extends MovieClip
private var _model:Object;
private var _controller:Object;
private var _playerShip:PlayerShip;
public function PlayerShipView(model:Object, controller:Object):void
_model = model;
_model.addEventListener(Event.CHANGE, changeHandler);
_controller = controller;
_playerShip.x = _model.xPos;
_playerShip.y = _model.yPos;
_playerShip = new PlayerShip;
addChild(_playerShip);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
public function onAddedToStage(event:Event):void
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyUp);
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
public function onKeyDown(event:KeyboardEvent):void
_controller.processKeyDown(event);
public function onKeyUp(event:KeyboardEvent):void
_controller.processKeyUp(event);
public function changeHandler(event:Event):void
_playerShip.rotation = _model.rotationValue;
Thanks, sorry about the screwup

Similar Messages

  • 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

  • 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.

  • Error 1006 function issue

    Hi i'm new to actionscript. I'm trying to resize a movieclip when I click on it and I'm getting the following error:
    TypeError: Error #1006: value is not a function.
      at Untitled_fla::MainTimeline/resize_fn()
    here is my code
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    circle.addEventListener(MouseEvent.ROLL_OVER,size_fn,false,0,true)
    circle.addEventListener(MouseEvent.ROLL_OUT,resize_fn,false,0,true)
    function size_fn(e:MouseEvent):void{
      circle.width(3);
      circle.height(3);
    function resize_fn(e:MouseEvent):void{
      circle.width(1.1);
      circle.height(1.1);
    any idea what i'm doing wrong?
    thanks in advanced

    Chamces are the problems are where you treat width and height as functions rather than properties...
      circle.width(3);
      circle.height(3);
    you normally assign values to the width and height properties, they are not functions...
      circle.width = 3;
      circle.height = 3;
    though I suspect you are not intending to set them to such small values... may you are trying to scale them???  (if so use scaleX and scaleY properties instead of width and height)

  • External programs get error 1006 using local server name

    I have a brand new Solution Manager EHP1 installation on Windows 2003sp2/SQL.
    The installation succeeded ok, but I cannot configure STMS.
    The reason appears to be that external commands (i.e. tp) are not working correctly.
    If I execute in SM49 the external command 'ENV' and use the default host, it fails with error 1006
    If I specify the target host and use the 'short' name of the host, e.g. SAPSMT it fails with the same error
    If I specify the target host and use the fqdn of the host e.g. SAPSMT.saproot.local it works ok.
    If I specify the target host as 'localhost' it also works ok.
    The 'HOSTNAME' command responds with SAPSMT
    There is only a single NIC, so its not anything to do with multiple NICs.
    I'm running the latest kernel and sapxpg now and it still acts the same.
    Type 3 RFC destinations to SAPSMT work ok.
    I can't really get anything else to fail: just external commands with the short name (or default) as the target.
    Has anyone seen this before and have a solution or workaround?
    I am almost sure it will be a windows configuration problem, but I can't see what it could be.
    Thanks, Andy.

    Hi Pradi,
    there are no entries in the HOSTS file related to this.
    I do think this is the right area: here is the output of niping, which is suggesting that the address lookup of the ip address goes to the fully qualified domain name rather than the hostname.
    E:\usr\sap\SMT\DVEBMGS00\exe>niping -v -H SAPSMT
    Hostname/Nodeaddr verification:
    ===============================
    Hostname of local computer: SAPSMT                        (NiMyHostName)
    Lookup of hostname: SAPSMT                                (NiHostToAddr)
        --> IP-Addr.: 10.115.227.36
    Lookup of IP-Addr.: 10.115.227.36                         (NiAddrToHost)
        --> Hostname: SAPSMT.saproot.local
    Lookup of hostname: SAPSMT                                (NiHostToAddr)
        --> IP-Addr.: 10.115.227.36
    Lookup of IP-Addr.: 10.115.227.36                         (NiAddrToHost)
        --> Hostname: SAPSMT.saproot.local
    If I add the hostname SAPSMT to the hosts file (together with the alias as you suggested), it then gives:
    E:\usr\sap\SMT\DVEBMGS00\exe>niping -v -H SAPSMT
    Hostname/Nodeaddr verification:
    ===============================
    Hostname of local computer: SAPSMT                        (NiMyHostName)
    Lookup of hostname: SAPSMT                                (NiHostToAddr)
        --> IP-Addr.: 10.115.227.36
    Lookup of IP-Addr.: 10.115.227.36                         (NiAddrToHost)
        --> Hostname: SAPSMT
    Lookup of hostname: SAPSMT                                (NiHostToAddr)
        --> IP-Addr.: 10.115.227.36
    Lookup of IP-Addr.: 10.115.227.36                         (NiAddrToHost)
        --> Hostname: SAPSMT
    However, having made this change and restarted, I still get the problem.
    Thanks for the help, by the way.
    Andy

  • Error #1006 - only when posted online

    If you look at the following
    http://twigs-floral.com/TwigsCMS/bin/TwigsCMS.html
    Click on the login button and then try to use the customer
    search filter at the bottom (right above the datagrid)
    it returns an error 1006... when I test it locally I don't
    have a problem... it works fine. As soon as I upload to my
    webserver I get this error... Any ideas? Everything else is working
    fine.

    I want to resize files for pdf slide show but retain full view, how is it done........(this is my first attempt)
    I have used 40 files (average size 74kb) with background music, works perfect on DVD and when using Elements 5. BUT if emailed the music finishes before the last 3 files. Why? Can anybody tell me why and what I am doing wrong.
    Marco

  • OWA error: A problem occurred while you were trying to use your mailbox (Exchannge 2010 SP3)

    Hi!
    I have several mailboxes that are was moved from Exchange 2007 to Exchange 2010.
    Sometimes occurs a problem: in OWA may appears error "A problem occurred while you were trying to use your mailbox" when selecting interface elements (such as "Options", "Public Folders",
    "Reminders"). After this error user cannot access to mailbox through OWA during 10 minutes. The error "A problem occurred while you were trying to use your mailbox" appears in top of browser window on any computers. This behavior is manifested
    in any browser, but it can not be associated with any particular event.
    Access to mailbox through Outlook or through mobile devices (ActiveSync) continues to work fine in this time.
    The errors in Application log on Client Access Server is absent (including error with EventID 9646). ExBPA is not showing anything specific to that error message. Test of OWA connectivity working successfully.
    In the logs of IIS finded records:
    2014-08-26 09:23:01 172.16.0.31 GET /owa/ &ex=UE:Microsoft.Exchange.Data.Storage.TooManyObjectsOpenedException 443 DOMAIN\username 172.16.4.218 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+InfoPath.3;+.NET4.0C;+.NET4.0E;+.NET+CLR+1.1.4322;+MS-RTC+LM+8)
    200 0 0 31
    Someone faced with such issue?
    Have ideas to solve the issue?

    Hi,
    Event 9646 occurs if a MAPI client opens more than the default value. You can follow the steps below for troubleshooting:
    1. Run regedit, and then click OK.
    2. Expand the following registry subkey:
       HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
    3. Right-click ParametersSystem, point to New, and then click  Key.
    4. Type MaxObjsPerMapiSession, and then press ENTER to name the new subkey.
    5. Right-click MaxObjsPerMapiSession, click New, and then click DWORD Value.
    6. Type Object_type, and then press ENTER to name the object.
    Note: Object_type is the name of the object type in the error message that is mentioned in the "Symptoms" section.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    Go to Settings>General>Restrictions>Accounts (near the bottom) and set this to Allow Changes.  You will then be able to access Settings>iCloud again.

  • When Trying To sign into NetFlix Getting Error 1006

    When I tried to sign into Netflix I kept getting Error 1006.
    But I Already resolved my Issue
    1. Hard reset, hold down the power & home button at the same time and release until you see the apple logo appear
    2. Reset network Settings
    3.Reset All Setting's
    4.Deleted and re downloaded the application.
    Baaam now it works

    Hi -
    I am getting the same error 1006 when attempting to login to Netflix on my Ipad mini IOS7.
    I have read your solutions, which worked for you.
    What exactly do you mean by 1 - RESET NETWORK SETTINGS  and 2 - RESET ALL SETTINGS?
    Is it in the Netflix settings itself?
    [email protected]

  • Error logging problem:

    error logging problem:
    I would like to implement an error logger that will do the following tasks when a error/exception arrises:
    - surpress the DacfErrorPopupLogger
    - alert the user that an error has occured with a simplified popup (create a global listener then use the ErrorAttributes to create the text of the popup)
    - log the error in a file with a timestamp and all error information
    - later if the above works....i would like to add the error attributes (time stamp, error type) to a oracle object/ Jdev domain.
    Questions:
    What is the best technique to use....errorManager, error logger ...?? combination
    How do i use the error manager to register listners for the errors?.
    In the following code i am not sure how to access the ErrorsAttributes[] array that is returned by loggerReader.getErrors();
    Any general tips places to find sample code on errorManager or associated interfaces, will be appreciated
    I used the OutPutStreamLogger to write error information to a FileOutputStream then a loggerReader to get the error attributes from the file. The reason i went in this direction is because i found some smple code on the outputStream logger.
    package DACVideo;
    import oracle.dacf.util.errorloggers.*;
    import oracle.dacf.util.errormanager.*;
    import oracle.dacf.util.errorloggers.InputStreamLoggerReader.ErrorAttributes;
    import java.io.*;
    * A Class class.
    * <P>
    * @author Adam Maddox
    public class ErrorLogger extends Object {
    static OutputStreamLogger logger = null;
    static InputStreamLoggerReader loggerReader = null;
    public ErrorLogger() {
    System.out.println("==============ErrorLogger Created==============");
    //remove default error logger (popup logger)
    ErrorManager.removeErrorLogger(ErrorManager.findLoggerByName(DacfErrorPopupLogger.NAME));
    try
    logger = new OutputStreamLogger(new FileOutputStream("out.dat"));
    loggerReader = new InputStreamLoggerReader(new FileInputStream("out.dat"));
    catch(java.io.IOException e)
    System.err.println("Error!");
    try
    ErrorManager.addErrorLogger(logger);
    catch(NameAlreadyRegisteredException e)
    System.err.println("A Logger with this name is already registered.");
    private void closeErrorLog()
    //close the OutputStream, to force flushing
    logger.closeOutputStream();
    ErrorManager.removeErrorLogger(logger);
    public static void showErrorLog()
    ErrorAttributes[] errorArray = loggerReader.getErrors(); <<<<CANNOT GET ERROR ATTRIBUTES ??
    null

    JDev could you help??

  • 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();

  • Oracle error - Open problem

    hi friends,
    on accessing the database i get this following error:
    Open Problem - ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Execution Problemnull
    How can i resove it...

    Here's a wild idea.... check the Oracle site/documentation for suggestions ?

  • 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: 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!

  • Error in problem  class important

    Hi Gurus,
    we are facing problem while activating the transferstructure
    when are activating using the program:
    RS_TRANSTRU_ACTIVATE_ALL
    we are getting
    error in problem class important.
    All Thaughts are considered.
    Regards,
    Ajay.

    Need tyo make sure the problem is with the query/workbook are general issue with all workbooks/query.
    1. Make sure the base query of work book is still executable. RRMX/RSRT.
    2. Execute the work book in Bex/Excel and look for definition of workbook; there might be some thing in the workbook referencing other than base query.
    3. If other workbook are also not working? need to check if other users have same issue.?
    Hope this will help to narrow the problem.
    Gopi

Maybe you are looking for

  • Change Confirmed Qty in Sales Order User exit/ATP User exit

    HI We have a requirement to change the ATP Qty for certain meterials & Order Types  duing sales Order User exit(FORM USEREXIT_MOVE_FIELD_TO_VBEP.? ) or ATP User exit.( ATP...OUT?). Is this ok to update the XVBEP in FORM USEREXIT_MOVE_FIELD_TO_VBEP of

  • Aperture does not recognise TIF files from Nikon CoolScan

    The TIF files from my Coolscan are good in every other application, but Aperture does not recognise them. I've tried re-saving the TIFs as JPG and PDS but Aperture doesn't recognise any file generated from the TIF. Maybe it's something to do with the

  • [SOLVED] Zsh -- How to make it default?

    Would like to set Zsh to default. Fails every time: [ ~ ] > chsh --shell /bin/zsh Changing shell for user. Password: chsh: Shell not changed. [ ~ ] > Solution: Had not read the wiki correctly. Said that it needed log in, and logout to be set to funct

  • [svn:osmf:] 14781: Added support to NetMocker for testing NetNegotiator, FMTA.

    Revision: 14781 Revision: 14781 Author:   [email protected] Date:     2010-03-16 09:56:39 -0700 (Tue, 16 Mar 2010) Log Message: Added support to NetMocker for testing NetNegotiator, FMTA.  Tests parameters on the Netconnection now. Modified Paths:   

  • Download Windows Vista Beta

    Is it still possible to download the Windows Vista Beta? I just got my MacBook Pro and want to upgrade my Windows XP installation. Thanks, MV