|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Bristol, UK
Posts: 104
|
Flash MX - LoadVars
Hi,
I'm something of a Flash Newbie with a bit of programming experience == a dangerous combination I'm trying to simplify the update of text to be used in a Flash page by externalising it into a text file. I'm having no problem assigning variables from the text file to appear in static elements on my page - so I can obviously get loadVars to work... which is a step in the right direction. My problem is that I also want to pass the value of some of the imported text to other variables that are then passed as arguments of a function... but I can't seem to find a way to assign the value of the imported variable to a variable within my actionscript... Is this even possible? Maybe some code would make more sense: TextData = new LoadVars(); TextData.onLoad = function(){ MainTitle.htmlText = this.maintitle; //static element which works fine info1 = this.info1; //This assignment works but only to a point _root.Feedback = info1; // assignment to my Feedback variable works if it appears within the function... but see below... }; _root.TextData.load("static_text.htm"); _root.Feedback = TextData.info1; // How do I assign it outside the function? I thought this should work but it doesn't.. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|