PDA

View Full Version : Flash Lite 1.1 and loadVars.


jraydan
05-02-2008, 08:30 AM
Hello.
I have this problem with a little flash app I am making.

When it loads I have this line

loadVariables ("name.txt", "/");

the only content of name.txt is

visiting=teamname

Then I have a dynamic textbox that takes its data from the variable visiting and that works perfectly.

The problem comes when I try to use the visiting variable within the code.

like assigning it to other variable , like

team = "away :" add visiting;

that is not working at all. that traces as

away:

I am not sure if I am hitting some sort of limitation about external variables or what. I was counting on being able to load variables from an external file and use them within the code for my app.

I will appreciate any help or suggesstions. Remember this is flash lite to be used as a standalone app on a symbian s60 phone.

Thanks in advance.

vinayak.kadam
11-11-2008, 07:58 AM
Msg is too old to reply, but will definetly help others.

Change your code to below and the thing will work:

team = "away: " add String(visiting)

As ever,
Vinayak Kadam