Skip to main content
Participant
April 16, 2012
Question

FlashVars Problem - read in a Class

  • April 16, 2012
  • 1 reply
  • 360 views

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.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 16, 2012

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.