subscripter
10-09-2001, 03:15 PM
I am trying to use a script that will change the properties of several different movie clips depending on user actions.
To do this I need to use an expression to specify the target whose property I want to change, but I can't seem to get the syntax right.
I have 16 mc's nested in the main timeline which are called pic1 to pic16.
The script is in a 'scripts' mc also on the main timeline.
I have passed a variable to the 'scripts' mc defining 'pic' as the number of the 'pic' mc for example ../scripts:pic =16
I am then using the set property action below
Set Property ("../pic"&pic, X Position) = 254.4
I want flash to read this as
Set Property ("../pic16", X Position) = 254.4
When ../scripts:pic =16
But it don't work.
What an I doing wrong?
To do this I need to use an expression to specify the target whose property I want to change, but I can't seem to get the syntax right.
I have 16 mc's nested in the main timeline which are called pic1 to pic16.
The script is in a 'scripts' mc also on the main timeline.
I have passed a variable to the 'scripts' mc defining 'pic' as the number of the 'pic' mc for example ../scripts:pic =16
I am then using the set property action below
Set Property ("../pic"&pic, X Position) = 254.4
I want flash to read this as
Set Property ("../pic16", X Position) = 254.4
When ../scripts:pic =16
But it don't work.
What an I doing wrong?