Mailto: problems

Hi…

My actionscript on first frame…

subject = “Question”;
email = "mygmail@gmail.com";
mailto = “mailto:” add email;

My actionscript on button is :

on (press) {
getURL(mailto add “?subject=” add subject add “&body=” add strFullText);
}

Problem which occures is next: when I test my movie clip from Flash 8 it works normally… It opens Outlook window and imports body, subject and email. But when I test my movie from a folder or from html it opens Outlook window but it imports only email… subject and body are empty… My flash publish settings are set to Flash 7 / Actionscript 2…

If I change publish settings to Flash 8 I get this error message:

Error Symbol=Symbol 1, layer=A, frame=1:Line 3: Syntax error.
mailto = “mailto:” add email;

Error Symbol=Symbol 1, layer=okno, frame=1:Line 10: ‘)’ or ‘,’ expected
getURL(mailto add “?subject=” add subject add “&body=” add strFullText);

Error Symbol=Symbol 1, layer=okno, frame=1:Line 11: Unexpected ‘}’ encountered
}

Is there some mistake in my actionscript or whats wrong?
Thanks for all answers.

all that I see is that the subject = “subjects…” need a $ before them to be called as variables, $subject = “”. Other than that I don’t know where to start with that code lol

Dont use ‘add’, use +. [AS]subject = “Question”;
email = "mygmail@gmail.com";
mailto = “mailto:” + email;
on (press) {
getURL(mailto + “?subject=” + subject + “&body=” + strFullText);
}[/AS]

Thanks fattony :wink: It’s working now :slight_smile: