Показать сообщение отдельно
Старый 30.03.2002, 21:43
[subway]design вне форума Посмотреть профиль Отправить личное сообщение для [subway]design Посетить домашнюю страницу [subway]design Найти все сообщения от [subway]design
  № 8  
[subway]design
 
Аватар для [subway]design

Регистрация: Oct 2001
Адрес: в Петербурге
Сообщений: 2,430
Чтобы самому не париться:

Цитата:
Flash Help:

Usage

escape(expression)

Parameters

expression The expression to convert into a string and encode in a URL-encoded format.

Returns

Nothing.

Description

Function; converts the parameter to a string and encodes it in a URL-encoded format, where all non-alphanumeric characters are escaped with % hexadecimal sequences.

Example

Running the following code gives the result, Hello%7B%5BWorld%5D%7D.

escape("Hello{[World]}");

See also

unescape
Цитата:
Flash Help:

Usage

unescape(x)

Parameters

x A string with hexadecimal sequences to escape.

Returns

Nothing.

Description

Top-level function; evaluates the parameter x as a string, decodes the string from URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string.

Example
The following example illustrates the escape-to-unescape conversion process.

escape("Hello{[World]}");

The escaped result is as follows:

("Hello%7B%5BWorld%5D%7D');

Use unescape to return to the original format:

unescape("Hello%7B%5BWorld%5D%7D")

The result is as follows:

Hello{[World]}

See also

escape
__________________
subway.net.ru