I think, that javascript code would only work in local html pages.. 


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Wednesday, June 29, 2005 8:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Accessing local mail client from FLEX

Let me correct my previous response,

To open Outlook folders, usage is as shown below:

outlook:inbox
outlook:tasks

...


Question: Why can't Flash Player interact with Outlook or OS Level
applications?

Reason 1: Macromedia Flash Player runs in browser under a sandbox.
Access to OS level application might be a security issue. Imagine a
case, where a malicious Flex/Flash app steals information from your mail
client without your knowledge? Or launches 100 instances of "New Outlook
Task", just to irritate you...

Similarly there are other genuine reasons.


However, you can open a new outlook task with the help of some
signed-JavaScript and code would only work in IE. 

Add following JavaScript function to your HTML page and call
createTask() function from Flex app using getURL(..)

function createTask()
{

        var outlookApp = new ActiveXObject("Outlook.Application.11");
        var task = outlookApp.CreateItem(3)
        task.Display();
}



-abdul
 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tony_lic
Sent: Wednesday, June 29, 2005 1:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Accessing local mail client from FLEX

hi,
  but what i have to do is to create a new outlook task from flex & 
not seeing the existing tasks.
with regards,
tony


--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
> A quick guess, which is right :)
> 
> getURL("outlook:\\\\tasks"); 
> 
> 
> ##OpenOutlookTasks.mxml##
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
> width="600" height="600">
>     <mx:Script>
>         function openTask()
>         {
>             getURL("outlook:\\\\tasks");
>         }
>     </mx:Script>
>     <mx:Button label="Open Tasks" click="openTask()"/>
> </mx:Application>
> 
> 
> 
> -abdul
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of tony_lic
> Sent: Tuesday, June 28, 2005 6:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Accessing local mail client from FLEX
> 
> Hi All,
>   Is there any way to open an outlook task from flex application 
as we 
> can open a new mail window by getURL(mailto).
> with regards,
> tony
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to