-
[MX04] Change a mc variable using the root timeline?
Why can't I change a variable in a clip via the main timeline? The initial values are set in the clip on load.
Here is the code on the main timeline
Code:
_root.speedcalc.11second = _root.speedcalc.speed;
This just ends up as a syntax error and the variable doesn't get set.
-
is 11second a variable? I don't believe you can start a variable with a number, swithc it to second11. not sure if that is your problem though.
what is speedcalc, a movie clip?
in the movie clip you would have?:
var second11;
var speed;
try tracing your paths to see if your variables have a value
trace(_root.speedcalc.speed);
IMS
-
Thanks, it was 3am and I forgot you can't have numbers at the begining lol.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|