Old 27-05-2009, 19:14   #1 (permalink)
stagnate
Registered User
 
Join Date: Apr 2009
Posts: 31
Mailto

Hi Guys,

Got a small issue. Just made a flash movie with a mailto button. It works but every time I click it, it just opens a new window with mailto:..... in it.

How do i stop this new window opening?

Some code I have tried is below.

Code:
sendVideoToAFriend.addEventListener(MouseEvent.CLICK, sendVideoToAFriendFunction); function sendVideoToAFriendFunction(event: MouseEvent) { var request:URLRequest = new URLRequest("mailto:?subject=Site&body=http://www.site.com/video.htm"); navigateToURL(request);

or

Code:
var myEmail:String = "mailto:s…@email.com"; sendVideoToAFriend.addEventListener(MouseEvent.MOUSE_DOWN,function():void { navigateToURL(new URLRequest(myEmail), "_self");} );
  Reply With Quote
Old 27-05-2009, 19:31   #2 (permalink)
stagnate
Registered User
 
Join Date: Apr 2009
Posts: 31
Never mind, the second one seems to work fine. Must have had a caching issue.
  Reply With Quote
Old 27-05-2009, 19:35   #3 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 6,875
The first one has no email address?

mailto:---------?subject=Site&body=http://www.site
__________________
  Reply With Quote
Old 02-06-2009, 06:32   #4 (permalink)
hypesol
Banned
 
Join Date: Jun 2009
Posts: 16
Hi

try VarLoader() this function
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet