A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Variables

  1. #1
    But it still fills prams ivorsmallun's Avatar
    Join Date
    Jul 2001
    Location
    Far Far Away
    Posts
    400

    Variables

    Hi you out there in the flash world.
    I load a movie into a movie then set a variable within that movie.Can you use a variable in one loaded movie and use the same variable in another loaded movie ,keeping the same total of that variable.

    I hope you understand the question.

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    875
    Yeh, just say you've loaded a movie into an empty clip called mcTarget, and in that movie you have a varaible called myVar.

    If you want to access that variable from the main timeline then you would reference it as follows -

    Code:
    _root.mcTarget.myVar
    Hope this helps.
    Ian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center