I have 6 buttons inside a movie clip that need to perform this function :
PHP Code:
speed = 1;
imageSpeed = 3;
imagestargetX = 375;
this.onEnterFrame = function ()
{
contents._x = contents._x + (imagestargetX - contents._x) / imageSpeed;
};
stop ();
tab1.onRelease = function ()
{
imagestargetX = 375;
};
tab2.onRelease = function ()
{
imagestargetX = -75.5;
};
tab3.onRelease = function ()
{
imagestargetX = -520.5;
};
tab4.onRelease = function ()
{
imagestargetX = -926.5;
};
tab5.onRelease = function ()
{
imagestargetX = -1384.4;
};
tab6.onRelease = function ()
{
imagestargetX = -1836.3;
};
I set up the instance names for the buttons but they do nothing :??:
Is it because they are in a movie clip?
If so, ho do I overcome this problem??
Thanks for the help!