A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to set a "global variable", ah?!

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    6

    Lightbulb

    Hi everyone,

    I am just writing to ask if someone knows how to create a let's say "global" variable in flash, so that any other flah movies located on other pages can read its value.

    The variable will be set whenever the user clicks on a flash button and it must be read by other flash buttons on others htm pages......That's it.

    Thanks!

    M. Figueiroa

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Posts
    2
    In the main timeline of your movie, add a keyframe to one of your layers. Open the actions window and just type:
    whateverVariableName = whatever123;

    Then to access this variable, you just use _root.whateverVariableName.

    Spark.

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    6

    Thanks

    Originally posted by SparkRules
    In the main timeline of your movie, add a keyframe to one of your layers. Open the actions window and just type:
    whateverVariableName = whatever123;

    Then to access this variable, you just use _root.whateverVariableName.

    Spark.
    Spark,

    Can I access this whatevervariablename on other flash movies?

    Thanks!

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Posts
    2
    Oic... I dont know if that is possible. Sorry mate.

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