% character

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
rik.schennink
Posts: 21
Joined: 28 Mar 2006, 15:08
Location: The Netherlands

% character

Post by rik.schennink »

when i send a sentence with a % as a str message to the server the server cuts the sentence at the % position.

50% => 50
50 lines of code is 50% of 100 lines of code => 50 lines of code is 50

the following is sent to the server [Sending]: %xt%eJockeyBar%chat%2%false%50%%

I understand what is going wrong, it uses the % sign as a seperator. Is there a easy way around this, or should i replace any % character with something else before i sent it to the server and back? Can i define the seperator somewhere?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

At the moment the separator is fixed to the "%" character.
You should use use an alternate character or entity descriptor (like in HTML / XML). We'll probably allow customizable separator in the next versions.

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
rik.schennink
Posts: 21
Joined: 28 Mar 2006, 15:08
Location: The Netherlands

Post by rik.schennink »

okay thx! looking forward to next version. :)
Post Reply