Ciao a tutti.

Ragazzi chi mi sa correggere questo script fatto con Flash5 (NON VI SPAVENTATE L'ERRORE STA NELLE STRINGHE SCRITTE IN ROSSO),dovrei usare questo script in FlasMX ma mi da errore in quelle due stringhe!!:
--------------------------------------------------------------------
function insertTag(Code, CodeOn, CodeOff) {
if (/:SelectionEnd>/:SelectionStart) {
/:PlainText = /:PlainText.slice(0, /:SelectionStart)+CodeOn+/:PlainText.slice(/:SelectionStart, /:SelectionEnd)+CodeOff+/:PlainText.slice(/:SelectionEnd);
/:LastCursorPos = /:SelectionEnd+length(CodeOn)+length(CodeOff);
/:SelectionEnd = -1;
} else if (eval(Code)) {
eval(Code) = 0;
/:PlainText = /:PlainText.slice(0, /:LastCursorPos)+CodeOff+/:PlainText.slice(/:LastCursorPos);
/:LastCursorPos += length(CodeOff);
} else {
eval(Code) = 1;
/:PlainText = /:PlainText.slice(0, /:LastCursorPos)+CodeOn+/:PlainText.slice(/:LastCursorPos);
/:LastCursorPos += length(CodeOn);
}
}
--------------------------------------------------------------------
Ciao e grazie.ReNzi