all groups > flash actionscript > january 2006 >
You're in the

flash actionscript

group:

Problem w/ custom class & loadvars - Help!


Problem w/ custom class & loadvars - Help! Ma?
1/18/2006 9:49:22 PM
flash actionscript: Hola!

I'm trying to use loadVars from inside a custom class to load values for the
instance variables, so I load the data from an external txt file, and in the
constructor I assign the values to the variables.

The problem is that when I try to access the values of the public variables
from outside the class I get an undefined, and the traces inside the class
appears after this, looks like the loadVars finish loading after the class is
completely created.am I clear?

any help, idea or suggestion? everybody are welcome!


thanks


Re: Problem w/ custom class & loadvars - Help! juankpro
1/18/2006 9:53:47 PM
Yep you are right. The problem is that when you load variables they take a
while to load even if they come from a local file. This variables are not
inmediately available but as soon as they are loaded. Even though the hard disk
is fast, the proccessor is a lot faster.
Re: Problem w/ custom class & loadvars - Help! juankpro
1/18/2006 9:54:31 PM
Re: Problem w/ custom class & loadvars - Help! Ma?
1/18/2006 10:29:44 PM
thanks for your reply.

Re: Problem w/ custom class & loadvars - Help! Ma?
1/19/2006 11:28:06 AM
Re: Problem w/ custom class & loadvars - Help! Ma?
1/26/2006 10:39:47 PM
AddThis Social Bookmark Button