so.. as i have many instances in my movie where the car moves, i shall write "car = "moving" " and the wheels will change to moving, then for car = "still" they will change back to still wheels.
it should be something like IF car = moving then... but im not sure how to make it check all my clicks etc. I just want to not have to clutter my code with the attachMovie statement every other line.
is it an OnclipEvent?
Any ideas please?
"They're very much like scruffy pigs to look at, and they've got big, knobbly warts and lumps all over their long, hairy faces. They are very, very ugly indeed..."
if (car=="moving"){
_root.car_mc.wheel1_mc.attachMovie("wheelMoving", "newWheel",0)
then further down on my button click i have:
car=="moving"
but when i click the button it doesnt work, i know the symbols are fine because i put root.car_mc.wheel1_mc.attachMovie "wheelMoving", "newWheel",0) in place of car="moving" and it worked, so it must be the IF..
"They're very much like scruffy pigs to look at, and they've got big, knobbly warts and lumps all over their long, hairy faces. They are very, very ugly indeed..."
button_btn.onPress = function()
{
_root.car_mc._x = 400;
// this is a motion tween in mine
car = "moving";
};
car_mc.onEnterFrame = function()
{
if (car == "moving")
{
_root.car_mc.wheel1_mc.attachMovie("wheelMoving", "newWheel", 0);
_root.car_mc.wheel2_mc.attachMovie("wheelMoving", "newWheel", 0);
}
};
"They're very much like scruffy pigs to look at, and they've got big, knobbly warts and lumps all over their long, hairy faces. They are very, very ugly indeed..."