# No errors, yet File not working properly? can anyone help?

**URL:** <https://forum.kirupa.com/t/no-errors-yet-file-not-working-properly-can-anyone-help/328554>\
**Category:** flash\
**Created:** [May 25, 2012, 12:58pm UTC](https://forum.kirupa.com/t/no-errors-yet-file-not-working-properly-can-anyone-help/328554 "2012-05-25T12:58:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iMitchellHD](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@iMitchellHD](https://forum.kirupa.com/u/iMitchellHD)\
**Post date:** [May 25, 2012, 12:58pm UTC](https://forum.kirupa.com/t/no-errors-yet-file-not-working-properly-can-anyone-help/328554/1 "2012-05-25T12:58:26Z")

</div>

[Here is my file if anyone wants to take a look](http://dl.dropbox.com/u/52637059/HyundaiFinal.swf.zip)  
the .FLA file is also available if anyone would like a look at that just ask,

Basically the problem im having is with the blue bar at the bottom of the scene, the orange line above should track to the box that the mouse is over. This did work previously but since I added the central feature.

These are my different bits of code for the bar…  
\*\*on the main scene  
\*\*

```auto
import flash.events.MouseEvent;import fl.transitions.Tween;
import fl.transitions.easing.*;
//holder is mc containing all the menu buttons
//adding mouse event listener to the holder
holder.addEventListener(MouseEvent.MOUSE_OVER, moveToTarget);
holder.buttonMode = true;
//Functiont to move the bar to the position of the menu button
var highlightTween:Tween;
function moveToTarget(me:MouseEvent):void{

    if(me.currentTarget != me.target){
        highlightTween = new Tween(holder.bar,"x",None.easeNone,holder.bar.x, me.target.x,0.5,true);
    }
    

}

```

\*\*

in the holder itself  
\*\*

```auto
holderbutton1.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);holderbutton2.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
holderbutton3.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
holderbutton4.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
holderbutton5.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);

function onMouseClick(event:MouseEvent):void 
{
  trace(event.currentTarget.url);
  var req:URLRequest = new URLRequest(event.currentTarget.url);
  navigateToURL(req, "_blank"); //this opens a new browser tab
}

```

\*\*

on each the menu buttons

\*\*

```auto
var url:String ="http://www.hyundaiapproved.co.uk/";

```
