jeremy*
November 17th, 2002, 09:18 PM
Is it possible to give a variable to the _xscale of a given MC.?
i wonder because I ran into a problem with this example:
this is just a simple experiment file I was messing with, here's the problem.
I have a MC, that i want to be able to modify the xscale by an input box and button. basically the user inputs a value, presses the button, and the _xscale of the MC chages to what they put in the input box.
so my MC is named graph.
the input box has a var of xsize.
the button works fine if I use
on release
graph._xscale = xsize
but when I try to give graph._xscale a variable like MCsize
on release
MCsize = xsize
that doesn't work.
is it my syntax or just that I can't give a property of a MC a variable name?
i wonder because I ran into a problem with this example:
this is just a simple experiment file I was messing with, here's the problem.
I have a MC, that i want to be able to modify the xscale by an input box and button. basically the user inputs a value, presses the button, and the _xscale of the MC chages to what they put in the input box.
so my MC is named graph.
the input box has a var of xsize.
the button works fine if I use
on release
graph._xscale = xsize
but when I try to give graph._xscale a variable like MCsize
on release
MCsize = xsize
that doesn't work.
is it my syntax or just that I can't give a property of a MC a variable name?