Re: [flexcoders] Socket to Gmail

2008-10-17 Thread Shahid Faiz
gmail allows SMTP to send emails. I remember someone written SMTP code to
send email in actionscript but don't have link. You can search on SMTP
Mailer IIRC.

- shahid


On Fri, Oct 17, 2008 at 4:55 AM, Rich Tretola [EMAIL PROTECTED] wrote:

   Anyone know if someone has written a socket connection to send mail
 through a gmail account?

 Rich
  



Re: [flexcoders] AIR with twitter

2008-10-13 Thread Shahid Faiz
i hope you have found the answer on twitter mailing list. replace .format
with .xml as you are expecting e4x.

- shahid


On Mon, Oct 13, 2008 at 3:02 PM, abhishekchess1 [EMAIL PROTECTED]wrote:

   hello all frnds,

 i want to connect my AIR application with twitter API,
 i never used any API before,
 i used
 mx:HTTPService id=httpSerSendMessage
 url=http://twitter.com/direct_messages/new.format;
 result=
 resultHandlerSendMessage(event);
 fault=faultHandlerSendMessage(event);
 method=POST
 resultFormat=e4x 
 mx:request 
 user{userName}/user
 text{message}/text
 /mx:request
 /mx:HTTPService

 but it give an error
 [RPC Fault faultString=HTTP request error
 faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
 type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
 #2032: Stream Error. URL:
 http://twitter.com/direct_messages/new.format; errorID=2032]. URL:
 http://twitter.com/direct_messages/new.format;]

 is authentication mtd is req ?
 how to use authentication mthod
 http://twitter.com/account/verify_credentials.format , and wat to send
 in it ?

  



Re: [flexcoders] Log4J like library

2008-10-08 Thread Shahid Faiz
@Howard: Actually I am developing AIR application and I don't have any my
own server side where I can deploy any web service for logging. That's why I
require some logging mechanism which will store information on user machine
like all desktop applications do.

@Dimitrios: I think, current logging framework provides TraceTarget and it
logs output only when application is running in Flash Player Debug version.
Isn't it? Also to enable this logging, we will have to first ask user to
configure this trace logging in mm.cfg and then application will start
logging and may be on second run actual problem doesn't happen.

Of course, build in framework provides a very nice foundation classes. I am
thinking of few helper classes like RollingFileTarget (which will log
messages to a file and it will be rolling), and LogConfigurator (it will
configure logging system from a config file) etc. Does this make sense?

- Shahid

On Wed, Oct 8, 2008 at 6:25 PM, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote:

Howard is right... remember if you create a logging framework that logs
 things the client app is doing, the log will be generated on every end-users
 computer...do u intend to retrieve all logs files from all users when an
 error happens? Kinda difficult. Use the existing logging framework and logs
 all critical stuff in there, when an error occurs, have your tech dept call
 the end-user reproduce the problem and get the flashlog.txt file right then
 and there.

 *Dimitrios Gianninas*
 *RIA Developer Team Lead*
 *Optimal Payments Inc.*


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Howard Fore
 *Sent:* Wednesday, October 08, 2008 6:30 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Log4J like library

   How do envision such a component working? Given that Air and Flex are
 front-end technologies, wouldn't the log storage be on the back-end, thus
 implying both some communication between the two and the back-end component
 that does the log writing and storage? You could create a web service
 (written in Java, ColdFusion, .Net, etc) to catch the log events coming from
 the AIR app.

 On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz [EMAIL PROTECTED] wrote:

  Thanks for the link. I have looked at myflex.org, 
 cimlogbookhttp://code.google.com/p/cimlogbook/,
 renaun.com http://renaun.com/blog/flex-components/, and 
 log4fhttp://sourceforge.net/projects/log4f/but they don't provide 
 functionalities that are required for an AIR app. For
 example I am searching for Rolling File Target, externally file based
 configuration etc.



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood

  *AVIS IMPORTANT*

 *WARNING*

 Ce message électronique et ses pièces jointes peuvent contenir des
 renseignements confidentiels, exclusifs ou légalement privilégiés destinés
 au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
 privilège ou à aucun autre droit si le présent message a été transmis
 involontairement ou s'il est retransmis sans son autorisation. Si vous
 n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
 par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
 que toutes ses pièces jointes, de votre système. La lecture, la
 distribution, la copie ou tout autre usage du présent message ou de ses
 pièces jointes par des personnes autres que le destinataire visé ne sont pas
 autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
 électronique par erreur, veuillez en aviser l'expéditeur.

 This electronic message and its attachments may contain confidential,
 proprietary or legally privileged information, which is solely for the use
 of the intended recipient. No privilege or other rights are waived by any
 unintended transmission or unauthorized retransmission of this message. If
 you are not the intended recipient of this message, or if you have received
 it in error, you should immediately stop reading this message and delete it
 and all attachments from your system. The reading, distribution, copying or
 other use of this message or its attachments by unintended recipients is
 unauthorized and may be unlawful. If you have received this e-mail in error,
 please notify the sender.
   



Re: [flexcoders] Log4J like library

2008-10-07 Thread Shahid Faiz
Anatole,

Thanks for the link. I have looked at myflex.org,
cimlogbookhttp://code.google.com/p/cimlogbook/,
renaun.com http://renaun.com/blog/flex-components/, and
log4fhttp://sourceforge.net/projects/log4f/but they don't provide
functionalities that are required for an AIR app. For
example I am searching for Rolling File Target, externally file based
configuration etc.

Thanks,
Shahid

On Tue, Oct 7, 2008 at 9:27 AM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   have you looked at myflex.org?Thank you
 Anatole


 On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz [EMAIL PROTECTED] wrote:

   Hi,

 Does anyone know log4j like library for AIR applications? It is really
 hard to trace a problem when application is in testing or production without
 such utility.

 Thanks,
 Shahid


  



[flexcoders] Log4J like library

2008-10-06 Thread Shahid Faiz
Hi,

Does anyone know log4j like library for AIR applications? It is really hard
to trace a problem when application is in testing or production without such
utility.

Thanks,
Shahid


Re: [flexcoders] Re: GC Issues

2008-09-22 Thread Shahid Faiz
reflexactions: Are you able to nail down any other issue which caused this
GC problem? Or that textarea issue was the only problem in your application.
In my case ChangeWatcher was causing problem which I have fixed, but List
control holds references to some ItemRenderers (instances of item renderers
is more than number of rows displaying) which causes chain of objects to
remain in memory.

- shahid

On Fri, Sep 19, 2008 at 11:13 AM, Alex Harui [EMAIL PROTECTED] wrote:

All CSSStyleDecls get registered with the central StyleManager, pinning
 what SWF brought them in.



 If you have a simple test case for TextArea, please file a bug.  I don't
 see how a border referencing the TextArea can pin the TextArea.  Something
 would have to be pointing to the border, but the border already has parent
 pointing to the TextArea.



 -Alex



 PS:  You are the last reply I'm doing before going on vacation.   Hopefully
 someone else will help you track it down.



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *reflexactions
 *Sent:* Thursday, September 18, 2008 10:52 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: GC Issues



 We have common .css files that contain every style we ever use in the
 whole application or modules and we have these loaded in the main
 application mxml.

 mx:Style source=assets/styles/main.css /
 mx:Style source=assets/styles/images.css /

 images has all the embeded icon styles and main has everything else.

 So each module/control shouldnt bring anything in in theory.

 We have a large common import class to get all the framework classes
 into the main app and then optimise every module for use with the
 main app.

 tks
 PS. Just curious about ur comments its the styles .. would that
 mean we would be potentially creating problem if we have class
 default style declarations in custom compenent class files?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  It isn't the classes themselves it is the style declarations they
 bring in. A common way to solve that is to use runtime css modules
 to load every style you'll need into the main appdomain
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Josh McDonald
  Sent: Thursday, September 18, 2008 7:12 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Re: GC Issues
 
  I was guessing, so don't count on it being true, it was just an
 idea :)
  On Fri, Sep 19, 2008 at 11:48 AM, reflexactions
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote:
  Hi there,
  Thanks for that info, I hadn't realised before that instances would
  not get GC'd becuase they introduced a new class.
 
  But no I don't think that was it as we have a class in the main app
  to force include of the framework components and the ones we had
  issue with like TextArea were included in that class.
 
  But I will note for the future that I must find all the classes we
  use in a module and have them included in the main app otherwise as
  you say instances will not be GC'd.
 
  tks
  --- In
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald dznuts@ wrote:
  
   I'm completely guessing here, but could it be that your modules
 are
   including framework classes that aren't linked into the main
  application?
   That might keep the module from being collected because the VM
  wants to keep
   the classdefs around?
  
   -Josh
  
   On Fri, Sep 19, 2008 at 10:34 AM, Alex Harui aharui@ wrote:
  
I'm not aware of an problems like that. See my blog post on
 the
  profiler
to make sure you're using it correctly.
   
   
   
I've seen some issues that the last component to have focus pins
  that
component until focus goes elsewhere.
   
   
   
-Alex
   
   
   
*From:*
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 *On
Behalf Of *reflexactions
*Sent:* Thursday, September 18, 2008 7:41 AM
*To:*
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
*Subject:* [flexcoders] GC Issues
   
   
   
I have been working using the profiler for the last several days
trying to resolve some serious memory issues with our
 application.
   
I am interested in hearing from others who have used the
 profiler
  and
if they are seeing the same issues as we are.
   
Our application is mainly structured as a series of
 TitleWindow's
that each contain a Module. The problem has been Modules that
  don't
get GC'd.
   
Of course we went after the