|
-
Senior Member
problem loading a variable with spaces
Musicman and others,
I am loading a variable using this code:
Code:
loadVariables("http://littlewoods.dev.jackpotjoy.com/jackpot.jsp?gameId=55",_root);
the problem is that the value returned is:
note the spaces!
when I import into flash, I get this:

How on earth do I reference total? I've tried using '||||total' and other alternatives but I just can't do it.
please help make a frustrated man not frustrated any more. Cheers in advance.
-
I remember my first Flash
I know this, but the sloution is easy. Just cut off the last two characters and then convert it to number. Or if it is bigger string, the serch it for ord(char)=10 (that is the /n) and the ord(char)=13 (that is the /r) and also cut it off.
Inks! Minks! The old witch winks, that fat beings to fry! No body home but Jumping Joan, father, mother and I! Sticks! Stocks! Stone Dead! Blind men can't see! Every knave will have a slave, you or I must be he!
Hostess Judy / Æon Flux.
-
Senior Member
thats the easy bit, what variable name so I use, I;ve tried:
total
|||total
total
%0a%0a%0atotal
etc
etc
cheers anyway
-
Hi,
any chance to get rid of those spaces in the jsp ?
Otherwise, try whether this["\r\n\r\ntotal"] works
Musicman
-
Senior Member
Originally posted by Musicman
Hi,
any chance to get rid of those spaces in the jsp ?
Otherwise, try whether this["\r\n\r\ntotal"] works
Musicman
its an external company who own the link and they're reluctant to do it.
thanks anyway musicman, I'll just have to stump up and pay more for them to change it.
regards
Bruce
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|