Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 04-27-2005, 11:10 AM   #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..
BlindFish is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:21 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2