Re: Flash loadVariables

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54753
interpreted = N
texte = It sounds like you are having a movieclip issue. Does clipEmpty exist? Have you already set the var for test? Also make sure that yours vars in the txt file are setup like &myvar=some value&mysecondvar=another value. When in doubt, an excellent source of referral is http://www.actionscripts.org/ ----------------------------- Daniel Schutzsmith Senior Web Developer Berlin Productions, Inc. dan@berlinprod.com http://www.berlinprod.com (914) 683-5759 (914) 683-5751 fax ----------------------------- > From: Justin Carroll > Reply-To: (WebDNA Talk) > Date: 08 Dec 2003 10:15:43 -0500 > To: (WebDNA Talk) > Subject: Flash loadVariables > > I'm trying to get a string of variables into flash from WebCat. I'm using the > loadVariables() function. When I choose Debug > List Variables in the flash > preview mode it shows my variables loaded at _level10; however, when I trace > those same variables I get "undefined" every time. > > Here's an example of what's happening: > loadVariable("test.txt", _level10); //_level10.test > _root.x = "Boom!" //_level10.x > > trace(_root.clipEmpty.test); //this returns "undefined" > trace(_root.x); //this returns "Boom!" > > I've changed my code to use the LoadVars() object and the loadVariablesNum(). > Nothing seems to work. Every single time I get "undefined" for my variables. > I'm on a Macintosh using Flash MX. Any suggestions would be helpful at this > point. Thanks. > > Justin Carroll > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Flash loadVariables ( "Rajeev Kumar" 2003)
  2. Re: Flash loadVariables ( chas@valley.net (chas) 2003)
  3. Re: Flash loadVariables ( Justin Carroll 2003)
  4. Re: Flash loadVariables ( Daniel Schutzsmith 2003)
  5. Flash loadVariables ( Justin Carroll 2003)
It sounds like you are having a movieclip issue. Does clipEmpty exist? Have you already set the var for test? Also make sure that yours vars in the txt file are setup like &myvar=some value&mysecondvar=another value. When in doubt, an excellent source of referral is http://www.actionscripts.org/ ----------------------------- Daniel Schutzsmith Senior Web Developer Berlin Productions, Inc. dan@berlinprod.com http://www.berlinprod.com (914) 683-5759 (914) 683-5751 fax ----------------------------- > From: Justin Carroll > Reply-To: (WebDNA Talk) > Date: 08 Dec 2003 10:15:43 -0500 > To: (WebDNA Talk) > Subject: Flash loadVariables > > I'm trying to get a string of variables into flash from WebCat. I'm using the > loadVariables() function. When I choose Debug > List Variables in the flash > preview mode it shows my variables loaded at _level10; however, when I trace > those same variables I get "undefined" every time. > > Here's an example of what's happening: > loadVariable("test.txt", _level10); //_level10.test > _root.x = "Boom!" //_level10.x > > trace(_root.clipEmpty.test); //this returns "undefined" > trace(_root.x); //this returns "Boom!" > > I've changed my code to use the LoadVars() object and the loadVariablesNum(). > Nothing seems to work. Every single time I get "undefined" for my variables. > I'm on a Macintosh using Flash MX. Any suggestions would be helpful at this > point. Thanks. > > Justin Carroll > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Daniel Schutzsmith

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] lists opinion (2009) using showpage and showcart commands (1996) WebCat2b13MacPlugIn - More limits on [include] (1997) New commands in Final candidate (1997) Summing fields (1997) how to include a name in from or to using Sendmail? (2003) referrer and no caches (1997) [WebDNA] General email error -1 (WebDNA 7) (2012) charging? (2001) MacAuthorize order data fields WAS:How To question... (1997) WebCat2b13 Command Reference Doc error (1997) [WebDNA] Last WSC shares for sale! (2009) AppleScript question (1997) WebCat2b15MacPlugin - [protect] (1997) Using Plug-In while running 1.6.1 (1997) required fields??? (2000) Sub Categories (2000) The beginning (1997) CERT Advisory on malicious scripts (2000) Looking for a Manual (1997)