Variable problem

I’m trying to make a variable that changes when a MC is on a certain frame. I tried to trace the variable both from the mc and the main timeline, however only the mc game me the correct value and the main timeline returned undefined. Is there any way I can make a variably inside of a MC that I can use from the main timeline?

you can define a global variable in your main timeline, by using:

[AS]_global.myVar = value;[/AS]

read up on global variables here

finally my everlasting problem with variables has been solve…thanx a lot man