A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Setting a component variable newbie.

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    5

    Changing a variable in AS 2 component from HTML - Panties

    How do I set/access the "Text File" variable as shown in the two pictures. _root and _global don't work.

    I also tried to access it from _root.CrosswordPuzzle.cp_words_textfile

    I don't get components.
    Attached Images Attached Images
    Last edited by madpixl; 03-24-2009 at 07:56 AM. Reason: clarity/ visibility
    patience is a hassle.

  2. #2
    Junior Member
    Join Date
    Sep 2002
    Posts
    5

    Updated component variable value in Actionscript 2/Flash 8

    So to further clarify, I am using FlashVars to send in the URL of a text file.

    I can get the variable into my Flash ok, but I cannot update the component variable.

    cp_words_textfile = _root.newTextFile


    It seems like the variables are cleared out when a preloader loads or something...
    patience is a hassle.

Tags for this Thread

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