Skip navigation
FlashVars Problem
Currently Being Moderated

FlashVars Problem - read in a Class

Apr 16, 2012 12:24 PM

Hello,

 

I want to pass a Flash variable. I used FlashVars, as in this example http://www.tutoriales-flash.com/truco.php?id_truco=28.

 

I can read the variablesin the first frame, however I can not read these variables from my class, by_root.name_variable, the variable is blank:

 

Código :

public var isName:String = _root.name;

That I have it in my class.

any ideas?

 

thanks in advanced.

 
Replies
  • kglad
    62,194 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 16, 2012 2:54 PM   in reply to FlashVars Problem

    does your class have _root access?  is _root.name defined before you try and access it in your class?

     

    use the trace() function to test both.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points