[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-26 Thread Jack OMelia

That is VERY cool. And I like the way you use grouping in this app as well. 
Much appreciated.

Jack

--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, Jack OMelia lomelia@ wrote:
 
  Without the headerReenderer I am able to use 
  {repeatername.currentitem.datanode}in the label field of the Canvas but as 
  the headerRender property is part of the Accordion and not the Canvas (and 
  outside the repeater) I can't do that. I tried {data.datanode} but that 
  didn't work.
  
  I suppose I could manually loop through the xmllistcollection and populate 
  it that way? I probably should have tried that last night but I guess I was 
  tired and wasn't thinking straight. I'll give it a shot and let you know.
 
 There's an example of using a Repeater in Accordion here:
 
 http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
 
 Note that this takes the idea a step forward...there's no need to repeat the 
 same content for each Accordion section, because you can only see one at a 
 time.  So this only creates one and rehomes it when a new header is clicked.
 
 -Amy





[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-25 Thread Jack OMelia
Without the headerReenderer I am able to use 
{repeatername.currentitem.datanode}in the label field of the Canvas but as the 
headerRender property is part of the Accordion and not the Canvas (and outside 
the repeater) I can't do that. I tried {data.datanode} but that didn't work.

I suppose I could manually loop through the xmllistcollection and populate it 
that way? I probably should have tried that last night but I guess I was tired 
and wasn't thinking straight. I'll give it a shot and let you know.

Thanks.
Jack
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 How would you get the data into the headerRenderer if there was no repeater
 involved?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Jack OMelia
 Sent: Friday, April 24, 2009 10:03 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Pass repeater data to headerrenderer
 
  
 
 
 
 
 
 
 Hi All,
 
 I have an accordion component, and I'm using a repeater to populate its
 children, with data coming from an XMLListCollection. I've created an
 external headerrenderer for the accordion header to display a multi-line
 title, but I cannot figure out how to pass the data for each repeated data
 element to the header renderer. The data inside the repeater is populated
 using {repeatername.currentitem.datanode} format but I can't use that for
 the renderer. I tried writing it inline but it has to be written outside the
 repeater. Any ideas how to accomplish this?





[flexcoders] Pass repeater data to headerrenderer

2009-04-24 Thread Jack OMelia
Hi All,

I have an accordion component, and I'm using a repeater to populate its 
children, with data coming from an XMLListCollection. I've created an external 
headerrenderer for the accordion header to display a multi-line title, but I 
cannot figure out how to pass the data for each repeated data element to the 
header renderer. The data inside the repeater is populated using 
{repeatername.currentitem.datanode} format but I can't use that for the 
renderer. I tried writing it inline but it has to be written outside the 
repeater. Any ideas how to accomplish this?



[flexcoders] Re: Flex Builder 3 oddities on Mac OSX Leopard

2008-05-14 Thread Jack OMelia
Wow, I never considered that. I'll try it tonight when I get back to
my iMac.

That makes me think of another question. I was going to purchase a
license and pop the serial number into the trial version. Am I better
off uninstalling the trial version and reinstalling a fresh copy when
I get my license?

Thanks again,
Jack

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

 
 Le 14 mai 08 à 15:40, Battershall, Jeff a écrit :
 
  Jack,
 
  What I've seen is that the previous instance doesn't always shut down
  when you think it should.  During development, I've had to manually
  force quit of adl if the adl instance isn't shut down.  You'll see adl
  as an open application if this is the case.
 
  Jeff
 
 Jack, I can only agree.
 
 Since we switched to the full version of FB3, I never had to force  
 quit it as I did when I used the beta3 and then the trial.
 
 I'm working on a 24 iMac running Leopard 10.5.2 with all the software  
 updates.
 
 Farid





[flexcoders] Re: Flex Builder 3 oddities on Mac OSX Leopard

2008-05-14 Thread Jack OMelia
Still having problems. the force quit didn't make any difference. I
may try uninstalling and reinstalling. I'm wondering if it's an
Eclipse issue. I was poking around in the eclipse config area and I
found a button labeled View Error Log. I clicked it and got a long
list but saw this entry from yesterday:

!ENTRY org.eclipse.ui 4 0 2008-05-13 21:58:58.592
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(org.eclipse.swt.SWTException: Widget is disposed)
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java:112)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.widgets.Widget.error(Widget.java:672)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:333)
at org.eclipse.swt.widgets.Control.redraw(Control.java:2223)
at com.adobe.flexbuilder.ui.dialogs.Marquee.doScroll(Marquee.java:164)
at com.adobe.flexbuilder.ui.dialogs.Marquee.access$2(Marquee.java:162)
at com.adobe.flexbuilder.ui.dialogs.Marquee$1.run(Marquee.java:75)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
... 22 more


Anyone have any experience with this?

Jack

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

 
 Le 14 mai 08 à 16:41, Jack OMelia a écrit :
 
  Wow, I never considered that. I'll try it tonight when I get back to
  my iMac.
 
  That makes me think of another question. I was going to purchase a
  license and pop the serial number into the trial version. Am I better
  off uninstalling the trial version and reinstalling a fresh copy when
  I get my license?
 
 The way we did it here was just to enter the license number in the  
 trial version.
 Help  Manage Flex Licenses...
 
 Now more Force Quit and no more annoying expiration countdown.
 
 Good luck !
 
 Farid





[flexcoders] Flex Builder 3 oddities on Mac OSX Leopard

2008-05-13 Thread Jack OMelia
I'm working with the FlexBuilder 3 trial version for Mac OSX and I'm
seeing a few weird things.

First, after creating a new test project I'm finding that no html file
is created upon compiling, and so I get a Launch Failed error. I've
done a few searches here and  most of the suggested solutions involve
unsetting and resetting the Generate HTML wrapper setting in the
properties dialog. I've tried that numerous times without luck.

I next tried importing an older project into FlexBuilder (which had
its own HTML file in place) and running that file I get a security
error accessing an image within the project directory. I tracked down
the FlashPlayerTrust file and the directory is in there. In Windows,
I've only received this error when I moved the compiled files to a
directory outside of the project, and it was fixed with a
trustFlash.bat file writing the new directory path to the Windows
directory. 

Are these problems specific to Macs? I've used Flex (2 and the 3
trial) on primarily Windows machines without these problems.

Any help is appreciated.

Thanks,
Jack O'Melia



[flexcoders] Re: AIR bugginess

2007-11-01 Thread Jack OMelia
::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8338]
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8281]

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

 What is the complete stacktrace and what line does it map to?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jack OMelia
 Sent: Wednesday, October 31, 2007 1:00 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AIR bugginess
 
  
 
 Hello All,
 I hate to put such a non-descriptive title but I can't seem to come up
 a better title.
 
 I have converted a Flex 2 app into an AIR app, and a simple thing that
 worked before does not now.
 
 In the AIR app, opening a particular page throws a Cannot access a
 property or method of a null object reference that I hadn't received
 before. After much debugging, I traced it to a click event on a button
 that when called opens a popup window using the PopUpManager class.
 When I remove the click event, it works fine.
 
 This is the button:
 mx:Button label=@Resource(key='InvoiceSummary',
 bundle='myResources_invoice') click=reportPopup()/
 
 and this is the popup function:
 
 public function reportPopup():void {
 var pop:invoiceSummaryPopup =
 invoiceSummaryPopup(PopUpManager.createPopUp(Application.application.vie
 wstackMain,
 invoiceSummaryPopup, true));
 pop.showCloseButton=true;
 PopUpManager.centerPopUp(pop); 
 }
 
 I'm using runtime localization on this page that seems to work fine. I
 thought it might be complicating thngs and causing the problem but
 when I removed it I still get the error.
 
 Any thoughts?
 
 Thanks,
 Jack





[flexcoders] Re: AIR bugginess

2007-11-01 Thread Jack OMelia
That's the odd thing, it's not the function that's tripping it up,
that I can see. When I debug it, the error pops up before the function
is called.

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

 Which line in the function throws the error?
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jack OMelia
 Sent: Wednesday, October 31, 2007 4:00 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AIR bugginess
 
  
 
 Hello All,
 I hate to put such a non-descriptive title but I can't seem to come up
 a better title.
 
 I have converted a Flex 2 app into an AIR app, and a simple thing that
 worked before does not now.
 
 In the AIR app, opening a particular page throws a Cannot access a
 property or method of a null object reference that I hadn't received
 before. After much debugging, I traced it to a click event on a button
 that when called opens a popup window using the PopUpManager class.
 When I remove the click event, it works fine.
 
 This is the button:
 mx:Button label=@Resource(key='InvoiceSummary',
 bundle='myResources_invoice') click=reportPopup()/
 
 and this is the popup function:
 
 public function reportPopup():void {
 var pop:invoiceSummaryPopup =
 invoiceSummaryPopup(PopUpManager.createPopUp(Application.application.vie
 wstackMain,
 invoiceSummaryPopup, true));
 pop.showCloseButton=true;
 PopUpManager.centerPopUp(pop); 
 }
 
 I'm using runtime localization on this page that seems to work fine. I
 thought it might be complicating thngs and causing the problem but
 when I removed it I still get the error.
 
 Any thoughts?
 
 Thanks,
 Jack





[flexcoders] AIR bugginess

2007-10-31 Thread Jack OMelia
Hello All,
I hate to put such a non-descriptive title but I can't seem to come up
a better title.

I have converted a Flex 2 app into an AIR app, and a simple thing that
worked before does not now.

In the AIR app, opening a particular page throws a Cannot access a
property or method of a null object reference that I hadn't received
before. After much debugging, I traced it to a click event on a button
that when called opens a popup window using the PopUpManager class.
When I remove the click event, it works fine.

This is the button:
mx:Button label=@Resource(key='InvoiceSummary',
bundle='myResources_invoice') click=reportPopup()/

and this is the popup function:

public function reportPopup():void {
var pop:invoiceSummaryPopup =
invoiceSummaryPopup(PopUpManager.createPopUp(Application.application.viewstackMain,
invoiceSummaryPopup, true));
pop.showCloseButton=true;
PopUpManager.centerPopUp(pop); 
}

I'm using runtime localization on this page that seems to work fine. I
thought it might be complicating thngs and causing the problem but
when I removed it I still get the error.

Any thoughts?

Thanks,
Jack 



[flexcoders] Re: httpservice vs xml

2007-10-16 Thread Jack OMelia
When you use an XML tag you embed the xml in the swf. If you use
HTTPService the xml is brought in at runtime and can therefore be
changed without recompiling the swf.

HTH,
Jack

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

 Is there any reason why you would use the mx:httpservice tag as  
 opposed to the mx:xml tag to import external XML data?
 
 I am using both in an application and both work fine yet whenever I  
 see an example of loading external XML data it is always with the   
 mx:httpservice tag.
 
 Am I missing a benefit of doing it this way?
 
 TIA





[flexcoders] Set widths on individual tabs

2007-04-17 Thread Jack OMelia
Hi All,
I have a tabNavigator where some of my tab labels get truncated. Some
of my labels are short (like Home) and others are long (like
Allocation Details). The long labels get truncated with an ellipsis
even though there's still plenty of room for the tabs to expand to
full width. If I set the tabWidth on the tabNavigator to show the full
label, each tab becomes too long and they overrun the tabNavigator.
There doesn't seem to be any way to set widths on individual tabs.
There isn't even a TruncateToFit attribute to turn on or off. Has
anyone ever figured out a way around this?

Thanks,
Jack



[flexcoders] Disapperaring images in datagrid

2007-04-03 Thread Jack OMelia
Hi All,
I have a strange problem with images I am putting in a datagrid. I
have two columns in a datagrid populated with icons. I get the image
name from an xml file and use an itemrenderer to display the icons. In
creating the page everything works fine, but as soon as I move the
compiled files to another persons machine, or even a different
directory on my own, the images don't appear. When moving the files
I've checked to make sure the images are moved along with everything
else.

Here's the datagrid (for brevity I've only included the two columns):

mx:DataGrid x=10 y=35 width=765 height=195 rowHeight=18
headerColors=[#ed8e5f, #ed8e5f] headerHeight=20
borderColor=#66   id=dgInvoiceResults  selectedIndex=0
wordWrap=false alternatingItemColors=[#dd,#cc]
textAlign=left dataProvider={invoicesXML.item}
creationComplete=totalGrid()
mx:columns

mx:DataGridColumn headerText=! dataField=indicator 
width=30
headerRenderer=comps.cmpHeaderRenderer
itemRenderer=comps.invoices.indicator /

mx:DataGridColumn headerText=Source 
dataField=source width=55
headerRenderer=comps.cmpHeaderRenderer
itemRenderer=comps.invoices.invSource
/
/mx:columns
/mx:DataGrid
 and here are the two renderers:
Indicator:
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 
width=50 height=20 horizontalAlign=center 
mx:Image source=../images/{data.indicator} width=14 height=14
left=5 toolTip={data.alert}/
/mx:HBox 

and invSource:

mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 
width=50 height=20 horizontalAlign=center 
mx:Image source=../images/{data.invSource} width=14 height=14/
/mx:HBox  

Can anyone see why the images display correctly when in the same
directory as the source files but not when they are moved elsewhere?

Thanks,
Jack




[flexcoders] Re: Need to different images in datagrid column

2007-04-03 Thread Jack OMelia
Try using an itemRenderer.

Create a separate component that looks like this:
(saved as imageRenderer.mxml in the comps directory)
?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 
width=50 height=20 horizontalAlign=center 
mx:Image source=images/image.gif width=14 height=14 /
/mx:HBox 


then add it to your datagrid like this:

 mx:DataGridColumn headerText=! itemRenderer=comps.imageRenderer /

HTH, Jack

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

 Hi,

   Need your help to  load an different images in a datagrid column

   Thanks 
   Vinoth

 
  
 -
 Don't be flakey. Get Yahoo! Mail for Mobile and 
 always stay connected to friends.





[flexcoders] Re: Disapperaring images in datagrid

2007-04-03 Thread Jack OMelia
Well, I've seemed to have solved my problem so I'll post it here in
case anyone else runs into this.

turns out to have been a relative path issue. The datagrid liked
source='../images/{data.indicator}' as long as we stayed in the
initial directory but once we moved it out it blew up. So I gave it an
absolute path of comps/invoices/images and everyone is happy.

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

 Hi All,
 I have a strange problem with images I am putting in a datagrid. I
 have two columns in a datagrid populated with icons. I get the image
 name from an xml file and use an itemrenderer to display the icons. In
 creating the page everything works fine, but as soon as I move the
 compiled files to another persons machine, or even a different
 directory on my own, the images don't appear. When moving the files
 I've checked to make sure the images are moved along with everything
 else.
 
 Here's the datagrid (for brevity I've only included the two columns):
 
 mx:DataGrid x=10 y=35 width=765 height=195 rowHeight=18
   headerColors=[#ed8e5f, #ed8e5f] headerHeight=20
 borderColor=#66 id=dgInvoiceResults  selectedIndex=0
 wordWrap=false alternatingItemColors=[#dd,#cc]
 textAlign=left dataProvider={invoicesXML.item}
 creationComplete=totalGrid()
   mx:columns
   
   mx:DataGridColumn headerText=! dataField=indicator 
 width=30
   headerRenderer=comps.cmpHeaderRenderer
   itemRenderer=comps.invoices.indicator /
   
   mx:DataGridColumn headerText=Source 
 dataField=source width=55
   headerRenderer=comps.cmpHeaderRenderer
   itemRenderer=comps.invoices.invSource
   /
   /mx:columns
   /mx:DataGrid
  and here are the two renderers:
 Indicator:
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
   paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 
   width=50 height=20 horizontalAlign=center 
   mx:Image source=../images/{data.indicator} width=14 height=14
 left=5 toolTip={data.alert}/
 /mx:HBox 
 
 and invSource:
 
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
   paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 
   width=50 height=20 horizontalAlign=center 
   mx:Image source=../images/{data.invSource} width=14 height=14/
 /mx:HBox  
 
 Can anyone see why the images display correctly when in the same
 directory as the source files but not when they are moved elsewhere?
 
 Thanks,
 Jack





[flexcoders] Re: MenuBar Question (Relating to Styles)

2007-03-08 Thread Jack OMelia
How about fill colors and/or background images in the submenu?

Jack

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

 On Friday 02 Mar 2007, nextadvantage wrote:
  What if we wanted white background color :(
 
 Then it stands to reason you can't have the same text color on the same 
 component, no ?
 
 -- 
 Tom Chiverton
 Helping to autoschediastically syndicate collaborative content
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Trouble passing data between components

2007-03-05 Thread Jack OMelia
Hi All,

I'm more of a designer than a developer, and as such my coding skills
are not outstanding, so bear with me.

I have an application with custom components inside a viewstack. In one
component I have a datagrid and I would like to have data from the
selected row of the datagrid populate text fields in a separate
viewstack child, and I can't seem to get this to work.

Here is the viewstack (edited to show just the relevant sections):

mx:ViewStack x=0 y=71 id=viewstackMain width=100%
height=100%
 mx:Canvas label=ViewAssurance width=100% height=100%
id=ViewAssurance
 mx:Image x=0 y=0 source=images/banner.gif
width=1003/
 mx:Label x=10 y=0 text=Assurance Tests
fontFamily=Verdana
 fontWeight=bold fontSize=11 color=#ff/
 mx:Label x=235 y=0 text=Summary
 fontFamily=Verdana fontWeight=bold fontSize=11
color=#ff/
 at:assuranceQueryForm x=0 y=19 /
 at:assuranceTestResults x=225 y=20 /
 /mx:Canvas
 mx:Canvas label=ViewAssuranceTest width=100% height=100%
id=ViewAssuranceTest buttonMode=true 

 mx:Canvas x=192 y=38 width=774 height=100
 backgroundColor=#dd borderStyle=solid
 borderColor=#bb cornerRadius=8
id=cvsATGeneral
 mx:Label x=10 y=10 text=Name:/
 mx:Text x=82 y=37 text= id=txtATDetailsName/
 mx:Label x=10 y=37 text=Description:/
 mx:Text x=82 y=10 text= id=txtATDetailsDesc/
 /mx:Canvas
 mx:Label x=207 y=29 text=General fontFamily=Arial
 fontWeight=bold fontSize=11 color=#99/
 at:assurenceTestDetails x=192 y=150 
id=assurenceTestDetails/
 /mx:Canvas
 /mx:ViewStack

The datagrid is in the component instantiated in the ViewAssurance
viewstack child at at:assuranceTestResults x=225 y=20 /, and the
datagrid code is here:

 mx:DataGrid x=10 y=35 width=765 height=258 rowHeight=18
 headerColors=[#ed8e5f, #ed8e5f] headerHeight=20
borderColor=#66
 id=dgAssuranceResults  selectedIndex=0 wordWrap=false
 alternatingItemColors=[#dd,#cc] textAlign=left
 dataProvider={assuranceTestsXML.item} 
 mx:columns
 mx:DataGridColumn headerText=Task Name
dataField=taskName width=250
 headerRenderer=comps.cmpHeaderRenderer/
 mx:DataGridColumn headerText=Enabled sortable=false
width=70
 editable=true rendererIsEditor=true
 headerRenderer=comps.cmpHeaderRenderer
 itemRenderer=comps.ckbxAssurRenderer/
 mx:DataGridColumn headerText=Frequency
dataField=frequency
 headerRenderer=comps.cmpHeaderRenderer/
 mx:DataGridColumn headerText=Last Run dataField=lastRun
 headerRenderer=comps.cmpHeaderRenderer/
 mx:DataGridColumn headerText=Next Run dataField=nextRun
 headerRenderer=comps.cmpHeaderRenderer/
 mx:DataGridColumn headerText=Task Running
sortable=false width=100
 editable=true rendererIsEditor=true
 headerRenderer=comps.cmpHeaderRenderer
 itemRenderer=comps.checkboxRenderer/
 /mx:columns
 /mx:DataGrid

If they were part of the same file I would use something like:

mx:Text x=82 y=37 text={dgAssuranceResults.selectedItem.taskName}
id=txtATDetailsName/

but I need a more explicit path between the two. I've tried
Application.application.viewstackMain..etc,etc, but whatever
combinations I try don't work.

What am I missing here?

Thanks,
Jack



[flexcoders] Re: DataGrid Header Center Align??

2007-02-22 Thread Jack OMelia
You can set text align on the column to center but that will do the
entire column. To just the header, use a headerRenderer with a text or
label component set to center. That will center just the header and
not the rest of the column. Look in the docs for headerRenderer.

Jack

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

 Hi,
 
 How can I center align header text of a DataGrid?
 
 Thanks,
 Sanjay





[flexcoders] Datagrid change text color on rollover with itemrenderer

2007-02-15 Thread Jack OMelia
Hi All,

I have a datagrid with a rollover effect changing both the row and
text colors. However, as soon as I assign a text itemrenderer to a
column I lose the text color change. I tried changing the itemrenderer
programmatically using a function called on rollover but that changes
the text of the entire column, not the selected row. Anyone ever
figure a way around this?



[flexcoders] Re: Flex books

2007-02-05 Thread Jack OMelia
FWIW, the rough draft of Programming Flex 2 was just updated to 295
pages and 11 chapters. I just downloaded it but haven't been able to
look at it yet.

As far as Flex TFTS, I am about halfway through it and I like the book
alot. I am NOT a true developer, but a designer with dabblings in PHP
and JSP so the step by step format of the book is helpful. Plus I've
corresponded with the authors a few times and they've been very
helpful. I can see though how a real developer would want more of a
reference book and Programming Flex 2 looks to be more like that.

~Jack

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

 I have bought all the books out there that have been printed so far (and
 it's not many :( at the moment.
 
 Programming Flex 2 is not out yet and only available in rough draft, and
 even that is only a few chapters that are posted (57 pages available
out of
 580)
 
 actionscript 3.0 cookbook is good, i liked it, useful for the
future. most
 cookbooks were a good purchase.
 
 flex 2 training from the source seems to be mostly a waste for
developers
 who already have something to build upon, while for beginners it
might be
 excellent.. they have EXTEREMELY detailed step-by-step directions
that make
 it difficult for people to just extract information, while for beginners
 such hand-holding is exactly what's needed.
 
 overall, what i would really recommend is reading the pdfs of
documentation
 on adobe site. Flex2 has some of the BEST documentation i've ever
seen, and
 it covers pretty much everything, i recommend reading the whole
thing, it
 would probably serve you better than any books out there at the moment.
 
 -A
 
 On 2/5/07, Stembert Olivier (BIL)  [EMAIL PROTECTED]
 wrote:
 
Hi flexcoders,
 
  Is it worth buying these books???
 
  Programming Flex2
  ActionScript 3.0 Cookbook
 
  Did you read and recomment them?
 
  Rgds,
 
  Olivier
 
  -
  An electronic message is not binding on its sender.
  Any message referring to a binding engagement must be confirmed in
writing
  and duly signed.
  -
 
   
 





[flexcoders] Re: Flex books

2007-02-05 Thread Jack OMelia
Actually, no. I was able to purchase the book as a download from
O'Reilly at this link: http://www.oreilly.com/catalog/programadobe/,
$29.99 for download as a PDF only. You can keep downloading as updates
become available. You can pay more to have a print copy of the book
when it comes out. When I first bought it last fall I didn't realize
how little was in it but the last update was quite hefty. 

Jack

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

 
You need a subscription to http://www.safaribooks.com





[flexcoders] Re: datagrid checkboxes getting checked dynamically

2006-10-26 Thread Jack OMelia
You're absolutely right! Being a newbie at this I originally connected
to my local XML files using HTTPService request without the e4x format
and this worked fine. After I discovered I didn't need to do this, I
moved to XML tags with e4x formatting and ran into the problem.

BTW, I tried selected='{Boolean(data.cdrBusinessCharge)}' and that did
not work.

Thanks again to all for the input.

Jack
 
 BTW, this seems to be an issue only with XML/e4x dataProviders. When I
 used standard ArrayCollections (coming from an XML  HTTPService call),
 the litteral text true and false will be cast boolean automatically.
 I had a working grid with checkboxes, and when I changed to e4x I ran
 into the same issue.
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Just for fun, try a cast:
 
  selected='{Boolean(data.cdrBusinessCharge)}'
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of Jack OMelia
  Sent: Wednesday, October 25, 2006 4:39 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: datagrid checkboxes getting checked
  dynamically
 
 
 
  That did the trick! Many thanks! I knew there must be a way to give
  the checkbox the boolean data but couldn't see it.
  Thanks again.
  
Is it because the checkbox is expecting a Boolean and getting
 text?
   That would be my guess. What does it do if you change the code to:
  
   mx:CheckBox id=ckBoxBusCharge selected='{data.cdrBusinessCharge
 ==
   true}' /
  
   ?
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Jack OMelia lomelia@
 wrote:
   
Hi All,
   
I have one column in a datagrid populated with checkboxes. The
checkboxes are part of a dataGridCell itemRenderer called
checkBoxRendererSummary:
   
mx:Component id=checkBoxRendererSummary 
mx:VBox horizontalAlign=center paddingLeft=10
mx:CheckBox id=ckBoxBusCharge
selected='{data.cdrBusinessCharge}' /
/mx:VBox
/mx:Component
   
and receive data from a local XML file. The XML file is brought in
with the mx:XML/ tag formatted for e4x. One node of the XML is
  below:
   
item
cdrBusinessChargetrue/cdrBusinessCharge
cdrSumNbr203-952-4993/cdrSumNbr
cdrSumTotalCalls12/cdrSumTotalCalls
cdrSumTotalMin21/cdrSumTotalMin
cdrSumTotalAir0.00/cdrSumTotalAir
cdrSumTotalLD0.00/cdrSumTotalLD
cdrSumTotalCharges0.00/cdrSumTotalCharges
/item
   
For some reason, the checkbox does not read the value of
cdrBusinessCharge and check the box accordingly. No matter whether
  the
value is true or false, all the checkboxes are checked. I use
  similar
itemRenderers for the other columns with Text components instead
 of
checkboxes and they all read and display the data correctly. Is it
because the checkbox is expecting a Boolean and getting text?
   
Thanks
   
  
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] datagrid checkboxes getting checked dynamically

2006-10-25 Thread Jack OMelia
Hi All,

I have one column in a datagrid populated with checkboxes. The
checkboxes are part of a dataGridCell itemRenderer called
checkBoxRendererSummary:

mx:Component id=checkBoxRendererSummary 
  mx:VBox horizontalAlign=center paddingLeft=10
mx:CheckBox id=ckBoxBusCharge
selected='{data.cdrBusinessCharge}' /
  /mx:VBox
/mx:Component

and receive data from a local XML file. The XML file is brought in
with the mx:XML/ tag formatted for e4x. One node of the XML is below:

item
  cdrBusinessChargetrue/cdrBusinessCharge
  cdrSumNbr203-952-4993/cdrSumNbr
  cdrSumTotalCalls12/cdrSumTotalCalls
  cdrSumTotalMin21/cdrSumTotalMin
  cdrSumTotalAir0.00/cdrSumTotalAir
  cdrSumTotalLD0.00/cdrSumTotalLD
  cdrSumTotalCharges0.00/cdrSumTotalCharges
/item

For some reason, the checkbox does not read the value of
cdrBusinessCharge and check the box accordingly. No matter whether the
value is true or false, all the checkboxes are checked. I use similar
itemRenderers for the other columns with Text components instead of
checkboxes and they all read and display the data correctly. Is it
because the checkbox is expecting a Boolean and getting text?

Thanks




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: datagrid checkboxes getting checked dynamically

2006-10-25 Thread Jack OMelia
That did the trick! Many thanks! I knew there must be a way to give
the checkbox the boolean data but couldn't see it.
Thanks again.

  Is it because the checkbox is expecting a Boolean and getting text?
 That would be my guess. What does it do if you change the code to:
 
 mx:CheckBox id=ckBoxBusCharge selected='{data.cdrBusinessCharge ==
 true}' /
 
 ?
 
 --- In flexcoders@yahoogroups.com, Jack OMelia lomelia@ wrote:
 
  Hi All,
  
  I have one column in a datagrid populated with checkboxes. The
  checkboxes are part of a dataGridCell itemRenderer called
  checkBoxRendererSummary:
  
  mx:Component id=checkBoxRendererSummary 
mx:VBox horizontalAlign=center paddingLeft=10
  mx:CheckBox id=ckBoxBusCharge
  selected='{data.cdrBusinessCharge}' /
/mx:VBox
  /mx:Component
  
  and receive data from a local XML file. The XML file is brought in
  with the mx:XML/ tag formatted for e4x. One node of the XML is
below:
  
  item
cdrBusinessChargetrue/cdrBusinessCharge
cdrSumNbr203-952-4993/cdrSumNbr
cdrSumTotalCalls12/cdrSumTotalCalls
cdrSumTotalMin21/cdrSumTotalMin
cdrSumTotalAir0.00/cdrSumTotalAir
cdrSumTotalLD0.00/cdrSumTotalLD
cdrSumTotalCharges0.00/cdrSumTotalCharges
  /item
  
  For some reason, the checkbox does not read the value of
  cdrBusinessCharge and check the box accordingly. No matter whether the
  value is true or false, all the checkboxes are checked. I use similar
  itemRenderers for the other columns with Text components instead of
  checkboxes and they all read and display the data correctly. Is it
  because the checkbox is expecting a Boolean and getting text?
  
  Thanks
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] click event in itemRenderer

2006-09-28 Thread Jack OMelia
Hi All,

I have a datagrid with a click event calling some functions. I decided
I didn't want the click event to happen on the whole row, just on a
particular column. I have an itemRenderer for the column with a Text
component formatted to look like a link, so I decided to remove the
click event on the datagrid and add it to the text componenet in the
itemRenderer. When I do, the page won't compile and I get an error
saying I'm making a call to an undefined function. I tried something
simpler and set the click event to change the current state. The page
compiled but on click got an error, call to undefined state.

Here's my itemRenderer:

mx:Component id=dataCellLinkTest
 mx:Text 
   color=0xff 
   textDecoration=underline  
   textAlign=left 
   buttonMode=true 
   useHandCursor=true 
   mouseChildren=false
   click=totalEmployeeData()
  /
/mx:Component

Is there something stupid I'm missing here? Why would an event in an
itemRenderer not be able to see the functions or states in my application?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Error when trying to implement Flex PhotoViewer as shown on Adobe site

2006-09-21 Thread Jack OMelia
I was following this thread and awaiting the answer. Could you tell me
what you figured out?
Thanks,
Jack

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

 I figured it out! Thanks very much for your help!
 
 --- In flexcoders@yahoogroups.com, Justin Cook justin.aloha@ 
 wrote:
 
  Where do you do enter this in?
  
  
  - Original Message 
  From: Angus Johnson gusjohnson@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, September 21, 2006 9:27:46 AM
  Subject: Re: [flexcoders] Re: Error when trying to implement Flex 
 PhotoViewer as shown on Adobe site
  
  Hi Justin, 
  
  You need to add the strings.properties file to the source path in 
 Flex Builder. You have to be pretty explicit eg...
  
  C:\Sandbox\FlexPhot oViewer\src\ locale\en_ US
  
  Cheers
  Angus
  
  
  On 21/09/06, justin.aloha justin.aloha@ yahoo.com wrote: 
  The error I get upon compile is Unable to resolve a class for 
  ResourceBundle: strings. 
  
  I will post a follow up if I can get more information on this.
  
  Justin
  
  --- In [EMAIL PROTECTED] ups.com, justin.aloha 
 justin.aloha@ ... 
  wrote:
  
   I saved the source code and tried to implement the Flex Photo 
 Viewer 
   shown on the Adobe site. 
   (http://www.adobe. com/devnet/ flex/samples/ photo_explorer/)
   
   However, I'm getting an error on the Flex Photo Viewer when I try 
 to 
   implement it on my own site. It appears it is having a hard time 
   finding some string resource or something. Has anyone tried to 
   implement the photo viewer and has anyone done it successfully? 
 How 
  did 
   you do it? Is it a Flex 2 or 1.5 app?
   
   Thanks,
   Justin
  
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: how to set 1px width image to be a 200width application control bar 's backg

2006-09-19 Thread Jack OMelia
Try CSS setting repeat-x (horizontal) or repeat-y (vertical)

Jack
--- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote:

 Hello Harish,
 
 Tuesday, September 19, 2006, 3:56:03 PM, you wrote:
 
 
  set the backgroundSize property to 100%, not sure, worth a try!
 
I just tried this path just to validate this approach and it
failed to me. I applied the following CSS style to the application:
 
 Application
 {
  background-image: mainBackground2.swf;
  background-size: 100%;
 }
 
  I got the result that mainBackground2.swf with original 50x50
size was resized to occupy the whole 100% surface of the screen. 
 
   I am currently thinking of publishing SWF file with Flash IDE 9
alpha, where I will use some AS3 based code to replicate the single
image all along the screen in a grid fashion and use this resulted SWF
file as a background-image for my Flex 2 application.
 
   And, I believe, the supprot of CSS attribute background-repeat
did not make it to be available with Flex 2 release.
 
 -- 
 Best regards,
  Andriymailto:[EMAIL PROTECTED]








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: remove white content area in TitleWindow?

2006-09-18 Thread Jack OMelia
There is an easier way that I've used and that's to set the
headerHeight attribute of the panel to 0.

Jack

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

 To get rid of the white contentPane, you need to override the
layoutChrome
 method in your class
 AddSubscriptionModal.as. however, there is a catch, the layoutchrome
 triggres off a whole lot of layouting operations, most of them
private to
 get the Panel work the way it should. Overriding the method
typically means,
 we need to take care of all that on our own now! thats the deal :)
 
 Harish
 
 On 9/18/06, aaron smith [EMAIL PROTECTED] wrote:
 
is there a way to remove the white content area in a
titleWindow? i'm
  experimenting with drawing the UI myself, and when I draw it then add
  children to it, it adds that white content area, which I don't
want. I tried
  extending canvas and drawing it that way, but then you can't drag
the window
  around..
 
  here is my example code:::
 
  mxml::
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  layout=horizontal creationComplete=initApp()
  mx:Script
  import Startup;
 
  private function initApp():void
  {
  var st:Startup = new Startup();
  }
  /mx:Script
  /mx:Application
 
 
  Startup.as:::
 
  package
  {
 
  import mx.managers.PopUpManager;
  import mx.containers.Canvas;
  import mx.core.Application ;
  import AddSubscriptionModal;
 
  public class Startup
  {
  public function Startup()
  {
  var cn:Canvas = new Canvas();
  Application.application.addChild ( cn );
  var asm:AddSubscriptionModal =
PopUpManager.createPopUp( cn,
  AddSubscriptionModal, true ) as AddSubscriptionModal;
  }
  }
  }
 
 
  AddSubscriptionModal.as:::
 
  package
  {
 
  import mx.managers.PopUpManager;
  import mx.events.CloseEvent;
  import mx.events.FlexEvent;
  import SelfCenteringTitleWindowPopUp;
  import mx.graphics.RectangularDropShadow;
  import flash.display.*;
  import flash.geom.*;
 
  import mx.controls.Button;
 
  public class AddSubscriptionModal extends
  SelfCenteringTitleWindowPopUp
  {
 
  private var dropShadow:RectangularDropShadow;
 
  public function AddSubscriptionModal()
  {
  doInit();
  addEventListener( CloseEvent.CLOSE, handleCloseModal );
  addEventListener( FlexEvent.CREATION_COMPLETE ,
  haCreationComplete );
  }
 
  private function doInit():void
  {
  title = test;
  showCloseButton = true;
  width = 350;
  height = 100;
  selfCenter();
  }
 
  override protected function updateDisplayList(
  unscaledWidth:Number, unscaledHeight:Number ):void
  {
  super.updateDisplayList( unscaledWidth, unscaledHeight );
  graphics.clear();
 
  //background
  var fillType:String = GradientType.LINEAR;
  var colors:Array = [0xFFFBC9, 0xFF];
  var alphas:Array = [100, 100];
  var ratios:Array = [0x00, 0xFF];
  var matr:Matrix = new Matrix();
  matr.createGradientBox(width, 20, -60, -50, 50);
  var spreadMethod:String = SpreadMethod.PAD;
  this.graphics.beginGradientFill(fillType, colors, alphas,
  ratios, matr, spreadMethod);
  this.graphics.drawRect(0,0,width,height);
 
  //shadow
  if (!dropShadow)
  dropShadow = new RectangularDropShadow();
 
  dropShadow.distance = 3;
  dropShadow.angle = 70;
  dropShadow.color = 0;
  dropShadow.alpha = 0.4;
  dropShadow.drawShadow(graphics, 0, 0, unscaledWidth,
  unscaledHeight);
  selfCenter();
  }
 
  private function haCreationComplete( fe:FlexEvent ):void
  {
  var btn:Button = new Button();
  btn.label = TEST;
  addChild( btn );
  }
 
  private function handleCloseModal( ce:CloseEvent ):void
  {
  PopUpManager.removePopUp( this );
  }
  }
  }
 
 
  SelfCenteringTitleWindowPopUp.as:::
 
  package
  {
 
  import mx.core.Application;
  import mx.containers.TitleWindow;
  import mx.events.FlexEvent;
  import mx.events.ResizeEvent;
 
  /**
  * a class that handles centering itself in the entire application
  window,
  * does a center when the swf is resized, or when you call
  codeselfCenter/code
  * from one of it's subclassed implementations
  */
  public class SelfCenteringTitleWindowPopUp extends TitleWindow
  {
 
  /**
  * constructor
  */
  public function SelfCenteringTitleWindowPopUp()
  {
  

[flexcoders] Re: Centering a checbox in a datagrid column

2006-09-13 Thread Jack OMelia
Thanks to all who replied. I'm sorry I'm only getting back now, but I
was away on business for a few days. 

I was able to put the checkbox in a VBox in the itemRenderer (and
center it), but I lost any selected checks in the data because I only
had a reference to the data in the dataprovider. Once I put the
checkbox in the VBox, I added selected ={data.cdrBusinessCall} to
the checkbox and that worked for me.

Thanks again for the help.

Jack

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

 Jack, check out this thread:
  
 HYPERLINK

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg34180.htmlhttp:/
 /www.mail-archive.com/flexcoders@yahoogroups.com/msg34180.html
  
 It's pretty much along the same lines as what you want, but with the
extra
 code to handle 1 or 0 instead of selected. You can probably modify
that to
 accept the words true and false instead.
  
 Shan
  
 
 
_  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jack OMelia
 Sent: Thursday, September 07, 2006 1:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Centering a checbox in a datagrid column
 
 
 
 Hi All,
 
 I'm new to Flex and having a blast learning it but every now and then
 I run into small things that make me scratch my head.
 
 I have a column in a datagrid that uses an itemRenderer to fill the
 cells with checkboxes. The checkboxes are flush left against the wall
 of the cell. In searching your threads, it seems most of you position
 the checkbox by wrapping the checkbox in another component, usuaully
 an HBox or VBox, in the itemRenderer.
 
 That worked for me except that I lose the selected property for each
 row. The datagrid is populated with data from an XML file, and the
 first attribute for each node is either true or false, which then sets
 the checkbox as checked or not. Once I add aVBox or HBox to my
 itemRenderer, I lose this and none of the checkboxes are checked. It
 would seem a custom script is needed to ensure the checkboxes are
checked.
 
 All I want to do is center my checkboxes. There must be a simple way
 of doing this without writing another 50 to 100 lines of code. Am I
 missing something?
 
 Thanks,
 Jack
 
 
 
  
 
 
 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
 
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Centering a checbox in a datagrid column

2006-09-07 Thread Jack OMelia
Hi All,

I'm new to Flex and having a blast learning it but every now and then
I run into small things that make me scratch my head.

I have a column in a datagrid that uses an itemRenderer to fill the
cells with checkboxes. The checkboxes are flush left against the wall
of the cell. In searching your threads, it seems most of you position
the checkbox by wrapping the checkbox in another component, usuaully
an HBox or VBox, in the itemRenderer.

That worked for me except that I lose the selected property for each
row. The datagrid is populated with data from an XML file, and the
first attribute for each node is either true or false, which then sets
the checkbox as checked or not. Once I add aVBox or HBox to my
itemRenderer, I lose this and none of the checkboxes are checked. It
would seem a custom script is needed to ensure the checkboxes are checked.

All I want to do is center my checkboxes. There must be a simple way
of doing this without writing another 50 to 100 lines of code. Am I
missing something?

Thanks,
Jack





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/