PDA

View Full Version : mailto not working when in movie


garry0879
03-28-2008, 10:45 AM
I've got this code which launches the the default browser on button click and fills out fields for address and body. It works fine when I test the movie within Flash but when I export the file to a movie and run it, only the address field gets updated. I'm using CS3 and I've tried different exporting options but had no luck with it.

Here's the code I'm using:

send_btn.onRelease = function(){
getURL("mailto:blah@blahblah.com?subject=Quiz result" + "&body="+ QuizTrack.percent_format + enter_name);
}

If you guys could help me out on this that'd be great!

iyeru42
03-28-2008, 12:17 PM
Are you viewing the Flash on an HTML page? Or by itself when exporting (CRTL+Enter)?

garry0879
03-28-2008, 12:46 PM
I go to Export>Export movie, so its as a standalone desktop app (without a browser, just on its own). I've also tried exporting it as HTML and I get the same problem.

daveystew
03-28-2008, 01:04 PM
If the worst comes to the worst, pass your variables to a a javascript function in the html page and let that do the legwork:
function mail(email, subject){
window.location.href = 'mailto:' +email+ '?subject=' + subject
}

garry0879
03-28-2008, 01:48 PM
Thanks Dave. I'll keep that in mind, though I'm not too sure that's what my Boss is after.

Ideally, I want the application on a flash file so its easier for the users to run on their local machines. I'm beginning to doubt whether the mailto function will work when offline.

iyeru42
03-28-2008, 02:11 PM
Thanks Dave. I'll keep that in mind, though I'm not too sure that's what my Boss is after.

Ideally, I want the application on a flash file so its easier for the users to run on their local machines. I'm beginning to doubt whether the mailto function will work when offline.

JavaScript is easier to run than Flash, always will be. Linux users can't display Flash correctly (due to Linux not being able to "transform" flash. Check out youtube in Linux, and try full screen, it may or may not work.)

garry0879
03-28-2008, 02:26 PM
What I meant was that by using a flash file, it easier for the user to know how to run it as there's only one file, and it looks more proffessional in my opinion because you can't edit the code. If I export as a HTML file, on the other hand, there are more files and users are able to edit or look at the code.

I wonder if there's any shareware programs that encapsulate exported Flash Web files into a desktop application and hides the underlying code from the user? Hmm

iyeru42
03-28-2008, 06:02 PM
What I meant was that by using a flash file, it easier for the user to know how to run it as there's only one file, and it looks more proffessional in my opinion because you can't edit the code. If I export as a HTML file, on the other hand, there are more files and users are able to edit or look at the code.

I wonder if there's any shareware programs that encapsulate exported Flash Web files into a desktop application and hides the underlying code from the user? Hmm

Pivot but only for stick figures; no menus. Other shareware programs FORCE a watermark onto the flash document. Unless you pay for them. In the end, it's best to just get the real thing from Adobe.

neilmmm
03-28-2008, 06:06 PM
mailto does not work from with in a movie projector, at least it does not in AS2

however flash jestor have a freebie that allows it to work, try here (http://www.flashjester.com/?section=tricks_jtools_jemail)

iyeru42
03-28-2008, 08:43 PM
mailto does not work from with in a movie projector, at least it does not in AS2

however flash jestor have a freebie that allows it to work, try here (http://www.flashjester.com/?section=tricks_jtools_jemail)

It's not an extension to Flash though.

garry0879
03-31-2008, 10:32 AM
Thanks for your help, Guys!

I'll have a look at Flash Jester and see if it's suitable for what Ihave in mind.