[flexcoders] Re: first user tab is slow

2009-03-10 Thread schneiderjim
We will run the profiler to see. We have a very large, form based app, so there 
may be something there. It can sometimes take up to 3 - 4 seconds to tab to the 
second form field. 

Some questions:

1. When is the sorted list computed? On the first tab?

2. Is there any way we can change when that happens?

3. What determines whether an object can receive focus? If we have a 
form/canvas over a form/canvas over ... is it only the visible form that has 
objects that can receive focus?

4. What do you mean by startup time delays? Loading the swf?


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 You can run the profiler to see why it is taking so long.  We do compute a 
 sorted list of all objects that can receive focus, but you'd need an awful 
 lot of them to cause a noticeable delay, and if you've created that many, I'd 
 expect you'd be having startup time delays that would be even more 
 problematic.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of schneiderjim
 Sent: Monday, March 09, 2009 2:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] first user tab is slow
 
 
 Flex: 2.0.1
 
 In our app, we experience a significant delay when the user tabs from the 
 first form field to the second. After that, tabs work as expected. Is there a 
 reason for this? Is there a way to eliminate this delay? I'm not sure whether 
 this is a factor, but many (not all) of the forms are dynamically created (in 
 AS).
 
 Thanks





[flexcoders] first user tab is slow

2009-03-09 Thread schneiderjim
Flex: 2.0.1

In our app, we experience a significant delay when the user tabs from the 
first form field to the second. After that, tabs work as expected. Is there a 
reason for this? Is there a way to eliminate this delay? I'm not sure whether 
this is a factor, but many (not all) of the forms are dynamically created (in 
AS).

Thanks



[flexcoders] Local computer access - best practices/successes

2009-02-04 Thread schneiderjim
We have a need to access resources on the local computer.
Specifically, devices connected to the serial/parallel/usb/...
interfaces. I was wondering how others have succeeded with this in a
flex/air environment. 

I was hoping that AIR would make this possible, but it doesn't appear
so yet. Is this true? Would/could this be possible in the future?

Other options? Locally installed app sending data over sockets? I
think I remember seeing that flex/air could connect to such an app.

Signed activex/applet browser plug-ins?

Standard desktop app that sends data to server directly?

Just wondering how others have approached this.

Thanks



[flexcoders] Re: [Bounce] Flex and Firefox 3.0.x performance

2008-12-10 Thread schneiderjim
Thought I'd try again to see whether anyone has experienced this and
what they did to solve it.

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

 Flex: 2
 Flash: 9 and 10
 
 Has anyone experienced performance issues with a flex/flash app
 running on Firefox 3.0.x. After poking around my app for a bit and
 then doing nothing, the firefox 3.0.x process sits at about 40% CPU
 usage. Doing the same with Firefox 2.0.0.18 and the firefox process
 goes back down to 0% - 2% CPU usage ... more like I'd expect.
 
 Is there some configuration I should be aware of? framerate? As far as
 I know, we've never mucked around with anything other than the default
 settings.





[flexcoders] Flex/flash and Firefox 3.0.x performance

2008-12-05 Thread schneiderjim
Flex: 2
Flash: 9 and 10

Has anyone experienced performance issues with a flex/flash app
running on Firefox 3.0.x. After poking around my app for a bit and
then doing nothing, the firefox 3.0.x process sits at about 40% CPU
usage. Doing the same with Firefox 2.0.0.18 and the firefox process
goes back down to 0% - 2% CPU usage ... more like I'd expect.

Is there some configuration I should be aware of? framerate? As far as
I know, we've never mucked around with anything other than the default
settings. 



[flexcoders] Bounce: Favorite Flex/Flash drawing tool component

2008-12-04 Thread schneiderjim
I was wondering whether anyone had any suggestions/favorites for a
flex/flash based drawing tool component. That is, be able to load an
image (from server) on to a canvas, mark it up with the standard
drawing tools, then save back to the server. Don't need to maintain
the graphics layers. Ideally be able to pick from list of
templates for drawing starting point.

Anyone?

Restriction: We are still on Flex 2 (backend = java)



[flexcoders] Flex 2 charting license with Flex 3 sdk

2008-11-18 Thread schneiderjim
We purchased the Flex 2 charting license. Now, we have upgraded to the
Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't
use Flex Builder very much. I do command line/ant builds and editing
with my text editor du jour. 

However, since upgrading to the Flex 3 sdk, we are now getting the
data visualization... watermark. 

Is there something I can do with my flex 2 license.properties to get
this to work? In Flex 2, there was some command-line stuff with
charting-source.jar that I needed to do. Or, do I need to
purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I
think I read that I can just put the license in the flex-config.xml
file. Is this true?

Thanks,

Jim



[flexcoders] Re: Flex 2 charting license with Flex 3 sdk

2008-11-18 Thread schneiderjim
Maybe it should help, but I'm not sure. 

I don't really care about extracting the source code. Should I?

Does this imply that I still need a Flex Builder 3 Pro license in
order to use charting in my Flex 3 SDK app?

Is my Flex 2 charting license rendered useless/invalid once I upgrade
to the Flex 3 SDK?


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

 --- In flexcoders@yahoogroups.com, schneiderjim jschneider@ 
 wrote:
 
  We purchased the Flex 2 charting license. Now, we have upgraded to the
  Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't
  use Flex Builder very much. I do command line/ant builds and editing
  with my text editor du jour. 
  
  However, since upgrading to the Flex 3 sdk, we are now getting the
  data visualization... watermark. 
  
  Is there something I can do with my flex 2 license.properties to get
  this to work? In Flex 2, there was some command-line stuff with
  charting-source.jar that I needed to do. Or, do I need to
  purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I
  think I read that I can just put the license in the flex-config.xml
  file. Is this true?
 
 This may help
 http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.htm
 l





[flexcoders] Re: Custom combobox even propagation

2008-11-10 Thread schneiderjim
Thanks, but I'm not looking to capture normal keyboard entries in
the combobox. I'm looking for a hotkey/function key press that tells
our system to go do stuff on the fields in the custom form. This
hotkey/function key event propagates just fine from all of my other
custom control wrappers, just not the combobox wrapper. 

Any other thoughts anyone?

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

 I have no idea about your specific problem but I do have an idea.
 
 Instead of a ComboBox, you may like to use an AutoComplete Input:
 

http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-input-component-using-flex-3/
 
 
 --- In flexcoders@yahoogroups.com, schneiderjim jschneider@ wrote:
 
  Flex 2.0.1
  
  We are dynamically generating/building a form and putting it in a
  content area. The form has a list of fields that are custom fields
  (wrappers for the real UI component). I'm trying to capture a key
  press in the content area. It works for the TextInput custom
  component, but not the ComboBox. Any Ideas? Here's the basic class
  structure (pseudo-code):
  
  ---
  
  class BaseControl extends UIComponent {
 protected var component : UIComponent;
  }
  
  class MyComboBox extends BaseControl {
 public MyComboBox () : void {
component = new ComboBox();
 }
  }
  
  class MyTextInput extends BaseControl {
 public MyTextInput () : void {
component = new TextInput();
 }
  }
  
  class MyForm extends UIComponent {
 var fields : ArrayCollection; // list of BaseControls
  }
  
  Content.mxml:
  
  script
 var form = new MyForm();
 ... add form fields
 content.addChild(form);
  
 content.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyboard);
  
 private function handleKeyboard(event:KeyboardEvent) {
Alert.show(Key down);
 }
  /script
  mx:VBox id=content
  /mx:VBox
  
  
  
  The problem is that the keyboard handler is being called correctly
  when a key is pressed with the cursor in the custom Text input field,
  but is not getting called when the custom ComboBox has focus and a key
  is pressed. 
  
  What am I missing?
 





[flexcoders] Re: Custom combobox even propagation

2008-11-10 Thread schneiderjim
I'll admit that I'm not sure you mean by the capture phase. I can
tell you what else I did.

In the customer comboxbox constructor, I did add this (pseudo code):

public MyComboBox () : void {
  component = new ComboBox();
  component.addEventListener(Keyboard.KEY_DOWN, handleIt);
}

private function handleIt(event:KeyboardEvent) : void {
   Alert.show(Here);
}


And I did get the keyboard event when I pressed my function key.
However, it never seemed to bubble back up to where I really wanted to
handle it. I looked at the properties of the keyboard event and
bubbling was true.



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

 Try listening in capture phase
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of schneiderjim
 Sent: Sunday, November 09, 2008 4:10 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Custom combobox even propagation
 
 
 Thanks, but I'm not looking to capture normal keyboard entries in
 the combobox. I'm looking for a hotkey/function key press that tells
 our system to go do stuff on the fields in the custom form. This
 hotkey/function key event propagates just fine from all of my other
 custom control wrappers, just not the combobox wrapper.
 
 Any other thoughts anyone?
 
 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com,
valdhor stevedepp@ wrote:
 
  I have no idea about your specific problem but I do have an idea.
 
  Instead of a ComboBox, you may like to use an AutoComplete Input:
 
 

http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-input-component-using-flex-3/
 
 
  --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com,
schneiderjim jschneider@ wrote:
  
   Flex 2.0.1
  
   We are dynamically generating/building a form and putting it in a
   content area. The form has a list of fields that are custom fields
   (wrappers for the real UI component). I'm trying to capture a key
   press in the content area. It works for the TextInput custom
   component, but not the ComboBox. Any Ideas? Here's the basic class
   structure (pseudo-code):
  
   ---
  
   class BaseControl extends UIComponent {
   protected var component : UIComponent;
   }
  
   class MyComboBox extends BaseControl {
   public MyComboBox () : void {
   component = new ComboBox();
   }
   }
  
   class MyTextInput extends BaseControl {
   public MyTextInput () : void {
   component = new TextInput();
   }
   }
  
   class MyForm extends UIComponent {
   var fields : ArrayCollection; // list of BaseControls
   }
  
   Content.mxml:
  
   script
   var form = new MyForm();
   ... add form fields
   content.addChild(form);
  
   content.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyboard);
  
   private function handleKeyboard(event:KeyboardEvent) {
   Alert.show(Key down);
   }
   /script
   mx:VBox id=content
   /mx:VBox
  
   
  
   The problem is that the keyboard handler is being called correctly
   when a key is pressed with the cursor in the custom Text input
field,
   but is not getting called when the custom ComboBox has focus and
a key
   is pressed.
  
   What am I missing?
  
 





[flexcoders] Custom combobox even propagation

2008-11-05 Thread schneiderjim
Flex 2.0.1

We are dynamically generating/building a form and putting it in a
content area. The form has a list of fields that are custom fields
(wrappers for the real UI component). I'm trying to capture a key
press in the content area. It works for the TextInput custom
component, but not the ComboBox. Any Ideas? Here's the basic class
structure (pseudo-code):

---

class BaseControl extends UIComponent {
   protected var component : UIComponent;
}

class MyComboBox extends BaseControl {
   public MyComboBox () : void {
  component = new ComboBox();
   }
}

class MyTextInput extends BaseControl {
   public MyTextInput () : void {
  component = new TextInput();
   }
}

class MyForm extends UIComponent {
   var fields : ArrayCollection; // list of BaseControls
}

Content.mxml:

script
   var form = new MyForm();
   ... add form fields
   content.addChild(form);

   content.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyboard);

   private function handleKeyboard(event:KeyboardEvent) {
  Alert.show(Key down);
   }
/script
mx:VBox id=content
/mx:VBox



The problem is that the keyboard handler is being called correctly
when a key is pressed with the cursor in the custom Text input field,
but is not getting called when the custom ComboBox has focus and a key
is pressed. 

What am I missing?   




[flexcoders] Re: Flex 2 to Flex 3 - LCDS

2008-10-28 Thread schneiderjim
Follow-up... what about charting?



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

 Yes you can leave LCDS as is and use Flex 3 for the UI portion, its
what we have done here.
  
 Dimitrios Gianninas
 RIA Developer Team Lead
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of schneiderjim
 Sent: Monday, October 27, 2008 3:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2 to Flex 3 - LCDS
 
 
 
 We purchased Flex 2, which at the time, I believe included LCDS (or
 whatever it was called at the time). My belief is that we only use
 LCDS (currently) for remote object calls (I'm honestly not sure we
 need LCDS for remote object, but I'll assume for now that we do
 [without changing backend implementation]).
 
 We need/want to upgrade to Flex 3 on the UI side, but would prefer to
 leave our remote services unchanged (not even touch the server side of
 the code/libraries) until we understand our licensing options.
 
 Is this possible? Is it recommended? Any tricks/issues to overcome?
 Any issues with the messaging/licensing that would prohibit us from
 doing this?
 
 Thanks for any info.
 
 
 
  
 
 -- 
 WARNING
 ---
 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.
 
 AVIS IMPORTANT
 --
 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.





[flexcoders] Flex 2 to Flex 3 - LCDS

2008-10-27 Thread schneiderjim
We purchased Flex 2, which at the time, I believe included LCDS (or
whatever it was called at the time). My belief is that we only use
LCDS (currently) for remote object calls (I'm honestly not sure we
need LCDS for remote object, but I'll assume for now that we do
[without changing backend implementation]).

We need/want to upgrade to Flex 3 on the UI side, but would prefer to
leave our remote services unchanged (not even touch the server side of
the code/libraries) until we understand our licensing options.

Is this possible? Is it recommended? Any tricks/issues to overcome?
Any issues with the messaging/licensing that would prohibit us from
doing this?

Thanks for any info.



[flexcoders] Re: Where is URLRequest data on server side

2008-08-29 Thread schneiderjim
Thanks Seth. 

The problem is that I have a large (and growing) number of parameters
(or rather, a large number of characters in the parameters) and I
think I'm exceeding the limits of the HTTP query string/parameter map
(I was thinking the limit was 256 or 1024 depending on get vs post). 

More specifically, I have a grid that I want to throw into a PDF. I
use JasperReports on the backend. So, my first solution was to send
the object IDs from the grid to the server, have the server do a
bulk query, and then have JasperReports return the PDF. The problem
now is that the list of IDs is growing and the actual number of
characters is increasing. For example, the IDs used to be 1,2,3,...,
now the are 10,11,12, . 

In the URL to my servlet, I do the following:

myurl?ids=1,2,3
now
myurl?ids=11,12,13

And so on.

When I experience the issue, it's as if the request never even gets
out the client, although I have yet to track that down (doing that now).

I could change the parameters list to just send the search criteria
(which generates the list/grid in the first place), but there is also
some filtering involved, and I had hoped to not need to recreate the
search/filter logic again on the server side. 

Thanks

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

 Hi Jim,
 
 Be sure to set your request.method = URLRequestMethod.POST and
assign your URLVariables to the data property of your URLRequest and
then pass that to navigateToURL(...).
 
 On the server, you can access these name/value pairs as request
parameters (HttpServletRequest#getParameterMap()).
 
 Using navigateToURL() is the right way to do this.
 
 Seth
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of schneiderjim
 Sent: Thursday, August 28, 2008 10:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Where is URLRequest data on server side
 
 
 Bump.
 
 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com,
schneiderjim jschneider@ wrote:
 
  I'm using URLRequest and navigateToUrl to invoke a server side (java
  servlet) reporting function (returns PDF in new browser window). To
  get it to work quickly, i just attached HTTP parameters to the URL and
  grabbed them from the HTTPServletRequest on the server. However, I
  believe we are now hitting the limit on the query string, and I'd
  rather not do this anyway.
 
  I've looked at the URLVariables and the data property and that seemed
  like what I should do, but on the server, I'm not sure where I would
  grab that data in my servlet. Does that come through the InputStream
  somehow?
 
  Would HTTPService be better (noting that I need to pop the resulting
  PDF into a new window)?
 
  Any pointers to docs or samples would be appreciated.
 
  Thx,
 
  Jim
 





[flexcoders] Re: Where is URLRequest data on server side

2008-08-28 Thread schneiderjim
Bump. 

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

 I'm using URLRequest and navigateToUrl to invoke a server side (java
 servlet) reporting function (returns PDF in new browser window). To
 get it to work quickly, i just attached HTTP parameters to the URL and
 grabbed them from the HTTPServletRequest on the server. However, I
 believe we are now hitting the limit on the query string, and I'd
 rather not do this anyway. 
 
 I've looked at the URLVariables and the data property and that seemed
 like what I should do, but on the server, I'm not sure where I would
 grab that data in my servlet. Does that come through the InputStream
 somehow? 
 
 Would HTTPService be better (noting that I need to pop the resulting
 PDF into a new window)?
 
 Any pointers to docs or samples would be appreciated.
 
 Thx,
 
 Jim





[flexcoders] Favorite drawing tool

2008-08-12 Thread schneiderjim
Anyone have any favorites for a flex/flash-based drawing tool?



[flexcoders] Where is URLRequest data on server side

2008-07-09 Thread schneiderjim
I'm using URLRequest and navigateToUrl to invoke a server side (java
servlet) reporting function (returns PDF in new browser window). To
get it to work quickly, i just attached HTTP parameters to the URL and
grabbed them from the HTTPServletRequest on the server. However, I
believe we are now hitting the limit on the query string, and I'd
rather not do this anyway. 

I've looked at the URLVariables and the data property and that seemed
like what I should do, but on the server, I'm not sure where I would
grab that data in my servlet. Does that come through the InputStream
somehow? 

Would HTTPService be better (noting that I need to pop the resulting
PDF into a new window)?

Any pointers to docs or samples would be appreciated.

Thx,

Jim



[flexcoders] Re: firefox and FileReference.upload over SSL - error 2038

2007-09-26 Thread schneiderjim
If it's any consolation, I'm having the same problem, but have chosen
to bury my head in the sand for right now. One twist that I may add is
that we have an SSL accelerator in front of our app server, but I have
no idea what that may or may not do. Regardless, the problem still
exists for me.  

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

 I have looked at the wireshark packets, which is how I know the image
 was never posted. I tried WebScarab this morning, and I must say that
 is my new favorite tool, thank you for pointing me at it. However,
 when I attempt the filereference.upload, it does not display anything
 having gone to it from the browser (although wireshark shows some ssl
 handshake attempt).
 This leads me to believe that the ssl handshake from flex to webscarab
 (using firefox) is failing. Which would indicate that there is nothing
 I can do as a developer and the bug is a part of the firefox plugin.
 
 I'm surprised nobody has run into this yet; I guess uploads over SSL
 aren't that common. If it would help, I can mail you offlist a url
 with a login for you see exactly what is going wrong and wireshark/etc
 yourself.
 
 Seth
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
 wrote:
 
  On Monday 24 Sep 2007, wiz@ wrote:
   not https - an error is immediately thrown, it appears to mishandle
   the ssl handshake, as image data is never actually sent in a post.
   Again, everything is fine in IE, just not in firefox.
  
  Do you have WireShark/ethereal traces to back this up ?
  What about WebScarab (or other SSL intercepting HTTP recorder)
output ?
  
  -- 
  Tom Chiverton
  Helping to ambassadorially deploy value-added design-patterns
  on: http://thefalken.livejournal.com
  
  
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in
 England and Wales under registered number OC307980 whose registered
 office address is at St James's Court Brown Street Manchester M2 2JF.
  A list of members is available for inspection at the registered
 office. Any reference to a partner in relation to Halliwells LLP means
 a member of Halliwells LLP. Regulated by the Law Society.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named above
 and may be confidential or legally privileged.  If you are not the
 addressee you must not read it and must not use any information
 contained in nor copy it nor inform any person other than Halliwells
 LLP or the addressee of its existence or contents.  If you have
 received this email in error please delete it and notify Halliwells
 LLP IT Department on 0870 365 8008.
  
  For more information about Halliwells LLP visit www.halliwells.com.