AS. Arrg

Been a while since I’ve done flash so pardon this retarted question:

I have nimage=32 in a text file. I’m loading the file using LoadVariables() function. How do I convert that to a useable format? Like say I want to do nimage–; or something.

The data is getting loaded sucessfully, because it gets displayed in a textbox but how do it make it a number or what not?

you want to convert it to a number?

http://64.207.155.38/forums/showthread.php?s=&threadid=13612&highlight=convert+AND+string+AND+number

check out that thread… that should get you started…

Hey, thanks. But no work. I’ve already tried using Number() but it didn’t work for some reason? Perhaps I am implementing it wrong?

I’m doing

loadVariables(“n_image.txt”,"");
num = Number(nimage);

But it dosen’t work?

Unfortunately I don’t have Flash open (or even on this comptuer)so I can’t test anything out… That SHOULD work, but perhaps I am missing something… gonna have to wait for Senocular or Pom…

Sorry i can’t help more… :frowning:

loadVariables(“n_image.txt”,"");
num = Number(nimage);

^ You have to wait for the variables to load before you can use them. If you’re using MX use a loadVars object and do it all in the onLoad call. Otherwise, I suggest using a movieclip and handling it an onClipEvent(data)

Hey Sen, I believe I solved this issue with him over AIM a while ago.

lol sorry… I did a search of posts with my name in it and this was one of the ones that came up… I just wanted to try to attend to any requests I missed :wink:

Ah, ok. Sorry, I should posted in here that th problem was solved. “My bad”.

this also helps anyone finding this in a search having an answer (of some sort) posted in the thread :wink:

… hear that people? SEARCH! :beam:

LOL, Sen, do you really think people actually know what search means, let alone know what the search button is and how to use it?

We could only dream, but it will never happen.

true :wink:

I know :slight_smile: