Re: [flexcoders] Modify label text

2012-05-06 Thread Csomák Gábor
add the datachange event listener to the itemrenderer, and on datachange,
set the label, or the variable what you bind to it.
you can't bind functions.

On Sat, May 5, 2012 at 8:53 PM, cjacquel73 chjacque...@gmail.com wrote:



 Hello,

 How to modify the text of a label in an itemrenderer by a function like
 this ?

 s:Label id=labela text={getText()}/

 Thank you,
 Christophe

  



RE: [flexcoders] Charles Proxy, Flex, and ColdFusion 9

2012-05-03 Thread Bill Franklin
Already have communicated with him.  He requested and has a recorded session 
for several days….have yet to hear back…

Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD2919.E39E3550]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Michael Wills
Sent: Wednesday, May 02, 2012 10:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Charles Proxy, Flex, and ColdFusion 9


Hi Bill,

I didn't see a reply on the list but the developer of Charles Proxy is pretty 
responsive. Maybe record a session and send it to him?

Michael


From: BillF bill.frank...@bayer.commailto:bill.frank...@bayer.com
Date: April 24, 2012 12:47 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] Charles Proxy, Flex, and ColdFusion 9


Just wondering if anyone has had any luck with getting the SQLQuery information 
in AMF response header with Charles Proxy after upgrading to ColdFusion 9. It 
works correctly on ColdFusion 8, with the exact same debugging settings, but 
although the header comes shows up, it does not have any of the child objects 
in it. I had thought that the JSON Serialization issue, that was fixed in 
ColdFusion 9.0.1 Hot Fix 2, would fix it...but alas, it did not.



The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com

inline: image001.gifinline: image002.jpginline: image003.jpg

Re: [flexcoders] Re: datagrid not rendering after dataprovider update

2012-05-03 Thread Wouter Schreuders
Thanks Alex

Your workaround works perfectly,

I've filed the bug here : http://bugs.adobe.com/jira/browse/SDK-32172

Thanks again

Wouter

On 28 April 2012 08:34, Alex H aha...@adobe.com wrote:

 **


 Looks like there are a couple of bugs in there. File the bugs against
 Adobe if you have an Adobe support contract, otherwise file against Apache
 Flex.

 I used the following hack in applyDateFilter that appears to work. If you
 don't change the scrollposition, it doesn't cause a full update of the
 screen.

 var oldvsp:Number = dgTransactions.grid.verticalScrollPosition;
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);
 applySort();
 applySearch();
 dgTransactions.grid.verticalScrollPosition = oldvsp + .1;
 dgTransactions.grid.verticalScrollPosition = oldvsp;

 -Alex


 --- In flexcoders@yahoogroups.com, Wouter Schreuders wschreuders@...
 wrote:
 
  Hi Alex
 
  To replicate the problem.
 
  - launch the app (it will populate the datagrid with values)
 
  - choose a different date in the date picker on the top left
 
  - the dataprovider will get updated but the datagrid doesn't update
  properly, instead it just remains blank
 
  - use the scroller on the right-hand side to scroll through the datagrid,
  the datagrid will then render properly
 
  Thanks
 
  Wouter
 
  On 26 April 2012 08:37, Alex Harui aharui@... wrote:
 
   **

  
  
   What are the steps to reproduce the problem?
  
  
  
   On 4/20/12 12:54 AM, Wouter Schreuders wschreuders@... wrote:
  
  
  
  
  
  
   I've made a simple test case in which I can replicate the problem. If
   anyone feels like having a look you can download it here:
  
   http://www.filefactory.com/file/6oz4m4wrkx31/n/DataGridRender_zip
  
  
  
   On 4 April 2012 23:12, Alex Harui aharui@... wrote:
  
  
  
  
  
  
   Do you have a simple test case?
  
  
  
  
   On 4/4/12 8:43 AM, Wouter Schreuders wschreuders@... 

   http://wschreuders@...  wrote:
  
  
  
  
  
  
   spark DG
  
  
   On 4 April 2012 17:28, Alex Harui aharui@... 

   http://aharui@...  wrote:
  
  
  
  
  
  
   MX or Spark DG?
  
  
  
  
  
  
   On 4/4/12 12:05 AM, Wouter Schreuders wschreuders@... 

   http://wschreuders@... http://wschreuders@...  wrote:
  
  
  
  
  
  
   I thought that that may be the case, so I removed all my custom
   itemrenderers but the problem remains, I've also noticed that the
 problem
   only occurs after I have entered a date range, if I stick with the
 standard
   date range then problem doesn't occur.
  
   On 3 April 2012 22:23, Alex Harui aharui@... 

   http://aharui@... http://aharui@...  wrote:
  
  
  
  
  
  
   That sounds more like an issue with custom renderers.
  
  
  
  
   On 4/3/12 4:47 AM, Wouter Schreuders wschreuders@... 
   http://wschreuders@... http://wschreuders@... 

   http://wschreuders@...  wrote:
  
  
  
  
  
  
   Hi All
  
   I've run into a rendering problem with the datagrid.
  
   I have a datagrid that a user can search using a date range,
 furthermore
   the user can also search using keywords. I do this by first looking at
 the
   date range and applying a filter to the array of objects based on the
   dates. Then I make of a copy of that arraycollection and assign the
   arraycollection which binds to my datagrid to that collection.
  
   The problem is that when the user selects a date range and I apply the
   filter, the datagrid content disappears. The scrollbar on the side
 updates
   though and if I scroll down then the content appears and renders
 correctly.
   I've tried the following post refresh commands but none of them solve
 the
   problem.
  
   (datagrid.dataProvider as ArrayCollection).refresh();
   datagrid .invalidateSkinState();
   datagrid .invalidateDisplayList();
   datagrid .validateNow();
  
   Here's the code where I get the date range.
  
   var dateFilteredArray:Array = _transactions.source.filter(
   function (item:Transaction, index:int, array:Array):Boolean
   {
   if(Date.parse(item.displayDate) 
 dateRangeComponent.startDate.valueOf()
   || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
   return false
   else
   return true //item is inside date range
   }
   );
   _dateFilteredCollection = new ArrayCollection(dateFilteredArray);
  
   Anyone run into this before?
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe Systems, Inc.
   http://blogs.adobe.com/aharui
  
  
  
 

  



Re: [flexcoders] Charles Proxy, Flex, and ColdFusion 9

2012-05-02 Thread Michael Wills

Hi Bill,

I didn't see a reply on the list but the developer of Charles Proxy is 
pretty responsive. Maybe record a session and send it to him?


Michael


*From:* BillF bill.frank...@bayer.com
*Date:* April 24, 2012 12:47 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Charles Proxy, Flex, and ColdFusion 9

Just wondering if anyone has had any luck with getting the SQLQuery 
information in AMF response header with Charles Proxy after upgrading 
to ColdFusion 9. It works correctly on ColdFusion 8, with the exact 
same debugging settings, but although the header comes shows up, it 
does not have any of the child objects in it. I had thought that the 
JSON Serialization issue, that was fixed in ColdFusion 9.0.1 Hot Fix 
2, would fix it...but alas, it did not.





RE: [flexcoders] Error - Constructor: Service

2012-05-01 Thread Davidson, Jerry
I notice that the constructor without the features seems to work (not cause 
an error).  The class extends Service which is brought in with import 
javax.xml.ws.Service;.   Is there a constructor for the three arguments?  This 
happens in two files in the code Deloitte wrote occurring three times in each.

 

In each case the two argument calls are OK and the three argument calls are the 
constructor is undefined.

 

Jerry

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Davidson, Jerry
Sent: Monday, April 30, 2012 1:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error - Constructor: Service

 

  

I get the following error (3 times) and am not sure how to proceed to eliminate 
it.

 

Description Resource Path   Location   Type

The constructor Service(URL, QName, WebServiceFeature[]) is undefined   
CaseManagementVisitsServiceService.java
/WvsAppWebService/src/gov/il/dhs/wvs/wsimport/casemanagement line 51   Java 
Problem

 

è  public CaseManagementVisitsServiceService(WebServiceFeature... features) {

super(__getWsdlLocation(), CASEMANAGEMENTVISITSSERVICESERVICE_QNAME, 
features);

}

 

public CaseManagementVisitsServiceService(URL wsdlLocation) {

super(wsdlLocation, CASEMANAGEMENTVISITSSERVICESERVICE_QNAME);

}

 

èpublic CaseManagementVisitsServiceService(URL wsdlLocation, 
WebServiceFeature... features) {

super(wsdlLocation, CASEMANAGEMENTVISITSSERVICESERVICE_QNAME, features);

}

 

public CaseManagementVisitsServiceService(URL wsdlLocation, QName 
serviceName) {

super(wsdlLocation, serviceName);

}

 

èpublic CaseManagementVisitsServiceService(URL wsdlLocation, QName 
serviceName, WebServiceFeature... features) {

super(wsdlLocation, serviceName, features);

}

 What does this mean? WebServiceFeature... features

 How do I find out how to fix these errors?  They seem to be duplicated in 
another class (RspServiceService) so If I can get the first ones the second 
will be fixeded.

 While it hasn't shown up here yet, I submitted another question this morning 
at about 9:30.  I switched from the original jetty configuration problem by 
switching to eclipse one.



RE: [flexcoders] jetty-env problem

2012-04-30 Thread Davidson, Jerry
I think I eliminated this by switching from mortbay for the source.

 

Now it is: !DOCTYPE Configure PUBLIC -//Jetty//Configure//EN 
http://www.eclipse.org/jetty/configure.dtd;

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Davidson, Jerry
Sent: Monday, April 30, 2012 9:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] jetty-env problem

 

  

Our jetty-env.xml pulls up an error:

 

The errors below were detected when validating the file configure.dtd via the 
file jetty-env.xml.  In most cases these errors can be detected by validating 
configure.dtd directly.  However it is possible that errors will only occur 
when configure.dtd is validated in the context of jetty-env.xml.

 

Looking up configure.dtd I can see the syntax, but not what should be 
included.  Here is the jetty file:

?xml version=1.0  encoding=ISO-8859-1?

!DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN 
http://jetty.mortbay.org/configure.dtd;

 

Error hereèConfigure class=org.mortbay.jetty.webapp.WebAppContext

 

  New id=wvsDb class=org.mortbay.jetty.plus.naming.Resource

 

Arg/Arg

Argjdbc/wvslc/Arg

Arg

  New class=org.apache.commons.dbcp.BasicDataSource

Set 
name=driverClassNamecom.ibm.db2.jcc.DB2Driver/Set

Set 
name=urljdbc:db2://dhs084db2d1.illinois.gov:50100/HSDBCZ03/Set

Set name=username.../Set

Set name=password.../Set

  /New

/Arg

 

  /New

 

/Configure

 

Any ideas of how to eliminate this error?

 

 

Jerry

 





Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-26 Thread Alex Harui
I’m still not sure I understand.  Why do you have to add Stroke components?  
You can just call graphics APIs on them.

If you must use components, can you overlay or underlay them in a Group 
parenting the Label?


On 4/25/12 12:59 AM, dorkiedorkfromdorkt...@gmail.com 
dorkiedorkfromdorkt...@gmail.com wrote:






I'm looking for more of something like this:

s:Label text=Hello Filters!
s:stroke
s:SolidColorStroke weight=4 color=#ABCDEF/
/s:stroke
/s:Label

or this:

s:Label text=Hello Filters!
s:filters
s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
/s:filters
/s:Label

On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:





In Spark controls, you can add children to the TextLine like a sprite.




On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
http://dorkiedorkfromdorkt...@gmail.com  dorkiedorkfromdorkt...@gmail.com 
http://dorkiedorkfromdorkt...@gmail.com  wrote:






How would you add a stroke to dynamic text at runtime? If that's not possible 
how would you add a stroke to a bitmap (snapshot of text)?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-26 Thread Alex Harui
What are the steps to reproduce the problem?


On 4/20/12 12:54 AM, Wouter Schreuders wschreud...@gmail.com wrote:






I've made a simple test case in which I can replicate the problem. If anyone 
feels like having a look you can download it here:

http://www.filefactory.com/file/6oz4m4wrkx31/n/DataGridRender_zip



On 4 April 2012 23:12, Alex Harui aha...@adobe.com wrote:





Do you have a simple test case?




On 4/4/12 8:43 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  wrote:






spark DG

On 4 April 2012 17:28, Alex Harui aha...@adobe.com http://aha...@adobe.com  
wrote:





MX or Spark DG?





On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  http://wschreud...@gmail.com  wrote:






I thought that that may be the case, so I removed all my custom itemrenderers 
but the problem remains, I've also noticed that the problem only occurs after I 
have entered a date range, if I stick with the standard date range then problem 
doesn't occur.

On 3 April 2012 22:23, Alex Harui aha...@adobe.com http://aha...@adobe.com  
http://aha...@adobe.com  wrote:





That sounds more like an issue with custom renderers.




On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  http://wschreud...@gmail.com  
http://wschreud...@gmail.com  wrote:






Hi All

I've run into a rendering problem with the datagrid.

I have a datagrid that a user can search using a date range, furthermore the 
user can also search using keywords. I do this by first looking at the date 
range and applying a filter to the array of objects based on the dates. Then I 
make of a copy of that arraycollection and assign the arraycollection which 
binds to my datagrid to that collection.

The problem is that when the user selects a date range and I apply the filter, 
the datagrid content disappears. The scrollbar on the side updates though and 
if I scroll down then the content appears and renders correctly. I've tried the 
following post refresh commands but none of them solve the problem.

(datagrid.dataProvider as ArrayCollection).refresh();
datagrid .invalidateSkinState();
datagrid .invalidateDisplayList();
datagrid .validateNow();

Here's the code where I get the date range.

var dateFilteredArray:Array = _transactions.source.filter(
function (item:Transaction, index:int, array:Array):Boolean
{
if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf() || 
Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
return false
else
return true //item is inside date range
}
);
_dateFilteredCollection = new ArrayCollection(dateFilteredArray);

Anyone run into this before?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-26 Thread Wouter Schreuders
Hi Alex

To replicate the problem.

- launch the app (it will populate the datagrid with values)

- choose a different date in the date picker on the top left

- the dataprovider will get updated but the datagrid doesn't update
properly, instead it just remains blank

- use the scroller on the right-hand side to scroll through the datagrid,
the datagrid will then render properly

Thanks

Wouter

On 26 April 2012 08:37, Alex Harui aha...@adobe.com wrote:

 **


 What are the steps to reproduce the problem?



 On 4/20/12 12:54 AM, Wouter Schreuders wschreud...@gmail.com wrote:






 I've made a simple test case in which I can replicate the problem. If
 anyone feels like having a look you can download it here:

 http://www.filefactory.com/file/6oz4m4wrkx31/n/DataGridRender_zip



 On 4 April 2012 23:12, Alex Harui aha...@adobe.com wrote:






 Do you have a simple test case?




 On 4/4/12 8:43 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  wrote:






 spark DG


 On 4 April 2012 17:28, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 MX or Spark DG?






 On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  http://wschreud...@gmail.com  wrote:






 I thought that that may be the case, so I removed all my custom
 itemrenderers but the problem remains, I've also noticed that the problem
 only occurs after I have entered a date range, if I stick with the standard
 date range then problem doesn't occur.

 On 3 April 2012 22:23, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  http://aha...@adobe.com  wrote:






 That sounds more like an issue with custom renderers.




 On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  http://wschreud...@gmail.com  
 http://wschreud...@gmail.com  wrote:






 Hi All

 I've run into a rendering problem with the datagrid.

 I have a datagrid that a user can search using a date range, furthermore
 the user can also search using keywords. I do this by first looking at the
 date range and applying a filter to the array of objects based on the
 dates. Then I make of a copy of that arraycollection and assign the
 arraycollection which binds to my datagrid to that collection.

 The problem is that when the user selects a date range and I apply the
 filter, the datagrid content disappears. The scrollbar on the side updates
 though and if I scroll down then the content appears and renders correctly.
 I've tried the following post refresh commands but none of them solve the
 problem.

 (datagrid.dataProvider as ArrayCollection).refresh();
 datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
 datagrid .validateNow();

 Here's the code where I get the date range.

 var dateFilteredArray:Array = _transactions.source.filter(
 function (item:Transaction, index:int, array:Array):Boolean
 {
 if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf()
 || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
 return false
 else
 return true //item is inside date range
 }
 );
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);

 Anyone run into this before?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-26 Thread dorkie dork from dorktown
I want to add a stroke (a border or outline) to the *edge* of the text or
image itself.

For example, the text and the image in this screenshot show what I'd like
to do,
http://blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/retro-cafe-racer-ad.jpg.


There are filters that add drop shadow or a glow around the non-transparent
pixels (content) of a display object. But no one in the world has been able
to create a filter to add a stroke.

On Thu, Apr 26, 2012 at 1:05 AM, Alex Harui aha...@adobe.com wrote:

 **


 I’m still not sure I understand.  Why do you have to add Stroke
 components?  You can just call graphics APIs on them.

 If you must use components, can you overlay or underlay them in a Group
 parenting the Label?



 On 4/25/12 12:59 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I'm looking for more of something like this:

 s:Label text=Hello Filters!
 s:stroke
 s:SolidColorStroke weight=4 color=#ABCDEF/
 /s:stroke
 /s:Label

 or this:

 s:Label text=Hello Filters!
 s:filters
 s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
 /s:filters
 /s:Label

 On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:






 In Spark controls, you can add children to the TextLine like a sprite.




 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-26 Thread dorkie dork from dorktown
The picture I linked is not that clear. Here is a clearer picture and the
article,
http://www.blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/13.jpg
http://internetwebsitedesign.biz/design/how-to-create-a-retro-cafe-racer-motorcycle-ad-design

What he is doing at design time I want to do at runtime.

On Thu, Apr 26, 2012 at 8:41 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I want to add a stroke (a border or outline) to the *edge* of the text or
 image itself.

 For example, the text and the image in this screenshot show what I'd like
 to do,
 http://blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/retro-cafe-racer-ad.jpg.


 There are filters that add drop shadow or a glow around the
 non-transparent pixels (content) of a display object. But no one in the
 world has been able to create a filter to add a stroke.

 On Thu, Apr 26, 2012 at 1:05 AM, Alex Harui aha...@adobe.com wrote:

 **


 I’m still not sure I understand.  Why do you have to add Stroke
 components?  You can just call graphics APIs on them.

 If you must use components, can you overlay or underlay them in a Group
 parenting the Label?



 On 4/25/12 12:59 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I'm looking for more of something like this:

 s:Label text=Hello Filters!
 s:stroke
 s:SolidColorStroke weight=4 color=#ABCDEF/
 /s:stroke
 /s:Label

 or this:

 s:Label text=Hello Filters!
 s:filters
 s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
 /s:filters
 /s:Label

 On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:






 In Spark controls, you can add children to the TextLine like a sprite.




 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  





Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-25 Thread dorkie dork from dorktown
I'm looking for more of something like this:

s:Label text=Hello Filters!
s:stroke
s:SolidColorStroke weight=4 color=#ABCDEF/
/s:stroke
/s:Label

or this:

s:Label text=Hello Filters!
s:filters
s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
/s:filters
/s:Label

On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:

 **


 In Spark controls, you can add children to the TextLine like a sprite.



 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] css syntax for states

2012-04-25 Thread Alex Harui
Is just the forums, or do you have an extra space in there?


On 4/25/12 9:37 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I have a label which I need to change the font color on various states.  
Originally I had the code as below with no CSS:

s:Label text=× top=1 width=100% color=”#202020” color.over=”#a12100” 
color.down=”#a12100” fontSize=”24” textAlign=”center” /

I’m trying to move everything into a CSS and have the syntax as follows, but 
the state ones do not seem to get triggered.  Why?

s:Label text=× top=1 width=100% styleName=MyLabel/

s|Label.MyLabel { color: #202020; fontSize: 24; textAlign: center; }
s|Label. MyLabel:over { color: #a12100; }
s|Label. MyLabel:down { color: #a12100; }

Michael J. Regert





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-20 Thread Wouter Schreuders
I've made a simple test case in which I can replicate the problem. If
anyone feels like having a look you can download it here:

http://www.filefactory.com/file/6oz4m4wrkx31/n/DataGridRender_zip



On 4 April 2012 23:12, Alex Harui aha...@adobe.com wrote:

 **


 Do you have a simple test case?



 On 4/4/12 8:43 AM, Wouter Schreuders wschreud...@gmail.com wrote:






 spark DG

 On 4 April 2012 17:28, Alex Harui aha...@adobe.com wrote:






 MX or Spark DG?





 On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  wrote:






 I thought that that may be the case, so I removed all my custom
 itemrenderers but the problem remains, I've also noticed that the problem
 only occurs after I have entered a date range, if I stick with the standard
 date range then problem doesn't occur.

 On 3 April 2012 22:23, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 That sounds more like an issue with custom renderers.




 On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  http://wschreud...@gmail.com  wrote:






 Hi All

 I've run into a rendering problem with the datagrid.

 I have a datagrid that a user can search using a date range, furthermore
 the user can also search using keywords. I do this by first looking at the
 date range and applying a filter to the array of objects based on the
 dates. Then I make of a copy of that arraycollection and assign the
 arraycollection which binds to my datagrid to that collection.

 The problem is that when the user selects a date range and I apply the
 filter, the datagrid content disappears. The scrollbar on the side updates
 though and if I scroll down then the content appears and renders correctly.
 I've tried the following post refresh commands but none of them solve the
 problem.

 (datagrid.dataProvider as ArrayCollection).refresh();
 datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
 datagrid .validateNow();

 Here's the code where I get the date range.

 var dateFilteredArray:Array = _transactions.source.filter(
 function (item:Transaction, index:int, array:Array):Boolean
 {
 if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf()
 || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
 return false
 else
 return true //item is inside date range
 }
 );
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);

 Anyone run into this before?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] MOUSE_LEAVE when mouse is pressed

2012-04-18 Thread Alex Harui
You should still be getting MOUSE_MOVE events.  MOUSE_LEAVE is essentially, 
MOUSE_UP_WHEN_OUTSIDE


On 4/17/12 2:27 PM, method_air loudj...@hotmail.com wrote:






The MOUSE_LEAVE event doesn't appear to get dispatched when the mouse is 
pressed when leaving the flex application area...is there a way to make this 
happen?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-13 Thread Bill Franklin
Alex, where is good information on states and how/when/where to use them?

Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD194D.DD0D1250]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, April 12, 2012 3:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setStyle, preinitialize and initialize



The doc is assuming you are calling setStyle on the component dispatching the 
event, not its children.  Why aren't you using states for this?


On 4/11/12 3:40 PM, flexwdw flex...@yahoo.com wrote:





So, I've run into this before but I don't recall it being the headscratcher it 
has become today

I'm using Flex 3.5 in an app.  I have an MXML class with a bunch of UI in it.  
I have been asked to add a switch that causes the positions of some of the 
different child components to change.  The components use constraint-based 
layouts, so this is going to amount to modifying their left, right, top, and 
bottom styles.  This only needs to happen once per object creation.

In the docs:
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html

Some applications must call the setStyle() method during the application or 
object instantiation. If this is the case, call the setStyle() method early in 
the instantiation phase. Early in the instantiation phase means setting styles 
from the component or application's preinitialize event, instead of the 
creationComplete or other event. By setting the styles as early as possible 
during initialization, you avoid unnecessary style notification and lookup. For 
more information about the component startup life cycle, see Improving Startup 
Performance.

Putting these style sets in preinitialize is impossible because the children 
have not been setup and are null.  At this point, I am making the calls in the 
handler for the initialize event.  Is there an acceptable way to do this 
without having to create two versions of the class subclass the children?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui



The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com

inline: image001.gif

Re: [flexcoders] setStyle, preinitialize and initialize

2012-04-13 Thread Alex Harui
Good question.  Other than the doc, I don’t really know of any great sources of 
information.  I’m not sure there is a single recommended way to use them, but I 
think of them as I would a state diagram or flow chart of a UI.


On 4/13/12 6:17 AM, Bill Franklin bill.frank...@bayer.com wrote:






Alex, where is good information on states and how/when/where to use them?


Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:3417152934_109333738]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, April 12, 2012 3:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setStyle, preinitialize and initialize



The doc is assuming you are calling setStyle on the component dispatching the 
event, not its children.  Why aren’t you using states for this?


On 4/11/12 3:40 PM, flexwdw flex...@yahoo.com wrote:






So, I've run into this before but I don't recall it being the headscratcher it 
has become today

I'm using Flex 3.5 in an app.  I have an MXML class with a bunch of UI in it.  
I have been asked to add a switch that causes the positions of some of the 
different child components to change.  The components use constraint-based 
layouts, so this is going to amount to modifying their left, right, top, and 
bottom styles.  This only needs to happen once per object creation.

In the docs:
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html

Some applications must call the setStyle() method during the application or 
object instantiation. If this is the case, call the setStyle() method early in 
the instantiation phase. Early in the instantiation phase means setting styles 
from the component or application's preinitialize event, instead of the 
creationComplete or other event. By setting the styles as early as possible 
during initialization, you avoid unnecessary style notification and lookup. For 
more information about the component startup life cycle, see Improving Startup 
Performance.

Putting these style sets in preinitialize is impossible because the children 
have not been setup and are null.  At this point, I am making the calls in the 
handler for the initialize event.  Is there an acceptable way to do this 
without having to create two versions of the class subclass the children?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
inline: image.gif

RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Gordon Smith
Doing it in the 'initialize' event seems like the right way to do it. The 
'initialize' event still occurs before the LayoutManager has sized and 
positioned the children. But if you wait until creationComplete() the 
LayoutManager has already laid out the children and calling setStyle()will 
force another layout.

Gordon Smith, Adobe

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of flexwdw
Sent: Wednesday, April 11, 2012 3:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setStyle, preinitialize and initialize



So, I've run into this before but I don't recall it being the headscratcher it 
has become today

I'm using Flex 3.5 in an app. I have an MXML class with a bunch of UI in it. I 
have been asked to add a switch that causes the positions of some of the 
different child components to change. The components use constraint-based 
layouts, so this is going to amount to modifying their left, right, top, and 
bottom styles. This only needs to happen once per object creation.

In the docs:
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html

Some applications must call the setStyle() method during the application or 
object instantiation. If this is the case, call the setStyle() method early in 
the instantiation phase. Early in the instantiation phase means setting styles 
from the component or application's preinitialize event, instead of the 
creationComplete or other event. By setting the styles as early as possible 
during initialization, you avoid unnecessary style notification and lookup. For 
more information about the component startup life cycle, see Improving Startup 
Performance.

Putting these style sets in preinitialize is impossible because the children 
have not been setup and are null. At this point, I am making the calls in the 
handler for the initialize event. Is there an acceptable way to do this without 
having to create two versions of the class subclass the children?



Re: [flexcoders] Fonts and localization

2012-04-12 Thread Alex Harui
I’m not an expert in Asian fonts, but my understanding is that the TextLine 
font rendering, regardless of language, is trying to be more accurate in terms 
of proportions of character details, and attempts to use anti-aliasing and 
half-pixels to do it.  Some folks think the old way looks better because it 
distorts the character details to fit things on pixel boundaries.  But others 
prefer the new way.

If you look at the screenshot in your original post you will see the size and 
shape of the “circular” portions of many characters is more elongated in the 
MX/old way.  You would have to look at a print version of the font to see 
whether that shape is accurate or not.  My guess is that it isn’t because it is 
distorted to fit on pixel boundaries and some people don’t like that because it 
makes the characters look like they do on an old stadium scoreboard.  So it 
seems to be a trade-off, especially at smaller font sizes.




On 4/11/12 1:36 PM, michael_reg...@dell.com michael_reg...@dell.com wrote:






Can you clarify something then?? I’m learning all of this.? For Korean, 
Simplified Chinese, and Japanese, I’m being told the font (or rendering) of 
characters in MX is cleaner and more readable then the Spark components.? Why 
the change?? Using MX only would be a serious step backwards…


Michael J. Regert


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 3:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



You would have to use MX components everywhere (and not need right-to-left 
language support)


On 4/11/12 9:43 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






Thanks.? I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.? How do I change this to use the same font as the grid across my 
whole app?


Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
fx:Declarations
   !-- Place non-visual elements (e.g., services, value objects) here 
--
/fx:Declarations


   fx:Script
   ![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
   s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
mx:AdvancedDataGridColumn dataField=msg/
  /mx:columns
   /mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:3417081584_105737322]




Michael




--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
inline: image.png

Re: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Alex Harui
The doc is assuming you are calling setStyle on the component dispatching the 
event, not its children.  Why aren’t you using states for this?


On 4/11/12 3:40 PM, flexwdw flex...@yahoo.com wrote:






So, I've run into this before but I don't recall it being the headscratcher it 
has become today

I'm using Flex 3.5 in an app.  I have an MXML class with a bunch of UI in it.  
I have been asked to add a switch that causes the positions of some of the 
different child components to change.  The components use constraint-based 
layouts, so this is going to amount to modifying their left, right, top, and 
bottom styles.  This only needs to happen once per object creation.

In the docs:
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html

Some applications must call the setStyle() method during the application or 
object instantiation. If this is the case, call the setStyle() method early in 
the instantiation phase. Early in the instantiation phase means setting styles 
from the component or application's preinitialize event, instead of the 
creationComplete or other event. By setting the styles as early as possible 
during initialization, you avoid unnecessary style notification and lookup. For 
more information about the component startup life cycle, see Improving Startup 
Performance.

Putting these style sets in preinitialize is impossible because the children 
have not been setup and are null.  At this point, I am making the calls in the 
handler for the initialize event.  Is there an acceptable way to do this 
without having to create two versions of the class subclass the children?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-12 Thread Alex Harui
In Spark controls, you can add children to the TextLine like a sprite.


On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
dorkiedorkfromdorkt...@gmail.com wrote:






How would you add a stroke to dynamic text at runtime? If that's not possible 
how would you add a stroke to a bitmap (snapshot of text)?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Error on actionscript state change using RemoveChild

2012-04-12 Thread Alex Harui
I think you can make your own RemoveElement state and push it instead of 
RemoveChild.


On 4/12/12 3:40 PM, DancesWtihElves ka...@hartleys.net wrote:






I have an actionscript component (a View) with a number of states defined in 
the following manner:

var stateDefault:State = new State();
stateDefault.name = DefaultState;
stateDefault.overrides = new Array();// array of IOverride
states.push(stateDefault);
stateDefault.overrides.push(new RemoveChild(btn_MatterPicker_Search));

When attempting to run the line
 currentState = DefaultState;
the error below occurs.  I'm hoping that someone has a simple solution to this 
- the only thing I can think of at the moment is to write my own state change 
handler that adds and removes the appropriate items from each state manually.  
Does anyone have a more elegant solution?  (The code needs to remain as 
actionscript, can't switch to mxml.)

Here's the error:
Error: removeChild() is not available in this class. Instead, use 
removeElement() or modify the skin, if you have one.
 at 
spark.components::Group/removeChild()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2136]
 at 
mx.states::RemoveChild/apply()[E:\dev\4.y\frameworks\projects\framework\src\mx\states\RemoveChild.as:150]
 at 
mx.core::UIComponent/applyState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:10741]
 at 
mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:10487]
 at 
mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:10323]
 at mx.core::UIComponent/set 
currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
 at 
com.chromeriver.components.matter::MatterSearchBar/setDefaultState()...MatterSearchBar.as:288]






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Fonts and localization

2012-04-11 Thread Alex Harui
MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
  fx:Declarations
 !-- Place non-visual elements (e.g., services, value objects) 
here --
  /fx:Declarations


   fx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
  s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
 s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
  mx:AdvancedDataGridColumn dataField=msg/
/mx:columns
 /mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:3416981889_103590120]




Michael





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
inline: image.png

RE: [flexcoders] Fonts and localization

2012-04-11 Thread michael_regert
Thanks.  I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.  How do I change this to use the same font as the grid across my 
whole app?

Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:





I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
  fx:Declarations
 !-- Place non-visual elements (e.g., services, value objects) 
here --
  /fx:Declarations


   fx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
  s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
 s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
  mx:AdvancedDataGridColumn dataField=msg/
/mx:columns
 /mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:image001.png@01CD17D8.49B69650]




Michael




--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

inline: image001.png

RE: [flexcoders] Fonts and localization

2012-04-11 Thread michael_regert
Typo Correction: … in the MX Advanced Data Grid…

Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Regert, Michael
Sent: Wednesday, April 11, 2012 11:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Fonts and localization


Thanks.  I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.  How do I change this to use the same font as the grid across my 
whole app?

Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.


From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]mailto:[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:





I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
  fx:Declarations
 !-- Place non-visual elements (e.g., services, value objects) 
here --
  /fx:Declarations


   fx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
  s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
 s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
  mx:AdvancedDataGridColumn dataField=msg/
/mx:columns
 /mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:image001.png@01CD17D8.6D366AB0]




Michael





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

inline: image001.png

Re: [flexcoders] Fonts and localization

2012-04-11 Thread Alex Harui
You would have to use MX components everywhere (and not need right-to-left 
language support)


On 4/11/12 9:43 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






Thanks.? I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.? How do I change this to use the same font as the grid across my 
whole app?


Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
 fx:Declarations
!-- Place non-visual elements (e.g., services, value objects) here 
--
 /fx:Declarations


   fx:Script
![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
 s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
 mx:AdvancedDataGridColumn dataField=msg/
   /mx:columns
/mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:3416994655_104048946]




Michael





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
inline: image.png

RE: [flexcoders] Fonts and localization

2012-04-11 Thread michael_regert
Can you clarify something then?  I’m learning all of this.  For Korean, 
Simplified Chinese, and Japanese, I’m being told the font (or rendering) of 
characters in MX is cleaner and more readable then the Spark components.  Why 
the change?  Using MX only would be a serious step backwards…

Michael J. Regert

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 3:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



You would have to use MX components everywhere (and not need right-to-left 
language support)


On 4/11/12 9:43 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:





Thanks.? I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.? How do I change this to use the same font as the grid across my 
whole app?


Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
xmlns:mx=library://ns.adobe.com/flex/mx
 fx:Declarations
!-- Place non-visual elements (e.g., services, value objects) here 
--
 /fx:Declarations


   fx:Script
![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 private var testString:String = invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.;

 [Bindable]
 private var testData:ArrayCollection = new 
ArrayCollection([
   {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다.}
 ]);
  ]]
   /fx:Script
 s:VGroup width=100% height=100% gap=10 paddingTop=20 
paddingBottom=20 paddingLeft=20 paddingRight=20
s:Label width=100% text={testString}/

  mx:AdvancedDataGrid width=100% height=100% 
dataProvider={testData}
 mx:columns
 mx:AdvancedDataGridColumn dataField=msg/
   /mx:columns
/mx:AdvancedDataGrid
   /s:VGroup


/s:Application




[cid:image001.png@01CD17F8.E3EAB330]




Michael




--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

inline: image001.png

Re: [flexcoders] Nested Modules: No destination with id null is registered with any service

2012-04-10 Thread Alex Harui
Make sure you have loaded the modules correctly.  You have to specify the 
applicationDomain of the nested module otherwise it will become a sibling.


On 4/9/12 2:35 PM, BillF bill.frank...@bayer.com wrote:






Flex SDK v3.6

Okay, I have a module that is called from an application.  That module calls 
another module.  Trying to run any RemoteObjects from the nested module is 
failing, resulting in the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@d3dcad9 to 
mx.messaging.messages.IMessage.

Viewing the RemoteObject call in CharlesProxy gives the error:

No destination with id null is registered with any service

The exact same RemoteObject call works correctly in the parent module, but not 
in the child module.

Any ideas?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Nested Modules: No destination with id null is registered with any service

2012-04-10 Thread Bill Franklin
Thanks Alex,

Is there a time when you wouldn't want to put ApplicationDomain.currentDomain 
in the IModuleInfo.load call?

Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD16F9.19A16DD0]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 1:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Make sure you have loaded the modules correctly.  You have to specify the 
applicationDomain of the nested module otherwise it will become a sibling.


On 4/9/12 2:35 PM, BillF bill.frank...@bayer.com wrote:





Flex SDK v3.6

Okay, I have a module that is called from an application.  That module calls 
another module.  Trying to run any RemoteObjects from the nested module is 
failing, resulting in the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@d3dcad9 to 
mx.messaging.messages.IMessage.

Viewing the RemoteObject call in CharlesProxy gives the error:

No destination with id null is registered with any service

The exact same RemoteObject call works correctly in the parent module, but not 
in the child module.

Any ideas?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui



The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com

inline: image001.gif

Re: [flexcoders] Nested Modules: No destination with id null is registered with any service

2012-04-10 Thread Alex Harui
Actually, you have four commonly used options whenever a parameter or property 
is of type ApplicationDomain:

null
new ApplicationDomain()
ApplicationDomain.currentDomain
new ApplicationDomain(ApplicationDomain.currentDomain)


New ApplicaitonDomain() will never work for modules.  It is used in 
MarshallPlan configurations.

ApplicationDomain.currentDomain is used to load classes that you do not wish to 
unload.  Once you mix classes from a loaded SWF into the current 
ApplicationDomain, they cannot be unloaded.  RSLs use this option, and 
StyleModules occasionally use this option.  Shared Code modules may use this 
option.  It depends on whether the classes in the loaded SWF should remain 
encapsulated or not.

New ApplicationDomain(ApplicationDomain.currentDomain) is usually what happens 
when you use null.  It creates a child ApplicationDomain which encapsulates the 
classes which allows them to later be unloaded.

The problem is that the value of ApplicationDomain.currentDomain changes based 
on the SWF that owns the code.  Because ModuleManager is almost always in the 
main SWF, the null value, which implies “new 
ApplicationDomain(ApplicationDomain.currentDomain) always creates a child 
ApplicationDomain of the main SWF, even though you might have called it from a 
module.  This is resolved in Flex 4.5 with fancier code, but you said you were 
using Flex 3.

So, you are probably loading all modules into the main SWF’s applicationDomain 
which is probably not really what you want if you care about unloading.  You’ve 
essentially converted that module into an RSL, which is why it works.  You 
probably want to use “new ApplicationDomain(ApplicationDomain.currentDomain)” 
which is not the same as null when called from a module.

Tricky, isn’t it?
-Alex

On 4/10/12 7:05 AM, Bill Franklin bill.frank...@bayer.com wrote:






Thanks Alex,

Is there a time when you wouldn’t want to put ApplicationDomain.currentDomain 
in the IModuleInfo.load call?


Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:3416891253_101178086]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 1:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Make sure you have loaded the modules correctly.  You have to specify the 
applicationDomain of the nested module otherwise it will become a sibling.


On 4/9/12 2:35 PM, BillF bill.frank...@bayer.com wrote:






Flex SDK v3.6

Okay, I have a module that is called from an application.  That module calls 
another module.  Trying to run any RemoteObjects from the nested module is 
failing, resulting in the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@d3dcad9 to 
mx.messaging.messages.IMessage.

Viewing the RemoteObject call in CharlesProxy gives the error:

No destination with id null is registered with any service

The exact same RemoteObject call works correctly in the parent module, but not 
in the child module.

Any ideas?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
inline: image.gif

RE: [flexcoders] Nested Modules: No destination with id null is registered with any service

2012-04-10 Thread Bill Franklin
Thanks...I think that clears it up.

So, if I am understanding correctly, for consistency, I should call .load(new 
ApplicationDomain(ApplicationDomain.currentDomain)); for module loads inside of 
modules, and from inside the main application as well (since apparently that is 
the same thing that happens if you call .load(); from the application anyway).

And once I get everything migrated to 4.5+, I don't need to worry about 
specifying ApplicationDomain at all?

Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD1707.9A91AAA0]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 10:28 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Actually, you have four commonly used options whenever a parameter or property 
is of type ApplicationDomain:

null
new ApplicationDomain()
ApplicationDomain.currentDomain
new ApplicationDomain(ApplicationDomain.currentDomain)


New ApplicaitonDomain() will never work for modules.  It is used in 
MarshallPlan configurations.

ApplicationDomain.currentDomain is used to load classes that you do not wish to 
unload.  Once you mix classes from a loaded SWF into the current 
ApplicationDomain, they cannot be unloaded.  RSLs use this option, and 
StyleModules occasionally use this option.  Shared Code modules may use this 
option.  It depends on whether the classes in the loaded SWF should remain 
encapsulated or not.

New ApplicationDomain(ApplicationDomain.currentDomain) is usually what happens 
when you use null.  It creates a child ApplicationDomain which encapsulates the 
classes which allows them to later be unloaded.

The problem is that the value of ApplicationDomain.currentDomain changes based 
on the SWF that owns the code.  Because ModuleManager is almost always in the 
main SWF, the null value, which implies new 
ApplicationDomain(ApplicationDomain.currentDomain) always creates a child 
ApplicationDomain of the main SWF, even though you might have called it from a 
module.  This is resolved in Flex 4.5 with fancier code, but you said you were 
using Flex 3.

So, you are probably loading all modules into the main SWF's applicationDomain 
which is probably not really what you want if you care about unloading.  You've 
essentially converted that module into an RSL, which is why it works.  You 
probably want to use new ApplicationDomain(ApplicationDomain.currentDomain) 
which is not the same as null when called from a module.

Tricky, isn't it?
-Alex

On 4/10/12 7:05 AM, Bill Franklin bill.frank...@bayer.com wrote:





Thanks Alex,

Is there a time when you wouldn't want to put ApplicationDomain.currentDomain 
in the IModuleInfo.load call?


Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD1707.9A91AAA0]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 1:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Make sure you have loaded the modules correctly.  You have to specify the 
applicationDomain of the nested module otherwise it will become a sibling.


On 4/9/12 2:35 PM, BillF bill.frank...@bayer.com wrote:






Flex SDK v3.6

Okay, I have a module that is called from an application.  That module calls 
another module.  Trying to run any RemoteObjects from the nested module is 
failing, resulting in the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@d3dcad9 to 
mx.messaging.messages.IMessage.

Viewing the RemoteObject call in CharlesProxy gives the error:

No destination with id null is registered with any service

The exact same RemoteObject call works correctly in the parent module, but not 
in the child module.

Any ideas?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Re: [flexcoders] Nested Modules: No destination with id null is registered with any service

2012-04-10 Thread Alex Harui
Yes, that is correct.


On 4/10/12 8:49 AM, Bill Franklin bill.frank...@bayer.com wrote:






Thanks…I think that clears it up.

So, if I am understanding correctly, for consistency, I should call .load(new 
ApplicationDomain(ApplicationDomain.currentDomain)); for module loads inside of 
modules, and from inside the main application as well (since apparently that is 
the same thing that happens if you call .load(); from the application anyway).

And once I get everything migrated to 4.5+, I don’t need to worry about 
specifying ApplicationDomain at all?


Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:3416900243_101581022]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 10:28 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Actually, you have four commonly used options whenever a parameter or property 
is of type ApplicationDomain:

null
new ApplicationDomain()
ApplicationDomain.currentDomain
new ApplicationDomain(ApplicationDomain.currentDomain)


New ApplicaitonDomain() will never work for modules.  It is used in 
MarshallPlan configurations.

ApplicationDomain.currentDomain is used to load classes that you do not wish to 
unload.  Once you mix classes from a loaded SWF into the current 
ApplicationDomain, they cannot be unloaded.  RSLs use this option, and 
StyleModules occasionally use this option.  Shared Code modules may use this 
option.  It depends on whether the classes in the loaded SWF should remain 
encapsulated or not.

New ApplicationDomain(ApplicationDomain.currentDomain) is usually what happens 
when you use null.  It creates a child ApplicationDomain which encapsulates the 
classes which allows them to later be unloaded.

The problem is that the value of ApplicationDomain.currentDomain changes based 
on the SWF that owns the code.  Because ModuleManager is almost always in the 
main SWF, the null value, which implies “new 
ApplicationDomain(ApplicationDomain.currentDomain) always creates a child 
ApplicationDomain of the main SWF, even though you might have called it from a 
module.  This is resolved in Flex 4.5 with fancier code, but you said you were 
using Flex 3.

So, you are probably loading all modules into the main SWF’s applicationDomain 
which is probably not really what you want if you care about unloading.  You’ve 
essentially converted that module into an RSL, which is why it works.  You 
probably want to use “new ApplicationDomain(ApplicationDomain.currentDomain)” 
which is not the same as null when called from a module.

Tricky, isn’t it?
-Alex

On 4/10/12 7:05 AM, Bill Franklin bill.frank...@bayer.com wrote:






Thanks Alex,

Is there a time when you wouldn’t want to put ApplicationDomain.currentDomain 
in the IModuleInfo.load call?


Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:3416900243_101584655]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, April 10, 2012 1:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested Modules: No destination with id null is 
registered with any service



Make sure you have loaded the modules correctly.  You have to specify the 
applicationDomain of the nested module otherwise it will become a sibling.


On 4/9/12 2:35 PM, BillF bill.frank...@bayer.com wrote:






Flex SDK v3.6

Okay, I have a module that is called from an application.  That module calls 
another module.  Trying to run any RemoteObjects from the nested module is 
failing, resulting in the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@d3dcad9 to 
mx.messaging.messages.IMessage.

Viewing the RemoteObject call in CharlesProxy gives the error:

No destination with id null is registered with any service

The exact same RemoteObject call works correctly in the parent module, but not 
in the child module.

Any ideas?





--
Alex Harui
Flex

Re: [flexcoders] Rendering Freezes

2012-04-09 Thread Jake Churchill
Alex,

Is there a way to keep the app from being idle when in the background?
 When do you anticipate a fix for this?

Thanks!

-Jake

On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com wrote:

 **


 Sounds like a bug in the idle management in AIR.  They’ve been trying
 different things to reduce CPU usage when “idle”.

 If you are getting mouse events, check the targets to see if they make
 sense.  A popup overlay would likely change the target.  Or just dump the
 display list on a mouse event and see if it makes sense.


 On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com wrote:






 Alex,

 It appears there is a bug for this:
 https://bugbase.adobe.com/index.cfm?event=bugid=3155398

 I set handlers on enterFrame and exitFrame on the chart component as well
 as a one of it's parents (the main display container) and they fire
 constantly (several times per second).  This continues after the freeze.  I
 also added mouse and keyboard event handlers and they also fire just find
 when the app is frozen.  Everything seems to work fine except for the
 rendering.

 I have tried running this in the debugger and profiler and I cannot ever
 get the app to freeze there.  I've let it run overnight and still no
 freeze.  With the production app running in AIR it'll freeze after around
 10 minutes pretty consistently.  This is why I've been using this Monster
 Debugger, so I could grab debug traces on the production app without
 relying on flashbuilder.

 Regarding the idea that this is popup related... I have popups inside the
 windows using Alert components, some that use custom components and
 PopupManager and I have some global popups that open new native windows
 with information inside.  All 3 function just fine and do not cause the app
 to freeze.  The app seems to freeze more if I just let it run in the
 background. If I play around with it a lot, it'll take a lot longer to
 freeze.

 Thanks!

 -Jake

 On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com wrote:






 Did you check bugbase.adobe.com http://bugbase.adobe.com  to see if
 this is a known issue?

 If you set enterFrame and exitFrame event handlers, do they get called?
  If so, how often?  How about mouse or keyboard event?  Does the profiler
 continue to work?  What does it say is running?


 On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  wrote:






 Windows for now.  I haven't been able to duplicate issue on a mac but it
 doesn't mean it's not there.  I have not altered the renderMode so it
 should be running auto.  CPU runs between 0 and about 8% depending on how
 much data is coming down the line (socket connection).  Memory spikes as
 high as 180MB but runs consistent around 25MB in the profiler.  In task
 manager, I usually see around 120MB.  If I leave the chart open all day
 then there's a ton of data and I'll see it up around 180MB.  But, that's
 equal or less than a single tab in firefox so it should be fine.

 The nativeWindow I'm working with still responds. I can maximize/minimize,
 but can't resize it.  The nativeMenu, however, is dead as well as all
 content inside the window.

 As I said, I have a global error handler which traces out stuff in Monster
 Debugger as well as logs stuff to a file on my desktop and I don't get any
 info either way.  I'm tracing out every data object that I get over the
 socket as well as every chart update event and the main content area's
 update event.  They continue to respond.  It's like everything is there,
 but there's a block on the app visually.

 Thanks for your help!

 -Jake

 On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 Mac and Win?  Different GPU configs?  What does memory and CPU for the
 process look like?


 On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






 Alex,

 It's intermittent, but routinely happens after the app has been open for
 10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
 and I can see after the freeze that updates, data and certain component
 lifecycle events that I'm looking at are still firing, just no visual.
  About half the time, I just get a snapshot frozen where the last update
 happened, and sometimes the screen is completely white.

 -Jake

 On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  http://aha...@adobe.com  wrote:






 Is it intermittent or can you reproduce it at will?




 On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  
 http://reyna...@gmail.com  wrote:






 Coders:

 I posted an issue regarding the update to AIR 3.2 recently but I now have
 more information.  The app appears to freeze but I've plugged in some
 debugging tools and network monitors and I have been able to find out that
 the rendering of the app freezes, but the app itself 

Re: [flexcoders] Rendering Freezes

2012-04-09 Thread Alex Harui
Well, we don’t have confirmation that there is a bug in idle management.  But 
if that was the cause, I don’t think there is a way to keep yourself from 
becoming “idle”.  I’m just recalling the kinds of issues that came up when they 
started idle management a few years back.  Google “Adobe AIR idle” for a review.


On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com wrote:






Alex,

Is there a way to keep the app from being idle when in the background?  When 
do you anticipate a fix for this?

Thanks!

-Jake

On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com wrote:





Sounds like a bug in the idle management in AIR.  They’ve been trying different 
things to reduce CPU usage when “idle”.

If you are getting mouse events, check the targets to see if they make sense.  
A popup overlay would likely change the target.  Or just dump the display list 
on a mouse event and see if it makes sense.


On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  wrote:






Alex,

It appears there is a bug for this:   
https://bugbase.adobe.com/index.cfm?event=bugid=3155398

I set handlers on enterFrame and exitFrame on the chart component as well as a 
one of it's parents (the main display container) and they fire constantly 
(several times per second).  This continues after the freeze.  I also added 
mouse and keyboard event handlers and they also fire just find when the app is 
frozen.  Everything seems to work fine except for the rendering.

I have tried running this in the debugger and profiler and I cannot ever get 
the app to freeze there.  I've let it run overnight and still no freeze.  With 
the production app running in AIR it'll freeze after around 10 minutes pretty 
consistently.  This is why I've been using this Monster Debugger, so I could 
grab debug traces on the production app without relying on flashbuilder.

Regarding the idea that this is popup related... I have popups inside the 
windows using Alert components, some that use custom components and 
PopupManager and I have some global popups that open new native windows with 
information inside.  All 3 function just fine and do not cause the app to 
freeze.  The app seems to freeze more if I just let it run in the background. 
If I play around with it a lot, it'll take a lot longer to freeze.

Thanks!

-Jake

On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  wrote:





Did you check bugbase.adobe.com http://bugbase.adobe.com  
http://bugbase.adobe.com  to see if this is a known issue?

If you set enterFrame and exitFrame event handlers, do they get called?  If so, 
how often?  How about mouse or keyboard event?  Does the profiler continue to 
work?  What does it say is running?


On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






Windows for now.  I haven't been able to duplicate issue on a mac but it 
doesn't mean it's not there.  I have not altered the renderMode so it should be 
running auto.  CPU runs between 0 and about 8% depending on how much data is 
coming down the line (socket connection).  Memory spikes as high as 180MB but 
runs consistent around 25MB in the profiler.  In task manager, I usually see 
around 120MB.  If I leave the chart open all day then there's a ton of data and 
I'll see it up around 180MB.  But, that's equal or less than a single tab in 
firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize, but 
can't resize it.  The nativeMenu, however, is dead as well as all content 
inside the window.

As I said, I have a global error handler which traces out stuff in Monster 
Debugger as well as logs stuff to a file on my desktop and I don't get any info 
either way.  I'm tracing out every data object that I get over the socket as 
well as every chart update event and the main content area's update event.  
They continue to respond.  It's like everything is there, but there's a block 
on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  http://aha...@adobe.com  wrote:





Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  
http://reyna...@gmail.com  wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  http://aha...@adobe.com  

Re: [flexcoders] Rendering Freezes

2012-04-09 Thread Jake Churchill
So, any suggestions on a possible workaround to try?  Currently, we have
the clients reverted back to AIR 3.1 and it's working fine but they have to
constantly deny the update.  I'm considering bundling the app w/ AIR 3.1
using that Captive Runtime but I really don't want to do that either.

Please let me know if you think of anything.

Thanks!

-Jake

On Mon, Apr 9, 2012 at 11:08 AM, Alex Harui aha...@adobe.com wrote:

 **


 Well, we don’t have confirmation that there is a bug in idle management.
  But if that was the cause, I don’t think there is a way to keep yourself
 from becoming “idle”.  I’m just recalling the kinds of issues that came up
 when they started idle management a few years back.  Google “Adobe AIR
 idle” for a review.



 On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com wrote:






 Alex,

 Is there a way to keep the app from being idle when in the background?
  When do you anticipate a fix for this?

 Thanks!

 -Jake

 On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com wrote:






 Sounds like a bug in the idle management in AIR.  They’ve been trying
 different things to reduce CPU usage when “idle”.

 If you are getting mouse events, check the targets to see if they make
 sense.  A popup overlay would likely change the target.  Or just dump the
 display list on a mouse event and see if it makes sense.


 On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  wrote:






 Alex,

 It appears there is a bug for this:
 https://bugbase.adobe.com/index.cfm?event=bugid=3155398

 I set handlers on enterFrame and exitFrame on the chart component as well
 as a one of it's parents (the main display container) and they fire
 constantly (several times per second).  This continues after the freeze.  I
 also added mouse and keyboard event handlers and they also fire just find
 when the app is frozen.  Everything seems to work fine except for the
 rendering.

 I have tried running this in the debugger and profiler and I cannot ever
 get the app to freeze there.  I've let it run overnight and still no
 freeze.  With the production app running in AIR it'll freeze after around
 10 minutes pretty consistently.  This is why I've been using this Monster
 Debugger, so I could grab debug traces on the production app without
 relying on flashbuilder.

 Regarding the idea that this is popup related... I have popups inside the
 windows using Alert components, some that use custom components and
 PopupManager and I have some global popups that open new native windows
 with information inside.  All 3 function just fine and do not cause the app
 to freeze.  The app seems to freeze more if I just let it run in the
 background. If I play around with it a lot, it'll take a lot longer to
 freeze.

 Thanks!

 -Jake

 On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 Did you check bugbase.adobe.com http://bugbase.adobe.com  
 http://bugbase.adobe.com  to see if this is a known issue?


 If you set enterFrame and exitFrame event handlers, do they get called?
  If so, how often?  How about mouse or keyboard event?  Does the profiler
 continue to work?  What does it say is running?


 On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






 Windows for now.  I haven't been able to duplicate issue on a mac but it
 doesn't mean it's not there.  I have not altered the renderMode so it
 should be running auto.  CPU runs between 0 and about 8% depending on how
 much data is coming down the line (socket connection).  Memory spikes as
 high as 180MB but runs consistent around 25MB in the profiler.  In task
 manager, I usually see around 120MB.  If I leave the chart open all day
 then there's a ton of data and I'll see it up around 180MB.  But, that's
 equal or less than a single tab in firefox so it should be fine.

 The nativeWindow I'm working with still responds. I can maximize/minimize,
 but can't resize it.  The nativeMenu, however, is dead as well as all
 content inside the window.

 As I said, I have a global error handler which traces out stuff in Monster
 Debugger as well as logs stuff to a file on my desktop and I don't get any
 info either way.  I'm tracing out every data object that I get over the
 socket as well as every chart update event and the main content area's
 update event.  They continue to respond.  It's like everything is there,
 but there's a block on the app visually.

 Thanks for your help!

 -Jake

 On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  http://aha...@adobe.com  wrote:






 Mac and Win?  Different GPU configs?  What does memory and CPU for the
 process look like?


 On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  
 http://reyna...@gmail.com  wrote:






 Alex,

 It's intermittent, but routinely happens after the app has been open for

Re: [flexcoders] Rendering Freezes

2012-04-09 Thread Alex Harui
Did you try keeping some sort of screen updating going all of the time?  
Current time, a news feed, something like that?


On 4/9/12 9:52 AM, Jake Churchill reyna...@gmail.com wrote:






So, any suggestions on a possible workaround to try?  Currently, we have the 
clients reverted back to AIR 3.1 and it's working fine but they have to 
constantly deny the update.  I'm considering bundling the app w/ AIR 3.1 using 
that Captive Runtime but I really don't want to do that either.

Please let me know if you think of anything.

Thanks!

-Jake

On Mon, Apr 9, 2012 at 11:08 AM, Alex Harui aha...@adobe.com wrote:





Well, we don’t have confirmation that there is a bug in idle management.  But 
if that was the cause, I don’t think there is a way to keep yourself from 
becoming “idle”.  I’m just recalling the kinds of issues that came up when they 
started idle management a few years back.  Google “Adobe AIR idle” for a review.




On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  wrote:






Alex,

Is there a way to keep the app from being idle when in the background?  When 
do you anticipate a fix for this?

Thanks!

-Jake

On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  wrote:





Sounds like a bug in the idle management in AIR.  They’ve been trying different 
things to reduce CPU usage when “idle”.

If you are getting mouse events, check the targets to see if they make sense.  
A popup overlay would likely change the target.  Or just dump the display list 
on a mouse event and see if it makes sense.


On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






Alex,

It appears there is a bug for this:   
https://bugbase.adobe.com/index.cfm?event=bugid=3155398

I set handlers on enterFrame and exitFrame on the chart component as well as a 
one of it's parents (the main display container) and they fire constantly 
(several times per second).  This continues after the freeze.  I also added 
mouse and keyboard event handlers and they also fire just find when the app is 
frozen.  Everything seems to work fine except for the rendering.

I have tried running this in the debugger and profiler and I cannot ever get 
the app to freeze there.  I've let it run overnight and still no freeze.  With 
the production app running in AIR it'll freeze after around 10 minutes pretty 
consistently.  This is why I've been using this Monster Debugger, so I could 
grab debug traces on the production app without relying on flashbuilder.

Regarding the idea that this is popup related... I have popups inside the 
windows using Alert components, some that use custom components and 
PopupManager and I have some global popups that open new native windows with 
information inside.  All 3 function just fine and do not cause the app to 
freeze.  The app seems to freeze more if I just let it run in the background. 
If I play around with it a lot, it'll take a lot longer to freeze.

Thanks!

-Jake

On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  http://aha...@adobe.com  wrote:





Did you check bugbase.adobe.com http://bugbase.adobe.com  
http://bugbase.adobe.com  http://bugbase.adobe.com  to see if this is a 
known issue?


If you set enterFrame and exitFrame event handlers, do they get called?  If so, 
how often?  How about mouse or keyboard event?  Does the profiler continue to 
work?  What does it say is running?


On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  
http://reyna...@gmail.com  wrote:






Windows for now.  I haven't been able to duplicate issue on a mac but it 
doesn't mean it's not there.  I have not altered the renderMode so it should be 
running auto.  CPU runs between 0 and about 8% depending on how much data is 
coming down the line (socket connection).  Memory spikes as high as 180MB but 
runs consistent around 25MB in the profiler.  In task manager, I usually see 
around 120MB.  If I leave the chart open all day then there's a ton of data and 
I'll see it up around 180MB.  But, that's equal or less than a single tab in 
firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize, but 
can't resize it.  The nativeMenu, however, is dead as well as all content 
inside the window.

As I said, I have a global error handler which traces out stuff in Monster 
Debugger as well as logs stuff to a file on my desktop and I don't get any info 
either way.  I'm tracing out every data object that I get over the socket as 
well as every chart update event and the main content area's update event.  
They continue to respond.  It's like everything is there, but there's a block 
on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  http://aha...@adobe.com  http://aha...@adobe.com 

Re: [flexcoders] Rendering Freezes

2012-04-09 Thread Jake Churchill
Yes, based on one of the posts I saw, adding a small image to the display
list once in a while.  I basically did this every time data was received
over the socket (and removed it as well) and still froze the same.

Maybe I'll try keeping some kind of data related ticker or something.

Thanks!

-Jake

On Mon, Apr 9, 2012 at 1:15 PM, Alex Harui aha...@adobe.com wrote:

 **


 Did you try keeping some sort of screen updating going all of the time?
  Current time, a news feed, something like that?



 On 4/9/12 9:52 AM, Jake Churchill reyna...@gmail.com wrote:






 So, any suggestions on a possible workaround to try?  Currently, we have
 the clients reverted back to AIR 3.1 and it's working fine but they have to
 constantly deny the update.  I'm considering bundling the app w/ AIR 3.1
 using that Captive Runtime but I really don't want to do that either.

 Please let me know if you think of anything.

 Thanks!

 -Jake

 On Mon, Apr 9, 2012 at 11:08 AM, Alex Harui aha...@adobe.com wrote:






 Well, we don’t have confirmation that there is a bug in idle management.
  But if that was the cause, I don’t think there is a way to keep yourself
 from becoming “idle”.  I’m just recalling the kinds of issues that came up
 when they started idle management a few years back.  Google “Adobe AIR
 idle” for a review.




 On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  wrote:






 Alex,

 Is there a way to keep the app from being idle when in the background?
  When do you anticipate a fix for this?

 Thanks!

 -Jake

 On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 Sounds like a bug in the idle management in AIR.  They’ve been trying
 different things to reduce CPU usage when “idle”.

 If you are getting mouse events, check the targets to see if they make
 sense.  A popup overlay would likely change the target.  Or just dump the
 display list on a mouse event and see if it makes sense.


 On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






 Alex,

 It appears there is a bug for this:
 https://bugbase.adobe.com/index.cfm?event=bugid=3155398

 I set handlers on enterFrame and exitFrame on the chart component as well
 as a one of it's parents (the main display container) and they fire
 constantly (several times per second).  This continues after the freeze.  I
 also added mouse and keyboard event handlers and they also fire just find
 when the app is frozen.  Everything seems to work fine except for the
 rendering.

 I have tried running this in the debugger and profiler and I cannot ever
 get the app to freeze there.  I've let it run overnight and still no
 freeze.  With the production app running in AIR it'll freeze after around
 10 minutes pretty consistently.  This is why I've been using this Monster
 Debugger, so I could grab debug traces on the production app without
 relying on flashbuilder.

 Regarding the idea that this is popup related... I have popups inside the
 windows using Alert components, some that use custom components and
 PopupManager and I have some global popups that open new native windows
 with information inside.  All 3 function just fine and do not cause the app
 to freeze.  The app seems to freeze more if I just let it run in the
 background. If I play around with it a lot, it'll take a lot longer to
 freeze.

 Thanks!

 -Jake

 On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  http://aha...@adobe.com  wrote:






 Did you check bugbase.adobe.com http://bugbase.adobe.com  
 http://bugbase.adobe.com  http://bugbase.adobe.com  to see if this is
 a known issue?



 If you set enterFrame and exitFrame event handlers, do they get called?
  If so, how often?  How about mouse or keyboard event?  Does the profiler
 continue to work?  What does it say is running?


 On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  
 http://reyna...@gmail.com  wrote:






 Windows for now.  I haven't been able to duplicate issue on a mac but it
 doesn't mean it's not there.  I have not altered the renderMode so it
 should be running auto.  CPU runs between 0 and about 8% depending on how
 much data is coming down the line (socket connection).  Memory spikes as
 high as 180MB but runs consistent around 25MB in the profiler.  In task
 manager, I usually see around 120MB.  If I leave the chart open all day
 then there's a ton of data and I'll see it up around 180MB.  But, that's
 equal or less than a single tab in firefox so it should be fine.

 The nativeWindow I'm working with still responds. I can maximize/minimize,
 but can't resize it.  The nativeMenu, however, is dead as well as all
 content inside the window.

 As I said, I have a global error handler which traces out stuff in Monster
 Debugger as well as logs stuff to a file on my desktop and I don't get any
 info 

Re: [flexcoders] How To Disable Module Screen Updates....

2012-04-09 Thread Alex Harui
Don’t call factory.create() until the first time you go to that tab.


On 4/9/12 11:16 AM, jamesfin james.alan.finni...@gmail.com wrote:






We have up to 30 small modules that are getting loaded at startup and notice 
that the accumulative perceived loading effect is slow when creating the 
modules via...

_module.factory.create() as IVisualElement;

... as all of the modules are competing for CPU to draw themselves.

So, is there a way to disable all component rendering (i.e. screen updates) in 
each module until the user selects focus for each particular container/module?  
There's no reason to draw everything at the same time when all of them can't be 
seen at the same time.

Imagine each module is added to a tab in tabnavigator and that only the first 
visible tab/module has been rendered, when any other tab is selected, the 
module then and only then renders itself.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Rendering Freezes

2012-04-05 Thread Jake Churchill
Alex,

It appears there is a bug for this:
https://bugbase.adobe.com/index.cfm?event=bugid=3155398

I set handlers on enterFrame and exitFrame on the chart component as well
as a one of it's parents (the main display container) and they fire
constantly (several times per second).  This continues after the freeze.  I
also added mouse and keyboard event handlers and they also fire just find
when the app is frozen.  Everything seems to work fine except for the
rendering.

I have tried running this in the debugger and profiler and I cannot ever
get the app to freeze there.  I've let it run overnight and still no
freeze.  With the production app running in AIR it'll freeze after around
10 minutes pretty consistently.  This is why I've been using this Monster
Debugger, so I could grab debug traces on the production app without
relying on flashbuilder.

Regarding the idea that this is popup related... I have popups inside the
windows using Alert components, some that use custom components and
PopupManager and I have some global popups that open new native windows
with information inside.  All 3 function just fine and do not cause the app
to freeze.  The app seems to freeze more if I just let it run in the
background. If I play around with it a lot, it'll take a lot longer to
freeze.

Thanks!

-Jake

On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com wrote:

 **


 Did you check bugbase.adobe.com to see if this is a known issue?

 If you set enterFrame and exitFrame event handlers, do they get called?
  If so, how often?  How about mouse or keyboard event?  Does the profiler
 continue to work?  What does it say is running?


 On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com wrote:






 Windows for now.  I haven't been able to duplicate issue on a mac but it
 doesn't mean it's not there.  I have not altered the renderMode so it
 should be running auto.  CPU runs between 0 and about 8% depending on how
 much data is coming down the line (socket connection).  Memory spikes as
 high as 180MB but runs consistent around 25MB in the profiler.  In task
 manager, I usually see around 120MB.  If I leave the chart open all day
 then there's a ton of data and I'll see it up around 180MB.  But, that's
 equal or less than a single tab in firefox so it should be fine.

 The nativeWindow I'm working with still responds. I can maximize/minimize,
 but can't resize it.  The nativeMenu, however, is dead as well as all
 content inside the window.

 As I said, I have a global error handler which traces out stuff in Monster
 Debugger as well as logs stuff to a file on my desktop and I don't get any
 info either way.  I'm tracing out every data object that I get over the
 socket as well as every chart update event and the main content area's
 update event.  They continue to respond.  It's like everything is there,
 but there's a block on the app visually.

 Thanks for your help!

 -Jake

 On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com wrote:






 Mac and Win?  Different GPU configs?  What does memory and CPU for the
 process look like?


 On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  wrote:






 Alex,

 It's intermittent, but routinely happens after the app has been open for
 10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
 and I can see after the freeze that updates, data and certain component
 lifecycle events that I'm looking at are still firing, just no visual.
  About half the time, I just get a snapshot frozen where the last update
 happened, and sometimes the screen is completely white.

 -Jake

 On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 Is it intermittent or can you reproduce it at will?




 On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






 Coders:

 I posted an issue regarding the update to AIR 3.2 recently but I now have
 more information.  The app appears to freeze but I've plugged in some
 debugging tools and network monitors and I have been able to find out that
 the rendering of the app freezes, but the app itself continues to run.
  Data continues to fly in, update and render events continue to fire on the
 components in question.  Focus appears to be acknowledged as well.  I've
 messed with a global error handler but I'm not seeing any errors being
 thrown.

 The basic app structure is this:  Main app opens a login screen, after
 successful login, the main app hides itself and opens up 1-3 windows, all
 of which manage their own data/events, etc.  I've been debugging events at
 the main app level as well as windows and I'm getting feedback from both at
 the appropriate times.

 I've seen an issue on an ipad app that freezes mid animation and the
 workaround was to add something else to the display list.  I coded in a
 workaround like that which adds a small transparent image to the display
 list 

Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-05 Thread Wouter Schreuders
I'll put one together now and see if I can replicate it

On 4 April 2012 23:12, Alex Harui aha...@adobe.com wrote:

 **


 Do you have a simple test case?



 On 4/4/12 8:43 AM, Wouter Schreuders wschreud...@gmail.com wrote:






 spark DG

 On 4 April 2012 17:28, Alex Harui aha...@adobe.com wrote:






 MX or Spark DG?





 On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  wrote:






 I thought that that may be the case, so I removed all my custom
 itemrenderers but the problem remains, I've also noticed that the problem
 only occurs after I have entered a date range, if I stick with the standard
 date range then problem doesn't occur.

 On 3 April 2012 22:23, Alex Harui aha...@adobe.com 
 http://aha...@adobe.com  wrote:






 That sounds more like an issue with custom renderers.




 On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  http://wschreud...@gmail.com  wrote:






 Hi All

 I've run into a rendering problem with the datagrid.

 I have a datagrid that a user can search using a date range, furthermore
 the user can also search using keywords. I do this by first looking at the
 date range and applying a filter to the array of objects based on the
 dates. Then I make of a copy of that arraycollection and assign the
 arraycollection which binds to my datagrid to that collection.

 The problem is that when the user selects a date range and I apply the
 filter, the datagrid content disappears. The scrollbar on the side updates
 though and if I scroll down then the content appears and renders correctly.
 I've tried the following post refresh commands but none of them solve the
 problem.

 (datagrid.dataProvider as ArrayCollection).refresh();
 datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
 datagrid .validateNow();

 Here's the code where I get the date range.

 var dateFilteredArray:Array = _transactions.source.filter(
 function (item:Transaction, index:int, array:Array):Boolean
 {
 if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf()
 || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
 return false
 else
 return true //item is inside date range
 }
 );
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);

 Anyone run into this before?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Rendering Freezes

2012-04-05 Thread Alex Harui
Sounds like a bug in the idle management in AIR.  They’ve been trying different 
things to reduce CPU usage when “idle”.

If you are getting mouse events, check the targets to see if they make sense.  
A popup overlay would likely change the target.  Or just dump the display list 
on a mouse event and see if it makes sense.


On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com wrote:






Alex,

It appears there is a bug for this:   
https://bugbase.adobe.com/index.cfm?event=bugid=3155398

I set handlers on enterFrame and exitFrame on the chart component as well as a 
one of it's parents (the main display container) and they fire constantly 
(several times per second).  This continues after the freeze.  I also added 
mouse and keyboard event handlers and they also fire just find when the app is 
frozen.  Everything seems to work fine except for the rendering.

I have tried running this in the debugger and profiler and I cannot ever get 
the app to freeze there.  I've let it run overnight and still no freeze.  With 
the production app running in AIR it'll freeze after around 10 minutes pretty 
consistently.  This is why I've been using this Monster Debugger, so I could 
grab debug traces on the production app without relying on flashbuilder.

Regarding the idea that this is popup related... I have popups inside the 
windows using Alert components, some that use custom components and 
PopupManager and I have some global popups that open new native windows with 
information inside.  All 3 function just fine and do not cause the app to 
freeze.  The app seems to freeze more if I just let it run in the background. 
If I play around with it a lot, it'll take a lot longer to freeze.

Thanks!

-Jake

On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com wrote:





Did you check bugbase.adobe.com http://bugbase.adobe.com  to see if this is a 
known issue?

If you set enterFrame and exitFrame event handlers, do they get called?  If so, 
how often?  How about mouse or keyboard event?  Does the profiler continue to 
work?  What does it say is running?


On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  wrote:






Windows for now.  I haven't been able to duplicate issue on a mac but it 
doesn't mean it's not there.  I have not altered the renderMode so it should be 
running auto.  CPU runs between 0 and about 8% depending on how much data is 
coming down the line (socket connection).  Memory spikes as high as 180MB but 
runs consistent around 25MB in the profiler.  In task manager, I usually see 
around 120MB.  If I leave the chart open all day then there's a ton of data and 
I'll see it up around 180MB.  But, that's equal or less than a single tab in 
firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize, but 
can't resize it.  The nativeMenu, however, is dead as well as all content 
inside the window.

As I said, I have a global error handler which traces out stuff in Monster 
Debugger as well as logs stuff to a file on my desktop and I don't get any info 
either way.  I'm tracing out every data object that I get over the socket as 
well as every chart update event and the main content area's update event.  
They continue to respond.  It's like everything is there, but there's a block 
on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  wrote:





Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  http://aha...@adobe.com  wrote:





Is it intermittent or can you reproduce it at will?




On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  
http://reyna...@gmail.com  wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The 

Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Wouter Schreuders
I thought that that may be the case, so I removed all my custom
itemrenderers but the problem remains, I've also noticed that the problem
only occurs after I have entered a date range, if I stick with the standard
date range then problem doesn't occur.

On 3 April 2012 22:23, Alex Harui aha...@adobe.com wrote:

 **


 That sounds more like an issue with custom renderers.



 On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 I've run into a rendering problem with the datagrid.

 I have a datagrid that a user can search using a date range, furthermore
 the user can also search using keywords. I do this by first looking at the
 date range and applying a filter to the array of objects based on the
 dates. Then I make of a copy of that arraycollection and assign the
 arraycollection which binds to my datagrid to that collection.

 The problem is that when the user selects a date range and I apply the
 filter, the datagrid content disappears. The scrollbar on the side updates
 though and if I scroll down then the content appears and renders correctly.
 I've tried the following post refresh commands but none of them solve the
 problem.

 (datagrid.dataProvider as ArrayCollection).refresh();
 datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
 datagrid .validateNow();

 Here's the code where I get the date range.

 var dateFilteredArray:Array = _transactions.source.filter(
 function (item:Transaction, index:int, array:Array):Boolean
 {
 if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf()
 || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
 return false
 else
 return true //item is inside date range
 }
 );
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);

 Anyone run into this before?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Alex Harui
MX or Spark DG?


On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com wrote:






I thought that that may be the case, so I removed all my custom itemrenderers 
but the problem remains, I've also noticed that the problem only occurs after I 
have entered a date range, if I stick with the standard date range then problem 
doesn't occur.

On 3 April 2012 22:23, Alex Harui aha...@adobe.com wrote:





That sounds more like an issue with custom renderers.




On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  wrote:






Hi All

I've run into a rendering problem with the datagrid.

I have a datagrid that a user can search using a date range, furthermore the 
user can also search using keywords. I do this by first looking at the date 
range and applying a filter to the array of objects based on the dates. Then I 
make of a copy of that arraycollection and assign the arraycollection which 
binds to my datagrid to that collection.

The problem is that when the user selects a date range and I apply the filter, 
the datagrid content disappears. The scrollbar on the side updates though and 
if I scroll down then the content appears and renders correctly. I've tried the 
following post refresh commands but none of them solve the problem.

(datagrid.dataProvider as ArrayCollection).refresh();
datagrid .invalidateSkinState();
datagrid .invalidateDisplayList();
datagrid .validateNow();

Here's the code where I get the date range.

var dateFilteredArray:Array = _transactions.source.filter(
function (item:Transaction, index:int, array:Array):Boolean
{
if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf() || 
Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
return false
else
return true //item is inside date range
}
);
_dateFilteredCollection = new ArrayCollection(dateFilteredArray);

Anyone run into this before?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Wouter Schreuders
spark DG

On 4 April 2012 17:28, Alex Harui aha...@adobe.com wrote:

 **


 MX or Spark DG?



 On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com wrote:






 I thought that that may be the case, so I removed all my custom
 itemrenderers but the problem remains, I've also noticed that the problem
 only occurs after I have entered a date range, if I stick with the standard
 date range then problem doesn't occur.

 On 3 April 2012 22:23, Alex Harui aha...@adobe.com wrote:






 That sounds more like an issue with custom renderers.




 On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
 http://wschreud...@gmail.com  wrote:






 Hi All

 I've run into a rendering problem with the datagrid.

 I have a datagrid that a user can search using a date range, furthermore
 the user can also search using keywords. I do this by first looking at the
 date range and applying a filter to the array of objects based on the
 dates. Then I make of a copy of that arraycollection and assign the
 arraycollection which binds to my datagrid to that collection.

 The problem is that when the user selects a date range and I apply the
 filter, the datagrid content disappears. The scrollbar on the side updates
 though and if I scroll down then the content appears and renders correctly.
 I've tried the following post refresh commands but none of them solve the
 problem.

 (datagrid.dataProvider as ArrayCollection).refresh();
 datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
 datagrid .validateNow();

 Here's the code where I get the date range.

 var dateFilteredArray:Array = _transactions.source.filter(
 function (item:Transaction, index:int, array:Array):Boolean
 {
 if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf()
 || Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
 return false
 else
 return true //item is inside date range
 }
 );
 _dateFilteredCollection = new ArrayCollection(dateFilteredArray);

 Anyone run into this before?





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Alex Harui
Is it intermittent or can you reproduce it at will?


On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Alex Harui
Do you have a simple test case?


On 4/4/12 8:43 AM, Wouter Schreuders wschreud...@gmail.com wrote:






spark DG

On 4 April 2012 17:28, Alex Harui aha...@adobe.com wrote:





MX or Spark DG?




On 4/4/12 12:05 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  wrote:






I thought that that may be the case, so I removed all my custom itemrenderers 
but the problem remains, I've also noticed that the problem only occurs after I 
have entered a date range, if I stick with the standard date range then problem 
doesn't occur.

On 3 April 2012 22:23, Alex Harui aha...@adobe.com http://aha...@adobe.com  
wrote:





That sounds more like an issue with custom renderers.




On 4/3/12 4:47 AM, Wouter Schreuders wschreud...@gmail.com 
http://wschreud...@gmail.com  http://wschreud...@gmail.com  wrote:






Hi All

I've run into a rendering problem with the datagrid.

I have a datagrid that a user can search using a date range, furthermore the 
user can also search using keywords. I do this by first looking at the date 
range and applying a filter to the array of objects based on the dates. Then I 
make of a copy of that arraycollection and assign the arraycollection which 
binds to my datagrid to that collection.

The problem is that when the user selects a date range and I apply the filter, 
the datagrid content disappears. The scrollbar on the side updates though and 
if I scroll down then the content appears and renders correctly. I've tried the 
following post refresh commands but none of them solve the problem.

(datagrid.dataProvider as ArrayCollection).refresh();
datagrid .invalidateSkinState();
datagrid .invalidateDisplayList();
datagrid .validateNow();

Here's the code where I get the date range.

var dateFilteredArray:Array = _transactions.source.filter(
function (item:Transaction, index:int, array:Array):Boolean
{
if(Date.parse(item.displayDate)  dateRangeComponent.startDate.valueOf() || 
Date.parse(item.displayDate)  dateRangeComponent.endDate.valueOf())
return false
else
return true //item is inside date range
}
);
_dateFilteredCollection = new ArrayCollection(dateFilteredArray);

Anyone run into this before?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Jake Churchill
Alex,

It's intermittent, but routinely happens after the app has been open for
10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
and I can see after the freeze that updates, data and certain component
lifecycle events that I'm looking at are still firing, just no visual.
 About half the time, I just get a snapshot frozen where the last update
happened, and sometimes the screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com wrote:

 **


 Is it intermittent or can you reproduce it at will?



 On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com wrote:






 Coders:

 I posted an issue regarding the update to AIR 3.2 recently but I now have
 more information.  The app appears to freeze but I've plugged in some
 debugging tools and network monitors and I have been able to find out that
 the rendering of the app freezes, but the app itself continues to run.
  Data continues to fly in, update and render events continue to fire on the
 components in question.  Focus appears to be acknowledged as well.  I've
 messed with a global error handler but I'm not seeing any errors being
 thrown.

 The basic app structure is this:  Main app opens a login screen, after
 successful login, the main app hides itself and opens up 1-3 windows, all
 of which manage their own data/events, etc.  I've been debugging events at
 the main app level as well as windows and I'm getting feedback from both at
 the appropriate times.

 I've seen an issue on an ipad app that freezes mid animation and the
 workaround was to add something else to the display list.  I coded in a
 workaround like that which adds a small transparent image to the display
 list of components as well as the window's stage and still nothing.

 I REALLY REALLY need some kind of help here.  I've been searching for 3
 days without any luck of the problem even being acknowledged other than the
 one ipad game source.  Here's that blog post again:
 http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

 Please please help me out if you can.

 Thanks!

 -Jake Churchill





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Alex Harui
Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com wrote:





Is it intermittent or can you reproduce it at will?




On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers

2012-04-04 Thread Peter Ginneberge

Window  Preferences

In the Preferences window type: annotations in the filter box at the top or 
go to:
General  Editors  Text Editors  Annotations

Select Occurrences in the Annotation types list and change the color to your 
liking.
Enjoy.

- Original Message - 
From: hawkcode2 r...@ralbrecht.net
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 04, 2012 8:58 PM
Subject: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers


 Hi,

 I can not find where the setting is to chang the color for when you put the 
 curser on an identifier, it hilights every where it is 
 used.

 I love the feature, just want to change the color as its to close to other 
 colors.

 Thanks

 Rich



Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Jake Churchill
Windows for now.  I haven't been able to duplicate issue on a mac but it
doesn't mean it's not there.  I have not altered the renderMode so it
should be running auto.  CPU runs between 0 and about 8% depending on how
much data is coming down the line (socket connection).  Memory spikes as
high as 180MB but runs consistent around 25MB in the profiler.  In task
manager, I usually see around 120MB.  If I leave the chart open all day
then there's a ton of data and I'll see it up around 180MB.  But, that's
equal or less than a single tab in firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize,
but can't resize it.  The nativeMenu, however, is dead as well as all
content inside the window.

As I said, I have a global error handler which traces out stuff in Monster
Debugger as well as logs stuff to a file on my desktop and I don't get any
info either way.  I'm tracing out every data object that I get over the
socket as well as every chart update event and the main content area's
update event.  They continue to respond.  It's like everything is there,
but there's a block on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com wrote:

 **


 Mac and Win?  Different GPU configs?  What does memory and CPU for the
 process look like?


 On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com wrote:






 Alex,

 It's intermittent, but routinely happens after the app has been open for
 10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
 and I can see after the freeze that updates, data and certain component
 lifecycle events that I'm looking at are still firing, just no visual.
  About half the time, I just get a snapshot frozen where the last update
 happened, and sometimes the screen is completely white.

 -Jake

 On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com wrote:






 Is it intermittent or can you reproduce it at will?




 On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
 http://reyna...@gmail.com  wrote:






 Coders:

 I posted an issue regarding the update to AIR 3.2 recently but I now have
 more information.  The app appears to freeze but I've plugged in some
 debugging tools and network monitors and I have been able to find out that
 the rendering of the app freezes, but the app itself continues to run.
  Data continues to fly in, update and render events continue to fire on the
 components in question.  Focus appears to be acknowledged as well.  I've
 messed with a global error handler but I'm not seeing any errors being
 thrown.

 The basic app structure is this:  Main app opens a login screen, after
 successful login, the main app hides itself and opens up 1-3 windows, all
 of which manage their own data/events, etc.  I've been debugging events at
 the main app level as well as windows and I'm getting feedback from both at
 the appropriate times.

 I've seen an issue on an ipad app that freezes mid animation and the
 workaround was to add something else to the display list.  I coded in a
 workaround like that which adds a small transparent image to the display
 list of components as well as the window's stage and still nothing.

 I REALLY REALLY need some kind of help here.  I've been searching for 3
 days without any luck of the problem even being acknowledged other than the
 one ipad game source.  Here's that blog post again:
 http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

 Please please help me out if you can.

 Thanks!

 -Jake Churchill





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui

  



Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers

2012-04-04 Thread Peter Ginneberge
 Select Occurrences in the Annotation types list and change the color to 
 your liking.

It's actually Actionscript Occurrences in the list.
Guess Occurrences is for none flex (.as, .mxml) files.

regards,
Peter

- Original Message - 
From: Peter Ginneberge p.ginnebe...@telenet.be
To: flexcoders@yahoogroups.com
Sent: Thursday, April 05, 2012 4:11 AM
Subject: Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers



 Window  Preferences

 In the Preferences window type: annotations in the filter box at the top or 
 go to:
 General  Editors  Text Editors  Annotations

 Select Occurrences in the Annotation types list and change the color to 
 your liking.
 Enjoy.

 - Original Message - 
 From: hawkcode2 r...@ralbrecht.net
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 04, 2012 8:58 PM
 Subject: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers


 Hi,

 I can not find where the setting is to chang the color for when you put the 
 curser on an identifier, it hilights every where it 
 is
 used.

 I love the feature, just want to change the color as its to close to other 
 colors.

 Thanks

 Rich



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Alex Harui
Did you check bugbase.adobe.com to see if this is a known issue?

If you set enterFrame and exitFrame event handlers, do they get called?  If so, 
how often?  How about mouse or keyboard event?  Does the profiler continue to 
work?  What does it say is running?


On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com wrote:






Windows for now.  I haven't been able to duplicate issue on a mac but it 
doesn't mean it's not there.  I have not altered the renderMode so it should be 
running auto.  CPU runs between 0 and about 8% depending on how much data is 
coming down the line (socket connection).  Memory spikes as high as 180MB but 
runs consistent around 25MB in the profiler.  In task manager, I usually see 
around 120MB.  If I leave the chart open all day then there's a ton of data and 
I'll see it up around 180MB.  But, that's equal or less than a single tab in 
firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize, but 
can't resize it.  The nativeMenu, however, is dead as well as all content 
inside the window.

As I said, I have a global error handler which traces out stuff in Monster 
Debugger as well as logs stuff to a file on my desktop and I don't get any info 
either way.  I'm tracing out every data object that I get over the socket as 
well as every chart update event and the main content area's update event.  
They continue to respond.  It's like everything is there, but there's a block 
on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com wrote:





Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  wrote:





Is it intermittent or can you reproduce it at will?




On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com 
http://reyna...@gmail.com  http://reyna...@gmail.com  wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox that is defined in XML

2012-04-03 Thread Richard Albrecht
Thansk for the responce. 

I have tried closing, the file, the project and FB all to no avail. 

Where do I report bug and post sample. I was able to re-create it so I'd be 
happy to post it. 

Thanks 

Rich 

- Original Message -

From: Alex Harui aha...@adobe.com 
To: flexcoders@yahoogroups.com 
Sent: Monday, April 2, 2012 11:32:39 PM 
Subject: Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox 
that is defined in XML 





Mx components are not made available to mobile projects by default. You can add 
mx.swc to your project if you want, but you should try to use all Spark stuff. 


On 4/2/12 6:04 PM, hawkcode2  r...@ralbrecht.net  wrote: 








Hi, 

I am pulling my hair out. 

I have FB 4.6 and am doing a mobile project. Only using FB not using anything 
else. 



I have Several Comboboxes Defined in XML and am accessing 2 different ones 
here: 

private function test():void 
{ 

dgType.x=10; 
ddlUnits.x=10; 
} 

Next to the ddlUnits is an Orange Circle with Question Mark. (Access to 
undefined property ddlUnits) 

Yet as you see below it is defined in the xml: 


mx:ComboBox id=dgType x=12 y=203 width=255 height=41 
change=//mpitchspec() 
click=dgResults.dataProvider = null selectedIndex=0 
x.landscapePhone=530 y.landscapePhone=10 width.landscapePhone=153 
height.landscapePhone=65 
x.portraitPhone=260 y.portraitPhone=92 width.portraitPhone=210 
height.portraitPhone=65 
s:ArrayList 
fx:Object label=Type data=1/ 
fx:Object label= data=2/ 
/s:ArrayList 

/mx:ComboBox 



mx:ComboBox id=ddlUnits x=10 y=32 width=255 height=54 
change=//changepitch() 
fontFamily=Georgia fontSize=30 selectedIndex=1 
x.landscapePhone=204 y.landscapePhone=10 width.landscapePhone=153 
height.landscapePhone=65 
x.portraitPhone=10 y.portraitPhone=92 width.portraitPhone=210 
height.portraitPhone=65 
s:ArrayList 
fx:Object label=SI/Metric data=1/ 
fx:Object label=Imperial data=2/ 
/s:ArrayList 
/mx:ComboBox 

- 


I have read every post i could find on this and nothing seems to apply. I can 
see all the components in design view just fine. 

These kind of things shake my confidence in Adobe. 

Anybody have a clue? 

Thanks 

Rich 








-- 
Alex Harui 
Flex SDK Team 
Adobe Systems, Inc. 
http://blogs.adobe.com/aharui 


 


Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox that is defined in XML

2012-04-03 Thread Richard Albrecht
Hi, 

I tried using the spark combobox but it didn't look as good as the mx one. 

Don't know how all the skinning stuff works yet. I will put back the spark and 
see if I can make it look decent somehow. 

Thanks 


Rich 

- Original Message -

From: Alex Harui aha...@adobe.com 
To: flexcoders@yahoogroups.com 
Sent: Monday, April 2, 2012 11:32:39 PM 
Subject: Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox 
that is defined in XML 





Mx components are not made available to mobile projects by default. You can add 
mx.swc to your project if you want, but you should try to use all Spark stuff. 


On 4/2/12 6:04 PM, hawkcode2  r...@ralbrecht.net  wrote: 








Hi, 

I am pulling my hair out. 

I have FB 4.6 and am doing a mobile project. Only using FB not using anything 
else. 



I have Several Comboboxes Defined in XML and am accessing 2 different ones 
here: 

private function test():void 
{ 

dgType.x=10; 
ddlUnits.x=10; 
} 

Next to the ddlUnits is an Orange Circle with Question Mark. (Access to 
undefined property ddlUnits) 

Yet as you see below it is defined in the xml: 


mx:ComboBox id=dgType x=12 y=203 width=255 height=41 
change=//mpitchspec() 
click=dgResults.dataProvider = null selectedIndex=0 
x.landscapePhone=530 y.landscapePhone=10 width.landscapePhone=153 
height.landscapePhone=65 
x.portraitPhone=260 y.portraitPhone=92 width.portraitPhone=210 
height.portraitPhone=65 
s:ArrayList 
fx:Object label=Type data=1/ 
fx:Object label= data=2/ 
/s:ArrayList 

/mx:ComboBox 



mx:ComboBox id=ddlUnits x=10 y=32 width=255 height=54 
change=//changepitch() 
fontFamily=Georgia fontSize=30 selectedIndex=1 
x.landscapePhone=204 y.landscapePhone=10 width.landscapePhone=153 
height.landscapePhone=65 
x.portraitPhone=10 y.portraitPhone=92 width.portraitPhone=210 
height.portraitPhone=65 
s:ArrayList 
fx:Object label=SI/Metric data=1/ 
fx:Object label=Imperial data=2/ 
/s:ArrayList 
/mx:ComboBox 

- 


I have read every post i could find on this and nothing seems to apply. I can 
see all the components in design view just fine. 

These kind of things shake my confidence in Adobe. 

Anybody have a clue? 

Thanks 

Rich 








-- 
Alex Harui 
Flex SDK Team 
Adobe Systems, Inc. 
http://blogs.adobe.com/aharui 


 


Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox that is defined in XML

2012-04-02 Thread Alex Harui
Mx components are not made available to mobile projects by default.  You can 
add mx.swc to your project if you want, but you should try to use all Spark 
stuff.


On 4/2/12 6:04 PM, hawkcode2 r...@ralbrecht.net wrote:






Hi,

I am pulling my hair out.

I have FB 4.6 and am doing a mobile project. Only using FB not using anything 
else.



I have Several Comboboxes Defined in XML and am accessing 2 different ones here:

 private function test():void
 {

 dgType.x=10;
 ddlUnits.x=10;
 }

Next to the ddlUnits is an Orange Circle with Question Mark. (Access to 
undefined property ddlUnits)

Yet as you see below it is defined in the xml:


 mx:ComboBox id=dgType x=12 y=203 width=255 height=41 
change=//mpitchspec()
 click=dgResults.dataProvider = null selectedIndex=0
 x.landscapePhone=530 y.landscapePhone=10 width.landscapePhone=153
 height.landscapePhone=65
 x.portraitPhone=260 y.portraitPhone=92 width.portraitPhone=210
 height.portraitPhone=65
 s:ArrayList
 fx:Object label=Type data=1/
 fx:Object label= data=2/
 /s:ArrayList

 /mx:ComboBox



 mx:ComboBox id=ddlUnits x=10 y=32 width=255 height=54 
change=//changepitch()
 fontFamily=Georgia fontSize=30 selectedIndex=1
 x.landscapePhone=204 y.landscapePhone=10 width.landscapePhone=153
 height.landscapePhone=65
 x.portraitPhone=10 y.portraitPhone=92 width.portraitPhone=210
 height.portraitPhone=65
 s:ArrayList
 fx:Object label=SI/Metric data=1/
 fx:Object label=Imperial data=2/
 /s:ArrayList
 /mx:ComboBox

-


I have read every post i could find on this and nothing seems to apply. I can 
see  all the components in design view just fine.

These kind of things shake my confidence in Adobe.

Anybody have a clue?

Thanks

Rich






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Reduce time to load httpservice result

2012-04-01 Thread Alex Harui
What are the columns?


On 3/30/12 12:32 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:






   See below how xml look like:

 MyDB
 p id=3557 np=DURAND Roland pr=JF d1= /  dn=06/12/00 tel=06 26 14 
14 34 st=1#xE8;re consult. - 02/05/11/p id=861 np=DUPONF Paco pr=JF 
d1= /  dn=01/07/88 tel=01 23 33 33 45 st=Archiv#xE9; - 15/06/04/
 p id=3549 np=ATAL Sophie pr=JF d1= /  dn=27/02/78 tel=06 65 40 00 
28 melle st=1#xE8;re consult. - 26/01/11/
 p id=3453 np=ATAL Caroline pr=JF d1=385 /  dn=27/09/95 tel=01 49 
81 23 43 st=Traitement - 26/05/11/
 /MyDB

 Sort may be apply on click to datagrid header.

 Thanks

 Le 30/03/12 18:17, Alex Harui a écrit :



 A custom collection can help.  What does a record look like, and how many 
columns are displayed?  Is a sort applied right away or is it optional?


 On 3/29/12 11:14 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:








All record are on datagrid.
  All recordset must be sorting.

  I use sdk 4.6.

  Thanks for helping.

  Le 30/03/12 06:49, James Ong a écrit :




 So the whole 60k records or partial records must be visible on the page? You 
have not mention which flex sdk version you are using.

 On Mar 29, 2012 11:20 PM, isa_loyer isa_lo...@yahoo.fr wrote:








 Hi,

  I do a query to mysql database with httpservice.
  The result contains arround 6 records.
  Time to create xml file is arround 40s, to slow for my customer.

  I try to accelerate the process with different methods, on server side, to 
generate file
  DOMDocument
  XmlWriter
  SimpleXMLElement

  As customer must be able to sort datagrid, I can not use pagging.

  So do you have an idea to load datagrid more speedly.

  Thanks



















 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui








--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Reduce time to load httpservice result

2012-04-01 Thread Isabelle Loyer Perso













Re: [flexcoders] Reduce time to load httpservice result

2012-04-01 Thread Alex Harui
So you are using all attributes in a node?

Are you sure the bottleneck is on the server side?   Are you handling the data 
on the client as XML or as value objects?  Often, the conversion to value 
objects takes the most time.  I have created custom collections in the past 
that lazily convert XML to a value object so only the visible rows get 
converted instead of all 60K rows, and other custom collections that lazily 
convert attributes when there are 100’s of attributes or child nodes and only a 
few are used as columns.  That doesn’t appear to be the case.

You can still use a custom collection and paging.  You could write a custom 
collection that uses a timer to fetch more and more rows from the server.  It 
would grab as large a chunk as it can that has acceptable performance, then 
when it arrives it requests the next chunk until all records are down.  Yes, if 
the user quickly tries a sort he will have to wait, but probably not a whole 
lot longer than waiting for the initial 60K rows anyway.

Also, I believe there are some examples out there of using paging and 
server-side sorting in a DataGrid.  The thing to consider is the total amount 
of data being transferred and what percentage of it a user typically uses.  If 
it is small, server-side sorting might be better.


On 4/1/12 12:59 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:






   Colums are:
 id, pr, np, d1, dn, tel, st.

 So all colums on xml files are displayed.

 Thanks for helping

 Le 01/04/12 09:07, Alex Harui a écrit :



 What are the columns?


 On 3/30/12 12:32 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:








See below how xml look like:

  MyDB
  p id=3557 np=DURAND Roland pr=JF d1= /  dn=06/12/00 tel=06 26 14 
14 34 st=1#xE8;re consult. - 02/05/11/p id=861 np=DUPONF Paco pr=JF 
d1= /  dn=01/07/88 tel=01 23 33 33 45 st=Archiv#xE9; - 15/06/04/
  p id=3549 np=ATAL Sophie pr=JF d1= /  dn=27/02/78 tel=06 65 40 00 
28 melle st=1#xE8;re consult. - 26/01/11/
  p id=3453 np=ATAL Caroline pr=JF d1=385 /  dn=27/09/95 tel=01 49 
81 23 43 st=Traitement - 26/05/11/
  /MyDB

  Sort may be apply on click to datagrid header.

  Thanks

  Le 30/03/12 18:17, Alex Harui a écrit :




  A custom collection can help.  What does a record look like, and how many 
columns are displayed?  Is a sort applied right away or is it optional?


  On 3/29/12 11:14 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:









 All record are on datagrid.
   All recordset must be sorting.

   I use sdk 4.6.

   Thanks for helping.

   Le 30/03/12 06:49, James Ong a écrit :





  So the whole 60k records or partial records must be visible on the page? You 
have not mention which flex sdk version you are using.

  On Mar 29, 2012 11:20 PM, isa_loyer isa_lo...@yahoo.fr wrote:









  Hi,

   I do a query to mysql database with httpservice.
   The result contains arround 6 records.
   Time to create xml file is arround 40s, to slow for my customer.

   I try to accelerate the process with different methods, on server side, to 
generate file
   DOMDocument
   XmlWriter
   SimpleXMLElement

   As customer must be able to sort datagrid, I can not use pagging.

   So do you have an idea to load datagrid more speedly.

   Thanks






















  --
  Alex Harui
  Flex SDK Team
  Adobe Systems, Inc.
  http://blogs.adobe.com/aharui










 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui








--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Reduce time to load httpservice result

2012-03-30 Thread Isabelle Loyer Perso













Re: [flexcoders] Why doesn't this work?

2012-03-30 Thread Richard Albrecht
Told you I was a Newbee. Had it in an event handler that never was called. 

- Original Message -

From: hawkcode2 r...@ralbrecht.net 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 29, 2012 10:18:12 AM 
Subject: [flexcoders] Why doesn't this work? 





Hi, 

I was curious about what the actual DPI was on the phones I'm testing my app 
on. So I created a label and in the creationComplete I have 1 line: 

dpi.text = String(Capabilities.screenDPI); 

Nothing is entered into the label? How can I get this info. 

Thanks 

Rich 


 


Re: [flexcoders] Store HTML Files in Device

2012-03-30 Thread Margo Powell

Hi Rich,
From one noob to another, check out this link on storing files locally:
http://www.cultcreative.com/tutorials/11/13/2011/local-file-access-editing-for-android-and-ios/

I referenced this tutorial to aid me in copying the files to a storage 
directory on a device. Hope this is what you are looking for.


Then to load files in the stagewebview component, this is a simple 
example of how to do local vs remote links:

http://flexcapacitor.googlecode.com/svn/trunk/examples/webview/src/views/URLView.mxml

Regards
Margo



On 3/29/2012 11:03 AM, Richard Albrecht wrote:

Hi,

Surely someone knows the answer to this.

Help a noob:)

Rich

*From: *Richard Albrecht r...@ralbrecht.net
*To: *flexcoders@yahoogroups.com
*Sent: *Tuesday, March 20, 2012 12:39:40 PM
*Subject: *[flexcoders] Store HTML Files in Device

Hi,

Have an engineering app that displays a lot of information in html 
files in the native browser.


I want to store the files in the app so if they don't have internet 
access they can still get to them.


I can display on in the rectangle web view or what ever it's called, 
but then the user can't zoom etc, very limiting.


So I decided to use the internal browser, works fine if the files on 
the web, but I can't figure out what the correct path would be to send 
to the browser,


There must be a way to do this??

Thanks

Rich





--
Margo Powell
Applications Analyst/MS Computer Science
Nutrition in Medicine Project
Nutrition Education for Practicing Physicians Initiative
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu
www.nutritioninmedicine.org

attachment: mmpowell.vcf

Re: [flexcoders] Store HTML Files in Device

2012-03-30 Thread Margo Powell

Rich quick followup,

This link:
http://flexcapacitor.googlecode.com/svn/trunk/examples/webview/src/views/URLView.mxml

really shows how you could read the file on an apple device. Android 
devices can not access the appDirectory files because they are 
apparently still zipped inside the .apk file. I used the following to 
access files copied into the appStorageDirectory on an android device:


var androidUrl:String = file:// + 
File.applicationStorageDirectory.resolvePath(filePath).nativePath;


This was what I used on stageWebView component. Hopefully it will work 
directly in internal browser. Have not tried that approach yet.


Regards


On 3/30/2012 8:41 AM, Margo Powell wrote:


Hi Rich,
From one noob to another, check out this link on storing files locally:
http://www.cultcreative.com/tutorials/11/13/2011/local-file-access-editing-for-android-and-ios/

I referenced this tutorial to aid me in copying the files to a storage 
directory on a device. Hope this is what you are looking for.


Then to load files in the stagewebview component, this is a simple 
example of how to do local vs remote links:

http://flexcapacitor.googlecode.com/svn/trunk/examples/webview/src/views/URLView.mxml

Regards
Margo



On 3/29/2012 11:03 AM, Richard Albrecht wrote:


Hi,

Surely someone knows the answer to this.

Help a noob:)

Rich

*From: *Richard Albrecht r...@ralbrecht.net
*To: *flexcoders@yahoogroups.com
*Sent: *Tuesday, March 20, 2012 12:39:40 PM
*Subject: *[flexcoders] Store HTML Files in Device

Hi,

Have an engineering app that displays a lot of information in html 
files in the native browser.


I want to store the files in the app so if they don't have internet 
access they can still get to them.


I can display on in the rectangle web view or what ever it's called, 
but then the user can't zoom etc, very limiting.


So I decided to use the internal browser, works fine if the files on 
the web, but I can't figure out what the correct path would be to 
send to the browser,


There must be a way to do this??

Thanks

Rich




--
Margo Powell
Applications Analyst/MS Computer Science
Nutrition in Medicine Project
Nutrition Education for Practicing Physicians Initiative
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu
www.nutritioninmedicine.org



--
Margo Powell
Applications Analyst/MS Computer Science
Nutrition in Medicine Project
Nutrition Education for Practicing Physicians Initiative
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu
www.nutritioninmedicine.org

attachment: mmpowell.vcf

Re: [flexcoders] Reduce time to load httpservice result

2012-03-30 Thread Alex Harui
A custom collection can help.  What does a record look like, and how many 
columns are displayed?  Is a sort applied right away or is it optional?


On 3/29/12 11:14 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote:






   All record are on datagrid.
 All recordset must be sorting.

 I use sdk 4.6.

 Thanks for helping.

 Le 30/03/12 06:49, James Ong a écrit :



So the whole 60k records or partial records must be visible on the page? You 
have not mention which flex sdk version you are using.

On Mar 29, 2012 11:20 PM, isa_loyer isa_lo...@yahoo.fr wrote:







Hi,

 I do a query to mysql database with httpservice.
 The result contains arround 6 records.
 Time to create xml file is arround 40s, to slow for my customer.

 I try to accelerate the process with different methods, on server side, to 
generate file
 DOMDocument
 XmlWriter
 SimpleXMLElement

 As customer must be able to sort datagrid, I can not use pagging.

 So do you have an idea to load datagrid more speedly.

 Thanks
















--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Reduce time to load httpservice result

2012-03-30 Thread Isabelle Loyer Perso













Re: [flexcoders] Debug Woes - Redux

2012-03-29 Thread Paul Andrews

On 28/03/2012 19:20, Davidson, Jerry wrote:



Ive got old eyes (along with the rest of me).  How are they different?


My bad - sort of.

*if*(adjInc  0) /// for negatives/

  adjInc = 0;

I've pasted the above in from your earlier post and the adjInc text is 
identical.


When I look at the original post in my email client the two variables 
look different - the I looks like l.


Looking back and trying to edit the post I see that the *if*(adjInc is 
in a different font to adjInc = 0; (just as they look now as I type 
this line!), so I thought the names were different. Bizarre.


So, you're right they are the same but they look different in my mail 
reader.


Paul


*From:*flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
*On Behalf Of *Paul Andrews

*Sent:* Wednesday, March 28, 2012 11:36 AM
*To:* flexcoders@yahoogroups.com
*Cc:* John McCormack
*Subject:* Re: [flexcoders] Debug Woes - Redux

adjInc and adjInc

are different variables.


On 28/03/2012 17:03, John McCormack wrote:

Just wondering...
If you copy the variable's value to the variable 'temp' and test
that, what do you see?
John

On 27/03/2012 21:34, Davidson, Jerry wrote:

It's happening again.  This never happened when I was using Flex 3.5.

Make a change in the code.  Do a Project | Clean.  Make sure the
debugging session is over.  Do a File |Refresh.

Start a debugging session and watch it go past a line:

*if*(adjInc  0) /// for negatives/

  adjInc = 0;

Watch both lines (value at his point in this test is -43)
execute.  After the assignment watch the value not change to zero,
but stay at -43.

Repeat above steps 2-3 times with no difference.  Shut down Flash
Builder and start it again and repeat.  No change.

I've only got a little hair left and don't think I can pull any
more out.

1)How can I force Flex to recognize code?

2)How can I force Flex (Flash Builder 4) to execute -- as in
making an assignment -- the code?

Jerry Davidson








Re: [flexcoders] external debugger

2012-03-29 Thread dorkie dork from dorktown
Not that I know of (if you declared it MXML). You could set enabled to
false in the release version but probably the best option is to use
conditional compilation,
http://stackoverflow.com/questions/2736411/flash-flex-conditional-compilation-else


On Mon, Mar 26, 2012 at 4:45 AM, Wouter Schreuders wschreud...@gmail.comwrote:

 **


 Is there any way to exlude this code being compiled into the release
 version?


 On 26 March 2012 11:20, Wouter Schreuders wschreud...@gmail.com wrote:

 great! thanks this is a super handy class


 On 23 March 2012 16:50, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:

 **


 You can use MiniInspector to get that type of information.

 http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as


 On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders wschreud...@gmail.com
  wrote:

 **


 well the kind of functionality I'm looking for is really for the back
 end programmers, occasionally they need to dip into the flex side of things
 and they have a lot of difficulty figuring out which class they need to
 work on(for instance you have your application, then a module, then a
 component which contains an itemrenderer which contains another
 itemrenderer and on of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the
 time as it is way faster than the GUI debugger in FlashBuilder for most
 problems I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect
 and changed properties at runtime? Something like Flex-Spy or x-ray(for
 as2), but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui





  



Re: [flexcoders] Debug Woes - Redux

2012-03-29 Thread dorkie dork from dorktown
It sounds like the SWF is cached. You'll need to find out if it is.

I suggest you add a build number to your project that you can check if the
swf is cached. There are ANT scripts online that increment a build number
automatically before each build. If you can't find it online I can post an
example when I get a chance.

If it's a cached SWF then there are a few things you can do for your future
development. BTW You don't need restart your browser or Flash Builder. That
wouldn't help anyway.

Use Firefox (not your normal browser) as your browser in Flash Builder for
this test and debug the project. Check if the SWF is cached (using the
build number or changing a background color or something). If it is then go
to Tools  Clear Recent History and make sure the cache option is checked
and time range is set to everything. Remember, Firefox will start caching
the swf after an hour automatically and if that happens you need to clear
the cache again. If the browser's not caching it but it's still cached then
it sounds like it's something up the line IE your server etc.

BTW Personally, I don't like when if statements don't use brackets. For
kicks add brackets to your statement:

if (something  0) {
something = 0; // put the break point here
}

If you see that you are setting the value but it doesn't stick then it may
be a rare case that has to do with double bindings and temp variables. It's
something along the lines of you assign a bindable variable to a temporary
variable and then when you try to assign a value to that temporary variable
it isn't assigned the value (or something like that). The way to get passed
this is to set the actual variable not the temp variable. In my case I had
to do something like this:

this.something = 0;
or
document['something'] = 0;

instead of

something = 0;



On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews p...@ipauland.com wrote:

 **


 On 28/03/2012 19:20, Davidson, Jerry wrote:

  I”ve got old eyes (along with the rest of me).  How are they different?

 My bad - sort of.


 *if* (adjInc  0)   *//
 for negatives*
   adjInc = 0;

 I've pasted the above in from your earlier post and the adjInc text is
 identical.

 When I look at the original post in my email client the two variables look
 different - the I looks like l.

 Looking back and trying to edit the post I see that the  *if* (adjInc
 is in a different font to adjInc = 0; (just as they look now as I type
 this line!), so I thought the names were different. Bizarre.

 So, you're right they are the same but they look different in my mail
 reader.

 Paul

  

 ** **

 *From:* flexcoders@yahoogroups.com 
 [mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com]
 *On Behalf Of *Paul Andrews
 *Sent:* Wednesday, March 28, 2012 11:36 AM
 *To:* flexcoders@yahoogroups.com
 *Cc:* John McCormack
 *Subject:* Re: [flexcoders] Debug Woes - Redux

 ** **

   

 adjInc and adjInc

 are different variables.


 On 28/03/2012 17:03, John McCormack wrote: 

 Just wondering...
 If you copy the variable's value to the variable 'temp' and test that,
 what do you see?
 John

 On 27/03/2012 21:34, Davidson, Jerry wrote: 

 It’s happening again.  This never happened when I was using Flex 3.5.

  

 Make a change in the code.  Do a Project | Clean.  Make sure the debugging
 session is over.  Do a File |Refresh.

  

 Start a debugging session and watch it go past a line:

 *if* (adjInc  0)   *//
 for negatives*

   adjInc = 0;

 Watch both lines (value at his point in this test is -43) execute.  After
 the assignment watch the value not change to zero, but stay at -43.

  

 Repeat above steps 2-3 times with no difference.  Shut down Flash Builder
 and start it again and repeat.  No change.

  

 I’ve only got a little hair left and don’t think I can pull any more out.*
 ***

  

 1)  How can I force Flex to recognize code?

 2)  How can I force Flex (Flash Builder 4) to execute – as in making
 an assignment – the code?

  

  

 Jerry Davidson

 ** **

 ** **

 


  



Re: [flexcoders] Store HTML Files in Device

2012-03-29 Thread Richard Albrecht
Hi, 

Surely someone knows the answer to this. 

Help a noob:) 

Rich 
- Original Message -

From: Richard Albrecht r...@ralbrecht.net 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, March 20, 2012 12:39:40 PM 
Subject: [flexcoders] Store HTML Files in Device 





Hi, 

Have an engineering app that displays a lot of information in html files in the 
native browser. 

I want to store the files in the app so if they don't have internet access they 
can still get to them. 

I can display on in the rectangle web view or what ever it's called, but then 
the user can't zoom etc, very limiting. 

So I decided to use the internal browser, works fine if the files on the web, 
but I can't figure out what the correct path would be to send to the browser, 

There must be a way to do this?? 

Thanks 

Rich 


 


RE: [flexcoders] Debug Woes - Redux

2012-03-29 Thread Davidson, Jerry
Thanks for the info.   I didn't know FF will automatically cache after a
period of time.

 

I use to use the 

If (x) {

}

pretty print from my days as a PL/1 programmer.  Lately, I've change
it to

If (x)

{

Do stuff

}

format.  I went the first way for about 20 years and the current way for
about 15 years so I'll probably change it again in another 5 years.  I
know the problem, I just can't make up my mind. g

 

But I will check that caching before I work on it again.  I'm trying to
convince the user to let me build it as a smart phone (AIR) app and more
immediately I want to eliminate the goofy dots from an unordered list,
but that is in a different thread.

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of dorkie dork from dorktown
Sent: Thursday, March 29, 2012 10:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Debug Woes - Redux

 

  

It sounds like the SWF is cached. You'll need to find out if it is. 

I suggest you add a build number to your project that you can check if
the swf is cached. There are ANT scripts online that increment a build
number automatically before each build. If you can't find it online I
can post an example when I get a chance. 

If it's a cached SWF then there are a few things you can do for your
future development. BTW You don't need restart your browser or Flash
Builder. That wouldn't help anyway. 

Use Firefox (not your normal browser) as your browser in Flash Builder
for this test and debug the project. Check if the SWF is cached (using
the build number or changing a background color or something). If it is
then go to Tools  Clear Recent History and make sure the cache option
is checked and time range is set to everything. Remember, Firefox will
start caching the swf after an hour automatically and if that happens
you need to clear the cache again. If the browser's not caching it but
it's still cached then it sounds like it's something up the line IE your
server etc. 

BTW Personally, I don't like when if statements don't use brackets. For
kicks add brackets to your statement:

if (something  0) {
something = 0; // put the break point here
}

If you see that you are setting the value but it doesn't stick then it
may be a rare case that has to do with double bindings and temp
variables. It's something along the lines of you assign a bindable
variable to a temporary variable and then when you try to assign a value
to that temporary variable it isn't assigned the value (or something
like that). The way to get passed this is to set the actual variable not
the temp variable. In my case I had to do something like this:

this.something = 0; 
or 
document['something'] = 0;

instead of 

something = 0;




On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews p...@ipauland.com wrote:

  

On 28/03/2012 19:20, Davidson, Jerry wrote: 

Ive got old eyes (along with the rest of me).  How are they different?

My bad - sort of.

 

if (adjInc  0)   // for
negatives

  adjInc = 0;

I've pasted the above in from your earlier post and the adjInc text is
identical.

When I look at the original post in my email client the two variables
look different - the I looks like l.

Looking back and trying to edit the post I see that the  if (adjInc is
in a different font to adjInc = 0; (just as they look now as I type
this line!), so I thought the names were different. Bizarre.

So, you're right they are the same but they look different in my mail
reader.

Paul

 

From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews
Sent: Wednesday, March 28, 2012 11:36 AM
To: flexcoders@yahoogroups.com
Cc: John McCormack
Subject: Re: [flexcoders] Debug Woes - Redux

 

  

adjInc and adjInc 

are different variables.


On 28/03/2012 17:03, John McCormack wrote: 

Just wondering...
If you copy the variable's value to the variable 'temp'
and test that, what do you see?
John

On 27/03/2012 21:34, Davidson, Jerry wrote: 

It's happening again.  This never happened when I was
using Flex 3.5.

 

Make a change in the code.  Do a Project | Clean.  Make
sure the debugging session is over.  Do a File |Refresh.

 

Start a debugging session and watch it go past a line:

if (adjInc  0)
// for negatives

  adjInc = 0;

Watch both lines (value at his point in this test is
-43) execute.  After the assignment watch the value not change to zero,
but stay at -43.

 

Repeat above steps 2-3 times with no difference.  Shut
down Flash Builder

Re: [flexcoders] Reduce time to load httpservice result

2012-03-29 Thread James Ong
So the whole 60k records or partial records must be visible on the page?
You have not mention which flex sdk version you are using.
On Mar 29, 2012 11:20 PM, isa_loyer isa_lo...@yahoo.fr wrote:

 **


 Hi,

 I do a query to mysql database with httpservice.
 The result contains arround 6 records.
 Time to create xml file is arround 40s, to slow for my customer.

 I try to accelerate the process with different methods, on server side, to
 generate file
 DOMDocument
 XmlWriter
 SimpleXMLElement

 As customer must be able to sort datagrid, I can not use pagging.

 So do you have an idea to load datagrid more speedly.

 Thanks

  



Re: [flexcoders] Porting an AIR app to iOS

2012-03-28 Thread Grant Davies
2  3 should work fine, 1 will work with minor modifications to make sure it's
Optimized for mobile tablet.  I don't remover off the top of my head if there 
is a embedded browser for tablet in air of if you have tainch a headless safari.

Cheers,
Grant

Sent from my iPhone, excuse typos.

On Mar 28, 2012, at 2:21 AM, Kevin MacDonald 
kevinmacdon...@gmail.commailto:kevinmacdon...@gmail.com wrote:



I have a complex AIR app that is currently deployed to Windows and Mac. I would 
love to port it to the iPad, and I am beginning to explore this possibility. 
Before I launch it it however, there are a few basics questions that come up. 
Some of these might be showstoppers depending on the answer, and getting some 
answers might save me weeks of experimentation. If anyone can offer feedback I 
would be grateful. Here goes:


 *   My AIR app makes extensive use of an embedded web browser, via the 
flash.html.HTMLLoader object. Can I expect this to work when compiled for iOS?
 *   My AIR app makes extensive use of a SQL Lite database via the flash.data 
namespace. Can I expect this to work on iOS?
 *   How about RESTful web service calls using the flash.nethttp://flash.net 
namespace and JSON?

Thanks for any help you are able to provide.

Kevin




Re: [flexcoders] Porting an AIR app to iOS

2012-03-28 Thread Margo Powell
Item 1 htmlLoader is not supported on mobile but there is a StageWebView 
component.  check out this blog post :

http://www.judahfrangipane.com/blog/2011/01/16/stagewebview-uicomponent/

Regards
Margo


On 3/28/2012 6:38 AM, Grant Davies wrote:
2  3 should work fine, 1 will work with minor modifications to make 
sure it's
Optimized for mobile tablet.  I don't remover off the top of my head 
if there is a embedded browser for tablet in air of if you have tainch 
a headless safari.


Cheers,
Grant

Sent from my iPhone, excuse typos.

On Mar 28, 2012, at 2:21 AM, Kevin MacDonald 
kevinmacdon...@gmail.com mailto:kevinmacdon...@gmail.com wrote:


I have a complex AIR app that is currently deployed to Windows and 
Mac. I would love to port it to the iPad, and I am beginning to 
explore this possibility. Before I launch it it however, there are a 
few basics questions that come up. Some of these might be 
showstoppers depending on the answer, and getting some answers might 
save me weeks of experimentation. If anyone can offer feedback I 
would be grateful. Here goes:



  * My AIR app makes extensive use of an embedded web browser, via
the flash.html.HTMLLoader object. Can I expect this to work when
compiled for iOS?
  * My AIR app makes extensive use of a SQL Lite database via the
flash.data namespace. Can I expect this to work on iOS?
  * How about RESTful web service calls using the flash.net
http://flash.net namespace and JSON?

Thanks for any help you are able to provide.

Kevin




--
Margo Powell
Applications Analyst/MS Computer Science
Nutrition in Medicine Project
Nutrition Education for Practicing Physicians Initiative
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu
www.nutritioninmedicine.org

attachment: mmpowell.vcf

RE: [flexcoders] Debug Woes - Redux

2012-03-28 Thread Davidson, Jerry
So I only have to close the browser every time I make a change and want
to test it?  That would be better than shutting down the IDE and the
server (Tomcat6).   Normally I work in FF (11), but I do have IE (8) and
can use that for this kind of testing.

 

It was so weird to see it step past code without landing on it or even
worse, landing on it and ignoring it.   I'll try shutting down the
browser in todays (hopefully the last day of) testing.

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, March 27, 2012 5:53 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Debug Woes - Redux

 

  

I've had this kind of problem when the browser tries to cache an old
SWF.  I have to clear the cache and restart the browser.  I sometimes
make an edit to the main screen each time I make some other edit so I
can immediately see if I've got an old SWF in the debugger.



_,_._,___



Re: [flexcoders] Debug Woes - Redux

2012-03-28 Thread mark . jonkman
Not sure if this is already covered, but you could set your web server to 
include no cache headers so all your files are automatically reloaded every 
time. This prevents the issue of getting an old file. Tomcat might be a bit 
difficult to add the headers as it only has rudimentary page serving 
capabilities as it is meant to be run behind either a standard Apache webserver 
or other webserver such as IIS that is serving up actual static pages/elements. 
I tend to use IE as my debug environment for the simple purpose that it 
launches a new window each time and when you terminate debugging it 
automatically closes that window. No effort to close window manually (unless 
you want to set location and size of window - IE remembers last position and 
size when launching). I use firefox for my general browser. Besides the active 
X version of the debug player tends to be much easier to work with then the 
plugin version which has a tendency to crash on occassion resulting in force 
closing. 


Sincerely 
Mark R. Jonkman 

http://bitsbytesandsawdust.blogspot.com 

- Original Message -
From: Jerry Davidson jerry.david...@illinois.gov 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, March 28, 2012 8:59:36 AM 
Subject: RE: [flexcoders] Debug Woes - Redux 






So I only have to close the browser every time I make a change and want to test 
it? That would be better than shutting down the IDE and the server (Tomcat6). 
Normally I work in FF (11), but I do have IE (8) and can use that for this kind 
of testing. 



It was so weird to see it step past code without landing on it or even worse, 
landing on it and ignoring it. I’ll try shutting down the browser in todays 
(hopefully the last day of) testing. 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui 
Sent: Tuesday, March 27, 2012 5:53 PM 
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Debug Woes - Redux 








I’ve had this kind of problem when the browser tries to cache an old SWF. I 
have to clear the cache and restart the browser. I sometimes make an edit to 
the main screen each time I make some other edit so I can immediately see if 
I’ve got an old SWF in the debugger. 




_,_._,___ 




Re: [flexcoders] Debug Woes - Redux

2012-03-28 Thread John McCormack

Just wondering...
If you copy the variable's value to the variable 'temp' and test that, 
what do you see?

John

On 27/03/2012 21:34, Davidson, Jerry wrote:



It's happening again.  This never happened when I was using Flex 3.5.

Make a change in the code.  Do a Project | Clean.  Make sure the 
debugging session is over.  Do a File |Refresh.


Start a debugging session and watch it go past a line:

*if*(adjInc  0) /// for negatives/

  adjInc = 0;

Watch both lines (value at his point in this test is -43) execute.  
After the assignment watch the value not change to zero, but stay at -43.


Repeat above steps 2-3 times with no difference.  Shut down Flash 
Builder and start it again and repeat.  No change.


I've only got a little hair left and don't think I can pull any more out.

1)How can I force Flex to recognize code?

2)How can I force Flex (Flash Builder 4) to execute -- as in making an 
assignment -- the code?


Jerry Davidson








Re: [flexcoders] Debug Woes - Redux

2012-03-28 Thread Paul Andrews

adjInc and adjInc

are different variables.


On 28/03/2012 17:03, John McCormack wrote:



Just wondering...
If you copy the variable's value to the variable 'temp' and test that, 
what do you see?

John

On 27/03/2012 21:34, Davidson, Jerry wrote:


It's happening again.  This never happened when I was using Flex 3.5.

Make a change in the code.  Do a Project | Clean.  Make sure the 
debugging session is over.  Do a File |Refresh.


Start a debugging session and watch it go past a line:

*if*(adjInc  0) /// for negatives/

  adjInc = 0;

Watch both lines (value at his point in this test is -43) execute.  
After the assignment watch the value not change to zero, but stay at -43.


Repeat above steps 2-3 times with no difference.  Shut down Flash 
Builder and start it again and repeat.  No change.


I've only got a little hair left and don't think I can pull any more out.

1)How can I force Flex to recognize code?

2)How can I force Flex (Flash Builder 4) to execute -- as in making 
an assignment -- the code?


Jerry Davidson










Re: [flexcoders] scaling images flex3 vs flex4 problem - help?

2012-03-28 Thread grimmwerks
Hmm wondering if I can use a Scale effect instead and set it via the slider...


On Mar 28, 2012, at 1:10 PM, grimmwerks wrote:

 
 
 Hey all - I have an old player that sort of does the Photoshop navigator / 
 current doc thing -- a smaller example of an image is shown with a larger 
 image, and when the larger image scales UP there's a box that scales down on 
 the navigator image that shows you what part of the zoom you're in.
 
 I had this working in F3 with mx components and basically having a slider 
 scale a matrix.transform, the navigator getting the inverse of the transform; 
 it was working great.   I've since dropped the mx:Canvas scale I was doing 
 for a spark Group (thinking it's going to migrate to an iPad app in the 
 future) -- and now images aren't scaling correctly.  Originally if an image 
 was loaded in that wasn't the exact height/width, the image would be 
 letterboxed with the largest direction being pinned to the sides.  When I 
 letterbox the image and try to scale the group holding it in the spark 
 version it doesn't work properly.  When the scaling works , the image isn't 
 letterboxed and so the navigator and zoomed in image don't appear the same.
 
 
 Here's the Flex 3 version (partial):
 
 mx:Canvas width=100% height=100% id=bigBox
   mx:Canvas id=big width=100% height=100% 
   mx:Image x=0 y=0 id=bigImage width=100% 
 height=100%  scaleContent=true horizontalAlign=center /
   /mx:Canvas
   
   mx:Button right=10 bottom=19 styleName=creativityLogo/
   /mx:Canvas
 
 and the function for it:
 
 public function zoomChange(e:SliderEvent):void {
   currentScale = 
 Number(Number(e.value).toFixed(2));
   var scaleBig:Matrix = new Matrix();
   scaleBig.scale(e.value, e.value);
 var scaleSmall:Matrix = scaleBig.clone();
   scaleSmall.invert();
   
   big.transform.matrix = scaleBig;
   box.transform.matrix = scaleSmall;
   borderBox.transform.matrix= 
 box.transform.matrix.clone();
   if(e.value1){box.mouseEnabled; 
 box.buttonMode=true};
   }
 
 
 
 and for the Flex 4.6 version:
 
 s:SkinnableContainer width=100% height=100%
   s:Group id=imgLargeGroup width=100% height=100%
left=0 top=0 right=0 bottom=0  
 resizeMode=scale  
   s:Image id=imgLarge width=100% height=100% 
 scaleMode=letterbox
smoothingQuality=high
horizontalCenter=0 verticalCenter=0
verticalAlign=middle
top=0 left=0 right=0 bottom=0 /
   /s:Group
   /s:SkinnableContainer
 
 
 and the function for it:
 
 public function reactToZoomSlider$Change(ev:Event):void{
   var sliderVal:Number = view.zoomSlider.value;
   maskOutline.visible = (sliderVal  1);
   currentScale = Number(Number(sliderVal).toFixed(2));
   var scaleBig:Matrix = new Matrix();
   scaleBig.scale(sliderVal, sliderVal);
   var scaleSmall:Matrix = scaleBig.clone();
   scaleSmall.invert();
   
   //large.content.matrix = scaleBig;
   //large.transform.matrix = scaleBig;
   view.imgLargeGroup.transform.matrix = scaleBig;
   trace(view.imgLargeGroup.transform.matrix);
   mask.transform.matrix = maskOutline.transform.matrix = 
 scaleSmall;
   //large.scaleX = view.zoomSlider.value; large.scaleY = 
 view.zoomSlider.value;
   }
 
 
 
 
 Garry Schafer
 grimmwerks
 gr...@grimmwerks.com
 portfolio: www.grimmwerks.com/
 
 
 
 
 
 
 
 

Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/







Re: [flexcoders] SQL lite database and Tablet problem

2012-03-28 Thread Khanh Tran
Hi Mark,

I think the problem comes from your path.
When using documentsDirectory, Flex will find the testDb.db in default folder: 
C:\Documents and Settings\userName\My Documents
(please read this article: 
http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_03.html)
It will fail if no folder like this be found in your Samsung Galaxy
In my opinion, you should try with static link first: For example,
var file:File = new File(C:/YOURFOLDER/testDb.db);

Good luck Mark

Yours sincerely,
Khanh Tran


--- On Wed, 3/28/12, markflex2007 markflex2...@yahoo.com wrote:

From: markflex2007 markflex2...@yahoo.com
Subject: [flexcoders] SQL lite database and Tablet problem
To: flexcoders@yahoogroups.com
Date: Wednesday, March 28, 2012, 12:23 PM
















 



  



  
  
  Hi friends



I developed a Air mobile application with flex sdk 4.6.0. I test it in Flash 
Builder 4.6 simulators in windows.it works fine.



but when I install the apk and test it in Samsung Galaxy Tab 10.1 , the sqllite 
functions seems do not work



I save the sqllite database in the following path. I guess the tablet maybe do 
not allow me to use path.



var file:File = File.documentsDirectory.resolvePath(testDb.db);



Please help me if you have idea for this.



Thanks a lot



Mark






 









  










RE: [flexcoders] Debug Woes - Redux

2012-03-28 Thread Davidson, Jerry
Ive got old eyes (along with the rest of me).  How are they different?

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Paul Andrews
Sent: Wednesday, March 28, 2012 11:36 AM
To: flexcoders@yahoogroups.com
Cc: John McCormack
Subject: Re: [flexcoders] Debug Woes - Redux

 

  

adjInc and adjInc 

are different variables.


On 28/03/2012 17:03, John McCormack wrote: 

Just wondering...
If you copy the variable's value to the variable 'temp' and test
that, what do you see?
John

On 27/03/2012 21:34, Davidson, Jerry wrote: 

It's happening again.  This never happened when I was using Flex
3.5.

 

Make a change in the code.  Do a Project | Clean.  Make sure the
debugging session is over.  Do a File |Refresh.

 

Start a debugging session and watch it go past a line:

if (adjInc  0)
// for negatives

  adjInc = 0;

Watch both lines (value at his point in this test is -43)
execute.  After the assignment watch the value not change to zero, but
stay at -43.

 

Repeat above steps 2-3 times with no difference.  Shut down
Flash Builder and start it again and repeat.  No change.

 

I've only got a little hair left and don't think I can pull any
more out.

 

1)  How can I force Flex to recognize code?

2)  How can I force Flex (Flash Builder 4) to execute - as
in making an assignment - the code?

 

 

Jerry Davidson

 

 





RE: [flexcoders] Debug Woes - Redux

2012-03-28 Thread Davidson, Jerry
I tried replacing a variable (exempt) with a new one (exemptFlg).  When
I was in debug I would see the old and no longer existing variable name
in the Variables window, but not the new one.  I didn't get any syntax
errors, but it would just treat the variable as if it were a null
statement - that is ignore it while the cursor positioning would pass
through it.

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of John McCormack
Sent: Wednesday, March 28, 2012 11:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Debug Woes - Redux

 

  

Just wondering...
If you copy the variable's value to the variable 'temp' and test that,
what do you see?
John

On 27/03/2012 21:34, Davidson, Jerry wrote: 

It's happening again.  This never happened when I was using Flex
3.5.

 

Make a change in the code.  Do a Project | Clean.  Make sure the
debugging session is over.  Do a File |Refresh.

 

Start a debugging session and watch it go past a line:

if (adjInc  0)
// for negatives

  adjInc = 0;

Watch both lines (value at his point in this test is -43)
execute.  After the assignment watch the value not change to zero, but
stay at -43.

 

Repeat above steps 2-3 times with no difference.  Shut down
Flash Builder and start it again and repeat.  No change.

 

I've only got a little hair left and don't think I can pull any
more out.

 

1)  How can I force Flex to recognize code?

2)  How can I force Flex (Flash Builder 4) to execute - as
in making an assignment - the code?

 

 

Jerry Davidson

 





Re: [flexcoders] SQL lite database and Tablet problem

2012-03-28 Thread Jeff Gomes

Mark-

Perhaps try applicationStorageDirectory instead of documentsDirectory.

-Jeff

On 3/28/2012 09:23, markflex2007 wrote:

Hi friends

I developed a Air mobile application with flex sdk 4.6.0. I test it in Flash 
Builder 4.6 simulators in windows.it works fine.

but when I install the apk and test it in Samsung Galaxy Tab 10.1 , the sqllite 
functions seems do not work

I save the sqllite database in the following path. I guess the tablet maybe do 
not allow me to use path.

var file:File = File.documentsDirectory.resolvePath(testDb.db);

Please help me if you have idea for this.

Thanks a lot

Mark



Re: [flexcoders] Debug driving me crazy

2012-03-27 Thread John McCormack
I had something similar once, due to the fact that I thought I was 
including a certain AS3 file but was , in fact, using SWC code instead.

So perhaps your code isn't coming from the place you think it is.
John

On 27/03/2012 15:26, Davidson, Jerry wrote:



In debug mode of Flex (4.5) I have a variable that shows up in the 
variable view, but doesn't exist in the function I'm stepping 
through.  Further, one that does exist doesn't show up.


After the assignment failed (no errors):

*var*exemptFlg:Boolean = *false*;

*if*(inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the 
code.  Originally, this variable was exempt and that shows up in the 
Variables view despite it being changed to exemptFlg.  After that 
change, I cleaned the project, File | Refresh the project and closed 
Flash then reopened it.  The phantom variable still appears and the 
current one doesn't.


Help.

Jerry Davidson








RE: [flexcoders] Debug driving me crazy

2012-03-27 Thread Davidson, Jerry
After fighting this for several hours, it suddenly cleared up and the
non-existent variable didn't show up and the real one did.

 

But then the next feature struck.

This assignment seems to work...

  outData.resPotentialTopMsg =
langE.resultPassBenefitLabel;

 

looking in debug mode outData does have the proper value.  It points
to:

private var outData:ResultData = ResultData.getInstance();

 

in the component I am binding controls to 

public var getData:ResultData = ResultData.getInstance();

DHSclasses:AutoResizableTextArea 

  id=resultPotentialTopLabel 

  text={getData.resPotentialTopMsg}

  tabIndex=20

  styleName=labelStyle

  autoResize=true 

  wordWrap=true 

  width=50%

  editable=false

  textAlign=right 

  paddingRight=0 

  borderVisible=false 

  paddingTop=2/

 

The first time through this seems to work.  After that nothing appears
on the form.

 

1)  Can I change the textAlign from the script (external to this
component) and how do I do it?

2)  Can I step in debug in the form?

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debug driving me crazy

 

  

In debug mode of Flex (4.5) I have a variable that shows up in the
variable view, but doesn't exist in the function I'm stepping through.
Further, one that does exist doesn't show up.

 

After the assignment failed (no errors): 

  var exemptFlg:Boolean = false;

  if (inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the
code.  Originally, this variable was exempt and that shows up in the
Variables view despite it being changed to exemptFlg.  After that
change, I cleaned the project, File | Refresh the project and closed
Flash then reopened it.  The phantom variable still appears and the
current one doesn't.

 

Help.

 

 

Jerry Davidson





RE: [flexcoders] Debug driving me crazy

2012-03-27 Thread Davidson, Jerry
I think this problem can be filed under dumb programmer.  I found
repeating function attached to an updateComplete that would execute
every time the component was opened which is what I needed.   In there
was an early attempt to hide one of the two text areas at the top of the
code.  I removed it and it seems to be working.

 

Sorry to waste anyone's time.

 

Jerry

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 11:03 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Debug driving me crazy

 

  

After fighting this for several hours, it suddenly cleared up and the
non-existent variable didn't show up and the real one did.

 

But then the next feature struck.

This assignment seems to work...

  outData.resPotentialTopMsg =
langE.resultPassBenefitLabel;

 

looking in debug mode outData does have the proper value.  It points
to:

private var outData:ResultData = ResultData.getInstance();

 

in the component I am binding controls to 

public var getData:ResultData = ResultData.getInstance();

DHSclasses:AutoResizableTextArea 

  id=resultPotentialTopLabel 

  text={getData.resPotentialTopMsg}

  tabIndex=20

  styleName=labelStyle

  autoResize=true 

  wordWrap=true 

  width=50%

  editable=false

  textAlign=right 

  paddingRight=0 

  borderVisible=false 

  paddingTop=2/

 

The first time through this seems to work.  After that nothing appears
on the form.

 

1)  Can I change the textAlign from the script (external to this
component) and how do I do it?

2)  Can I step in debug in the form?

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debug driving me crazy

 

  

In debug mode of Flex (4.5) I have a variable that shows up in the
variable view, but doesn't exist in the function I'm stepping through.
Further, one that does exist doesn't show up.

 

After the assignment failed (no errors): 

  var exemptFlg:Boolean = false;

  if (inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the
code.  Originally, this variable was exempt and that shows up in the
Variables view despite it being changed to exemptFlg.  After that
change, I cleaned the project, File | Refresh the project and closed
Flash then reopened it.  The phantom variable still appears and the
current one doesn't.

 

Help.

 

 

Jerry Davidson





Re: [flexcoders] Debug Woes - Redux

2012-03-27 Thread Alex Harui
I’ve had this kind of problem when the browser tries to cache an old SWF.  I 
have to clear the cache and restart the browser.  I sometimes make an edit to 
the main screen each time I make some other edit so I can immediately see if 
I’ve got an old SWF in the debugger.


On 3/27/12 1:34 PM, Davidson, Jerry jerry.david...@illinois.gov wrote:






It’s happening again.  This never happened when I was using Flex 3.5.

Make a change in the code. Do a Project | Clean.  Make sure the debugging 
session is over.  Do a File |Refresh.

Start a debugging session and watch it go past a line:
   if (adjInc  0)   // for 
negatives
 adjInc = 0;
Watch both lines (value at his point in this test is -43) execute.  After the 
assignment watch the value not change to zero, but stay at -43.

Repeat above steps 2-3 times with no difference.  Shut down Flash Builder and 
start it again and repeat.  No change.

I’ve only got a little hair left and don’t think I can pull any more out.

1) How can I force Flex to recognize code?

2) How can I force Flex (Flash Builder 4) to execute – as in making an 
assignment – the code?



Jerry Davidson





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] external debugger

2012-03-26 Thread Wouter Schreuders
great! thanks this is a super handy class

On 23 March 2012 16:50, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 **


 You can use MiniInspector to get that type of information.

 http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as


 On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders 
 wschreud...@gmail.comwrote:

 **


 well the kind of functionality I'm looking for is really for the back end
 programmers, occasionally they need to dip into the flex side of things and
 they have a lot of difficulty figuring out which class they need to work
 on(for instance you have your application, then a module, then a component
 which contains an itemrenderer which contains another itemrenderer and on
 of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the
 time as it is way faster than the GUI debugger in FlashBuilder for most
 problems I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect and
 changed properties at runtime? Something like Flex-Spy or x-ray(for as2),
 but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui



  



Re: [flexcoders] external debugger

2012-03-26 Thread Wouter Schreuders
Is there any way to exlude this code being compiled into the release
version?

On 26 March 2012 11:20, Wouter Schreuders wschreud...@gmail.com wrote:

 great! thanks this is a super handy class


 On 23 March 2012 16:50, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:

 **


 You can use MiniInspector to get that type of information.

 http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as


 On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders 
 wschreud...@gmail.comwrote:

 **


 well the kind of functionality I'm looking for is really for the back
 end programmers, occasionally they need to dip into the flex side of things
 and they have a lot of difficulty figuring out which class they need to
 work on(for instance you have your application, then a module, then a
 component which contains an itemrenderer which contains another
 itemrenderer and on of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the
 time as it is way faster than the GUI debugger in FlashBuilder for most
 problems I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect and
 changed properties at runtime? Something like Flex-Spy or x-ray(for as2),
 but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui



  





Re: [flexcoders] Re: Tempermental URLLoader.load()

2012-03-26 Thread Alex Harui
Use a network monitor and see what is going on underneath.


On 3/25/12 11:49 PM, nagaofthesea nagaofthe...@yahoo.com wrote:






Howdy Alex-

Yes, everything works as expected when it does work including all the calls 
with the listeners.

In the projects it does NOT work all fails silently!!

What the heck could THAT be?

-Naga

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 Maybe you are adding listeners to the wrong thing?  Because you should get 
 those events when it does work.


 On 3/24/12 4:00 PM, nagaofthesea nagaofthesea@... wrote:






 Howdy All-

 PROBLEM:
 Strange URLLoader.load() behavior: sometimes it works; sometimes it doesn't.  
 Can't step through airglobal.swc to see what's wrong.

 DETAILS:
 I am using the latest SDK in several versions of an AIR project.  The core 
 code is identical across versions of the project.  Most changes are just in 
 the presentation of the data.

 I am a Cairngorm nut and I have extended it to suit my coding style.  I have 
 a master AbstractCommand that addresses everything including listener 
 add/remove, SQLite management, remote services, and File reading/writing.  I 
 just override certain functions as needed.

 In this project I read RSS beginning with the following:

 override public function execute(event:CairngormEvent):void
 {
  trace(LoadFeedCommand.execute() called);

  var rsso:RSSObject = LoadFeedEvent(event).feedObject;
  var urlRequest:URLRequest = new URLRequest(rsso.url);

  loader = new URLLoader();
  addListeners(loader);

  try
  {
  loader.load(urlRequest);
  trace(loader.load() called);
  }
  catch(error:Error)
  {
  trace(problem with loader.load());
  }

  tModelLocator.displayModel.selectedRSSObject = rsso;
 }

 In some of the projects URLLoader.load() works as expected.  In others with 
 IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The 
 catch clause does not throw an Error.

 I have added the following listneres in overrided .addListeners() and nothing 
 gets called!

 override public function addListeners(target:Object):void
 {
  target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
  target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, onHTTPStatus, 
 false,0, true);
  target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
  target.addEventListener(Event.OPEN, onOpen, false, 0, true);
  target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, true);
  target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError, 
 false, 0, true);
 }

 Any insight on this would be wonderful.

 Thanks,
 -Naga






 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Tempermental URLLoader.load()

2012-03-25 Thread claudiu ursica
Can you paste the whole class?
I did experience issues with Sound.load() this week , so I went and load the 
sounds via URLLoader. I found it odd at least sound load failed to provide any 
feedback sometimes. Yet wit URLLoader I always got something whether complete 
or error. 


C




 From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com 
Sent: Sunday, March 25, 2012 5:32 AM
Subject: Re: [flexcoders] Tempermental URLLoader.load()
 

  
Maybe you are adding listeners to the wrong thing?  Because you should get 
those events when it does work.


On 3/24/12 4:00 PM, nagaofthesea nagaofthe...@yahoo.com wrote:



 
 
   

Howdy All-

PROBLEM:
Strange URLLoader.load() behavior: sometimes it works; sometimes it doesn't.  
Can't step through airglobal.swc to see what's wrong.

DETAILS:
I am using the latest SDK in several versions of an AIR project.  The core 
code is identical across versions of the project.  Most changes are just in 
the presentation of the data.

I am a Cairngorm nut and I have extended it to suit my coding style.  I have a 
master AbstractCommand that addresses everything including listener 
add/remove, SQLite management, remote services, and File reading/writing.  I 
just override certain functions as needed.

In this project I read RSS beginning with the following:

override public function execute(event:CairngormEvent):void
{
 trace(LoadFeedCommand.execute() called);

 var rsso:RSSObject = LoadFeedEvent(event).feedObject;
 var urlRequest:URLRequest = new URLRequest(rsso.url);

 loader = new URLLoader();
 addListeners(loader);

 try
 {
 loader.load(urlRequest);
 trace(loader.load() called);
 }
 catch(error:Error)
 {
 trace(problem with loader.load());
 }
 
 tModelLocator.displayModel.selectedRSSObject = rsso;
}

In some of the projects URLLoader.load() works as expected.  In others with 
IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The 
catch clause does not throw an Error.

I have added the following listneres in overrided .addListeners() and nothing 
gets called!

override public function addListeners(target:Object):void
{
 target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
 target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, onHTTPStatus, 
false,0, true);
 target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
 target.addEventListener(Event.OPEN, onOpen, false, 0, true);
 target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, true);
 target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError, 
false, 0, true);
}

Any insight on this would be wonderful.

Thanks,
-Naga

 
   



-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
 
 

Re: [flexcoders] Tempermental URLLoader.load()

2012-03-24 Thread Alex Harui
Maybe you are adding listeners to the wrong thing?  Because you should get 
those events when it does work.


On 3/24/12 4:00 PM, nagaofthesea nagaofthe...@yahoo.com wrote:






Howdy All-

PROBLEM:
Strange URLLoader.load() behavior: sometimes it works; sometimes it doesn't.  
Can't step through airglobal.swc to see what's wrong.

DETAILS:
I am using the latest SDK in several versions of an AIR project.  The core code 
is identical across versions of the project.  Most changes are just in the 
presentation of the data.

I am a Cairngorm nut and I have extended it to suit my coding style.  I have a 
master AbstractCommand that addresses everything including listener 
add/remove, SQLite management, remote services, and File reading/writing.  I 
just override certain functions as needed.

In this project I read RSS beginning with the following:

override public function execute(event:CairngormEvent):void
{
 trace(LoadFeedCommand.execute() called);

 var rsso:RSSObject = LoadFeedEvent(event).feedObject;
 var urlRequest:URLRequest = new URLRequest(rsso.url);

 loader = new URLLoader();
 addListeners(loader);

 try
 {
 loader.load(urlRequest);
 trace(loader.load() called);
 }
 catch(error:Error)
 {
 trace(problem with loader.load());
 }

 tModelLocator.displayModel.selectedRSSObject = rsso;
}

In some of the projects URLLoader.load() works as expected.  In others with 
IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The catch 
clause does not throw an Error.

I have added the following listneres in overrided .addListeners() and nothing 
gets called!

override public function addListeners(target:Object):void
{
 target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
 target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, onHTTPStatus, 
false,0, true);
 target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
 target.addEventListener(Event.OPEN, onOpen, false, 0, true);
 target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, true);
 target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError, 
false, 0, true);
}

Any insight on this would be wonderful.

Thanks,
-Naga






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] external debugger

2012-03-23 Thread dorkie dork from dorktown
You can use MiniInspector to get that type of information.
http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as

On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders wschreud...@gmail.comwrote:

 **


 well the kind of functionality I'm looking for is really for the back end
 programmers, occasionally they need to dip into the flex side of things and
 they have a lot of difficulty figuring out which class they need to work
 on(for instance you have your application, then a module, then a component
 which contains an itemrenderer which contains another itemrenderer and on
 of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the time
 as it is way faster than the GUI debugger in FlashBuilder for most problems
 I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect and
 changed properties at runtime? Something like Flex-Spy or x-ray(for as2),
 but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui


  



Re: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-22 Thread Richard Albrecht
Thanks, that did work as far as zooming, but... 

When you zoom, you don't have the ability to pan and though the font gets 
bigger, the columns in the grid do not scale, so the numbers get cut off. Could 
this be because I'm using the mx.datagrid? I haven't figured out the 
s.datagrid. 


Thanks Rich 

- Original Message -

From: Grant Davies gdav...@bluetubeinteractive.com 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, March 20, 2012 9:44:16 PM 
Subject: RE: [flexcoders] Re: Bindings on visual components being forgotten? 
(Flex 3 - 4.6) 







HI Rich.. 

1) you’d have to have an event handler listen for the pinch gesture and then 
scale your grid based on how much you want it to scale/shrink 

http://paultrani.com/2011/02/touch-events-and-gestures-on-mobile/ ( look at 
pinch/zoom) 


2) you there are a few methods to handle the DPI variation, we generally target 
the primary device and set our application dpi to that ( for exampl! e I’m 
building an app for a 7” android right now and have my DPI set to 166), there 
is quite a good article here on handling DPI 

http://opensource.adobe.com/wiki/display/flexsdk/DPI+Auto+Scaling+for+Density+Independent+Mobile+Apps
 

Cheers 
Grant 



--- In flexcoders@yahoogroups.com , Richard Albrecht  Rich@...  wrote: 
 
 Hi, 
 
 First time writing to a group in many years. I'm basically a noob with Flash 
 Builder 4.5 and flex.  
 I right now have 2 questions: 
 
 1. I ha ve an engineering app that I have running in the desktop. So the next 
 step is take it mobile. Why don't the screens have the ability to zoom with a 
 pinch? I have a screen that has a large datagrid and I want to make the text 
 bigger, but then part of the grid moves off screen and you can't scroll over 
 to see the hidden data. I thought this was available in all mobile apps. 
 
 2. The question on Scaling. What is the best way. What DPI should I have it 
 set to. We also want a tablet version. Is there any good docs on the best way 
 to accomplish this. Is using states a way. This one is I'm sure fairly 
 complicated. 
 
 Thanks and I hope I get faster responses here than on Adobe's forums. 
 
 Thanks 
 
 
 Rich 
 



 


Re: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-21 Thread Alex Harui
So is this intermittent or just never works in this configuration?  Are there 
console warning about not being able to detect changes?

Can you make a 20-line test case?


On 3/20/12 7:05 PM, Uber_Nick nic...@gmail.com wrote:






Nope, no difference with one vs two-way Bindings.  I discovered this problem 
with DropDownLists that had one-way bindings and used the change event to 
update the value vo.  I may have even been using selectedIndex instead of 
selectedItem-- don't remember.

The problem persisted after I tried two-way bindings.

Funny thing about it would be that the DropDownList would say May but the 
value of the VO would still be February.  I'd then change the DropDownList to 
June and the VO would update to June.  So the pointers were all referencing 
the right objects.

Even stranger-- changing the VO again externally would not update the 
DropDownList.  Something was going on with either the binding inside the 
DropDownList or the display/render function.  I would have blamed that 
component if it weren't also happening on Input Boxes.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 If you take off the two-way binding does it work?


 On 3/18/12 7:41 PM, Uber_Nick nick14@... wrote:






 I haven't tried explicitly re-setting the value manually or with 
 BindingUtils, but that's something I'll try now!  Should still be working 
 without that.

 I have a feeling the problem is actually in the display logic of the 
 component.  Like perhaps some built-in efficiency code to ignore binding 
 updates when it's hidden.  But I'll have to deep-dive a little further to 
 verify that.  It's more likely something I'm missing or doing wrong.

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , yang chen chenyang3@ wrote:
 
  Have you tried using binding util?
 
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
   mailto:flexcoders%40yahoogroups.com
   From: nick14@
   Date: Fri, 16 Mar 2012 20:08:47 +
   Subject: [flexcoders] Bindings on visual components being forgotten?  
   (Flex 3 - 4.6)
  
   Seeing a strange, rare, issue after updating an app to 4.6.  I can't seem 
   to reproduce it in a dev environment, so I'll list out my issue and setup 
   to see if it sounds familiar to anyone.
  
   The problem:
   Visual components seem to occasionally forget the objects they're bound 
   to.  For instance, I have something like this:
  
   s:DropDownList
   id=cmbMonth
   dataProvider={model.months}
   selectedItem=@{model.selectedMonth}
   /
   s:Label text={model.selectedMonth} /
  
   When the problem occurs, the selectedMonth in the label component is 
   correct, say, February.  But the DropDownList will display a blank.  Even 
   though the DropDownList contains all the months, meaning models.months is 
   bound correctly.
  
   I tried adding:
   requireSelection=true
  
   The addition changed the behavior.  No more blanks!  But now, instead of 
   blanks, selectedMonth is showing something random like May.
  
   Background:
   App has been in production in various versions of Flex 3 for two years 
   without ever seeing this.  Upgrading to Flex 4 and swapping out some Halo 
   components with equivalent Spark ones, users, myself included, began 
   noticing this phenomenon.  I cannot seem to reproduce it in a reliable 
   fashion.  But I've gotten some feedback based on some attempted fixes 
   pushed out to users.
  
   Troubleshooting so far:
   Since it normally works, there's no super-obvious things missing, like an 
   uninitialized pointer, missing Bindable tag, accidental = assignment 
   instead of == comparison, etc.
  
   Also, we know the variable references are pointing to the correct place.  
   model.selectedMonth is showing up fine for a label just underneath the 
   dropdown.  model.months is being referenced just fine by the dropdown 
   itself.  It's just the display of model.selectedMonth in the dropdown.  
   Upon saving, the model.month property correctly propagates itself to the 
   DB, even when the dropdown is displaying the wrong value.  Switching 
   between one-way and two-way bindings don't seem to make a difference 
   either.  I noted above that I tried forcing requireSelection=true, 
   which does prevent the DropDownList from being blanked-out, but doesn't 
   force it to stay on the correct value.
  
   I thought it might be related to just the DropDownList component, but the 
   problem is also occurring on s:TextInput's text property.  Seems like 
   when it happens with the TextInput component (showing a blank value), 
   it's doing so for all the TextInput components.  I'm not so sure if it's 
   happening for all DropDownList elements, though.
  
  
   App setup:
   I have an mx:ViewStack attached to hide/show effects with two containers 
   inside (loggedOff/loggedOn), and a TabNavigator within 

Re: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-21 Thread Alex Harui
I see duplicate dataprovider entries which might confuse which selectedIndex to 
use.

They key is to make sure binding events are getting dispatched.  You might want 
to add a logging facility to track changes and events and some other properties.


On 3/21/12 8:09 AM, Uber_Nick nic...@gmail.com wrote:






It's been happening with all configurations, but intermittently.  I've had 0 
success reproducing it at will, even though myself and multiple users have come 
across it on non-dev environments.

My troubleshooting has mostly been releasing things I think *might* have an 
impact, then asking users to send screen caps if they come across the issue 
again.  It seems to be occurring regularly, although a hundred runs of the code 
below haven't shown it on my dev box.  So I can't tell if there are any console 
messages at runtime.  There are no compile-time warnings, and there weren't any 
of these issues when compiling with Flex 3 (swapping Spark components for Halo).

Below is an 80-line, 4-file example I've been trying to use to attempt to 
reproduce the problem.  I have not been successful reproducing it, but the 
structure and components used below closely resembled the full app.  Only thing 
missing is that the full app has a set of Mate controllers and a bunch of AMF 
remote calls.  Nothing those touch seem to be affected though.

Since this problem is so hard to reproduce, I don't expect a resolution here.  
Just seeing if I'm doing something glaringly wrong or if the problems sound 
familiar to other developers.

?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;
   xmlns:s=library://ns.adobe.com/flex/spark
   xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 
xmlns:local=*


fx:Declarations
local:MyModel id=model /
/fx:Declarations

mx:ViewStack selectedIndex={model.viewStackIndex}
s:NavigatorContent
showEffect=Fade
hideEffect=Fade

local:Page1 model={model} /
/s:NavigatorContent
s:NavigatorContent
showEffect=Fade
hideEffect=Fade

local:Page2 model={model}/
/s:NavigatorContent
/mx:ViewStack
/s:Application

// MyModel.as
package
{
[Bindable]
public class MyModel
{
public var viewStackIndex:Number=0;

public var one:String=one;
public var two:String=two;
public var three:String=three;
public var four:String=four;
}
}

// Page1.mxml
?xml version=1.0 encoding=utf-8?
s:Group xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx width=400 height=300 
xmlns:local=*
fx:Declarations
local:MyModel id=model /
/fx:Declarations
s:Button label=Forward x=150 y=100 click=model.viewStackIndex = 
(model.viewStackIndex == 0) ? 1 : 0;/
/s:Group

// Page2.mxml
?xml version=1.0 encoding=utf-8?
s:Group xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx width=400 height=300 
xmlns:local=*
 
fx:Script
![CDATA[
import mx.collections.ArrayList;
]]
/fx:Script

fx:Declarations
local:MyModel id=model /
/fx:Declarations
s:TextInput x=10 y=10 text={model.one} /
s:CheckBox x=250 y=10 label={model.two} selected={model.two=='two'} 
visible={model.two=='two'} /
s:Button label=Back x=150 y=100 click=model.viewStackIndex = 
(model.viewStackIndex == 0) ? 1 : 0;/
s:Label x=10 y=200 text={model.three} /
s:DropDownList x=250 y=200  selectedItem={model.four} dataProvider={new 
ArrayList(['bar', 'four', 'bar', 'bar', 'bar', 'bar'])} /
/s:Group

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 So is this intermittent or just never works in this configuration?  Are there 
 console warning about not being able to detect changes?

 Can you make a 20-line test case?


 On 3/20/12 7:05 PM, Uber_Nick nick14@... wrote:






 Nope, no difference with one vs two-way Bindings.  I discovered this problem 
 with DropDownLists that had one-way bindings and used the change event to 
 update the value vo.  I may have even been using selectedIndex instead of 
 selectedItem-- don't remember.

 The problem persisted after I tried two-way bindings.

 Funny thing about it would be that the DropDownList would say May but the 
 value of the VO would still be February.  I'd then change the DropDownList 
 to June and the VO would update to June.  So the pointers were all 
 referencing the right objects.

 Even stranger-- changing the VO again externally would not update the 
 DropDownList.  Something was going on with either the binding inside the 
 DropDownList or the display/render function.  I would have blamed that 
 component if it weren't also happening on Input Boxes.

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  If you take off the two-way binding does it work?
 
 
  On 3/18/12 7:41 PM, Uber_Nick nick14@ wrote:
 
 
 
 
 
 
  I haven't tried explicitly re-setting the value manually or with 
  BindingUtils, but 

Re: [flexcoders] Flex 4.1 scrolling problem

2012-03-21 Thread Alex Harui
I would think a SkinnableContainer’s skin can have a Scroller around its 
contentGroup


On 3/20/12 5:47 PM, bu4fred fred.se...@adventistcare.org wrote:






I'm committed to using a spark container because I need to use the spark states 
model.

I would like to create my own component that would automatically scroll as 
necessary and appropriately adjust the scrollbar on a browser window resize.  
This generic scrolling container may be included in a tabnavigator or other 
containers (that should not scroll) to get the desired layout.

It look like all I need to do is wrap the spark container in a Scroller or link 
a Scroller to the container.

My problem is that AFAIK you cannot add elements to a custom mxml component if 
you've already added a component (like a s:Group ) to the component defnition.  
I.e. I cannot use mxml to define a custome component that is an s:Group inside 
a Scroller.  So I guess the approch is to create a custom actionscript 
component.

I'm hoping somebody has already solved this problem and can point me toward a 
link or provide a snippet.

I plan to upgrade to Flex 4.5 in a few months if that's relevant.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] nested mxml components

2012-03-20 Thread Alex Harui
What is the registration point (0,0) of the preview?  Is it a bitmap or 
something else?


On 3/20/12 4:16 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote:






Hello All,

I'm trying to add a preview of a swf to my display like thus:

systemManager.topLevelSystemManager.addChildToSandboxRoot(toolTipChildren, 
_previewBox as  DisplayObject);

except that all the components move themselves halfway off of the screen - down 
and to the right.

Any ideas why this is happening?

many thanks!

--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-19 Thread yang chen

MXML binding has always been problematic and very often you'll lose the binding 
at some point. For me binding utils has been much more reliable.
Regards,Yang

 To: flexcoders@yahoogroups.com
 From: nic...@gmail.com
 Date: Mon, 19 Mar 2012 02:41:27 +
 Subject: [flexcoders] Re: Bindings on visual components being forgotten? 
 (Flex 3 - 4.6)
 
 I haven't tried explicitly re-setting the value manually or with 
 BindingUtils, but that's something I'll try now!  Should still be working 
 without that.
 
 I have a feeling the problem is actually in the display logic of the 
 component.  Like perhaps some built-in efficiency code to ignore binding 
 updates when it's hidden.  But I'll have to deep-dive a little further to 
 verify that.  It's more likely something I'm missing or doing wrong.
 
 --- In flexcoders@yahoogroups.com, yang chen chenyang3@... wrote:
 
  Have you tried using binding util?
  
   To: flexcoders@yahoogroups.com
   From: nick14@...
   Date: Fri, 16 Mar 2012 20:08:47 +
   Subject: [flexcoders] Bindings on visual components being forgotten?  
   (Flex 3 - 4.6)
   
   Seeing a strange, rare, issue after updating an app to 4.6.  I can't seem 
   to reproduce it in a dev environment, so I'll list out my issue and setup 
   to see if it sounds familiar to anyone.
   
   The problem:
   Visual components seem to occasionally forget the objects they're bound 
   to.  For instance, I have something like this:
   
   s:DropDownList 
   id=cmbMonth
   dataProvider={model.months}
   selectedItem=@{model.selectedMonth}
   /
   s:Label text={model.selectedMonth} /
   
   When the problem occurs, the selectedMonth in the label component is 
   correct, say, February.  But the DropDownList will display a blank.  Even 
   though the DropDownList contains all the months, meaning models.months is 
   bound correctly.
   
   I tried adding:
   requireSelection=true
   
   The addition changed the behavior.  No more blanks!  But now, instead of 
   blanks, selectedMonth is showing something random like May.
   
   Background:
   App has been in production in various versions of Flex 3 for two years 
   without ever seeing this.  Upgrading to Flex 4 and swapping out some Halo 
   components with equivalent Spark ones, users, myself included, began 
   noticing this phenomenon.  I cannot seem to reproduce it in a reliable 
   fashion.  But I've gotten some feedback based on some attempted fixes 
   pushed out to users.
   
   Troubleshooting so far:
   Since it normally works, there's no super-obvious things missing, like an 
   uninitialized pointer, missing Bindable tag, accidental = assignment 
   instead of == comparison, etc.
   
   Also, we know the variable references are pointing to the correct place.  
   model.selectedMonth is showing up fine for a label just underneath the 
   dropdown.  model.months is being referenced just fine by the dropdown 
   itself.  It's just the display of model.selectedMonth in the dropdown.  
   Upon saving, the model.month property correctly propagates itself to the 
   DB, even when the dropdown is displaying the wrong value.  Switching 
   between one-way and two-way bindings don't seem to make a difference 
   either.  I noted above that I tried forcing requireSelection=true, 
   which does prevent the DropDownList from being blanked-out, but doesn't 
   force it to stay on the correct value.
   
   I thought it might be related to just the DropDownList component, but the 
   problem is also occurring on s:TextInput's text property.  Seems like 
   when it happens with the TextInput component (showing a blank value), 
   it's doing so for all the TextInput components.  I'm not so sure if it's 
   happening for all DropDownList elements, though.
   
   
   App setup:
   I have an mx:ViewStack attached to hide/show effects with two containers 
   inside (loggedOff/loggedOn), and a TabNavigator within that.  I think the 
   problems are only occurring after switching between states for the 
   ViewStack.  So after the components are hidden and come back.  I 
   remembered back to the Flex 2 ViewStack issue where bindings didn't 
   refresh, and added the old workaround to my code:  
   change=executeBindings(true)
   
   This didn't fix it.  Anything else I can look at or try?  Anyone else 
   experience this before?  Any chance it's related to the framework instead 
   of my code?
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location: 
   https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: 
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
   Links
   
   
  
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 

Re: [flexcoders] Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-19 Thread Richard Albrecht
Hi,

First time writing to a group in many years. I'm basically a noob with Flash 
Builder 4.5 and flex.

I right now have 2 questions:

1. I have an engineering app that I have running in the desktop. So the next 
step is take it mobile. Why don't the screens have the ability to zoom with a 
pinch? I have a screen that has a large datagrid and I want to make the text 
bigger, but then part of the grid moves off screen and you can't scroll over to 
see the hidden data. I thought this was available in all mobile apps.

2. The question on Scaling. What is the best way. What DPI should I have it set 
to. We also want a tablet version. Is there any good docs on the best way to 
accomplish this. Is using states a way. This one is I'm sure fairly complicated.

Thanks and I hope I get faster responses here than on Adobe's forums.

Thanks


Rich



Re: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-18 Thread Alex Harui
If you take off the two-way binding does it work?


On 3/18/12 7:41 PM, Uber_Nick nic...@gmail.com wrote:






I haven't tried explicitly re-setting the value manually or with BindingUtils, 
but that's something I'll try now!  Should still be working without that.

I have a feeling the problem is actually in the display logic of the component. 
 Like perhaps some built-in efficiency code to ignore binding updates when it's 
hidden.  But I'll have to deep-dive a little further to verify that.  It's more 
likely something I'm missing or doing wrong.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , yang 
chen chenyang3@... wrote:

 Have you tried using binding util?

  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  From: nick14@...
  Date: Fri, 16 Mar 2012 20:08:47 +
  Subject: [flexcoders] Bindings on visual components being forgotten?  (Flex 
  3 - 4.6)
 
  Seeing a strange, rare, issue after updating an app to 4.6.  I can't seem 
  to reproduce it in a dev environment, so I'll list out my issue and setup 
  to see if it sounds familiar to anyone.
 
  The problem:
  Visual components seem to occasionally forget the objects they're bound 
  to.  For instance, I have something like this:
 
  s:DropDownList
  id=cmbMonth
  dataProvider={model.months}
  selectedItem=@{model.selectedMonth}
  /
  s:Label text={model.selectedMonth} /
 
  When the problem occurs, the selectedMonth in the label component is 
  correct, say, February.  But the DropDownList will display a blank.  Even 
  though the DropDownList contains all the months, meaning models.months is 
  bound correctly.
 
  I tried adding:
  requireSelection=true
 
  The addition changed the behavior.  No more blanks!  But now, instead of 
  blanks, selectedMonth is showing something random like May.
 
  Background:
  App has been in production in various versions of Flex 3 for two years 
  without ever seeing this.  Upgrading to Flex 4 and swapping out some Halo 
  components with equivalent Spark ones, users, myself included, began 
  noticing this phenomenon.  I cannot seem to reproduce it in a reliable 
  fashion.  But I've gotten some feedback based on some attempted fixes 
  pushed out to users.
 
  Troubleshooting so far:
  Since it normally works, there's no super-obvious things missing, like an 
  uninitialized pointer, missing Bindable tag, accidental = assignment 
  instead of == comparison, etc.
 
  Also, we know the variable references are pointing to the correct place.  
  model.selectedMonth is showing up fine for a label just underneath the 
  dropdown.  model.months is being referenced just fine by the dropdown 
  itself.  It's just the display of model.selectedMonth in the dropdown.  
  Upon saving, the model.month property correctly propagates itself to the 
  DB, even when the dropdown is displaying the wrong value.  Switching 
  between one-way and two-way bindings don't seem to make a difference 
  either.  I noted above that I tried forcing requireSelection=true, which 
  does prevent the DropDownList from being blanked-out, but doesn't force it 
  to stay on the correct value.
 
  I thought it might be related to just the DropDownList component, but the 
  problem is also occurring on s:TextInput's text property.  Seems like when 
  it happens with the TextInput component (showing a blank value), it's doing 
  so for all the TextInput components.  I'm not so sure if it's happening for 
  all DropDownList elements, though.
 
 
  App setup:
  I have an mx:ViewStack attached to hide/show effects with two containers 
  inside (loggedOff/loggedOn), and a TabNavigator within that.  I think the 
  problems are only occurring after switching between states for the 
  ViewStack.  So after the components are hidden and come back.  I remembered 
  back to the Flex 2 ViewStack issue where bindings didn't refresh, and added 
  the old workaround to my code:
  change=executeBindings(true)
 
  This didn't fix it.  Anything else I can look at or try?  Anyone else 
  experience this before?  Any chance it's related to the framework instead 
  of my code?
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 







--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Bindings on visual components being forgotten? (Flex 3 - 4.6)

2012-03-16 Thread yang chen
Have you tried using binding util?

 To: flexcoders@yahoogroups.com
 From: nic...@gmail.com
 Date: Fri, 16 Mar 2012 20:08:47 +
 Subject: [flexcoders] Bindings on visual components being forgotten?  (Flex 3 
 - 4.6)
 
 Seeing a strange, rare, issue after updating an app to 4.6.  I can't seem to 
 reproduce it in a dev environment, so I'll list out my issue and setup to see 
 if it sounds familiar to anyone.
 
 The problem:
 Visual components seem to occasionally forget the objects they're bound to. 
  For instance, I have something like this:
 
 s:DropDownList 
 id=cmbMonth
 dataProvider={model.months}
 selectedItem=@{model.selectedMonth}
 /
 s:Label text={model.selectedMonth} /
 
 When the problem occurs, the selectedMonth in the label component is 
 correct, say, February.  But the DropDownList will display a blank.  Even 
 though the DropDownList contains all the months, meaning models.months is 
 bound correctly.
 
 I tried adding:
 requireSelection=true
 
 The addition changed the behavior.  No more blanks!  But now, instead of 
 blanks, selectedMonth is showing something random like May.
 
 Background:
 App has been in production in various versions of Flex 3 for two years 
 without ever seeing this.  Upgrading to Flex 4 and swapping out some Halo 
 components with equivalent Spark ones, users, myself included, began noticing 
 this phenomenon.  I cannot seem to reproduce it in a reliable fashion.  But 
 I've gotten some feedback based on some attempted fixes pushed out to users.
 
 Troubleshooting so far:
 Since it normally works, there's no super-obvious things missing, like an 
 uninitialized pointer, missing Bindable tag, accidental = assignment 
 instead of == comparison, etc.
 
 Also, we know the variable references are pointing to the correct place.  
 model.selectedMonth is showing up fine for a label just underneath the 
 dropdown.  model.months is being referenced just fine by the dropdown itself. 
  It's just the display of model.selectedMonth in the dropdown.  Upon saving, 
 the model.month property correctly propagates itself to the DB, even when the 
 dropdown is displaying the wrong value.  Switching between one-way and 
 two-way bindings don't seem to make a difference either.  I noted above that 
 I tried forcing requireSelection=true, which does prevent the DropDownList 
 from being blanked-out, but doesn't force it to stay on the correct value.
 
 I thought it might be related to just the DropDownList component, but the 
 problem is also occurring on s:TextInput's text property.  Seems like when it 
 happens with the TextInput component (showing a blank value), it's doing so 
 for all the TextInput components.  I'm not so sure if it's happening for all 
 DropDownList elements, though.
 
 
 App setup:
 I have an mx:ViewStack attached to hide/show effects with two containers 
 inside (loggedOff/loggedOn), and a TabNavigator within that.  I think the 
 problems are only occurring after switching between states for the ViewStack. 
  So after the components are hidden and come back.  I remembered back to the 
 Flex 2 ViewStack issue where bindings didn't refresh, and added the old 
 workaround to my code:  
 change=executeBindings(true)
 
 This didn't fix it.  Anything else I can look at or try?  Anyone else 
 experience this before?  Any chance it's related to the framework instead of 
 my code?
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
  

<    1   2   3   4   5   6   7   8   9   10   >