Here is my file if anyone wants to take a look
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
**
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
**
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
**
var url:String ="http://www.hyundaiapproved.co.uk/";