[flexcoders] RichTextEditor's Minimum Size

2007-12-18 Thread triggersoftware
Is there any way around RichTextEditor's minimum size? It has a minimum size of 220 pixels wide by 200 pixels high, which is just too big for my application. If I set the size to smaller than this scroll bars appear *within* the control. Cheers, David.

[flexcoders] Re: RichTextEditor's Minimum Size

2007-12-18 Thread triggersoftware
Got it! Set the textArea subcomponent's size: form.txtField.textArea.height = form.txtField.height; What a faff! Can anyone explain why I have to do this? --- In flexcoders@yahoogroups.com, triggersoftware [EMAIL PROTECTED] wrote: Is there any way around RichTextEditor's minimum size

[flexcoders] Flex Builder 3

2007-12-10 Thread triggersoftware
I've upgrade to Flex Builder 3 and noticed that it's more pedantic about how I form my web service calls. The following code WORKS: const service:WebService = new WebService(); service.loadWSDL(http://d6zltz1j:8080/Misura360/RespondentService?wsdl\ );

[flexcoders] Web Services and Arrays

2007-12-07 Thread triggersoftware
I've been connecting our Flex app to Web Services written in JBoss for the first time and noticed some odd things happening when the web service sends back an array. This problem basically goes away if you change the operation tag's resultFormat attribute from object to e4x. Can anyone explain

[flexcoders] Re: Web Services and Arrays

2007-12-07 Thread triggersoftware
It looks to me like the Flash deserialising code can't deal when an array is sent back with other objects at the same level: someObject grades grades grades someOtherObject /someObject It doesn't work properly out that it's an array unless all sibling nodes are of the same type:

[flexcoders] Re: Web Services and Arrays

2007-12-07 Thread triggersoftware
That's rubbish! Who at Adobe do I have to bribe? I've never submitted a Bug report to Adobe before. Where should it be done? Here ? http://www.adobe.com/bin/fp9betafeedback.cgi

[flexcoders] Re: Web Services and Arrays

2007-12-07 Thread triggersoftware
For anyone else having this problem, you can also get round it by setting the resultFormat to e4x as it properly preserves lists. var service:WebService = new WebService(); service.loadWSDL(http://d6zltz1j:8080/Misura360/RespondentService?wsdl\ );

[flexcoders] Summary Data

2007-12-06 Thread triggersoftware
I have two grids. The first has a list of users: User Type --- Bob IT James Marketing Mark Marketing Stef Sales The second contains a summary view of the users *by type*: Type Count --- IT 1 Marketing 2 Sales 1

[flexcoders] Re: Another Change Event?

2007-12-06 Thread triggersoftware
Thanks. In the end I just put a delay on the effect. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try callLater? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of triggersoftware Sent: Thursday

[flexcoders] Re: Summary Data

2007-12-06 Thread triggersoftware
this summary refresh when I removed a user as well. I would have expected data binding to tell the grid to refresh its data rather than me doing it manually. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 06 Dec 2007, triggersoftware wrote: These two

[flexcoders] Re: Summary Data

2007-12-06 Thread triggersoftware
Maybe if you showed us how the two things are wired up together at the moment, we'd could be more specific. The summary grid is not wired up yet. I just a have my main grid of users and I want to add the summary grid. The kind of thing I was expecting to do was to simply define a datasource

[flexcoders] Re: Summary Data

2007-12-06 Thread triggersoftware
mx:DataGrid id=summaryGrid dataProvider={ makeSummary(usersGrid.dataProvider) } Ah...that looks more like it! The only problem is that the summary grid is not regenerated if the source changes: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] Re: Summary Data

2007-12-06 Thread triggersoftware
It was this level of fiddling about that I didn't really want to have to get into, but I've managed to limit it to the following: mx:DataGrid id=grdSummary creationComplete={ArrayCollection(grdDetail.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE, makeSummary)};makeSummary()/

[flexcoders] Sanity Check!

2007-12-06 Thread triggersoftware
Is there any way to strongly type the objects that come back from a Webservice call? Something along the lines of: [Bindable(wsdl=http://localhost:8080/MyProject/CandidateService?wsdl.Questionnaire)] public class Questionnaire { ... } I know about the proxy generation in Flex Builder 3...

[flexcoders] JBoss Basic Authentication and Web Services

2007-11-29 Thread triggersoftware
My backend developer wants to secure with Basic Authentication the web services he is going to produce. Will this work properly with Flex? I've seen .setCredentials(), but I've seen posts saying that this doesn't work (http://taylorbarstow.com/tags/air/) and also that when you *do* manage to

[flexcoders] Transition when reverting to the base state

2007-11-27 Thread triggersoftware
I know how to get a component removal transition to work when I'm actively calling mx:RemoveChild, but I'm not sure how to get a removal transition to work when components are removed by Flex to undo the calls to mx:AddChild which moved us into the current state in the first place. Okay, that

[flexcoders] Re: Transition when reverting to the base state

2007-11-27 Thread triggersoftware
After a bit more playing, I can see that both effects are definitely getting run, it's just that I can't see the A - Base transition because Flex has already removed the components. Still stuck though! --- In flexcoders@yahoogroups.com, triggersoftware [EMAIL PROTECTED] wrote: I know how

[flexcoders] Re: Transition when reverting to the base state

2007-11-27 Thread triggersoftware
I've worked it out. You can specify when the component removal happens by using a mx:RemoveChildAction tag: mx:Style @font-face { src: local(Arial); fontFamily: myArial; }

[flexcoders] Data Binding and dealing with NULLs

2007-11-26 Thread triggersoftware
I hit this problem quite often and wonder if there is a general solution... I have a component which displays a list of questions and has the concept of a current question i.e. the question the user is answering: mx:Script ![CDATA[ import

[flexcoders] Another Change Event?

2007-11-22 Thread triggersoftware
I'm writing a Quiz application where the user is automatically advanced to the next question upon answering the current question. I'm currently hooking into the CHANGE event on the RadioButtonGroup object, but this event appears to be fired *before* the component gets a chance to draw the dot in

[flexcoders] Binding Objects to a DataGrid

2007-11-15 Thread triggersoftware
I've got a list an ArrayCollection of objects bound to a grid. The User selects a row in the grid and hits a button. That button manipulates that row's associated object. What do I have to do to get the grid to reflect the changes? I can re-assign the dataProvider, but that seems rather

[flexcoders] Re: Binding Objects to a DataGrid

2007-11-15 Thread triggersoftware
Here's a sample app demonstrating my problem. You don't see the value in the Number column get incremented until you hit the Reload button. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[

[flexcoders] Re: Accessing dataField from within a Custom Item Renderer

2007-11-15 Thread triggersoftware
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of triggersoftware Sent: Wednesday, November 14, 2007 9:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing dataField from within a Custom Item Renderer Yup...I

[flexcoders] Popups and Focus

2007-11-14 Thread triggersoftware
I'm trying to get my application to launch a popup as soon as it starts up and the popup should put the focus its text box. The problem is, that while I can see the blue border around the text box, the cursor is not active in the text box, meaning the user has to click on the popup in order to

[flexcoders] Re: Popups and Focus

2007-11-14 Thread triggersoftware
- Original Message - From: triggersoftware [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 14, 2007 11:53 AM Subject: [flexcoders] Popups and Focus I'm trying to get my application to launch a popup as soon as it starts up and the popup

[flexcoders] Re: Progress Bar Item Renderer

2007-11-14 Thread triggersoftware
Came up with a nearly-pure MXML version: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ProgressBar id=pb mode=manual label=%3%% labelPlacement=center creationComplete=setData() width=100%/ mx:Script ![CDATA[

[flexcoders] Accessing dataField from within a Custom Item Renderer

2007-11-14 Thread triggersoftware
Is there any way I can access the dataField field from within a custom item renderer? mx:DataGridColumn itemRenderer=MyCustomComponent dataField=startDate/ mx:DataGridColumn itemRenderer=MyCustomComponent dataField=endDate/ In this case the component MyCustomComponent would know to look at the

[flexcoders] Re: Accessing dataField from within a Custom Item Renderer

2007-11-14 Thread triggersoftware
) then you will be able to access listData. When your renderer is in a DataGrid, listData will be of type DataGridListData, which provides properties like dataField, columnIndex, rowIndex, etc. HTH, Ben --- In flexcoders@yahoogroups.com, triggersoftware david.bates@ wrote: Is there any

[flexcoders] Re: Accessing dataField from within a Custom Item Renderer

2007-11-14 Thread triggersoftware
Yup...I was being dense: ?xml version=1.0 encoding=utf-8? mx:Label xmlns:mx=http://www.adobe.com/2006/mxml; textAlign=center creationComplete=setText() mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData;

[flexcoders] Progress Bar Item Renderer

2007-11-12 Thread triggersoftware
I'm trying to create a progress bar item renderer, but I can't get the value of progress bar to bind: mx:AdvancedDataGridColumn headerText=% Complete width=100 mx:itemRenderer mx:Component mx:VBox

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread triggersoftware
is not altered. When needed for binding, take a look at BindingUtils.bindSetter --jeetee --- In flexcoders@yahoogroups.com, triggersoftware david.bates@ wrote: I'm trying to create a progress bar item renderer, but I can't get the value of progress bar to bind

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread triggersoftware
, --jeetee --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, triggersoftware david.bates@ wrote: When using 'manual' you could try using the setter method, again from the docs... I've tried doing this but Flex doesn't like having script blocks in the item renderer

[flexcoders] Re: Displaying an image stored in a database

2007-08-27 Thread triggersoftware
If you're getting it through an object-serialization framework (AMF, etc.), Yup, that's what I'm doing. then you may be receiving it already as a ByteArray, in which case you need to load it with a Loader instance. Where could I find information about this? I've found the flex documentation