# What the mother loving

**URL:** <https://forum.kirupa.com/t/what-the-mother-loving/309435>\
**Category:** Uncategorized\
**Created:** [May 14, 2010, 8:07pm UTC](https://forum.kirupa.com/t/what-the-mother-loving/309435 "2010-05-14T20:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [May 14, 2010, 8:07pm UTC](https://forum.kirupa.com/t/what-the-mother-loving/309435/1 "2010-05-14T20:07:41Z")

</div>

I’ve got a timer event in my document class the calls the moveTheShip function from the ship class and its working…mostly. Most of the traces come up and the rudimentary ship movement works BUT it completely ignores the addForceVectors function.

Here is the code in question

```auto
package 
{
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.ui.Keyboard;
    import flash.utils.Timer;
    

    
    public class Ship extends MovieClip
    {    
        
        
        public function Ship()
        {
            
            trace("ship checking in");
        }
        public function moveTheShip(event:TimerEvent):void
            {
                
                  trace("soFarSoGood");
                
                function addForceVectors()
                {
                    trace("addingForceVectors");
                }
                
                
                 function stearingWheel(event1:KeyboardEvent):void
                {
                    switch (event1.keyCode)
                                    {
                                        case Keyboard.UP:
                                        y-=1;
                                        //burn();
                                        break;
                
                                        case Keyboard.LEFT:
                                            x -=1;
                                            //burn();
                                            break;
                                            case Keyboard.RIGHT:
                                            x+=1;
                                            //burn();
                                            break;
                                            default:
                                            trace("no button heard");
                                    }
                }
                trace("eventListener");
                stage.addEventListener(KeyboardEvent.KEY_DOWN,stearingWheel);
                        //function burn():void
// {
// trace ("burning");
                        
                    
                
                
                
            }
    }
}

```

So again I beg the question…“What the mother loving…”

Thanks guys

rob
