This content has been marked as final. Show 3 replies
If you want to use a number strictly as a string you could try using something like
var passedinURL:String = passedinINTEGER.toString();
Bearing in mind integer is simply a type of number, not an actionscript class in itself.
To be honest, even if passedinINTEGER is a strict number type, getURL(generalURL+passedinURL,"_blank") ought to still work. Did when I tested it anyway. If you're getting error messages I suspect the problem is with the parsing of the loaded variables. What is the error message you've been getting?
Thanks, I'm going to try it some more your way. Here is the error I get on the webpage:
A critical error has occurred.
Cast from string "" to type 'Integer' is not valid.
How are you getting your variables into Flash? Certainly if you're using loadVars to load the 'integer' from a text file, it is actually loaded as a string, even if the content is just numeric. The error message sounds like a PHP or Visual Basic error to me, though you'd be better off hearing from someone who actually knows what they're talking about...
Have you tried doing a
and testing within Flash, to make sure you're getting what you expect? It would be useful to see more of your actionscript to see how you're doing this.