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] Re: popup on screen certer? [1 Attachment]

2012-02-19 Thread Jeff Gomes
Mark-

I don't know what you did to test this, but I was not guessing at my 
answer.  This is something I actually use (FB 4.6, btw, in case that 
matters).  As my gift to you, here is my simple Alert component that 
extends s:SkinnablePopUpContainer (attached as a ZIP and also pasted 
into the message, since I don't know which will work best on the list).

As you can see, it calls PopUpManager.centerPopUp(this) when it is first 
added to the stage and also anytime it receives a Resize event while it 
is open.  Some of the component is borrowed from tutorials I've seen on 
the web, but the code to handle resizing and centering was my own work.

-Jeff

?xml version=1.0 encoding=utf-8?
s:SkinnablePopUpContainer
 xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 addedToStage=_QueueCenter()
 creationComplete=_Init()
 
fx:Declarations
!-- Place non-visual elements (e.g., services, value objects) here --
/fx:Declarations
fx:Script
![CDATA[
 import mx.core.FlexGlobals;
 import mx.managers.PopUpManager;

 import spark.components.supportClasses.ViewNavigatorAction;

 [Bindable]
 public var alertTitle:String = alertTitle;

 [Bindable]
 public var alertMessage:String = alertMessage;

 private var _appTop:Object = 
mx.core.FlexGlobals.topLevelApplication;

 [Bindable]
 private var _nMaxWidth:Number = 300;

 private function _Center ( ) : void
 {
 if ( isOpen ) PopUpManager.centerPopUp ( this );
 }

 private function _Init ( ) : void
 {
 _appTop.addEventListener ( Event.RESIZE, _Resize );
 }

 private function _Resize ( e:* = null ) : void
 {
 if ( isOpen ) _QueueCenter ( );
 }

 private function _QueueCenter ( ) : void
 {
 _nMaxWidth = 0.9 * Math.min ( _appTop.width, 
_appTop.height );
 callLater ( _Center );
 }

 ]]
/fx:Script
s:TitleWindow
 id=titleWindow
 title={alertTitle}
 maxWidth={_nMaxWidth}
 close=close()
 
s:VGroup
 horizontalAlign=center
 horizontalCenter=0
 paddingLeft=16
 paddingTop=16
 paddingRight=16
 paddingBottom=16
 gap=24
 width=100%
 
s:Label
 id=message
 text={alertMessage}
 width=100%
 /
s:Button
 label=OK
 click=close(true)
 /
/s:VGroup
/s:TitleWindow
/s:SkinnablePopUpContainer

On 2/19/2012 08:15, markflex2007 wrote:
 I just test.PopUpManager can not work with s:SkinnablePopUpContainer.

 other idea?

 Thanks

 Mark
 --- In flexcoders@yahoogroups.com, Jeff Gomesjgomes@...  wrote:
 PopUpManager.centerPopUp(pop);

 On 2/17/2012 14:36, markflex2007 wrote:
 Hi

I uses:SkinnablePopUpContainer   build a pop component for mobile app

and use the following code to call the popup

var pop:PopUpWindows =  new PopUpWindows();  
pop.open(this,true);


but the popup always in top-left location of current page. how to make 
 the popup on screen certer

please help

Thanks for help

Mark
 



 

 --
 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: 
 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] popup on screen certer?

2012-02-17 Thread Jeff Gomes
PopUpManager.centerPopUp(pop);

On 2/17/2012 14:36, markflex2007 wrote:
 Hi

   I uses:SkinnablePopUpContainer  build a pop component for mobile app

   and use the following code to call the popup

   var pop:PopUpWindows =  new PopUpWindows(); 
   pop.open(this,true);


   but the popup always in top-left location of current page. how to make the 
 popup on screen certer

   please help

   Thanks for help

   Mark
   



 

 --
 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] Flex 4.5: Flex in 5 Days

2012-01-12 Thread Jeff Hindman
I went through the entire series a few months ago . no crashes, no problems.

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Thursday, January 12, 2012 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4.5: Flex in 5 Days

 

  

I'm going through the Flex in 5 Days tutorial on the Adobe website.  Has
anyone else done this?  I ask because I get 1-2 crashes for ever session in
every day.  I don't get the warm and fuzzies when a product crashes so
often.  I assume it was all written in LC, but it's the same company.

 

Does anyone know of less buggy tutorials?  They can't be YouTube based as
our firewall blocks that.  I'd love to see one for 4.0 as we might not
upgrade to 4.5, but even that is closer than 3.5.

 

TIA,

Jerry

 



image001.jpgimage002.jpg

RE: [flexcoders] RE: AIR/Window/DataGrid Issue

2011-12-05 Thread Battershall, Jeff
Alex,

Thanks for your help!  Using mduleFactory.create() worked.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Friday, December 02, 2011 2:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue



Basic implementations should be able to use MXML.  For example, you cram a 
bunch of MXML in a mx:Module and load that in an mx:ModuleLoader and it 
just works.

But it gets trickier when using popups.  Usually you have to call PopUpManager 
from AS anyway and you can choose the moduleFactory to pass in.
Is the Window and DataGrid in one MXML file?  Maybe instead of calling new 
MyWindow() you can use moduleFactory.create(some.package.MyWindow) and that 
will get things going in the right direction.

I suspect the DataGroups worked because they don't have skins or the skins were 
in the main app.

The DataGrid's styles are probably in the same module SWF as the DataGrid.  The 
problem is that if the DataGrid's moduleFactory is pointing at the main app, it 
won't find the styles in there.  The DataGrid is probably picking up its 
moduleFactory from its parents.

-Alex

On 12/2/11 4:00 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





Thanks Alex,

It's pretty clear I'm pushing the envelope architecture-wise - I've got a 
module that opens a popup that opens a window that contains a datagrid.  
Interestingly though, in my Flex 4.0 version, where I wasn't using a Spark 
datagrid but instead using my solution using DataGroups (spark datagrid wasn't 
yet available) I had no issues. Note the first error I get is from that the 
DataGrid skin cannot be found.  Makes me wonder whether it's the styles that 
are not loaded.

I! #8217;m going to try to get my wits around using moduleFactory.  It appears 
that in order to use it I cannot use MXML but instead using AS?

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, December 01, 2011 5:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue



That's a very! puzzling stack trace.  I have no idea how you can get in! to 
this situation.  Do you have a simple test case?

The moduleFactory subsystem relies on instantiating classes in a module via 
moduleInfo.factory.create().  The children of that class have moduleFactory 
propagated to them as they are added to their parents.

Calling some function on a module that calls PopUpManager.createPopUp() 
bypasses the subsystem because the popup is added to the systemManager and some 
class that has its moduleFactory set to the right place.  Is that what is going 
on in your code?  There is a moduleFactory parameter to createPopUp you can use.


On 12/1/11 10:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





Thanks Alex,

Here's the stack trace:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
   at 
spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342]
   at 
spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\fr!
 ameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]
   at 
spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883]
   at 
spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444]
   at 
spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\framew! 
orks\projects\spark\src\spark\components\supportClasses\GroupB! ase.as:1 148]
   at mx.core::UIComponent! 
/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[Ehttp://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE:
 http://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE: ! \dev\4.y 
\frameworks\projects\framework\src\mx\core\UIComponent.as:8506]
   at 
mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430]
   at 
spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012]
   at 
mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665]
   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816]
 ! nbsp; at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]


The app is constructed like so:

1)  Shell application
2)  Modules loaded at runtime
3)  The module in question has a pop up wizard (TitleWindow).
4)  The popup wizard opens Window.
5)  Window contains DataGrid.

I! don't understand how the module factory

Re: [flexcoders] getting the total of values of an array collection that is updated manually

2011-12-03 Thread Jeff Gomes

One handy way to iterate the contents of an ArrayCollection to make a 
temporary vector from the source array of the collection, and use the 
vector.forEach method.

At 07:43 12/2/2011, ZIONIST wrote:
Hi Guys, i would like to get the total price calculated as an array 
collection for a list is populated plus i would like to update the 
total when the quantity changes too. Here is the code i have so far, 
could someone please help me correct it.

Main App
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=horizontal
 xmlns:ns1=*
 mx:states
 mx:State name=dark
 mx:SetProperty target={product}
 name=text
 value=Dark 
 Chocolate/
 mx:SetProperty target={price}
 name=text
 value=50/
 /mx:State
 mx:State name=spread
 mx:SetProperty target={product}
 name=text
 
value=Drinking Chocolate/
 mx:SetProperty target={price}
 name=text
 value=100/
 /mx:State
 /mx:states

 mx:Script
 ![CDATA[
 import mx.controls.listClasses.ListData;
 import mx.collections.ArrayCollection;

 [Bindable]
 private var orderColl:ArrayCollection=new 
 ArrayCollection();

 private function addProduct():void
 {

 //Create an object to hold the data
 var obj:Object=new Object();
 //Assign the variables to it
 obj.Product=product.text;
 obj.Price=price.text;
 //Add the object to the list
 orderColl.addItem(obj);

 }

 private function deleteOrder():void
 {

 //Remove the item from the array collection
 
orderColl.removeItemAt(products.selectedIndex);

 }

 private function init():void
 {
 var n:int=orderColl.length;
 var total:Number=0;
 for (var i:int=0; i  n; i++)
 {
 
//total+=orderColl[i][products.item.Price];
 total+=orderColl[i].Price++;
 }
 sum.text=total.toString();

 }
 ]]
 /mx:Script

 mx:Canvas width=500
height=300
 mx:Label x=10
   y=10
   text=Milk Chocolate
   id=product/
 mx:Label x=10
   y=36
   text=10
   id=price/
 mx:Button x=10
y=62
label=submit
click=addProduct();init()/
 mx:Button x=10
y=92
label=Change State
click=currentState='dark'/
 mx:Button x=10
y=122
label=Drinking Chocolate
click=currentState='spread'/
 /mx:Canvas

 mx:VBox width=340
 height=340
 horizontalAlign=center
 verticalAlign=middle
 mx:List id=products
 width=300
 height=300
 dataProvider={orderColl}
 itemRenderer=orderRenderer/
 mx:HBox
 mx:Label text=Total:
   color=#FF
   fontWeight=bold/
 mx:Label id=sum
   text=${}/
 /mx:HBox
 /mx:VBox

/mx:Application


Item Renderer (orderRenderer.mxml)

?xml 

RE: [flexcoders] RE: AIR/Window/DataGrid Issue

2011-12-02 Thread Battershall, Jeff
Thanks Alex,

It's pretty clear I'm pushing the envelope architecture-wise - I've got a 
module that opens a popup that opens a window that contains a datagrid.  
Interestingly though, in my Flex 4.0 version, where I wasn't using a Spark 
datagrid but instead using my solution using DataGroups (spark datagrid wasn't 
yet available) I had no issues. Note the first error I get is from that the 
DataGrid skin cannot be found.  Makes me wonder whether it's the styles that 
are not loaded.

I'm going to try to get my wits around using moduleFactory.  It appears that in 
order to use it I cannot use MXML but instead using AS?

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, December 01, 2011 5:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue



That's a very puzzling stack trace.  I have no idea how you can get into this 
situation.  Do you have a simple test case?

The moduleFactory subsystem relies on instantiating classes in a module via 
moduleInfo.factory.create().  The children of that class have moduleFactory 
propagated to them as they are added to their parents.

Calling some function on a module that calls PopUpManager.createPopUp() 
bypasses the subsystem because the popup is added to the systemManager and some 
class that has its moduleFactory set to the right place.  Is that what is going 
on in your code?  There is a moduleFactory parameter to createPopUp you can use.


On 12/1/11 10:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





Thanks Alex,

Here's the stack trace:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
   at 
spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342]
   at 
spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\fr!
 ameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]
   at 
spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883]
   at 
spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444]
   at 
spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1148]
   at mx.core::UIComponent! 
/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:http://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE:!
 \dev\4.y \frameworks\projects\framework\src\mx\core\UIComponent.as:8506]
   at 
mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430]
   at 
spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012]
   at 
mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665]
   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816]
   at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]


The app is constructed like so:

1)  Shell application
2)  Modules loaded at runtime
3)  The module in question has a pop up wizard (TitleWindow).
4)  The popup wizard opens Window.
5)  Window contains DataGrid.

I! don't understand how the module factory for the datagrid points to the 
module factory for the module.  How's that accomplished?

Jeff




From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, December 01, 2011 12:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: AIR/Window/! DataGrid Issue
n bsp;



What is the Group stack trace?  If classes are in a module you definitely have 
to get the moduleFactory pointing to that module because that's probably where 
the skins are as well.


On 12/1/11 5:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





My issue sounds similar to this issue:

http://forums.adobe.com/message/3910406

What's unclear to me is how to work around it in my circumstance.  Clearly I 
should be able to declare a datagrid in a Window and have it work without an 
elaborate workaround.

Any advice appreciated.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Wednesday, November 30, 2011 8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR/Window/DataGrid Issue





Hi,

I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage 
of the Spark DataGrid.   In this app (which is built with modules) I'm openin! 
g a NativeWindow and displaying a datagrid.   The fi! rst erro r

[flexcoders] RE: AIR/Window/DataGrid Issue

2011-12-01 Thread Battershall, Jeff
My issue sounds similar to this issue:

http://forums.adobe.com/message/3910406

What's unclear to me is how to work around it in my circumstance.  Clearly I 
should be able to declare a datagrid in a Window and have it work without an 
elaborate workaround.

Any advice appreciated.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Wednesday, November 30, 2011 8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR/Window/DataGrid Issue




Hi,

I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage 
of the Spark DataGrid.   In this app (which is built with modules) I'm opening 
a NativeWindow and displaying a datagrid.   The first error is that the 
DataGrid Skin class cannot be found.  I dealt with this by creating a new Skin 
from the DataGrid and referencing that.  Then when I attempt to populate the 
grid with data, I get RTEs pointing to Group.as with error #1009 null.

I can get in to more exhaustive detail about the exact error(s) but I think 
something more fundamental is happening.  Note that the libs are all merged 
into code.  It seems that some of the underlying libraries aren' being included.

Does anyone have any experience or theories on what might be happening?


Jeff Battershall
Application Architect

T 609 520 5637
F 609 520 5370
C 732 666-8205
jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com

Dow Jones Indexes
4300 Route 1 North
South Brunswick, NJ 08852
www.djindexes.comhttp://www.cmegroup.com/





inline: image001.jpg

RE: [flexcoders] RE: AIR/Window/DataGrid Issue

2011-12-01 Thread Battershall, Jeff
Thanks Alex,

Here's the stack trace:


TypeError: Error #1009: Cannot access a property or method of a null object 
reference.

   at 
spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342]

   at 
spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]

   at 
spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883]

   at 
spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444]

   at 
spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1148]

   at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8506]

   at 
mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430]

   at 
spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012]

   at 
mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665]

   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816]

   at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]





The app is constructed like so:



1)  Shell application

2)  Modules loaded at runtime

3)  The module in question has a pop up wizard (TitleWindow).

4)  The popup wizard opens Window.

5)  Window contains DataGrid.



I don't understand how the module factory for the datagrid points to the module 
factory for the module.  How's that accomplished?



Jeff



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, December 01, 2011 12:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue



What is the Group stack trace?  If classes are in a module you definitely have 
to get the moduleFactory pointing to that module because that's probably where 
the skins are as well.


On 12/1/11 5:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





My issue sounds similar to this issue:

http://forums.adobe.com/message/3910406

What's unclear to me is how to work around it in my circumstance.  Clearly I 
should be able to declare a datagrid in a Window and have it work without an 
elaborate workaround.

Any advice appreciated.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Wednesday, November 30, 2011 8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR/Window/DataGrid Issue





Hi,

I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage 
of the Spark DataGrid.   In this app (which is built with modules) I'm openin! 
g a NativeWindow and displaying a datagrid.   The fi! rst erro r is that the 
DataGrid Skin class cannot be found.  I dealt with this by creating a new Skin 
from the DataGrid and referencing that.  Then when I attempt to populate the 
grid with data, I get RTEs pointing to Group.as with error #1009 null.

I can get in to more exhaustive detail about the exact error(s) but I think 
something more fundamental is happening.  Note that the libs are all merged 
into code.  It seems that some of the underlying libraries aren' being included.

Does anyone have any experience or theories on what might be happening?


Jeff Battersh! all
Application Architect

T 609 520 5637
F 609 520 5370
C 732 666-8205
jeff.battersh...@djindexes.com

Dow Jones Indexes
4300 Route 1 North
South Brunswick, NJ 08852
www.djindex! es.com http://www.cmegroup.com/
nb! sp; /p







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




inline: image001.jpg

[flexcoders] AIR/Window/DataGrid Issue

2011-11-30 Thread Battershall, Jeff
Hi,

I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage 
of the Spark DataGrid.   In this app (which is built with modules) I'm opening 
a NativeWindow and displaying a datagrid.   The first error is that the 
DataGrid Skin class cannot be found.  I dealt with this by creating a new Skin 
from the DataGrid and referencing that.  Then when I attempt to populate the 
grid with data, I get RTEs pointing to Group.as with error #1009 null.

I can get in to more exhaustive detail about the exact error(s) but I think 
something more fundamental is happening.  Note that the libs are all merged 
into code.  It seems that some of the underlying libraries aren' being included.

Does anyone have any experience or theories on what might be happening?


Jeff Battershall
Application Architect

T 609 520 5637
F 609 520 5370
C 732 666-8205
jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com

Dow Jones Indexes
4300 Route 1 North
South Brunswick, NJ 08852
www.djindexes.comhttp://www.cmegroup.com/



RE: [flexcoders] Re: Error TooTips in Spark Forms

2011-08-08 Thread Battershall, Jeff
Amy, Tac, thanks for your input.  This situation feels like a step backward for 
me - yes I know how the current SDK likes to have things decoupled, but when 
I'm working through this and having to re-skin and code around the Spark 
FormItem container, it just feels like a lot of work for what should be simple.

Maybe I'm just crabby this morning but...

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Amy
Sent: Monday, August 08, 2011 11:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error TooTips in Spark Forms

PopupAnchor might work better than going to ToolTipManager.

--- In flexcoders@yahoogroups.com, Battershall, Jeff Jeff.Battershall@... 
wrote:

 What I'm discovering about Spark Forms is  that error messaging is inside the 
 form item container and unless I make the form large enough to accommodate 
 the error message I might see some unexpected layout issues such as the error 
 text appearing over the form element, etc.  Pretty darned ugly.
 
 What I'd prefer is to have the error tips appear over the form and not be 
 constrained by the form dimensions.  It appears that the only option I have 
 is to roll my own solution using skins and ToolTipManager, etc.  I'm prepared 
 to dig in to do this but I just wanted to make sure that I wasn't missing a 
 more straightforward solution.
 
 
 
 Jeff Battershall
 Application Architect
 
 T 609 520 5637
 F 609 520 5370
 C 484 477 9900
 jeff.battershall@...mailto:jeff.battershall@...
 
 Dow Jones Indexes
 4300 Route 1 North
 South Brunswick, NJ 08852
 www.djindexes.comhttp://www.cmegroup.com/







--
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] Error TooTips in Spark Forms

2011-08-07 Thread Battershall, Jeff
What I'm discovering about Spark Forms is  that error messaging is inside the 
form item container and unless I make the form large enough to accommodate the 
error message I might see some unexpected layout issues such as the error text 
appearing over the form element, etc.  Pretty darned ugly.

What I'd prefer is to have the error tips appear over the form and not be 
constrained by the form dimensions.  It appears that the only option I have is 
to roll my own solution using skins and ToolTipManager, etc.  I'm prepared to 
dig in to do this but I just wanted to make sure that I wasn't missing a more 
straightforward solution.



Jeff Battershall
Application Architect

T 609 520 5637
F 609 520 5370
C 484 477 9900
jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com

Dow Jones Indexes
4300 Route 1 North
South Brunswick, NJ 08852
www.djindexes.comhttp://www.cmegroup.com/


RE: [flexcoders] flex2gateway error

2010-08-19 Thread Battershall, Jeff
It could very well be that your request response time is exceeding the default 
time out for Remote Objects, but I'm not sure about app not working *at all* 
after that. This can create the intermittent behavior you're seeing, depending 
on load or query response time from the app's database.  In AIR this is a real 
problem because on windows, the request times out at 30 seconds no matter what 
you do.  But you say you're running a Flex app so, you *should* be able to set 
the requestTimeout on your RemoteObject to a higher value and see a mitigation 
of the behavior.

HTH.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of happy dog owner
Sent: Wednesday, August 18, 2010 9:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex2gateway error



Hi all, I am working on my first real Flex application, using the latest 
ColdFusion 9.01 server as a backend, Flex 4 using Flash Builder Standard. 
Running on Windows on Apache.

Everything seems to work fine but then randomly (as far as I can tell) I'll 
start getting those flex2gateway errors:

[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend 
faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: 
Failed: url: 'http://localhost/flex2gateway/']

Everything I've read on this list and elsewhere refers to this error appearing 
when the gateway isn't working...but it seems to be for me. When I manually 
call the URL above (http://localhost/flex2gateway/) I get the whitepage that is 
expected (I double-checked the headers and they do give me 200 response).

Once this error appears I have a VERY hard time getting rid of it and getting 
my application to run again. I've tried restarting Apache, ColdFusion, even 
rebooting, I've tried rebuilding the project, I've tried manually setting the 
gateway in my remote object tags. Nothing seems to work, but invariably it 
*will* go away for a time, everything will run correctly...and then boom, it 
shows up again and I'm stuck again. But I have yet to figure out the pattern 
for when it occurs.

Any ideas?? I'm really frustrated trying to figure this out and what it causing 
it.

--
Mary Jo Sminkey
Author, CFWebstore
ColdFusion Ecommerce



RE: [flexcoders] flex2gateway error

2010-08-19 Thread Battershall, Jeff
I would think that if you clean your project and re-compile it will remove 
Network Monitor.  Clearing any and all browser caches would be recommended also 
to ensure you're running the re-compiled version.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Mary Jo Sminkey
Sent: Thursday, August 19, 2010 3:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex2gateway error

  On 8/19/2010 2:43 PM, Wesley Acheson wrote:
 Charles proxy is used for debugging what data is sent over the wire 
 via amf.

Okay, downloaded and installed Charles, thanks for the suggestion, looks 
like a very useful tool. And I found out from it that the problem seems 
to be that the call to the gateway is using a port that is invalid, it's 
trying to call it over port 37813. So that seems to be what is causing 
the problem. I googled the issue with that port and found this post on 
the Adobe forums:

http://forums.adobe.com/thread/541674?decorator=printdisplayFullThread=true

Stating that the problem was due to compiling with the Network Monitor 
turned on. Here's where things get problematic for me. Up until a few 
weeks ago, I was using the FB Premium demo version. We are *supposed* to 
get licenses where I work for it, but they seem to be held up so I was 
able to at least install a license for Standard...which does not include 
the Network Monitor feature. I know I had it turned onand the error 
seems to suggest that it's still behaving as if it's turned on...but I 
can't actually access it due to not having a Premium license.

So any clue how to disable it in this situation??


--- Mary Jo








--
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] Why can't I change the highlight color of Spark text?

2010-08-17 Thread Jeff Gomes

Assuming you want to set it for all text areas, you could experiment 
with the global styles selectionColor and focusedTextSelectionColor.

-Jeff

At 02:14 8/17/2010, dorkie dork from dorktown wrote:


I've spent soo much time trying to find how to do this.

I'm using, sparkTextArea.selectAll() to select text but I've found 
no way to change the highlight color.

JP



[flexcoders] RE: Vote For This Critiical RemoteObject bug

2010-08-12 Thread Battershall, Jeff
Alex,

Can you put me in touch with someone on the SDK team re: this timeout issue?  
I've started to dig through the Flex SDK source but have not run across the 
smoking gun yet - a lot of the Remoting related classes haven't been modified 
since 2009.  Seems to me that if I knew the correct place to look, devising a 
patch could be relatively straightforward.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Wednesday, August 11, 2010 11:03 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Vote For This Critiical RemoteObject bug




Somehow a critical bug has fallen through the cracks - essentially 
RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you 
have set in requestTimeout or URLRequestDefaults.idleTimeout:

https://bugs.adobe.com/jira/browse/FP-4934

There seems to be some question as to whether it is an SDK bug or an AIR bug, 
but regardless, it is affecting production systems and needs to be resolved 
ASAP.

I'm hoping we can get the issue escalated. Voting for it should help increase 
its visibility.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)







RE: [flexcoders] RE: Vote For This Critiical RemoteObject bug

2010-08-12 Thread Battershall, Jeff
Alex,

I've been in touch with Chris Thilgen, from the AIR team who tells me it's a 
Flex SDK issue.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, August 12, 2010 2:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: Vote For This Critiical RemoteObject bug



I noticed it was filed against the player.  I assumed you'd essentially proved 
it was an AIR issue.  If so, there is no source to look at or patch.

If the same requested timeout works on Mac or in Flash, it probably is an 
AIR/Windows issue.  They generally like non-Flex test cases so if you can 
conjure up a simple AS-only case with NetConnection and show that timeouts are 
not working, that might expedite things.  RemoteObject lives on top of 
NetConnection.


On 8/12/10 10:00 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:





Alex,

Can you put me in touch with someone on the SDK team re: this timeout issue?  
I've started to dig through the Flex SDK source but have not run across the 
smoking gun yet - a lot of the Remoting related classes haven't been modified 
since 2009. Seems to me that if I knew the correct place to look, devising a 
patch could be relatively straightforward.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Wednesday, August 11, 2010 11:03 AM
To: 'flexcoders@yahoogroups.comflexcoders@yahoogroups.com'
Subject: [flexcoders] Vote For This Critiical RemoteObject bug





Somehow a critical bug has fallen through the cracks - essentially 
RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you 
have set in requestTimeout or URLRequestDefaults.idleTimeout:

https://bugs.adobe.com/jira/browse/FP-4934

There seems to be some question as to whether it is an SDK bug or an AIR bug, 
but regardless, it is affecting production systems and needs to be resolved 
ASAP.

I'm hoping we can get the issue escalated. Voting for it should help increase 
its visibility.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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






[flexcoders] Vote For This Critiical RemoteObject bug

2010-08-11 Thread Battershall, Jeff
Somehow a critical bug has fallen through the cracks - essentially 
RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you 
have set in requestTimeout or URLRequestDefaults.idleTimeout:

https://bugs.adobe.com/jira/browse/FP-4934

There seems to be some question as to whether it is an SDK bug or an AIR bug, 
but regardless, it is affecting production systems and needs to be resolved 
ASAP.

I'm hoping we can get the issue escalated. Voting for it should help increase 
its visibility.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] Vote For This Critiical RemoteObject bug

2010-08-11 Thread Battershall, Jeff
Kelly, valid point and I've already spent considerable time optimizing things 
to reduce the size and improve the response time of individual requests.  
Pagination is only one of the scenarios.  There are situations such as during 
application start up where routine requests can take longer than you think they 
should.

Bottom line, however, it is the decision of the developer to have longer 
requests or not, and this should not be pre-determined for them by the 
framework - that's why you have the requestTimeout parameter in the first 
place. It works as expected on the Mac, just not on Windows.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Kelly
Sent: Wednesday, August 11, 2010 1:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Vote For This Critiical RemoteObject bug



Why do you have RemoteObject calls that normally take longer then 30 seconds to 
complete?

Why not just make multiple requests?

I would question calls that average more then 300ms for small data and 3s for 
larger data.

Any data loads larger then that should be paged.

Any logic that takes longer then that should run in background and periodically 
poll for updates.








On 08/11/2010 08:03 AM, Battershall, Jeff wrote:

Somehow a critical bug has fallen through the cracks - essentially 
RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you 
have set in requestTimeout or URLRequestDefaults.idleTimeout:

https://bugs.adobe.com/jira/browse/FP-4934

There seems to be some question as to whether it is an SDK bug or an AIR bug, 
but regardless, it is affecting production systems and needs to be resolved 
ASAP.

I'm hoping we can get the issue escalated. Voting for it should help increase 
its visibility.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)




Re: [flexcoders] Rounding the corners of a scroller

2010-08-04 Thread Jeff Gomes
Brand-

I started with the default spark ComboBoxSkin and added a mask and 
some other tweaks to get it to look the way I wanted, such as moving 
the border rect to a higher z than the scroller.  It took a bit of 
trial and error, especially to get it to match up cleanly with the 
button, which also has a radius.

You can see the result here:  http://www.finselector.com/

-Jeff

At 06:58 8/3/2010, Brand wrote:
I've got a skin for my comboboxes, and while it's trivial to do 
rounded corners for the textentry portion, I can't seem to figure 
out how to round the corners of the dropdown.

If I remove the scroller altogether, the rounded background and 
border seem to work fine. However, the scroller portion of the 
dropdown doesn't seem to allow a radius.

I could put the rounded corner into the itemrenderer for the 
datagroup, but that would make each item have rounded corners, and 
if the bottom of the dropdown occurs in the middle of an item, I'll 
still have squared corners on the overall dropdown.

So, does anybody know if there's a way to round off the corners of 
the scroller object?

Thanks for your time and attention.

...



RE: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01

2010-07-27 Thread Battershall, Jeff
Alex,

I'm definitely NOT specifying  MXFTEText.css  for MX components but I DO have 
to specify embedAsCFF = true to make the warnings go away.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Saturday, July 24, 2010 8:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01



If you are using MXFTEText.css then the Halo components can use CFF fonts.  
Otherwise, sounds like there is still something unexplained going on.


On 7/24/10 4:18 AM, Jeff jbarts1...@yahoo.com wrote:





Thanks Alex,

I guess I was thrown off by the warning text which had it as 'embedAsCff not 
'embedAsCFF'.  I fixed that and then removed 
-managers=flash.fonts.AFEFontManager from my compiler settings and the warnings 
disappeared.

I was also thrown off that I thought Halo components required embedAsCFF to be 
set to false but that no longer seems to be the case.

Jeff

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

 4.x has new requirements around getting the embedAsCFF flag correctly, but 
 there shouldn't be anything else.  BTW, note that it is embedAsCFF.  I don't 
 think embedAsCff will work.

 Styles defined in the module now supercede styles defined in the parent.  
 Maybe some global selector in the module is blocking lookup into the parent?

 Or maybe it is just a bug.  See if you can make a simple test case.


 On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote:






 Alex,

 I'm hoping you can look at this - I read your article about fonts and swf 
 loading - could be related to what I'm describing.  However, what I am doing 
 is pretty vanilla.  I've got a CSS file where some font embedding is being 
 done and I'm setting, ebmedAsCff= true or false depending on whether the 
 component is question is spark or halo, but it seems with the warnings I'm 
 getting that the ebmedAsCff portion of my style definition is being ignored.

 It would seem that there is:

 1) a change in how font embedding is being done or
 2) some additional thing I have to do to ensure that style definitions as 
 defined in the parent application are available to modules or
 3) that the 4.01 changes have some unforeseen consequences

 Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0.

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%40yahoogroups.com 
 ] On Behalf Of Jeff
 Sent: Friday, July 23, 2010 7:29 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01

 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime 
 warnings about the need to set embedAsCff=true in my modular application, 
 even though this is already set in the CSS file that embeds the font, which 
 is loaded in the parent application. What could I be doing wrong?

 

 --
 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 System, Inc.
 http://blogs.adobe.com/aharui






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






[flexcoders] Remote Object Request Timeout Error

2010-07-27 Thread Battershall, Jeff
Hi,

I'm still seeing Remote Objects timing out in AIR 2.0 and although there's a 
lot of postings about on the Adobe forums and in JIRA, there's still doesn't 
seem to be a definitive solution and/or workaround.

Just polling the list to see if anyone has any late-breaking data on the issue?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] Re: Embedded Fonts and Flash Builder 4.01

2010-07-24 Thread Jeff
Thanks Alex,

I guess I was thrown off by the warning text which had it as 'embedAsCff not 
'embedAsCFF'.  I fixed that and then removed 
-managers=flash.fonts.AFEFontManager from my compiler settings and the warnings 
disappeared.  

I was also thrown off that I thought Halo components required embedAsCFF to be 
set to false but that no longer seems to be the case.  

Jeff

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

 4.x has new requirements around getting the embedAsCFF flag correctly, but 
 there shouldn't be anything else.  BTW, note that it is embedAsCFF.  I don't 
 think embedAsCff will work.
 
 Styles defined in the module now supercede styles defined in the parent.  
 Maybe some global selector in the module is blocking lookup into the parent?
 
 Or maybe it is just a bug.  See if you can make a simple test case.
 
 
 On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote:
 
 
 
 
 
 
 Alex,
 
 I'm hoping you can look at this - I read your article about fonts and swf 
 loading - could be related to what I'm describing.  However, what I am doing 
 is pretty vanilla.  I've got a CSS file where some font embedding is being 
 done and I'm setting, ebmedAsCff= true or false depending on whether the 
 component is question is spark or halo, but it seems with the warnings I'm 
 getting that the ebmedAsCff portion of my style definition is being ignored.
 
 It would seem that there is:
 
 1) a change in how font embedding is being done or
 2) some additional thing I have to do to ensure that style definitions as 
 defined in the parent application are available to modules or
 3) that the 4.01 changes have some unforeseen consequences
 
 Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On 
 Behalf Of Jeff
 Sent: Friday, July 23, 2010 7:29 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01
 
 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime 
 warnings about the need to set embedAsCff=true in my modular application, 
 even though this is already set in the CSS file that embeds the font, which 
 is loaded in the parent application. What could I be doing wrong?
 
 
 
 --
 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 System, Inc.
 http://blogs.adobe.com/aharui





RE: [flexcoders] Embedded Fonts and Flash Builder 4.01

2010-07-23 Thread Battershall, Jeff
Alex,

I'm hoping you can look at this - I read your article about fonts and swf 
loading - could be related to what I'm describing.  However, what I am doing is 
pretty vanilla.  I've got a CSS file where some font embedding is being done 
and I'm setting, ebmedAsCff= true or false depending on whether the component 
is question is spark or halo, but it seems with the warnings I'm getting that 
the ebmedAsCff portion of my style definition is being ignored.  

It would seem that there is:

1) a change in how font embedding is being done or
2) some additional thing I have to do to ensure that style definitions as 
defined in the parent application are available to modules or
3) that the 4.01 changes have some unforeseen consequences

Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jeff
Sent: Friday, July 23, 2010 7:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01

With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime 
warnings about the need to set embedAsCff=true in my modular application, even 
though this is already set in the CSS file that embeds the font, which is 
loaded in the parent application. What could I be doing wrong?





--
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] Re: How to get GlobelErrorHandling working.

2010-06-21 Thread Battershall, Jeff
Alex,

That's not good news!  Is there any way to catch uncaught errors at the module 
level at least?

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Monday, June 21, 2010 1:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to get GlobelErrorHandling working.



GEH for modules is broken in 10.1.


On 6/21/10 5:53 AM, valdhor valdhorli...@embarqmail.com wrote:





I haven't looked it up but does the uncaught error event bubble?

if so, I would add the event listener to both the main app and the 
systemManager.

this.addEventListener(uncaughtError, globalErrorHandler);
systemManager.addEventListener(uncaughtError, globalErrorHandler);

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
reflexactions reflexacti...@... wrote:

 OK I spotted the obvious error.

 systemManager.loaderInfo
 should be:
 systemManager.loaderInfo[uncaughtErrorEvents]


 After that I am getting error that I forced into the main app but an error in 
 a module didn't show up in the GEH, it threw an error and went to the old std 
 popup window.

 Do I need to link in every module as it loads?



 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 reflexactions reflexactions@ wrote:
 
  AFAIK this is player dependent right?
 
  So I have latest debug player 10.1.53.64.
 
  Using FB4/SDK3.2
 
  In the the main application mxml I have added a listener.
 
  systemManager.loaderInfo.addEventListener(uncaughtError, 
  globalErrorHandler);
 
  But it never gets called.
 
  Is that the right way to do it?
 
 
  If I load modules will uncaught error in those modules also bubble up to 
  this error handler?
 






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






RE: [flexcoders] Clear a form fast

2010-06-18 Thread Battershall, Jeff
If you've gone to the trouble of binding your form inputs to some bindable 
model object in mxml you can 'reset' the model object (myModel = new 
MyModelObject()) and that should return the model (and your form) to its 
defaults.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Brendan Meutzner
Sent: Friday, June 18, 2010 10:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Clear a form fast



I believe I've seen a component on the Flex Exchange on Adobe's website for 
this...



On Fri, Jun 18, 2010 at 9:20 AM, Wally Kolcz 
wko...@isavepets.commailto:wko...@isavepets.com wrote:


Any way to clear/reset a mx:Form easily other than manually setting
all the text to ?







[flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting.  But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






[flexcoders] Tabbing within Spark ItemRenderer

2010-06-16 Thread Battershall, Jeff
Hi,

Here's something that shouldn't be this hard:

I have a spark list that has an itemrenderer with multiple items that I want to 
tab between.  For the life of me, I haven't been able to get it work. I've 
tried tabEnabled, tabFocusEnabled, hasFocusableChildren, setting tabIndex on 
the individual components inside the ItemRenderer, etc., so far, no dice.  
There's been a lot written about this, but so far I haven't chanced upon the 
definitive solution.   Can someone put me on the fast track to resolution?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I'm seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn't just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It's definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

I'm so far along with the workaround, I don't know if I'm going to see it again 
- hopefully not. My workaround is to display the popup and simply show/hide it 
without using PopUpManager to remove it.  Somehow the removal of the popup 
combined with FocusManager is producing the behavior.

Jefff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 7:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Jeff,

What does the call stack look like?


On 6/16/10 1:57 PM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I'm seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn't just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It's definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






[flexcoders] Opinions Wanted : Best Performing AS3 Zip Library

2010-06-04 Thread Battershall, Jeff
Hello,

I'm using the nochump zip library in an AIR project and it's working reasonably 
well but I wanted to see if anyone has a strong opinion as to what is the best 
performing AS3 Zip library out there.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] Opinions Wanted : Best Performing AS3 Zip Library

2010-06-04 Thread Battershall, Jeff
Thanks Oleg,

Using FP 10 is no problem, but I'm using CF on the server side - not sure how 
CF would decompress.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Oleg Sivokon
Sent: Friday, June 04, 2010 3:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Opinions Wanted : Best Performing AS3 Zip Library




I think that it says on the nochump site that it is not the fastest. In fact, 
using BiteArray.compress() with deflate would be the fastest, but that's only 
if you can use FP10.






RE: [flexcoders] Detecting Browser Re-Size

2010-05-25 Thread Battershall, Jeff
Nick, Steve,

Thanks for your input.  To provide a little background data - I'm using the 
DrumbeatInsight HTML component, which works pretty well so long as you're 
left-aligned.  But when the Flex content is center aligned, the IFrame overlay 
does not compensate.  So I was thinking along the lines of what Steve was 
saying - listen to window resize and use external interface to have Flex 
re-position the html content.  I was really hoping for a solution that was less 
of a hack and I'm hoping that it works well with multiple IFrames open at once 
(which is my use-case).

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick Middleweek
Sent: Tuesday, May 25, 2010 9:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Detecting Browser Re-Size



Can you expand a little on the page layout you ha.vehttp://ha.ve that needs 
to change?.. You might be able to just use CSS to position some DIV tags in a 
fluid layout and your SWF is in one DIV, your IFRAME in another and when the 
browser resizes, the browser handles the moving using relative positioning.

So maybe forget that you've got an IFRAME and SWF, this fluid layout concept 
will apply to any HTML objects such as two images.

Hope that helps somehow... (unless I've misread your problem?)


Cheers,
Nick

--
Sent by Nick Middleweek ( { email: 
n...@middleweek.co.ukmailto:n...@middleweek.co.uk, mobile: +44(0)774 035 
5424, blog: http://blog.middleweek.co.uk } );


On 24 May 2010 20:35, Battershall, Jeff 
jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote:

There's a lot on this subject out there but not the definitive answer I'm 
looking for - so I thought I'd see what Flex Coders has on the subject.

I need to be able to re-position some HTML content (an IFrame) relative to the 
screen coordinates of my Flex app, when the browser is re-sized.

Can anyone point me in the direction of the best solutions to this?







[flexcoders] Detecting Browser Re-Size

2010-05-24 Thread Battershall, Jeff
There's a lot on this subject out there but not the definitive answer I'm 
looking for - so I thought I'd see what Flex Coders has on the subject.

I need to be able to re-position some HTML content (an IFrame) relative to the 
screen coordinates of my Flex app, when the browser is re-sized.

Can anyone point me in the direction of the best solutions to this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] Re: DataGrid in a Spark Window Bug

2010-05-08 Thread Jeff
Alex,

Did some research and this type of issue has come a lot.  I addressed by 
putting in the -keep-all-type-sectors = true compiler argument and now all is 
well. 

Jeff

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

 So this is an AIR app?  Are you using mx:Window or s:Window?  Or have you 
 subclassed one of those Window components?  Is the DataGrid loaded via a 
 module?  It sounds like its moduleFactory is not pointing to the module.
 
 
 On 5/7/10 8:57 AM, Jeff jbarts1...@... wrote:
 
 
 
 
 
 
 Hello,
 
 I've got a modular application where I popup a TitleWindow for an import 
 Wizard.  From there, I try to open a Window with a DataGrid inside.  In 
 addition to a bunch of cFF font warnings, this error is thrown:
 
 TypeError: Error #1007: Instantiation attempted on a non-constructor.
 at 
 mx.controls.dataGridClasses::DataGridHeader/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:329]
 at 
 mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531]
 at 
 mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:932]
 at 
 mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7631]
 at 
 mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:594]
 at 
 mx.controls::DataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1741]
 at 
 mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3962]
 at 
 mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
 at 
 mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
 at 
 mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
 
 The specific line that throws the exception is:
 
 var headerBGSkin:IFlexDisplayObject = new headerBGSkinClass();
 
 Anyone got a clue? I'm able to bring the spreadsheet up in my TitleWindow 
 without issues, but when I try to put it in its own window. all hell breaks 
 loose.
 
 Jeff
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] DataGrid in a Spark Window Bug

2010-05-07 Thread Jeff
Hello,

I've got a modular application where I popup a TitleWindow for an import 
Wizard.  From there, I try to open a Window with a DataGrid inside.  In 
addition to a bunch of cFF font warnings, this error is thrown:

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at 
mx.controls.dataGridClasses::DataGridHeader/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:329]
at 
mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531]
at 
mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:932]
at 
mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7631]
at 
mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:594]
at 
mx.controls::DataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1741]
at 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3962]
at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

The specific line that throws the exception is:

var headerBGSkin:IFlexDisplayObject = new headerBGSkinClass();

Anyone got a clue? I'm able to bring the spreadsheet up in my TitleWindow 
without issues, but when I try to put it in its own window. all hell breaks 
loose.

Jeff



[flexcoders] RE: Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Battershall, Jeff
Let's not get carried away here - no way is Apple going to stop supporting 
Flash on the Mac. That's one of those sky is falling' rumors that always start 
up when something like this happens.

The recent events are concerning as they potentially affect our mutual 
livelihoods, but really, there's so much business out there it doesn't matter.  
Personally, I think Jobs comes off has being biased and self-serving in his 
letter and clearly his 'facts' are skewed or outright wrong.  He's like, Adobe 
thinks they're going to play in my sandbox? Think again. He's a ruthless 
competitor, you give him that, but he's also a jerk, if we hadn't figured that 
out already.

Jobs is really digging his status as an opinion leader in the industry but when 
he starts to outright attack another company's business model, work ethic and 
so forth, he's stepped over the line, and typically such tactics backfire.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Mark A. DeMichele
Sent: Monday, May 03, 2010 8:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Thoughts on Flash by Steve Jobs




Everybody is talking about learning  another language.  That's the easy part. 
 It's porting an entire application that has several 100,000 lines of code.  
That's that hard part.  Someone mentioned losing flash support on all Macs.  Is 
that true?  I hope not.  I have over a million users using my flash app and 
about 25% of them have macs.  That would be bad.






RE: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-04-30 Thread Battershall, Jeff
Mike,

Adobe get cracking - are you kidding me  They've just released a slew of 
new products in the last two months; they're nearly done on FP 10.1, Air 2.0, 
and forged an important alliance with Google. 

What more do you want them to do before you can say they've gotten cracking?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mitek17
Sent: Friday, April 30, 2010 12:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Thoughts on Flash by Steve Jobs



--- In flexcoders@yahoogroups.com, Seth Caldwell w...@... wrote:

 Steve is employing several tactics used by politicians. The iphone is not
 open. 

iPhone is a device, not a technology. Technology should be open, device  
software could be proprietary. Steve stresses it particularly, please read 
Job's message more throroughly. 


I hope that the pressure from Jobs will finally make Adobe get cracking.

Hey, what's with Linux support? What is happening with exception handling? are 
we there yet? No? Adobe, are you still busy with FX prefix? How many more years 
it will take to implement the feature which should appear first in any 
development platform.

It took us YEARS (sic!) for voting, whinging and asking to fix the bugs and 
provide basic features. Printing support? Forget it, the company which invented 
PDF  Postscript  is too busy with something else. 


Adobe, please wake up and make your call, otherwise it will be too late.  

PS By waking up I don't mean submitting another pile of letters to FTC :) 









--
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] TitleWindow Custom Components - A Problem

2010-04-29 Thread Battershall, Jeff
Hi,

Let me describe the scenario:  I'm using Hillen Coren's AutoComplete component 
to suggest choices for a user inside of a DataGrid ItemRenderer, which has been 
working fine in Flex 3.x for a year. One additional factor - this grid is 
popped up as part of a TitleWindow using PopUpManager.

I'm now porting the application to Flex 4 and Parsley.  That port is going 
great, but the AutoComplete component simply stopped working when part of this 
popped up Window.  It works fine within the main app.

Has anyone run into similar behavior?  I've noticed 'interesting' stuff with 
TitleWindows in the past.  Any advice appreciated

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] Detecting Scrollbar presence on Flex 4 List

2010-04-29 Thread Battershall, Jeff
Allmas,

Thanks! - that's exactly where I ended up - this was basically a Flex 4 
learning curve issue.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Haykel BEN JEMIA
Sent: Thursday, April 29, 2010 7:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Detecting Scrollbar presence on Flex 4 List




Try to look in the List.scroller or List.scroller.viewport properties.

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com



On Fri, Apr 23, 2010 at 3:10 AM, Jeff 
jbarts1...@yahoo.commailto:jbarts1...@yahoo.com wrote:


I'm trying to use a Spark List with a single itemRenderer in the place of an 
mx:DataGrid for memory/performance reasons.

The itemRenderer that has all the items horizontally I need. The problem I'm 
running into is getting the header (which I've created outside of the List 
control to have the labels that line up with my itemrenderer elements. Things 
work great until my list requires scrolling. Then the 16 pixel scrollbar throws 
things out of whack.

I could probably make a simple adjustment if I could detect the presence of the 
scrollbar on the list component and adjust my header elements accordingly. I 
just haven't been able to figure out how to do that yet.

Anyone dealt with this?

Jeff







RE: [flexcoders] TitleWindow Custom Components - A Problem

2010-04-29 Thread Battershall, Jeff
Spark wherever I can.  While investigating, I found that the component does 
work fine in a Spark TitleWindow.  There must be some other factor, possibly 
related to Parsley, but I'm still working on it.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, April 29, 2010 12:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TitleWindow  Custom Components - A Problem



Are you still using mx components or switching to spark?


On 4/29/10 8:32 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Hi,

Let me describe the scenario:  I'm using Hillen Coren's AutoComplete component 
to suggest choices for a user inside of a DataGrid ItemRenderer, which has been 
working fine in Flex 3.x for a year. One additional factor - this grid is 
popped up as part of a TitleWindow using PopUpManager.

I'm now porting the application to Flex 4 and Parsley. That port is going 
great, but the AutoComplete component simply stopped working when part of this 
popped up Window.  It works fine within the main app.

Has anyone run into similar behavior?  I've noticed 'interesting' stuff with 
TitleWindows in the past. Any advice appreciated

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






[flexcoders] Detecting Scrollbar presence on Flex 4 List

2010-04-23 Thread Jeff
I'm trying to use a Spark List with a single itemRenderer in the place of an 
mx:DataGrid for memory/performance reasons.

The itemRenderer that has all the items horizontally I need. The problem I'm 
running into is getting the header (which I've created outside of the List 
control to have the labels that line up with my itemrenderer elements. Things 
work great until my list requires scrolling.  Then the 16 pixel scrollbar 
throws things out of whack.

I could probably make a simple adjustment if I could detect the presence of the 
scrollbar on the list component and adjust my header elements accordingly.  I 
just haven't been able to figure out how to do that yet. 

Anyone dealt with this?  

Jeff



[flexcoders] Re: Flex App Resize

2010-04-23 Thread Jeff
I've traced all of the height properties on the Stage and the Application and 
none of them seem to have the correct total height of the viewable area.  Is 
there some way to calculate this manually or some property that I'm 
overlooking?  Or is there a better way to embed the flex app so it can be 
resized in an easier way?  Thanks in advance.  

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

 MeasuredHeight measures the content of the app, not its assigned height.
 
 
 On 4/22/10 7:27 AM, Jeff britton.j...@... wrote:
 
 
 
 
 
 
 I have a flex application embedded within an HTML page.  I've been trying to 
 resize the html element dynamically via an ExternalInterface call to a 
 javascript function in the host page.  Unfortunately, listening to Resize 
 events and/or overriding the updateDisplayList method on the Application 
 doesnt seem to give me the correct height (measuredHeight property).  Any 
 ideas on how to calculate the complete application height?
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Flex App Resize

2010-04-22 Thread Jeff
I have a flex application embedded within an HTML page.  I've been trying to 
resize the html element dynamically via an ExternalInterface call to a 
javascript function in the host page.  Unfortunately, listening to Resize 
events and/or overriding the updateDisplayList method on the Application doesnt 
seem to give me the correct height (measuredHeight property).  Any ideas on how 
to calculate the complete application height?



RE: [flexcoders] Re: Uploading An Image Without Browse

2010-04-16 Thread Battershall, Jeff
Using the FileSystem API and ByteArray you can save/read/upload images 
automatically, using your middleware of choice without the user having to 
browse and select the image. 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of James
Sent: Thursday, April 15, 2010 3:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Uploading An Image Without Browse

My app has a html component which allows the user to enter a website into it. 
When the website is fully loaded a snapshot is made of the html component and 
then saved in the application directory automatically. I want this file to then 
automatically upload to my server rather than just being saved on in the app 
directory. I can easily do it using the browse method but can't figure out how 
to get it to simply go straight to the server without the user having to save 
it somewhere and then browse to upload it if that makes sense..

--- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote:

 When you say take a snapshot, what do you mean?
 
 On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_...@...wrote:
 
  Is there any way to let a user upload an image from an air app without
  having them browse for it? I want to let my users enter their name into a
  text input, take a snapshot and then the image will be uploaded to my server
  as whatevernametheuserhasentered.jpg
 
  Is there any way to do this and does anyone know of any similar examples?
  All I can find is uploading via the browse function.
 
 
 
  
 
  --
  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: 
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] Re: Uploading An Image Without Browse

2010-04-16 Thread Battershall, Jeff
James,

Using RemoteObject I've uploaded bitmap snapshots without previously saving the 
bytes to disk, using CF as a backend.  Not exactly sure how you'd do this with 
PHP, but I'm sure it's doable. You'd probably have to use some version of 
AMFPHP. 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of James
Sent: Friday, April 16, 2010 1:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Uploading An Image Without Browse

Cheers Jeff. I'm sure that'd work too. I've found a way around it and can now 
allow users to upload without the browse. The problem is though I now want it 
to upload the file without it having to save it on the user's machine first. At 
the moment my code snapshots the html component, saves this as a bitmapdata, 
resizes this bitmapdata, then a jpegencoder turns this bitmapdata into a jpg 
file which is named after whatever the user has entered into a text input 
component in my app. It then uploads this jpeg from the location it's saved to. 
I'm wondering is there any way of me editing my code so it uploads the jpeg 
straight away rather than storing it on the machine too? Here's my script code 
containing the function which does all this:-

mx:Script
![CDATA[

import mx.graphics.codec.JPEGEncoder;
import mx.graphics.ImageSnapshot;
private var imageuploadurlRequest:URLRequest;
private var serverSideScript:String = *my upload php file goes 
here*; 

private function imageuploadinit():void {
imageuploadurlRequest = new 
URLRequest(serverSideScript);
}

private function takeSnapshot(event:Event) :void{
var bigbmd:BitmapData = 
ImageSnapshot.captureBitmapData(linkviewer) ;
var scale:Number = 0.50; 
var matrix:Matrix = new Matrix(); 
matrix.scale(scale, scale);
var smallbmd:BitmapData = new BitmapData(bigbmd.width * 
scale, bigbmd.height * scale, true, 0x00);
smallbmd.draw(bigbmd, matrix, null, null, null, true);  

var jpgEncoder:JPEGEncoder = new JPEGEncoder( 100 );
var ba:ByteArray = jpgEncoder.encode(smallbmd);
var enteredimagename:String = titleentry.text;  
  
var file:File = 
File.applicationDirectory.resolvePath(('assets/createdimages/')+enteredimagename+('.jpg'));
var wr:File = new File(file.nativePath);
var stream:FileStream = new FileStream();
stream.open( wr, FileMode.WRITE);
stream.writeBytes ( ba, 0, ba.length );
stream.close();

imagesnapshotpreview.source=(('assets/createdimages/')+enteredimagename+('.jpg'));
file.upload(imageuploadurlRequest); 
}

]]
/mx:Script

--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 Using the FileSystem API and ByteArray you can save/read/upload images 
 automatically, using your middleware of choice without the user having to 
 browse and select the image. 
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of James
 Sent: Thursday, April 15, 2010 3:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Uploading An Image Without Browse
 
 My app has a html component which allows the user to enter a website into it. 
 When the website is fully loaded a snapshot is made of the html component and 
 then saved in the application directory automatically. I want this file to 
 then automatically upload to my server rather than just being saved on in the 
 app directory. I can easily do it using the browse method but can't figure 
 out how to get it to simply go straight to the server without the user having 
 to save it somewhere and then browse to upload it if that makes sense..
 
 --- In flexcoders@yahoogroups.com, Steve Mathews happydog@ wrote:
 
  When you say take a snapshot, what do you mean?
  
  On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_ict@wrote:
  
   Is there any way to let a user upload an image from an air app without
   having them browse for it? I want to let my users enter their name into a
   text input, take a snapshot and then the image will be uploaded to my 
   server
   as whatevernametheuserhasentered.jpg
  
   Is there any way to do this and does anyone know of any similar examples?
   All I can find is uploading via the browse function.
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ

RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-14 Thread Battershall, Jeff
Reports of Flash's demise are premature to say the least.  I think Flash will 
likely be around for some time and will live long and prosper in a variety of 
contexts.  Steve isn't seeing the future so much as trying to create a future 
that provides best competitive advantage to Apple.  And of course, as Adobe is 
fond of saying, Flash will push the envelope as to what is possible. It will 
remains to be seen how compelling a case Flash makes for itself, but I'm not 
going to drop kick Flash just Steve Jobs says I should. He ain't my pal.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Adnan Doric
Sent: Wednesday, April 14, 2010 10:25 AM
To: flexcoders@yahoogroups.com
Cc: Guy Morton
Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple



On 14/04/2010 13:10, Guy Morton wrote:


Flipping this whole discussion on its head for a moment

Adobe used to have the best SVG runtime player in the land. It was fast, had 
good support for the SVG standard and it was stable.

Then Adobe bought Macromedia. They discontinued development and support for 
their SVG player because now they had Flash!

Adobe could, I'm sure, alter their Flash development tools to output 
SVG+Javascript. In fact, I'd be surprised if they hadn't already experimented 
with this.

If Adobe was as smart as they think they are, they'd RIGHT NOW fast-track 
SVG+Javascript export into Flex and Flash IDEs. This would let them become the 
premier tool for developing iPhone apps, standards-based web vector animations 
and would encourage adoption of open standards at such a rate that it'd hobble 
Silverlight into the bargain!


Flash is here because standards sucks. When standards will be good enough, 
flash will disappear, bunt won't happen anytime soon.


Of course that is just an idle dream, and instead they will keep pushing their 
proprietary solution and wait for the killer open-standards IDE that will allow 
developers to make full use of HTML 5 to pop up and change the market for them. 
Then we will see Flash become a thing of the past.

eg check this out

http://demo.sproutcore.com/sample_controls/

Look familiar? Look ma! NO plugins, just HTML 5!

I don't know for others, but it reminds me of Flash 5 ten years old with extra 
crossbrowser issues.
Let me think... hell no, don't want to go there :)

Maybe in few years HTML will be like flash 8, and few more years it will be 
like flash 10. There will be flash 16 and AS4 by the time, another gap for HTML 
to reach.

So, yeah, good luck with your HTML mate, I wish you good luck, really.


Vale Flash, you have been good to us, but your time is drawing to a close. 
Steve Jobs has seen the future, and Flash ain't there.

Guy

The future where Apple dictates what you can install on your phone, what you 
can see on the web, what music you can listen ?
Sound great, see you there :)







RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-12 Thread Battershall, Jeff
Well put, Gregor.  It does in fact seem that Apple is treated as more important 
than it really is, in terms of market share.  Give that to their marketing and 
the support of fanatical fan boys and tech pundits.   Just heard an ad last 
night for a Netbook touting that it's Flash Enabled - its possible that 
Apple's strategy of exclusion might backfire.  It certainly seems silly on 
Apple's part to limit apps because of the source. That's like saying we only 
want e-books for our device that were written using a specific word processor.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gregor Kiddie
Sent: Monday, April 12, 2010 6:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: With the latest eula agreement from Apple




Doesn't matter, the wording doesn't mention XCode, just the languages it's 
originally written in.
They'll still be fine though, Apple is free to ignore the agreement when it 
suits them, and they aren't going to cut off Unity. They'll just reject 
anything written for Flash / DotNet.

At the end of the day, Apple get a disproportionate amount of media coverage to 
their actual market share. Apple blocking the iPhone is annoying, but we still 
have the market leader (RIM), Android, etc. Flash Player 10.1 will end up on 
more devices than the whole iPhone install base.

I'd rather call myself a mobile developer than restrict myself to being an 
iPhone developer, and that hasn't changed.

Gk.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tom Chiverton
Sent: 12 April 2010 10:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple



On Friday 09 Apr 2010, Battershall, Jeff wrote:
 Reportedly Unity 3D was told that this new EULA would not apply to them,
 yet on the face of it, it should.

Doesn't Unity work by using a real Xcode project ? Unlike CS5...








[flexcoders] Re: Performance feedback PLEASE

2010-04-09 Thread Jeff

60 fps
Intel Core2 Duo 2.67GHz
4 GB RAM
64-bit Windows 7

--- In flexcoders@yahoogroups.com, Allan Pichler dreamc...@... wrote:

 I was wondering if anyone could take a quick glance at my AS3 3d renderer
 http://api.pluton.webhouse.dk/pool3d/pool3d.html and reply what FPS they get
 on their gear. If you could also provide your CPU info that would be
 extremely helpful.
 
  
 
 For the curious the engine sports the following features:
 
  
 
 Subpixel positioning (1/4 pixel on both x  y)
 
 Antialiasing
 
 Ambient light
 
 Specular light
 
  
 
  
 
 Best regards and have a wonderful day!
 
  
 
 Allan Pichler
 
 RIA Architect - ColdFusion/Flex/Ajax/UI
 
  
 
 Email: dreamc...@...
 
 Phone DK: +45 22 68 08 88
 
 Phone US: +1 (415) 683 0313
 
 Skype:apichler
 
 Yahoo:allan_pichler
 
 Facebook: www.facebook.com/apichler
 
 LinkedIn:   www.linkedin.com/in/apichler





RE: [flexcoders] With the latest eula agreement from Apple

2010-04-09 Thread Battershall, Jeff
I love my MacBook Pro, and related Apple products, but Steve Jobs is really 
starting to piss me off.  Apparently this 'restriction' is not being applied 
evenhandedly across the boards with other similar packaging tools. I am sure 
that Flash being integrated with Chrome isn't helping things either. But in 
Steve's world, it's his way or the highway.  And then to invoke the Open 
Standards criticism of Flash becomes even more disingenuous that before.  Open 
standards my a**, this is just plain and simple cutthroat competition. And the 
timing - the timing of this given the imminent release of CS5 - you'd think 
that if he was going to do this he should have done it a year or more ago. It's 
not like he didn't know that this capability was being developed.

This smacks of anti-competitive practices and I for one hope something can (and 
will) be done about it.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Patrick
Sent: Friday, April 09, 2010 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] With the latest eula agreement from Apple

Will adobe punch back and file a law suit against apple? This is total crap. 





--
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] Re: With the latest eula agreement from Apple

2010-04-09 Thread Battershall, Jeff
The source may be hearsay, but is referenced in this blog post:

http://whydoeseverythingsuck.com/2010/04/steve-jobs-has-just-gone-mad.html

Reportedly Unity 3D was told that this new EULA would not apply to them, yet on 
the face of it, it should.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jeffry Houser
Sent: Friday, April 09, 2010 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: With the latest eula agreement from Apple


 Can you provide a source for the restrictions not being applied 
evenhandedly?  

 As far as I know, Apple has changed their developer agreement for iPhone / 
iPad / iPod Touch.  They have not attempted to enforce the new restriction on 
anyone, Adobe or otherwise.  


--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 I love my MacBook Pro, and related Apple products, but Steve Jobs is really 
 starting to piss me off.  Apparently this 'restriction' is not being applied 
 evenhandedly across the boards with other similar packaging tools. I am sure 
 that Flash being integrated with Chrome isn't helping things either. But in 
 Steve's world, it's his way or the highway.  And then to invoke the Open 
 Standards criticism of Flash becomes even more disingenuous that before.  
 Open standards my a**, this is just plain and simple cutthroat competition. 
 And the timing - the timing of this given the imminent release of CS5 - you'd 
 think that if he was going to do this he should have done it a year or more 
 ago. It's not like he didn't know that this capability was being developed.
 
 This smacks of anti-competitive practices and I for one hope something can 
 (and will) be done about it.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Patrick
 Sent: Friday, April 09, 2010 10:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] With the latest eula agreement from Apple
 
 Will adobe punch back and file a law suit against apple? This is total crap. 
 
 
 
 
 
 --
 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: 
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] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Jeff
Correct me if I'm wrong, but the data descriptor is essentially a node visitor. 
 It will tell the tree how to render a given node.  However, it has no way of 
adding nodes to previous nodes (ie groups).  Take this scenario:

[
{group:animal, item:cat},
{group:fruit, item:apple},
{group:animal, item:dog},
{group:fruit, item:orange}
]

Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
-animal
--cat
-fruit
--apple
-animal
--dog
-fruit
--orange

when what you want is this:
-animal
--cat
--dog
-fruit
--apple
--orange

I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
scenario?


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

 The goal of IDataDescriptor was to turn just about anything into a heirarchy. 
  You could have the following data structure:
 
 Class AddressBookEntry
 {
 var name:String
 var MobilePhone:String
 var HomePhone:String
 var WorkPhone:String
 }
 
 And turn it into a tree by having the getChildren call return an 
 ArrayCollection made up of the 3 phone number slots.
 
 
 
 On 4/6/10 5:26 PM, Jeff britton.j...@... wrote:
 
 
 
 
 
 
 
 
 I cant vouch for the ILog Elixir stuff.  There might be an easy way to do it. 
  Assuming that doesnt suit your needs, I think you may need to massage your 
 data a bit because I dont think the data descriptor alone will give you what 
 you're looking for.
 
 I'm assuming this is basically your desired tree structure:
 -group1
 --item
 --item
 -group2
 --item
 --item
 -group3
 --item
 --item
 
 Your probably going to need to put your data into a collection that looks 
 like this:
 
 var myCollection:ArrayCollection = new ArrayCollection([
 {group:group1, items:[item,item,item]},
 {group:group2, items:[item,item,item]},
 {group:group3, items:[item,item,item]}
 ]);
 
 Then, you can use a dataDescriptor to tell the tree what properties of the 
 item object you want to display.  The tree is packaged with a default 
 dataDescriptor, so your data either has to conform to its conventions to 
 display properly or you have to override it.
 
 Implementing a very basic ITreeDataDescriptor and putting your debugger on it 
 will give you valuable insight as to how the Tree component traverses a given 
 data provider.  You can then tell the tree how to display the objects in your 
 collection.  Hope that helps.
 
 To anyone out there, iff there's an easier way to do it with the ILog stuff, 
 I'd appreciate a link to it.  Thanks.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 cuttenv cuttenv@ wrote:
 
  You could use a grouping Collection to group the data. If you check out the 
  ILog Exlir stuff they have a bunch of demos on how to do this.
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Alex Harui aharui@ wrote:
  
   The dataDescriptor's purpose is to allow you to create a hierarchy out of 
   flat data.
  
  
   On 4/6/10 8:42 AM, Phil Boissiere deletedfromyoutube@ wrote:
  
  
  
  
  
  
   Thanks, Oleg, Jeff.
  
   In reality the thing that comes back after querying my database is an 
   ArrayCollection of strongly typed objects (value objects?). These objects 
   have a linear (non-hierarchical) structure but I want to use one of the 
   properties (the group property) for the parent nodes in a Tree 
   component.
  
   Should I be looking at creating a custom data descriptor or a custom 
   object that implements the ICollectionView interface (does that mean 
   create a custom Tree component?).
  
   I just want to make sure I'm doing the right thing, since either approach 
   seems to involve quite a bit of ActionScript.
  
   Thanks again.
  
  
   --- On Tue, 4/6/10, Jeff britton.jeff@ wrote:
  
   From: Jeff britton.jeff@
   Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree 
   component
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
   Date: Tuesday, April 6, 2010, 7:18 AM
  
You can also create a custom data descriptor and set the 
   dataDescriptor property of the tree component.  See http://livedocs. 
   adobe.com/ flex/3/html/ help.html? content=about_ dataproviders_ 6.html 
   http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_6.html
  
   --- In flexcod...@yahoogro ups.com 
   /mc/compose?to=flexcoders%40yahoogroups.com , Oleg Sivokon 
   olegsivokon@ ... wrote:
   
The best way would be to implement your own ICollectionView, however, 
this
would be a complex task.
For your example, I'd do it like so:
   
private var ac:ArrayCollection = new ArrayCollection( [
{ Animals: [dog, cat],
{ Fruits: [orange, apple] }
]);
   
   
Best.
   
Oleg
   
  
  
  
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe System, Inc.
   http://blogs.adobe.com/aharui
  
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





RE: [flexcoders] DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread Battershall, Jeff
Are the labels rotated?  If so, are you sure that the font used is getting 
loaded as well?  I've seen some funny font behavior when related to loading 
Data Vis RSLs in the past.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of taude1
Sent: Wednesday, April 07, 2010 9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up

Hi All,

I've posted a question over at Stack Overflow on a problem that I'm having with 
my Axis labels not showing up on a chart.

I think it has to do with my use of the framework RSL when it loads, but 
nonetheless, it's a big issue and I can't seem to figure it out.

Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
labels still don't show up.

http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build

BTW, I think stackover.com is a superior method of developer interaction in a 
Q/A format and love to see more of the Adobe gurus that hang out here, over 
there.  For example, it's really easy to post screen shots and such in the 
question.

Thanks.





--
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] Re: DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread Battershall, Jeff
Well, rotated or not, I've definitely seen some unexpected behavior related to 
fonts and RSLs. In one application I ended up merging into code to address the 
issue. 

Maybe what I encountered isn't the same as what you're seeing but it sure 
sounds similar. Is the font being used for the axis labels embedded?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of taude1
Sent: Wednesday, April 07, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up

The labels definitely aren't rotated.  And the fonts being used show up 
everywhere else in the application, including the same screens that contain the 
charts.  (The posted chart graphics are a small subset of the entire screen.)

--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 Are the labels rotated?  If so, are you sure that the font used is getting 
 loaded as well?  I've seen some funny font behavior when related to loading 
 Data Vis RSLs in the past.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of taude1
 Sent: Wednesday, April 07, 2010 9:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up
 
 Hi All,
 
 I've posted a question over at Stack Overflow on a problem that I'm having 
 with my Axis labels not showing up on a chart.
 
 I think it has to do with my use of the framework RSL when it loads, but 
 nonetheless, it's a big issue and I can't seem to figure it out.
 
 Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
 labels still don't show up.
 
 http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build
 
 BTW, I think stackover.com is a superior method of developer interaction in a 
 Q/A format and love to see more of the Adobe gurus that hang out here, over 
 there.  For example, it's really easy to post screen shots and such in the 
 question.
 
 Thanks.
 
 
 
 
 
 --
 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: 
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] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Battershall, Jeff
One of the problems with the code sample below is that its going to fire off a 
whole lot of events in creating the nested ArrayCollections and adding items to 
them. Better yet make an array and create your nested ArrayCollection in one 
shot, passing the source array in the constructor. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of md_ars
Sent: Wednesday, April 07, 2010 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree component




I ran in to the similar requirement for my Menu application. I am also getting 
data from database with child-parent relationship. I am parsing that data in 
ArrayCollection and created a new nested ArrayCollection which I used as the 
data provider for my Menu. I don't know whether it is the recommended solution 
from Flex but it is working so far. Check following function if it can help 
your cause. In case you write custom Data Descriptor, please share it.

Thanks
Arshad

private function buildNestedArray(flatArray:ArrayCollection,
parentId:int):ArrayCollection {
/* This recursive function takes a flat Array Collection and creates a nested
Array to implement Parent/Child hierarchy*/
 var i:int = 0;
 var nestedArray:ArrayCollection = new ArrayCollection();
 var parents:ArrayCollection = new ArrayCollection();

  for (i = 0; i  flatArray.length; i++) {
 if (flatArray[i][parentId] == parentId)
 parents.addItem(flatArray[i]);
 }

 if (parents.length  1)
 return null;

  for (i = 0; i  parents.length; i++) {
   var node:Object = parents[i];
   var children:ArrayCollection = buildNestedArray(flatArray,
node[itemId]);
   if (children ) {
   if (children.length  0) {
   node[children] = children;
   }
   }
 nestedArray.addItem(parents[i]);
   }
 return nestedArray;
}


--- In flexcoders@yahoogroups.com, Jeff britton.j...@... wrote:

 Correct me if I'm wrong, but the data descriptor is essentially a node 
 visitor.  It will tell the tree how to render a given node.  However, it has 
 no way of adding nodes to previous nodes (ie groups).  Take this scenario:
 
 [
 {group:animal, item:cat},
 {group:fruit, item:apple},
 {group:animal, item:dog},
 {group:fruit, item:orange}
 ]
 
 Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
 -animal
 --cat
 -fruit
 --apple
 -animal
 --dog
 -fruit
 --orange
 
 when what you want is this:
 -animal
 --cat
 --dog
 -fruit
 --apple
 --orange
 
 I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
 scenario?
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  The goal of IDataDescriptor was to turn just about anything into a 
  heirarchy.  You could have the following data structure:
  
  Class AddressBookEntry
  {
  var name:String
  var MobilePhone:String
  var HomePhone:String
  var WorkPhone:String
  }
  
  And turn it into a tree by having the getChildren call return an 
  ArrayCollection made up of the 3 phone number slots.
  
  
  
  On 4/6/10 5:26 PM, Jeff britton.jeff@ wrote:
  
  
  
  
  
  
  
  
  I cant vouch for the ILog Elixir stuff.  There might be an easy way to do 
  it.  Assuming that doesnt suit your needs, I think you may need to massage 
  your data a bit because I dont think the data descriptor alone will give 
  you what you're looking for.
  
  I'm assuming this is basically your desired tree structure:
  -group1
  --item
  --item
  -group2
  --item
  --item
  -group3
  --item
  --item
  
  Your probably going to need to put your data into a collection that looks 
  like this:
  
  var myCollection:ArrayCollection = new ArrayCollection([
  {group:group1, items:[item,item,item]},
  {group:group2, items:[item,item,item]},
  {group:group3, items:[item,item,item]}
  ]);
  
  Then, you can use a dataDescriptor to tell the tree what properties of the 
  item object you want to display.  The tree is packaged with a default 
  dataDescriptor, so your data either has to conform to its conventions to 
  display properly or you have to override it.
  
  Implementing a very basic ITreeDataDescriptor and putting your debugger on 
  it will give you valuable insight as to how the Tree component traverses a 
  given data provider.  You can then tell the tree how to display the objects 
  in your collection.  Hope that helps.
  
  To anyone out there, iff there's an easier way to do it with the ILog 
  stuff, I'd appreciate a link to it.  Thanks.
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  cuttenv cuttenv@ wrote:
  
   You could use a grouping Collection to group the data. If you check out 
   the ILog Exlir stuff

[flexcoders] Grid Problems

2010-04-07 Thread Jeff
I have a component that creates a Grid container and adds many rows based on 
the data.  There are instances where the whole grid/grid rows need to be 
redrawn.  Removing all the rows and then adding rows seems to cause a TypeError 
deep in the flex core.  I was bypass this error by deleting the rows and 
wrapping the function that adds the rows with callLater. However, this causes a 
noticeable flicker on the screen between removal and addition of rows.  If 
anyone knows of a better way, I'd appreciate your advice.  Thanks in advance.



[flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-06 Thread Jeff
You can also create a custom data descriptor and set the dataDescriptor 
property of the tree component.  See 
http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_6.html
 

--- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote:

 The best way would be to implement your own ICollectionView, however, this
 would be a complex task.
 For your example, I'd do it like so:
 
 private var ac:ArrayCollection = new ArrayCollection([
 { Animals: [dog, cat],
 { Fruits: [orange, apple] }
 ]);
 
 
 Best.
 
 Oleg





[flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-06 Thread Jeff



I cant vouch for the ILog Elixir stuff.  There might be an easy way to do it.  
Assuming that doesnt suit your needs, I think you may need to massage your data 
a bit because I dont think the data descriptor alone will give you what you're 
looking for.

I'm assuming this is basically your desired tree structure:
-group1
--item
--item
-group2
--item
--item
-group3
--item
--item

Your probably going to need to put your data into a collection that looks like 
this:

var myCollection:ArrayCollection = new ArrayCollection([
{group:group1, items:[item,item,item]},
{group:group2, items:[item,item,item]},
{group:group3, items:[item,item,item]}
]);

Then, you can use a dataDescriptor to tell the tree what properties of the item 
object you want to display.  The tree is packaged with a default 
dataDescriptor, so your data either has to conform to its conventions to 
display properly or you have to override it.

Implementing a very basic ITreeDataDescriptor and putting your debugger on it 
will give you valuable insight as to how the Tree component traverses a given 
data provider.  You can then tell the tree how to display the objects in your 
collection.  Hope that helps.

To anyone out there, iff there's an easier way to do it with the ILog stuff, 
I'd appreciate a link to it.  Thanks.


--- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote:

 You could use a grouping Collection to group the data. If you check out the 
 ILog Exlir stuff they have a bunch of demos on how to do this.
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  The dataDescriptor's purpose is to allow you to create a hierarchy out of 
  flat data.
  
  
  On 4/6/10 8:42 AM, Phil Boissiere deletedfromyoutube@ wrote:
  
  
  
  
  
  
  Thanks, Oleg, Jeff.
  
  In reality the thing that comes back after querying my database is an 
  ArrayCollection of strongly typed objects (value objects?). These objects 
  have a linear (non-hierarchical) structure but I want to use one of the 
  properties (the group property) for the parent nodes in a Tree component.
  
  Should I be looking at creating a custom data descriptor or a custom object 
  that implements the ICollectionView interface (does that mean create a 
  custom Tree component?).
  
  I just want to make sure I'm doing the right thing, since either approach 
  seems to involve quite a bit of ActionScript.
  
  Thanks again.
  
  
  --- On Tue, 4/6/10, Jeff britton.jeff@ wrote:
  
  From: Jeff britton.jeff@
  Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree 
  component
  To: flexcoders@yahoogroups.com
  Date: Tuesday, April 6, 2010, 7:18 AM
  
   You can also create a custom data descriptor and set the 
  dataDescriptor property of the tree component.  See http://livedocs. 
  adobe.com/ flex/3/html/ help.html? content=about_ dataproviders_ 6.html 
  http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_6.html
  
  --- In flexcod...@yahoogro ups.com 
  /mc/compose?to=flexcoders%40yahoogroups.com , Oleg Sivokon olegsivokon@ 
  ... wrote:
  
   The best way would be to implement your own ICollectionView, however, this
   would be a complex task.
   For your example, I'd do it like so:
  
   private var ac:ArrayCollection = new ArrayCollection( [
   { Animals: [dog, cat],
   { Fruits: [orange, apple] }
   ]);
  
  
   Best.
  
   Oleg
  
  
  
  
  
  
  
  
  
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 





[flexcoders] Best practices with modular applications

2010-04-01 Thread Jeff
We are building an application to create many types of diagrams.  The intent is 
to have a main application that acts as a general loader for many diagram types 
implemented as modules.  The dilemma is whether to break the modules out into 
separate flex projects or to include them as subdirectories of the main 
application's project.  I've seen some of the adobe documentation but I'm 
hoping that someone has some experience/insights as to which is the better 
approach.  Thanks.



RE: [flexcoders] Re: Framework Choice

2010-03-25 Thread Battershall, Jeff
Some architectural pattern is going to be necessary if the app is of any size 
and has a team working on it. Otherwise, each developer will solve their 
problems in their own way and can lead to chaos.  You can formulate the 
architectural pattern yourself or use a published framework. As you said, using 
a published framework in some ways might make it easier to bring developers on 
board.  Frameworks are intended to be implementations of architectural patterns 
- the framework choice IMO is based upon what gives you the best balance of 
freedom to solve your problems as you choose, with ways of solving problems 
without having to reinvent the wheel all the time.

I've used Cairngorm a lot in the past, but I've kind of soured on it - doesn't 
solve enough problems, IMO. It is NOT module-friendly; in particular the 
ModelLocator singleton does not lend itself to unloading modules. 

I'm liking the direction that Cairngorm 3 is taking - it is less a proscriptive 
framework than a collection of best practices and libraries you can choose to 
use or not.  It does use the capabilities of Parsley for wiring the application 
together and so far in my projects, it works great. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tntomek
Sent: Wednesday, March 24, 2010 5:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Framework Choice

Thumbs up for just using Flex SDK as the framework. Make good use of custom 
business interfaces and ensure all developers develop controls within some 
container vs Application/Module (leave the loading of their actual code to 
someone who really understands Flex). Also take the hit and wrap most Flex 
controls with your own, it will come in handy in future.

-Tomek (http://tomek.me)

--- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote:

 I have been tasked with architecting a large application for a company a
 friend of mine works at.  I will also do some of the coding and act as a
 mentor, teaching people on staff the ins and outs of Flex.
 
 In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a
 framework.  I wrote a very basic app w/ Mate once just to learn it and I
 didn't really like it.  So, my question to everyone here is what Framework
 would you chose?  Keep in mind, the people I'll be working with are
 relatively new to flex and the application is going to end up being quite
 large.  Down the road it will likely have an AIR counterpart.  We might use
 modules but for now I'm staying away from that because it adds another layer
 of complexity that in the initial stages is not needed.
 
 My thoughts on this are that Cairngorm would be easier to learn for them and
 they had talked about brining more people on in the future for this
 project.  If that's the case, it would likely be easier to find people
 familiar with Cairngorm than some of the alternatives.  But, I don't want to
 rule out any of the alternatives if they might actually be a better choice.
 
 
 Opinions please.
 
 Thanks!
 
 -Jake Churchill







--
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] Re: Framework Choice

2010-03-24 Thread Battershall, Jeff
Even if you organize your code to some sort of internally formulated 
organization, you're already kind of using a framework - of your own creation.

The disadvantage to that IMO, as soon as you start writing one you now become 
responsible for documenting your particular approach and communicating it to 
developers who might also work on your project.  If your project needs to 
scale, using a published framework gives you the ability to find resources who 
also know the framework, and gets them up to speed more quickly.

I've been on projects (otherwise known as nightmares) where the previous 
developer used no framework, and didn't document what they did.  I remember one 
in particular where it was stated that it might take 6 months to get up to 
speed on the way the app was built.  That's just a waste of time and money.

All that said, I've used Cairngorm for years and the original version, while 
workable, is taking a back seat to IOC frameworks.  I'm using Cairngorm 3 and 
Parsley and I really like the development model.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jake Churchill
Sent: Wednesday, March 24, 2010 11:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Framework Choice



I have never written an app using modules.  I understand the logic behind it, 
I've just never had the need.  Is there anything regarding modules that I 
should know before starting?
On Wed, Mar 24, 2010 at 10:27 AM, valdhor 
valdhorli...@embarqmail.commailto:valdhorli...@embarqmail.com wrote:


I have an extremely large enterprise application (24 modules and counting) that 
does not use any framework. If you can discipline yourself in the way you 
organize your code, I don't really see the need for a framework. It just adds 
complexity in my view.

I would recommend starting with modules if you see the need may be coming later 
on. I started with a monolithic app while I was learning Flex and had to change 
over to modules six months in. That was no fun I can tell you. Now that each 
part is in a module it makes it much easier for other team members to modify 
the code. It is also a lot easier to follow the logic. I would also recommend a 
versioning system - we use Subversion.


--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jake 
Churchill reyna...@... wrote:

 I have been tasked with architecting a large application for a company a
 friend of mine works at. I will also do some of the coding and act as a
 mentor, teaching people on staff the ins and outs of Flex.

 In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a
 framework. I wrote a very basic app w/ Mate once just to learn it and I
 didn't really like it. So, my question to everyone here is what Framework
 would you chose? Keep in mind, the people I'll be working with are
 relatively new to flex and the application is going to end up being quite
 large. Down the road it will likely have an AIR counterpart. We might use
 modules but for now I'm staying away from that because it adds another layer
 of complexity that in the initial stages is not needed.

 My thoughts on this are that Cairngorm would be easier to learn for them and
 they had talked about brining more people on in the future for this
 project. If that's the case, it would likely be easier to find people
 familiar with Cairngorm than some of the alternatives. But, I don't want to
 rule out any of the alternatives if they might actually be a better choice.


 Opinions please.

 Thanks!

 -Jake Churchill








[flexcoders] Re: karaoke component

2010-03-24 Thread Jeff
What would a karaoke Component do?

--- In flexcoders@yahoogroups.com, Fernando Wermus fernando.wer...@... wrote:

 Hi all,
 I am looking for a karaoke component. Does any one know if it exists
 some to buy it?
 
 thanks in advance
 
 
 -- 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus





[flexcoders] Re: 360flex videos

2010-03-22 Thread Jeff
E-mail them; or watch their blog and / or twitter feed.

They have a huge amount of video; and I expect it'll take a couple months to 
get it all processed and uploaded somewhere.

--- In flexcoders@yahoogroups.com, Ariel J arielj...@... wrote:

 I was told attendees would get access to the videos from the conference. 
 Anyone know where they can be found?





[flexcoders] Re: WHO IS RESPONSIBLE???

2010-03-22 Thread Jeff
When did Flash Builder join the Creative Suite? 

--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 My understanding is that none of Adobe's Creative Suite applications support 
 being installed on a case-sensitive Mac file system. The Flex team was 
 unfortunately unable to get this restriction relaxed when Flash Builder 
 joined the Creative Suite.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Florian
 Sent: Monday, March 22, 2010 5:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] WHO IS RESPONSIBLE???
 
 
 
 I am scared...
 
 I was glad to see that there is now Flash Builder 4 available @ adobe.com... 
 I am glad i didn't buy it right away. I can't install it on a case sensitive 
 formatted HDD?





[flexcoders] BlazeDS collections help

2010-03-21 Thread Jeff
Does anyone have any experience with mapping Actionscript collections (ie. 
ArrayCollection, Object - Map, Dictionary, etc) back to Java collections using 
RemoteObject and BlazeDS.  If so, any insights, tips, tricks would be greatly 
appreciated.  It seems that the Java to actionscript works pretty seamlessly 
while the actionscript back to Java requires some additional work with 
converting types.  

I'm using the RemoteClass metadata tag but ArrayCollection is failing to 
convert back to a ListString java object.  Thanks.



RE: [flexcoders] Re: Flex 4....Large recordset...how much is too much?

2010-03-16 Thread Battershall, Jeff
Sounds like you need to decouple the scrollbar from the list control so that 
you can set the scroll bar min/max values based upon the size of the dataset, 
which would have to be returned as metadata, independently of the entire 
dataset. You move the scrollbar, an rpc call is made, and a section of the 
dataset is returned and rendered. This would eliminate the memory hit from 
bringing over a huge dataset of AS objects in one shot. The latency over the 
wire shouldn't be too bad, because at any given time you're only requesting a 
small portion of the total records. No point in returning more records that the 
user can practically interact with at any one time.

See the VScrollBar control.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, March 16, 2010 12:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 4Large recordset...how much is too much?



Can you reproduce your problem in a simple test case?  You say you aren't 
bringing down the full data set all at once so unless your data records are 
really big or you are trying to make the datagrid really tall so it can 
display without scrollbars, I wouldn't expect you to run out of memory.

If you use up more than 500MB the Browser and Flash Player start getting 
creaky, but otherwise I would expect things to work.  If you make the DG more 
than 8000 pixels tall, you can run into Flash Player limits.

When you say crash is the Player/Browser crashing or are you getting a runtime 
exception?  If you're getting an exception, what is the stack trace?


On 3/15/10 4:32 PM, iloveyouwisconsin iloveyouwiscon...@yahoo.com wrote:





We have a need for that in our project. I will say that much w/out giving away 
the idea. The question, though, is why is Flex (without hacks) limiting the 
amount of data we can view? The datagrid should be smarter than it is and in my 
opinion has a long way to go in order to be a truly viable means for 
data-intensive applications. Remember, I'm not VIEWING 15 million records at 
ONCE. I'm only retrieving 25 or 100 rows at a time from a database that is 15 
million records. I want to give the user the OPTION of jumping around the 
database via moving the thumb around on the scrollbar...without crashing the 
application.

As a workaround (at least in the short-term), how could I force the thumb icon 
to the bottom of the scrollbar after a user scrolls, like they do here: 
http://blog.tremend.ro/2009/03/02/flex-live-scroll-datagrid? I know that they 
have source enabled, but the switch to flex 4 (and paging enabled on my php 
service) would change the entire process, right?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
gmbroth gmbr...@... wrote:

 I'm curious: what's the use case for pushing 15 million (or, heck, even 
 50,000) records to the client?


 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 iloveyouwisconsin iloveyouwisconsin@ wrote:
 
  Maybe I'll have to wait until Flex 7 (or later) 'til they truly make flex 
  able to handle large datasets smoothly. (I guess I'll also have to advise 
  those at Adobe and the flex evangelists that what they define as a large 
  dataset isn't large in practice. They probably need to moonlight as interns 
  for a few of their customers to snapback into reality. There's no company 
  in the real world that would define a large dataset as only a few thousand 
  items)
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  iloveyouwisconsin iloveyouwisconsin@ wrote:
  
   How many records is considered too large for a datagrid to handle? I am 
   using Flex 4 with Zend AMF  paging enabled. When I google it the topic, 
   most seem to think that a few thousand is large, but that doesn't seem 
   hardly anything to me. I thought Zend would do the trick but it isn't 
   anywhere near what I need. My 15 million records didn't go over too well 
   (I can use the scroll wheel on my mouse to scroll through the records but 
   it kept crashing when I tried to use the scrollbar on the datagrid to 
   jump around). I ask because I don't want to have to jimmy around with 
   code until I'm blue in the face trying to find something flex can handle. 
   Can I do 1 million? 5,000? 500,000? I just want to be able to let users 
   play around w/ the scrollbar on the datagrid without it crashing, is all 
   (though I realize that the user's machine will play a big factor in 
   performance. All of my users have computers that are no more than a 
   couple yrs old)
  
   I also ask because I am sure others would like to know for their 
   projectsis there a more efficient way to get the data than Zend, like 
   Livecycle or Coldfusion? I am willing to switch the backend up a bit in 
   order to increase performance of my app.
  
  
   many thanks!
  
 






--
Alex Harui
Flex SDK Team
Adobe System, Inc

[flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-15 Thread Jeff
I did not see your original post on the Adobe Forums.

Did you include the manifest.xml as an asset to the project?  Did you clean the 
project after adding the asset?


--- In flexcoders@yahoogroups.com, Adnan Doric astrona...@... wrote:

 Thank you for you reply, but I've done steps you describe but in FB4 and 
 it doesn't work.
 I have the following error in library project (manifest.xml is added in 
 assets tab) :
 
 could not find source for class myPackage:TestComponent in namespace 
 http://mynamespace.com.
 
 Did you take a look at the link in my first post ?
 
 http://forums.adobe.com/thread/583153
 
 
 
 
 On 15/03/2010 02:15, Jeff wrote:
 
  I cover this in the laast episode of The Flex Show's video series on 
  creating Flex Components:
 
  http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs
   
  http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs
 
  The other poster who mentioned the mainfest.xml file is correct.
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@ 
  wrote:
  
   Hello,
  
   I would like to create a Library Project in Flex 4 with a custom 
  namespace so I can reference the namespace in my *.mxml files instead 
  of package.
  
   (xmlns:view=http://myapp.com http://myapp.com instead of 
  xmlns:view=com.myapp.*)
  
   I asked the question on Adobe forums too, but nobody seems to know 
  how to do it:
   http://forums.adobe.com/thread/583153?tstart=0 
  http://forums.adobe.com/thread/583153?tstart=0
  
   Maybe I am doing something completely wrong in which case I apologize :)
  
   Thank you in advance for your help,
   Adnan
  
 
 





[flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-14 Thread Jeff
I cover this in the laast episode of The Flex Show's video series on creating 
Flex Components:

http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs

 The other poster who mentioned the mainfest.xml file is correct.

--- In flexcoders@yahoogroups.com, astronaute75 astrona...@... wrote:

 Hello,
 
 I would like to create a Library Project in Flex 4 with a custom namespace so 
 I can reference the namespace in my *.mxml files instead of package.
 
 (xmlns:view=http://myapp.com; instead of xmlns:view=com.myapp.*)
 
 I asked the question on Adobe forums too, but nobody seems to know how to do 
 it:
 http://forums.adobe.com/thread/583153?tstart=0
 
 Maybe I am doing something completely wrong in which case I apologize :)
 
 Thank you in advance for your help,
 Adnan





[flexcoders] Re: Change ComboBox default item renderer dynamically

2010-03-13 Thread Jeff
 What AutoComponentComboBox are you looking at? 

 The Flextras component supports this functionality, out of the box.  

http://www.flextras.com/?event=ProductHomeproductID=10

 We also have a sample and some documentation on how to change the styling of 
the highlight.  

Sample: 
http://www.flextras.com/AutoCompleteComboBox/Samples/CustomRenderer/#app=9deaccaf-selectedIndex=1
 

Write up: 
http://www.flextras.com/blog/index.cfm/2010/1/19/Changing-the-Highlight-of-our-AutoCompleteComboBox

 Basically, you're on the right approach.  The Flextras AutoCompleteComboBox 
uses a custom list data class which lets the renderer reference the typed text. 
 

--- In flexcoders@yahoogroups.com, Mete Atamel meteata...@... wrote:

 What I want to do is simple but I'm a little lost in terms of what to 
 overwrite, so I'm hoping someone can guide me in the right direction. Say I 
 have the following list of countries in my standard Flex ComboBox:
 
 Cameroon
 Canada
 Cayman Islands
 
 When the user types in C, I want the C in country names to be highlighted 
 (bold) in ComboBox drop-down. If the user types Ca, then I want Ca to be 
 bold in drop-down list of countries and so on. 
 
 I found a AutoComplete ComboBox on the net that helps with adding text input 
 to ComboBox and matching it against country names in the combo-box, but I'm 
 wondering how I can achieve the highlighting of matched characters in the 
 drop-down.
 
 I'm assuming that I need to use item renderers and somehow dynamically change 
 the item renderer taking matched text input into account. Is this true or is 
 there another easier way of achieving this?





[flexcoders] Re: LCDS: Problem with destination inheritance

2010-02-24 Thread Jeff
I am running into this same problem below with a fill command. (Error: but we 
could not find a destination in the list of sub-types). Any thoughts on a 
workaround for just a simple fill of an extended destination?

I must admit my frustration with LCDS is growing especially considering the 
recent change of licensing for LCDS 3.  I have not had any luck with Adobe's 
very expensive paid support so continuing to dump money into their 
licenses/support seem futile.  I am wondering if now is the time to migrate to 
another solution.

Has anyone had better luck with WebOrb, GraniteDS or Blaze in terms of 
ease-of-use and community support?  I primarily need Hibernate integration and 
real-time data push.

Thanks for the help and advice,

Kevin

--- In flexcoders@yahoogroups.com, gordon_greg m...@... wrote:

 Hi Jeff,
 
 Thanks for the usual quick response, the workaround is fine for the
 time being, looking forward to the update release.
 
 greg
 
 --- In flexcoders@yahoogroups.com, Jeff Vroom jvroom@ wrote:
 
  Hi Greg,
  
  Yeah, thanks for sending this as it did uncover an LC DS bug.  It
 occurs with the combination of the deleteItem and the commit(item)
 or commit([item]) case.  The code is trying to look up the DataService
 associated with the item in the argument... to do that we look in the
 cache for each item.  We can't find it (since it has been deleted) and
 the code is improperly returning the last data service in the list. 
 So when it works, it is because the list of data services is generated
 in some particularly lucky order.
  
  If you can commit everything - not just that item, that would be an
 easy workaround though most likely you are using that variant of
 commit for a reason.
  
  I'll contact you off-list to get you a patched fds.swc to try out
 the fix.   For your reference, the bug number I filed is:
  
  https://bugs.adobe.com/jira/browse/LCDS-351
  
  Jeff
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On Behalf Of gordon_greg
  Sent: Thursday, July 03, 2008 12:53 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] LCDS: Problem with destination inheritance
  
  
  Hello,
  
  I'm using the latest LCDS 2.6.RC1 with the HibernateAssembler and a
  non-trivial data model that relies upon destination inheritance in a
  few places.
  
  In general everything works great, but occasionally, when I remove an
  element from a collection using dataService.deleteItem, when I then
  call dataService.commit, I end up with an exception that indicates
  that the wrong destination is being invoked...
  
  For our purposes, let's just deal with 4 destinations:
  
  Folder
  ResourceFolder (extends folder)
  Meeting
  MeetingParticipant (is a many-to-one child of Meeting)
  
  Now, if I call:
  
  meetingParticipantDataService.deleteItem(meetingParticipant);
  
  meetingParticipantDataService.commit([meetingParticipant],true);
  
  I end up with the following exception:
  
  == begin exception 
  
  Error: Destination: spring.folder received an instance of class:
  demo.model.meetings::MeetingParticipant but we could not find a
  destination in the list of sub-types: spring.resourceFolder which
  extends this destination.
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDestinationForInstance()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5309]
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemDestination()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5290]
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemMetadata()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5275]
  at
 
 mx.data::MessageBatch/addMessageIdsForItem()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:591]
  at
 
 mx.data::MessageBatch/extractMessages()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:456]
  at
 
 mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::doCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:1807]
  at
 
 mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::internalCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:818]
  at
 
 mx.data::ConcreteDataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:337]
  at
 
 mx.data.mxml::DataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\mxml\DataService.as:433]
  at [my code here]
  
  == end exception 
  
  Note that there is no relationship at all between

RE: [flexcoders] Partial LineSeries - is it possible?

2010-02-24 Thread Battershall, Jeff
Geoff,

Good call - that works perfectly - thanks!!!

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoff White
Sent: Tuesday, February 23, 2010 3:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Partial LineSeries - is it possible?




You shouldn't need to do this.  Try setting the minimum and maximum values on 
the date time axis to the desired dates and it should do the rest(regardless of 
which dates there are data for).



From: Battershall, Jeff jeff.battersh...@dowjones.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, February 23, 2010 1:44:39 PM
Subject: RE: [flexcoders] Partial LineSeries - is it possible?


Thanks Richard,

I'm going to give this a try - basically I'm going make placeholder data 
elements that map to my DateTimeAxis and fill in the remaining values for the 
decade.

Jeff


From: flexcod...@yahoogro ups.comhttp://ups.com [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of Richard Rodseth
Sent: Tuesday, February 23, 2010 2:59 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Partial LineSeries - is it possible?



I'm not sure I quite understand the question, but a couple of thoughts:

- if you have a data function that returns null you can get gaps in a line 
chart, if that's desired
- on the other hand, if your data provider filters out the empty data points, 
the chart should fill the available space
- I think you might be able to have a separate data provider for the axis

In other words, I would be surprised if custom renderers are necessary.
On Tue, Feb 23, 2010 at 10:26 AM, Battershall, Jeff jeff.battershall@ 
dowjones. commailto:jeff.battersh...@dowjones.com wrote:

I have a line chart with a DateTimeAxis that is stipulated to be about 750 
pixels wide and it's used to display a decade's worth of data points.  However, 
in the current decade, there are only a couple month's worth of data points.  
As a result the line series takes up the entire chart's entire available 
horizontal space.  What I'd LIKE to have happen is have the line series only as 
wide as the data points require - kind of like a YTD graph.  See what I'm 
getting at?

Any charting experts available?  Eli?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. commailto:jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)








[flexcoders] Partial LineSeries - is it possible?

2010-02-23 Thread Battershall, Jeff
I have a line chart with a DateTimeAxis that is stipulated to be about 750 
pixels wide and it's used to display a decade's worth of data points.  However, 
in the current decade, there are only a couple month's worth of data points.  
As a result the line series takes up the entire chart's entire available 
horizontal space.  What I'd LIKE to have happen is have the line series only as 
wide as the data points require - kind of like a YTD graph.  See what I'm 
getting at?

Any charting experts available?  Eli?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] Re: Partial LineSeries - is it possible?

2010-02-23 Thread Battershall, Jeff
TH,

Thanks - I was afraid it might require something like that. 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of turbo_vb
Sent: Tuesday, February 23, 2010 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Partial LineSeries - is it possible?

Hi Jeff,

Probably going to have to add mock data for the remaining months in the decade 
and then use a lineSegmentRenderer and itemRenderer to hide the lines/points 
that are in the future.

-TH

--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 I have a line chart with a DateTimeAxis that is stipulated to be about 750 
 pixels wide and it's used to display a decade's worth of data points.  
 However, in the current decade, there are only a couple month's worth of data 
 points.  As a result the line series takes up the entire chart's entire 
 available horizontal space.  What I'd LIKE to have happen is have the line 
 series only as wide as the data points require - kind of like a YTD graph.  
 See what I'm getting at?
 
 Any charting experts available?  Eli?
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 jeff.battersh...@...
 (609) 520-5637 (p)
 
 (484) 477-9900 (c)







--
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] Partial LineSeries - is it possible?

2010-02-23 Thread Battershall, Jeff
Thanks Richard,

I'm going to give this a try - basically I'm going make placeholder data 
elements that map to my DateTimeAxis and fill in the remaining values for the 
decade.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Richard Rodseth
Sent: Tuesday, February 23, 2010 2:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Partial LineSeries - is it possible?



I'm not sure I quite understand the question, but a couple of thoughts:

- if you have a data function that returns null you can get gaps in a line 
chart, if that's desired
- on the other hand, if your data provider filters out the empty data points, 
the chart should fill the available space
- I think you might be able to have a separate data provider for the axis

In other words, I would be surprised if custom renderers are necessary.
On Tue, Feb 23, 2010 at 10:26 AM, Battershall, Jeff 
jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote:

I have a line chart with a DateTimeAxis that is stipulated to be about 750 
pixels wide and it's used to display a decade's worth of data points.  However, 
in the current decade, there are only a couple month's worth of data points.  
As a result the line series takes up the entire chart's entire available 
horizontal space.  What I'd LIKE to have happen is have the line series only as 
wide as the data points require - kind of like a YTD graph.  See what I'm 
getting at?

Any charting experts available?  Eli?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)








[flexcoders] Re: SQL Question

2010-02-20 Thread Jeff
I strongly recommend that you modify your database structure so that you do not 
store comma separated lists in a field.  

Read up on many to many relationships and intersection/linking tables.

If I had to theorize on your problem; SQL is seeing your 'ageGroups' and 
'accountType' fields as a single value; not as a list.  

 You might be able to do some string processing magic, but it sounds like a 
nightmare. 

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I know this is out of the core topic, but I am banging my head on this 
 simple issue..or probably is...
 
 I am trying to write a SQL query (in ColdFusion) for my database (MySQL 
 5) when I am looking for a passed in argument value in the column (which 
 is set as a varchar).
 
 I am passing in '0' for the ageGroup and 'kids' for the accountType I 
 have 'kids'
 
 My Query is:
 
 Select CONCAT(roomDisplay, (National)) as roomDisplay,
  CONCAT(cfqueryparam value=#arguments.ageGroup#, 
 -, roomDisplay, -, National) as roomID
  FROM chatrooms
  WHERE cfqueryparam value=#arguments.accountType# IN 
 (accountType)
  AND cfqueryparam value=#arguments.ageGroup# 
 cfsqltype=cf_sql_integer / IN (ageGroups)
  ORDER BY roomDisplay ASC
 
 I have a record where 'ageGroups' is '0, 1, 2, 3, 4, 5, 6, 7, 8' and the 
 'accountType' is 'kids, siblings, parents'
 
 I keep getting 0 returns but I know both values exist in at least 1 record
 
 What am I doing wrong?





[flexcoders] NetConnection.Call.Failed - Need to diagnose

2010-02-19 Thread Battershall, Jeff
I've built an AIR app using Cairngorm 2.x.  My RemoteObjects are stored in the 
ServiceLocator singleton.  Intermittently, users will get 
NetConnection.Call.Failed. Possibly this is a performance issue with the 
ColdFusion service layer where specific calls are timing out or possibly the 
RO's connection timing out on its own. One possible approach is simply to 
re-try on error but that kinda feels like a brute force approach.

Any advice appreciated!

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] Re: Killing a Singleton

2010-02-14 Thread Jeff

 I'd do something like this:

public function destroy():void{
 instance = null;
}

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I want when the user logs out, the instance of the Singleton that 
 supports their global information to get set to null. How can you delete 
 a Singleton existence or set it to null?
 
 package org.mywindow.model
 {
 
  [Bindable]
  public final class UserDataModel {
 
  private static var instance:UserDataModel;
 
  public function UserDataModel(singletonEnforcer:MySingletonEnforcer) {
  if (singletonEnforcer == null) {
  throw new Error (UserDataModel is a singleton class, use 
 getInstance() instead);
  }
  }
 
  public static function getInstance():UserDataModel {
  if (instance == null)
  instance = new UserDataModel(new MySingletonEnforcer());
  return instance;
  }
  }
 }
 
 class MySingletonEnforcer {}
 
 Thanks!





[flexcoders] Re: Multiple conditions in a case (switch/case)

2010-02-13 Thread Jeff
Syntax is something like:

case kids:
case Siblings:
 // do kid / sibling stuff
 break;
case something else

 It confused me the first time I saw it. 

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I feel stupid for not knowing this, but I guess its never come up. How 
 do you do multiple conditions on a case statement in a switch. I am 
 trying to figure out age so the case says something like 'case kids || 
 siblings'. Doesn't seem to be working.





RE: [flexcoders] Module Memory Leaks

2010-02-12 Thread Battershall, Jeff
Thanks Alex,

I had gone around and around to get a certain module to unload and was unable 
to determine the cause.  Your article was very informative and my suspicion is 
that an image loaded at runtime was at fault.  But that really isn't the same 
thing as compile-time embedded assets, is it?

As far as remote objects are concerned - if they are invoked via some sort of 
Command class, that should avoid this problem, am I right?

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, February 11, 2010 6:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Module Memory Leaks



In Flex 4, styles are per-module and thus much less likely to leak.  That's 
the only change.  Everything else is the same.

Are you seeing evidence that embedded image assets are leaking?


On 2/11/10 4:24 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:





Getting modules to fully unload has been something I've spent (wasted?) a good 
deal of time on in the past and I've just finished reading with great interest, 
Alex's article on the subject:
http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html

My question is - how much of this is resolved in Flex 4?  Because if most or 
all of the issues have been addressed, I'll simply abandon my Flex 3 
development of module-based applications and move to Flex 4 right now, 
especially given that Flex 4's release is imminent (early spring?).

Of particular concern is the bit in Alex's article about unloading images and 
the fact that image assets could be loaded via Stylesheets, etc.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






[flexcoders] Module Memory Leaks

2010-02-11 Thread Battershall, Jeff
Getting modules to fully unload has been something I've spent (wasted?) a good 
deal of time on in the past and I've just finished reading with great interest, 
Alex's article on the subject:
http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html

My question is - how much of this is resolved in Flex 4?  Because if most or 
all of the issues have been addressed, I'll simply abandon my Flex 3 
development of module-based applications and move to Flex 4 right now, 
especially given that Flex 4's release is imminent (early spring?).

Of particular concern is the bit in Alex's article about unloading images and 
the fact that image assets could be loaded via Stylesheets, etc.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
PCI Compliance is a nightmare. ;)  

I'm sure Amazon.com goes through the process of being PCI compliant; and has 
high level security for storing and encrypting credit cards.  For example, I'm 
sure their credit card storage machines are in a secure building [with guards 
and limited access] on machines that are only accessible by sitting at the 
machine or via a secure VPN connection.  

And I'm sure routine audits are done by outside companies, although I don't 
know the frequency they need to occur.  Additionally, every time they release 
new code; it needs to be reviewed by some party independent of the developer.  
Etc.. etc..

Putting together a PCI compliant environment is easily a $100K proposition if 
you aren't storing credit cards.  I'm sure Amazon.com spends much more than 
that on a yearly basis.

For the rest of us go to a company like Authorize.net [or similar] that 
provides subscription billing services.  We never have access to the CC ata, 
just some unique customer ID that we can use for billing subscription services. 
 

--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:

 Lee Jenkins wrote:
  W.R. de Boer wrote:

   
 
  As far as I am aware you aren't allowed to store credit card numbers 
  yourself without a weekly security audit from the card issuer...
 
  
 
  I don't think that is the case.  You need to have a business use for 
  storing 
  credit card data and of course, it then needs to be encrypted and only 
  certain 
  parts of allowed to be stored.  For instance, CVV2 or track discretionary 
  data 
  storage is a no, no.

 So how do companies like amazon keep card info for future use?
  https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml
 
  --
  Warm Regards,
 
  Lee
 
 
 
 
  
 
  --
  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] Re: Credit Card number encryption

2010-02-11 Thread Jeff
 You need to make your superiors aware of the PCI Compliance regulations.

 You're not actually breaking the law, but you may be breaking your contract 
with your merchant provider.  I read all 80+ pages or so of my merchant account 
contract.  Someone at your company should do the same to make sure that your 
development practices are in compliance.  

--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote:

 At 09:35 AM 2/11/2010, you wrote:
 
 
 As far as I am aware you aren't allowed to store credit card numbers 
 yourself without a weekly security audit from the card issuer...
 
 
 Do what?!  I've never heard of this...  If that's the case, then the 
 company I work for has been breaking the law for YEARS!  We store CC 
 data (encrypted, of course) in our current database so that if a 
 customer changes their mind, we don't have to reacquire the CC info 
 from them to charge (or refund) their account.
 
 In the Flex app that I'm writing, the plan is to continue to do the 
 same thing...
 
 And how would the CC issuers (dozens of 'em?  Hundreds?) all have the 
 time to audit every company that uses CC info for any purpose 
 whatsoever?  Doesn't sound possible to me.
 
 Laurence MacNeill
 Mableton, Georgia, USA





[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
That is unequivocally wrong.

However, depending what you're doing there are different levels of Compliance.  
Since you are storing credit cards; I thought you get bumped up to the highest 
level of compliance.

 DotComIt ( Flextras ) does a self assessment questionnaire and a quarterly web 
site scan to remain compliant.  We store no CC info.   

 PCI Compliance issues also directed some of our development decisions.  For 
example, credit card info is never displayed to the screen even in receipts.  
When in memory, it encrypted; I believe using a session specific key.  When a 
purchase is complete the CC info is deleted from memory, thus minimizing the 
amount of time our server touches the CC info.  

--- In flexcoders@yahoogroups.com, Lee Jenkins l...@... wrote:

 Laurence MacNeill wrote:
   
  
  At 09:35 AM 2/11/2010, you wrote:
   
   
   As far as I am aware you aren't allowed to store credit card numbers
   yourself without a weekly security audit from the card issuer...
  
  Do what?! I've never heard of this... If that's the case, then the
  company I work for has been breaking the law for YEARS! We store CC
  data (encrypted, of course) in our current database so that if a
  customer changes their mind, we don't have to reacquire the CC info
  from them to charge (or refund) their account.
  
  In the Flex app that I'm writing, the plan is to continue to do the
  same thing...
  
 
 My understanding is that PCI Compliance is not yet necessary for in-house 
 products.
 
 --
 Warm Regards,
 
 Lee





[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
I know the mandates have gotten stricter after they have been released.  It 
sounds like you've been dealing with it longer than I have.

Without a doubt a lot of compliance issues have very little to do with coding, 
but rather relate to administrative type of issues for how data is handled and 
stored.

If you're writing and selling POS software; but not actually using that 
software itself,your steps to create PCI compliant software will be a lot 
simpler than the company who buys an uses your software.  

--- In flexcoders@yahoogroups.com, Lee Jenkins l...@... wrote:

 Jeff wrote:
   
  
  That is unequivocally wrong.
 
 As I said, that was my understanding and it was so when the mandate was first 
 released, but I assume that it was phased out in one of the steps to full 
 PCI/DSS or maybe it is different for web facing models?  I'll ask my 
 compliance 
 rep next time I speak with him.  Thanks for the heads up.
 
  However, depending what you're doing there are different levels of 
  Compliance. Since you are storing credit cards; I thought you get bumped 
  up to the highest level of compliance.
  
  DotComIt ( Flextras ) does a self assessment questionnaire and a 
  quarterly web site scan to remain compliant. We store no CC info.
  
  PCI Compliance issues also directed some of our development decisions. 
  For example, credit card info is never displayed to the screen even in 
  receipts. When in memory, it encrypted; I believe using a session 
  specific key. When a purchase is complete the CC info is deleted from 
  memory, thus minimizing the amount of time our server touches the CC info.
  
 
 I write point of sale software and with the exception of documentation issues 
 and other issues unrelated to the software itself, it has been functionally 
 compliant well before the mandate was released.  That has made our own 
 compliance process easier.
 
 Frankly, I could never understand why a developer writing any application 
 like 
 that would not do the minimum steps to secure data.
 
 --
 Warm Regards,
 
 Lee





[flexcoders] FB 4 serial number?

2010-02-11 Thread Jeff Hindman
Howdy group,

 

  My FB 4 Beta is asking for a serial number . my trial has expired. How do
I go about getting one that will last me until it is finally released?

 

Thanks,

 

  --Jake

 



[flexcoders] Re: Can I get 1:1 tuition in London or Paris?

2010-02-08 Thread Jeff

 In the US sometimes we call that mentoring.  

 You can check out http://www.asktheflexpert.com ( my site ).  We also offer 
one on one remote mentoring making use of Skype and/or Connect.  If you're 
interested in that, and pricing, email me off list.


--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hi,
 
 I'd like to work through a project and learn the ropes the correct way and
 when I have specific questions, I have someone to hand who is experienced to
 put me back on track, discuss the issue and explain why... :)
 
 Official training would be cool, I'm guessing that's heading towards the
 certification?
 
 I just want to get up to speed with Flex/ AS very quickly :-)
 
 
 Thanks,
 Nick
 
 
 
 
 On 8 February 2010 10:19, claudiu ursica the_bran...@... wrote:
 
 
 
  You need something like an official training or what exactly?
  C
 
 





RE: [flexcoders] Re: Steve Jobs on Flash .......

2010-02-08 Thread Battershall, Jeff
I believe FP 10.1 is specifically designed to address the two biggest issues 
that affect the deployment of Flash on devices: Memory consumption and global 
error handling. So help is on the way and I would think that Adobe's actions in 
that regard are anything but lazy. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of reflexactions
Sent: Monday, February 08, 2010 8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Steve Jobs on Flash ...

Its not a question of whether it was possible at some point to construct 
'something' on a device with a limited version of flash.

Its a question of whether you can construct something like this for example
http://www.extjs.com/deploy/dev/examples/grouptabs/grouptabs.html
in flash with a comparable footprint and performance (a common complaint is cpu 
utilization for some reason flash soaks up a huge amount of the cpu compared to 
javascript).

I was testing some regex code today and the same code ran 4 times faster in IE, 
20 times faster in Safari and Chrome.

Its not like these issues are anything new they've been around for years but 
they don't get fixed which I guess is what SJ was really meaning when he called 
Adobe lazy.

--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 That's nuts. We built a flash app that ran on the pocket PC 5 years ago - 
 it's mad to think flash couldn't run on something as powerful as an iPhone.
 
 On the other hand, if I was looking at a new project, I'd certainly be asking 
 myself if something like the SVGWeb toolkit from google would allow me to 
 build something that would run native in many browsers (and in the iPhone and 
 iPad).
 
 I do think Adobe should have been looking prior to now for ways to leverage 
 SVG and javascript - all that platform needs is a good development 
 environment - that's something Adobe could be making money from right now.
 
 Anyway...it's all rather silly and the town hall thing is farcical. Steve 
 should have spent some of that pent up energy doing something truly great 
 with the iPad, instead of just scaling up an iPhone.
 
 Guy
 
 
 On 08/02/2010, at 10:20 PM, reflexactions wrote:
 
  Well after 10 years plus of AS development my feelings are that SJ isn't 
  wrong.
  
  We have to fend of a constant stream of complaints from users that the app 
  is a memory hog and slow. We tell them it will improve soon but it never 
  does, we tell them flash is a million times better than the alternatives, 
  but to be honest JavaScript has caught up and is ahead in many things. 
  
  Our app starts up at around 130Mb and reaches 250Mb before it levels out, 
  JavaScript apps are a fraction of that.
  
  I hope his rant finally has some impact at Adobe and they pull there finger 
  out, becuase past experience has shown that years of 
  complaining/requests/bug reports gets nowhere then finally a rant in the 
  face of someone who matters gets them to shift, I have no idea why its like 
  that but time and again thats what happens.
  
  For us it is probably too late as this week after SJ's rant we were told to 
  start planning the move away flash, the argument has been lost so badly it 
  wasn't even an argument this time.
  
  For us to stay with flash, the next release would have to perform a miracle 
  in terms of memory and performace gains on Mac and PC.
  
  Personally I don't think they can do it, I think they would be better of 
  making AS3 compile down to JavaScript. With maybe a lighterweight plugin 
  for somethings like video or graphics.
  
  Whatever they really needed to realise all this a year ago with solutions 
  to be released now, not just smelling the coffee today.
  
  --- In flexcoders@yahoogroups.com, Tim Romano tim.romano@ wrote:
  
   If the rumors about Bing are true, then this panning could also have 
   something to do with Silverlight. If I were at MSFT and my role was to 
   ensure that Silverlight succeeded in knocking Flash off (as Word knocked 
   off WordPerfect back in the day, e.g.) then I'd be looking for chinks in 
   Adobe's armor wherever they may be.
   
   On 2/1/2010 2:26 PM, Paul Andrews wrote:
   
It's just commercial tactics.
   
You'd never guess he has his own tied-in development system to support.
Why wouldn't he knock flash?
   
hworke wrote:
 
http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting
 
http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting


 Jobs has previously called out Adobe Flash, currently the
 dominant animation platform on the Web, for being too slow to be 
useful and Flash Lite, Adobe's versio n of Flash for mobile devices, 
as not advanced enough for the iPhone. So it's no surprise to hear 
Jobs called out Flash during Apple's Town Hall, but his language this 
time sounds a little over 

RE: [flexcoders] Flex write xml file in server?

2010-02-08 Thread Battershall, Jeff
No.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of markflex2007
Sent: Monday, February 08, 2010 12:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex write xml file in server?

Do you think if that is possible?

I want to only use Flex not other server languages.

Thanks

Mark





--
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] Re: Flex write xml file in server?

2010-02-08 Thread Jeff
 I understand that with AIR two you could write an AIR app to act as a server, 
and could use AIR APIs to write files to the local machine. 

 I think it would be an insane undertaking, but definitely possible.

--- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote:

 Flex can only talk to the client machine.  You NEED a server language if you
 want anything done on the server.
 
 On Mon, Feb 8, 2010 at 11:25 AM, Battershall, Jeff 
 jeff.battersh...@... wrote:
 
 
 
  No.
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
  flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of
  markflex2007
  Sent: Monday, February 08, 2010 12:24 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Flex write xml file in server?
 
  Do you think if that is possible?
 
  I want to only use Flex not other server languages.
 
  Thanks
 
  Mark
 
  
 
 
  --
  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] Custom ItemRenderer still not working...

2010-02-08 Thread Battershall, Jeff
I'm a little late to this, so pardon me if my point has been raised 
previously...I've seen the behavior similar to what you're describing and it 
indicated that the ItemRenderer was not correctly written because ItemRenderers 
are recycled when scrolling for performance reasons.  You have to write them to 
ensure that the dataprovider to your combox box is in a state to receive the 
data element passed to it and that the selectedIndex gets reset. This requires 
sub-classing the ComboBox for use as an item renderer of a list-based control.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Laurence MacNeill
Sent: Monday, February 08, 2010 3:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom ItemRenderer still not working...



At 02:57 PM 2/8/2010, you wrote:



What do we do to see the problem, just scroll?

Yeah, if you scroll up and down a few times, you'll see that the numbers in the 
combo-boxes' drop-downs don't match the displayed number.  Then change the 
selection in one of those combo boxes that's displaying the incorrect 
drop-down, and magically, the next time you open the drop-down it displays the 
correct numbers again.  Until the next time you scroll, that is.  :-)

Thanks,






[flexcoders] Re: Google combo like Flex interface

2010-02-03 Thread Jeff
Gregor,

 Don't think I don't appreciate it. ;)  Want some stickers?  E-mail me off 
list.  

 Although not based on the ComboBox Hillel Coren's is the one I most commonly 
hear good things about ( 
http://hillelcoren.com/2009/05/11/flex-autocomplete-version-0-98-2/ )

Christophe,  if you want a supported component that works on both Flex 3 and 
Flex 4; definitely check ours out.  Free developer editions are available and 
if you have questions; just ask! 

--- In flexcoders@yahoogroups.com, Gregor Kiddie gregor.kid...@... wrote:

 Search for autocomplete comboboxes. There are several solutions, open
 source and paid for.
 
  
 
 Best of the paid for appears to be Flextras one (
 http://www.flextras.com/?event=ProductHomeproductID=10 ) (Jeff Houser,
 you owe me commission for pushing your wares like a filthy pimp)
 
 Best of the open source ones is probably the adobe one
 (http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetaile
 xtid=1047291 )
 
  
 
 Gk.
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Christophe
 Sent: 03 February 2010 14:57
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Google combo like Flex interface
 
  
 
   
 
 Hello, 
 
 I have a client table in a mySql database, and I want to propose in a
 Flex RIA a search interface for the client list name. 
 
 How to make a search interface like in the Google Combo. 
 
 When you type the word 'a', it propose all the words beginning by 'a' ? 
 
 Thank you,
 Christophe,





[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-21 Thread Jeff

 Wouldn't BlazeDS be the upgrade path for the 'no charge' versions?  

 I'm on unclear on the exact differences, but I thought LCDS had more advanced 
push / real time capabilities.  Apps that truly need that are rare in my 
experience.  


--- In flexcoders@yahoogroups.com, busitech m...@... wrote:

 I'm curious how many of your projects were deployed into production using the 
 no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x.
 
 Since the release of LCDS 3.0, neither of these licenses exist.  This leaves 
 our small business customers running in production using the Single CPU 
 license with no upgrade path going forward, unless they can come up with the 
 steep license fees for ES2.  I doubt any of our customers will be able to 
 afford it.
 
 Needless to say, this seriously impedes our ability to do business on the 
 LCDS platform going forward in the SMB market we serve.  It also leaves our 
 hands tied with respect to the software we've already developed and deployed. 
  BlazeDS is not an option - it would require a total rewrite of client and 
 server, and mass annihilation of features.
 
 How are these changes affecting your business?





RE: [flexcoders] HTTPService Responder ResultEvent -- how to know when the JSON data sent via HTTP are complete?

2010-01-12 Thread Battershall, Jeff
Tim,

Maybe I'm missing something here, but to my understanding when the result event 
of your HTTP service fires, your call IS complete.  You should have access to 
the json string that was pulled back from the service.  Is there something else 
you need that the json string doesn't' supply?

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tim Romano
Sent: Tuesday, January 12, 2010 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService Responder ResultEvent -- how to know when the 
JSON data sent via HTTP are complete?




I started learning FlashBuilder/Flex by diving in and writing an AIR 
application against SQLite with asynchronous connections and Responder objects. 
The responder's resultsHandler is passed a flash.data.SQLResult object that 
exposes a complete status property.  Lovely.

Now I am trying to rewrite that AIR application as a browser-deployed Flex app 
using an HTTPService against a RESTful webservice that returns JSON data. The 
webservice is working, and the Flex HTTPService is pulling the JSON string 
down, but there doesn't seem to be anything analogous to the complete 
property that was available with the asynch data connection in the AIR app.  
Not so lovely.

The result-handler specified in the HTTPService responder has two parameters, 
the ResultEvent and the AsyncToken. The ResultEvent exposes a statusCode 
property. The result-handler can be called more than once. The 
ResultEvent.statusCode = 200 each time the handler is called. How do you know 
when the remote data are complete?

I will keep googling as I'm sure this question must be commonplace, but so far 
I haven't found the answer.

Thanks for the help.






[flexcoders] Re: Override private ComboBox function

2010-01-11 Thread Jeff
You'll have to copy the private method and make your changes.  If you Google 
around, there are already some solutions out there.  

--- In flexcoders@yahoogroups.com, Warren warrenony...@... wrote:

 I'm want to make a ComboBox on which I can force the dropdown menu to go up 
 or down.  It should be a simple matter of adding a variable and changing the 
 way the displayDropdown method works.  I tried extending the ComboBox and 
 overriding the displayDropdown method but I can't do that since the method is 
 private.
 
 How can I do this with my own class ?  I feel like I'm missing something 
 basic here.  
 
 I'm using Flex 3.2.0 SDK
 
 Thanks!





[flexcoders] Re: Incompatibilities between SWC libraries and Flash Builder Beta 2?

2010-01-08 Thread Jeff
 Although I've never tried to use a Flex SWC in Flash Pro or a Flash Pro SWC in 
Flex; I was under the impression that the SWC File format was different for 
Flex and Flash Professional; therefore you cannot use a SWC from one with the 
other.


 You'll want to look into the Flex Component Kit for Flash:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1273018



--- In flexcoders@yahoogroups.com, Slackware selecter...@... wrote:

 Is that possible? Whenever I add a SWC library created on Flash CS4, I lose 
 the design view on Flash Builder Beta.
 Could anyone confirm this?
 
 Many Thanks.





[flexcoders] Re: NumericStepper override class

2010-01-08 Thread Jeff
 I think your best bet is going to be to extend the NumericStepper, add some 
properties for disabling / enabling the buttons as appropriate.

 If you're interested in hiring someone to help, I'd be more than happy to 
discuss and contact me off list.



--- In flexcoders@yahoogroups.com, Eric Dunn ed...@... wrote:

 Let me explain further. 
 
 I have several of numeric steppers (this number will vary) that will need to 
 total 100. So I have a method that adds the numeric steppers and sets to a 
 variable. I then want to check that variable and disable the up arrow on the 
 steppers if the value is = 100, so that the only option is to move a value 
 down. 
 
 Eric W Dunn 
 Adaption Technologies 
 281-465-3326 
 ed...@... 
 
 - Original Message - 
 From: claudiu ursica the_bran...@... 
 To: flexcoders@yahoogroups.com 
 Sent: Friday, January 8, 2010 3:33:53 AM 
 Subject: Re: [flexcoders] NumericStepper override class 
 
 
 
 
 
 
 
 
 Do you need to disable it for the whole range of numbers or just for some of 
 them ? 
 C 
 
 
 
 
 From: Eric Dunn ed...@... 
 To: flexcoders flexcoders@yahoogroups.com 
 Sent: Thu, January 7, 2010 11:43:03 PM 
 Subject: [flexcoders] NumericStepper override class 
 
 
 
 
 
 I have the need to disable the up arrow and/or down arrow on a series of 
 numericSteppers .. 
 
 
 I believe I will need to create a new class that extends the NumericStepper 
 class. I have studied the numericStepper class and not sure what I need to 
 override or exactly what needs to written. 
 
 Any advice or a direction to look at to assist me? 
 
 Eric W Dunn 
 Adaption Technologies 
 281-465-3326 
 ed...@adpt-tech. com


-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




[flexcoders] Status Code 504 Errors

2010-01-07 Thread Battershall, Jeff
Hi,

I have an AIR app built in Flex that occasionally returns 
NetConnection.Call.Failed - Error: HTTP Status 504 for certain clients. I'm 
using CF8 as the backend.

Any advice?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] cannot convert mx.charts.events::ChartItemEvent to mx.events.IndexChangedEvent.

2009-12-11 Thread Battershall, Jeff
Hello,

I have a LineChart with selectionMode = multiple, living inside a container and 
finally a ViewStack.

I'm getting this error:

cannot convert mx.charts.events::chartitemev...@ea1e341 to 
mx.events.IndexChangedEvent.

If I remove the selectionMode attribute, everything works fine, except I need 
the LineChart and its associated LineSeries to be selectable.

Anyone encountered this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] RE: cannot convert mx.charts.events::ChartItemEvent to mx.events.IndexChangedEvent.

2009-12-11 Thread Battershall, Jeff
The workaround is to use event.stopImmediatePropagation() on the chart's change 
event.  Looks like this has been filed as a bug before but not addressed as it 
couldn't be replicated.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Friday, December 11, 2009 10:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cannot convert mx.charts.events::ChartItemEvent to 
mx.events.IndexChangedEvent.




Hello,

I have a LineChart with selectionMode = multiple, living inside a container and 
finally a ViewStack.

I'm getting this error:

cannot convert mx.charts.events::chartitemev...@ea1e341 to 
mx.events.IndexChangedEvent.

If I remove the selectionMode attribute, everything works fine, except I need 
the LineChart and its associated LineSeries to be selectable.

Anyone encountered this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)







  1   2   3   4   5   6   7   8   9   10   >