[flexcoders] How to Drag and drop outlook email to AIR APP?

2008-10-07 Thread michniu
Hi Coders,

Is it possible to drag and drop the outlook eamil items  in AIR app?
Any ides is welcome

Thanks

Mike



[flexcoders] Re: How to Drag and drop outlook email to AIR APP?

2008-10-07 Thread michniu
I did try to  add  the file in my app.xml file :
fileTypes
fileType
nameemail/name
extensionmsg/extension
contentTypeapplication/vnd.ms-
outlook/contentType


/fileType
/fileTypes


And I try to debug  in to  the event handler. I find the  format  
becomes air:text. and the datasource only contain the  email subjec 
from,to, and size information. There is no content  include in it.


Thanks  for help



--- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] 
wrote:

 Were the answers on Apollocoders no help then?
 
  
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is 
intended
 solely for the addressee. Access, copying or re-use of information 
in it
 by anyone else is not authorised. Any views or opinions presented 
are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact [EMAIL PROTECTED]
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of michniu
 Sent: 06 October 2008 23:20
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to Drag and drop outlook email to AIR APP?
 
  
 
 Hi Coders,
 
 Is it possible to drag and drop the outlook eamil items in AIR app?
 Any ides is welcome
 
 Thanks
 
 Mike





[flexcoders] How to hide the column line in datagrid

2008-07-18 Thread michniu
Hi coders,

I have a special requirement that  hide the column separate line(maybe 
border of datagridcolumn) in datagrid.

Any suggestion/solution is  appretiated

Thanks


MN



[flexcoders] Use Cairngorm wihtout Dispatch

2008-04-21 Thread michniu
Hi Coders,

I just want to discuss some issues about  the Cairgorm, Because I 
cant find  another  maillist or  forum to   discuss it. I put it here.


The most uselees part in cairgorm frontCotroller and command


Just my on  opionion, I really dont like to write the command for 
every action and register it  on  frontcoutroller. I really think it  
waste time, and It make debuging  difficult! Sometimes  you dont know 
where do you get the result  after  you dispathce your  Event.



Use A  ServiceFacade to replace  the frontcontroller and the command.

 I use  a ServiceFacade  to call the Delegate  instead of the 
controller and the junk command. 

The idea is  when  the view page  active some action. it will not 
dispathc any event .  it will call the  service mathod from  service 
facade. 

Here  is  example code form  flexStore:

   /**
  * Wrapper function to invoke a call to load the 
catalog XML data
  * @private
  */
private function onLoadCatalog():void {
var event : LoadCatalogEvent = 
new oadCatalogEvent();
event.dispatch();
}

 to replace the  event dispath()  my solution is :

   private function onLoadCatalog():void {

ServiceFacade.getInstance().loadCats();
}


And Ind ServiceFacade .loadCats() method   call teh delegate  and 
service:

public  function loadCats():void {
var handlers : IResponder = new 
mx.rpc.Responder(onResults_loadCatalog,fault);
getDelegate(handlers).loadCatalog();
}   


Use this way, I dont need  create any   frontController and  command. 
I also get the benefit  from  Cairgorm  ServiceLocate  Delegate and 
Model locator.


Any suggestion or Criticze  is Appretiate


Mike






[flexcoders] Use Cairngorm wihtout Dispatch

2008-04-21 Thread michniu
Hi Coders,

I just want to discuss some issues about  the Cairngorm, Because I 
cant find  another  mail list or  forum to   discuss it. I put it 
here.


The most useless part in cairngorm FrontCotroller and command


Just on   my opinion, I really don't like to write the command for 
every action and register it  on  FrontCotroller. I really think it  
waste time, and It make debugging  difficult! Sometimes  you don't 
know where do you get the result  after  you dispatched your  Event.



Use A  ServiceFacade to replace  the front controller and the command.

 I use  a ServiceFacade  to call the Delegate  instead of the 
controller and the junk command. 

The idea is  when  the view page  active some action. it will not 
dispatch any event .  it will call the  service method from  service 
facade. 

Here  is  example code form  flexStore:

private function onLoadCatalog():void {
var event : LoadCatalogEvent  = new 
oadCatalogEvent();
event.dispatch();
}

 to replace the  event dispatch()  my solution is :

   private function onLoadCatalog():void {

ServiceFacade.getInstance().loadCats();
}


The ServiceFacade .loadCats() method   call the delegate  and service:

public  function loadCats():void {
var handlers : IResponder 
  = new Responder
(onResults_loadCatalog,fault);
getDelegate(handlers).loadCatalog();
}   


Use this way, I don't need  create any   front Controller and  
command. I also get the benefit  from  Cairngorm  Service Locate  
Delegate and Model locator.


Any suggestion or Criticize  is Appreciated


Mike





[flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-04-21 Thread michniu
Thanks for replying.

Lets talk about  MVC.  there are two different implementation  of 
MVC. One is  Event driven, Which means   call The Model(Service) in 
Action. In JAVA Framework, JSF is the one.  Another is Action driven. 
Which means  dispatch and  Central listen. like  Struts in  Java.


I think  my solution  just  call the  Service in   Every Flex Action. 
not  Dispatch to a Central controller.

The benefit is  The  logic  is much more clear.  and It is  much more 
easier to maintain, Because  You always know  which  service   is 
used  in the  Exactly Flex Action(event).

compare the  Cairngorm workflow:

  View--Action--dipatch event-- frontcontroller--command--
delegate---sevice Locator--Modellocate---View.


To:

View--Action--Service Facade--Delegate--Service locator--Model 
locator--View

I relly think my way  is much more easier and  clearer.



Cheers


Mike


--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 One of the core principles of not just Cairngorm but MVC in general 
is
 for your views to be as dumb as possible. The less they know about
 models, services, etc the better. You've essentially taken the
 opposite approach. Creating reusable/generic views using your 
approach
 wouldn't really be possible.
 
 Also, Flex is an event driven architecture and events are another 
core
 aspect of creating loosely coupled application components. I think
 your approach will result in very brittle code that will be hard to
 maintain.
 
 Ben
 
 
 --- In flexcoders@yahoogroups.com, michniu MichNiu@ wrote:
 
  Hi Coders,
  
  I just want to discuss some issues about  the Cairngorm, Because 
I 
  cant find  another  mail list or  forum to   discuss it. I put it 
  here.
  
  
  The most useless part in cairngorm FrontCotroller and command
  
  
  Just on   my opinion, I really don't like to write the command 
for 
  every action and register it  on  FrontCotroller. I really think 
it  
  waste time, and It make debugging  difficult! Sometimes  you 
don't 
  know where do you get the result  after  you dispatched your  
Event.
  
  
  
  Use A  ServiceFacade to replace  the front controller and the 
command.
  
   I use  a ServiceFacade  to call the Delegate  instead of the 
  controller and the junk command. 
  
  The idea is  when  the view page  active some action. it will not 
  dispatch any event .  it will call the  service method from  
service 
  facade. 
  
  Here  is  example code form  flexStore:
  
  private function onLoadCatalog():void {
  var event : LoadCatalogEvent  = new 
  oadCatalogEvent();
  event.dispatch();
  }
  
   to replace the  event dispatch()  my solution is :
  
 private function onLoadCatalog():void {
  
  ServiceFacade.getInstance().loadCats();
  }
  
  
  The ServiceFacade .loadCats() method   call the delegate  and 
service:
  
  public  function loadCats():void {
  var handlers : IResponder 
= new Responder
  (onResults_loadCatalog,fault);
  getDelegate(handlers).loadCatalog();
  }   
  
  
  Use this way, I don't need  create any   front Controller and  
  command. I also get the benefit  from  Cairngorm  Service Locate  
  Delegate and Model locator.
  
  
  Any suggestion or Criticize  is Appreciated
  
  
  Mike
 





[flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-04-21 Thread michniu
Thanks for replying.

Lets talk about  MVC.  there are two different implementation  of 
MVC. One is  Event driven, Which means   call The Model(Service) in 
Action. In JAVA Framework, JSF is the one.  Another is Action driven. 
Which means  dispatch and  Central listen. like  Struts in  Java.


I think  my solution  just  call the  Service in   Every Flex Action. 
not  Dispatch to a Central controller.

The benefit is  The  logic  is much more clear.  and It is  much more 
easier to maintain, Because  You always know  which  service   is 
used  in the  Exactly Flex Action(event).

compare the  Cairngorm workflow:

  View--Action--dipatch event-- frontcontroller--command--
delegate---sevice Locator--Modellocate---View.


To:

View--Action--Service Facade--Delegate--Service locator--Model 
locator--View

I relly think my way  is much more easier and  clearer.



Cheers


Mike


--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 One of the core principles of not just Cairngorm but MVC in general 
is
 for your views to be as dumb as possible. The less they know about
 models, services, etc the better. You've essentially taken the
 opposite approach. Creating reusable/generic views using your 
approach
 wouldn't really be possible.
 
 Also, Flex is an event driven architecture and events are another 
core
 aspect of creating loosely coupled application components. I think
 your approach will result in very brittle code that will be hard to
 maintain.
 
 Ben
 
 
 --- In flexcoders@yahoogroups.com, michniu MichNiu@ wrote:
 
  Hi Coders,
  
  I just want to discuss some issues about  the Cairngorm, Because 
I 
  cant find  another  mail list or  forum to   discuss it. I put it 
  here.
  
  
  The most useless part in cairngorm FrontCotroller and command
  
  
  Just on   my opinion, I really don't like to write the command 
for 
  every action and register it  on  FrontCotroller. I really think 
it  
  waste time, and It make debugging  difficult! Sometimes  you 
don't 
  know where do you get the result  after  you dispatched your  
Event.
  
  
  
  Use A  ServiceFacade to replace  the front controller and the 
command.
  
   I use  a ServiceFacade  to call the Delegate  instead of the 
  controller and the junk command. 
  
  The idea is  when  the view page  active some action. it will not 
  dispatch any event .  it will call the  service method from  
service 
  facade. 
  
  Here  is  example code form  flexStore:
  
  private function onLoadCatalog():void {
  var event : LoadCatalogEvent  = new 
  oadCatalogEvent();
  event.dispatch();
  }
  
   to replace the  event dispatch()  my solution is :
  
 private function onLoadCatalog():void {
  
  ServiceFacade.getInstance().loadCats();
  }
  
  
  The ServiceFacade .loadCats() method   call the delegate  and 
service:
  
  public  function loadCats():void {
  var handlers : IResponder 
= new Responder
  (onResults_loadCatalog,fault);
  getDelegate(handlers).loadCatalog();
  }   
  
  
  Use this way, I don't need  create any   front Controller and  
  command. I also get the benefit  from  Cairngorm  Service Locate  
  Delegate and Model locator.
  
  
  Any suggestion or Criticize  is Appreciated
  
  
  Mike
 





[flexcoders] Re: Remove spaces between 2 vboxs

2008-01-14 Thread michniu
verticalGap=0 

--- In flexcoders@yahoogroups.com, NileAge, Mail [EMAIL PROTECTED] wrote:

 Hi all
 
 I want to remove spaces between 2 vboxs





[flexcoders] Re: Taking a variable from an Component in my Viewstack

2008-01-11 Thread michniu
Use a GlobalObject to keep the value cross the different components.


--- In flexcoders@yahoogroups.com, John [EMAIL PROTECTED] wrote:

 Hi there,
 
 I want to extract a variable from each of my Components in the 
 Viewstack as I display it. When the variable has been extracted 
from 
 the Component, I then want to display or update one in one of the 
other 
 Components.
 
 I have been trying for days and come up with nothing, can someone 
help?
 
 TIA
 
 John





[flexcoders] How to integrate multiple Flex application in a one-site Flex application?

2008-01-11 Thread michniu
Hey Coders,

I have  3 different Flex application now , my new task is  integrate 
them in one-site application :
suppose I have 3 apps :
 http://myhost/myapp1.swf;
 http://myhost/myapp2.swf;
 http://myhost/myapp3.swf;

and  my one-site app should be :

 http://myhost/myonesite.swf;

 the one of 3 existing apps  should be  a tab  in the  one-site app  
and they should run  by they own url in the same time.


Any suggestion or solution  is appretiated. 


Thanks 

michniu





[flexcoders] Is there any way to access java applet in AIR?

2007-10-18 Thread michniu
Hi  Gurus,

I have to access applet in my  Applcation. Is that possible if I use 
AIR HTML Component?

thanks in advance

Mike



[flexcoders] How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread michniu
Hi coders,

I have to popup a new  browser in my application, and I need  hide the 
toolbar adn addressbar  in the popup window. Any help is appretiated


Thanks


Mike



[flexcoders] Re: How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread michniu
Thanks Scott!

 But  what if  I use it in  AIR Application?




--- In flexcoders@yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] 
wrote:

 Not sure if you can do all of that from within flex... but you can 
 certainly do it via JavaScript's window.open() method.  If you want 
to 
 do it that way you will need to make a call to 
ExternalInterface.call() 
 to call the JS method on the HTML page that contains your swf.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://blog.fastlanesw.com
 
 
 
 michniu wrote:
 
  Hi coders,
 
  I have to popup a new browser in my application, and I need hide 
the
  toolbar adn addressbar in the popup window. Any help is 
appretiated
 
  Thanks
 
  Mike
 
 





[flexcoders] Cant find flash.system.Door

2007-10-17 Thread michniu
Hi All,

I am trying the AIR example from  air doc  But  I cant find  the 
flash.system.Door. how ?
Thanks