This content has been marked as final. Show 3 replies
if score is defined on your main (or _root timeline) and your scroreboard movieclip is on the _root timeline then, from your scoreboard movieclip (and everywhere else in your _level0 swf) you can access:
thanks for your response.
i have tried that. where do i define the _root.score? in the main timeline or in the movieclip? what function/command would pull this variable into the movieclip ie do i need to define it in the on (release) bit of the button?
sorry if im being dumb but im new to actionscripting.
you already have a score variable defined on some timeline. if you're not sure which timeline you can attach trace(this) to a frame of that timeline and you will see the path/name of the timeline that contains the trace(this) function (and your score variable).
prefixing score with the path displayed in your output panel will allow you to access score from anywhere in your _level0 swf. reference it whereever and whenever you need it.