[flexcoders] Function to generate TitleWindows

2007-11-02 Thread George Georgiou
Hi there, I have this simple function that is used in my application to generate a TitleWindow. private function loadAddCustomerForm():void { var form:addCustomer=addCustomer(PopUpManager.createPopUp( this, addCustomer , true)); var dx:Number = (mainPanel.width - form.width)/2; var

[flexcoders] disable buttons with icons

2007-11-02 Thread George Georgiou
Hi there, I have a form with a 'Save' button. I have also placed an icon with this button using the 'icon='/assets/save.gif' attribute. By default I have this button disabled and I enable it only when validation returns success. This works great! However, I have noticed that although the button

Re: [flexcoders] Re:Placing TitleWindow source file in custom folder

2007-11-01 Thread George Georgiou
Great thanks for your help both guys George On 10/31/07, srikanth reddy [EMAIL PROTECTED] wrote: Use the following code instead of this use Application.application which is a pointer to the application and give the xmlns:ns=MyWindows.* where ever u call it in mxml; private

Re: [flexcoders] Changing the width to 100%

2007-10-30 Thread George Georgiou
; helpPanel.includeInLayout = true; helpPanel.visible = true; } - Dan Freiman On 10/29/07, George Georgiou [EMAIL PROTECTED] wrote: Hi all there, thanks for your help. Indeed, the percentWidth is what i was looking for, thanks a lot! However, still I have this problem. I

[flexcoders] Placing TitleWindow source file in custom folder

2007-10-30 Thread George Georgiou
Hi there, I have been working around the example from Adobe for creating TitleWindows. The following code creates a titlewindow from a file called SimpleTitleWindowExample.mxml This is placed in the root folder, i.e. right below the project name. Now, if I place this into a custom folder, let's

[flexcoders] component visibility question

2007-10-29 Thread George Georgiou
Hi there, I am wondering whether there is an alternative to the 'visible' property of a component - which really 'removes' the component from the scene. I am having two panels and I want to be able to resize the first one to 100% when I 'hide' the second. Property visible works but I have to

Re: [flexcoders] Changing the width to 100%

2007-10-29 Thread George Georgiou
: Hi George, yeah the width property will only take an integer so you must use the percentProperty to set a percent. So something like this would be fine~ public function changeWidth():void { mainPanel.percentWidth = 100; } On 10/28/07, George Georgiou [EMAIL PROTECTED] wrote

Re: [flexcoders] Re: ComboBox populate list with remoteobject

2007-10-15 Thread George Georgiou
combo item when the value object is first loaded? And even with this, if the model changes, the view would not see it happen. Is there some way to make this binding? T --- In flexcoders@yahoogroups.com, George Georgiou george1977@ wrote: Hi there, I got a remoteobject which

[flexcoders] Access a ViewStack within a custom component

2007-10-14 Thread George Georgiou
Hi there, I have this really simple problem. I have created a ViewStack within my main application. I would like to switch into different views from a custom component that I have. Here's my code: mx:ViewStack id=mainStack borderStyle=solid width=100% height=100% mx:Canvas id=startPage

Re: [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-14 Thread George Georgiou
-- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *George Georgiou *Sent:* Saturday, October 13, 2007 4:25 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type

[flexcoders] what event is triggered every time a datagrid is shown on screen? (creationComplete is not ideal for this case)

2007-10-14 Thread George Georgiou
Hi there, I have a CFC component that loads some records into a datagrid. I have placed this remoteobject and datagrid as a component on my own xml namespace. I have noticed that when I add new record into my SQL, the datagrid does not get refreshed - really creationComplete does not fire every

[flexcoders] ComboBox populate list with remoteobject

2007-10-14 Thread George Georgiou
Hi there, I got a remoteobject which loads data from an sql table. I got something like 5 fields for customers. I want to populate a combobox showing the name of the customer and having as a value the customer_id. After Googling it a bit, I have ended up with this: mx:ComboBox

[flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-13 Thread George Georgiou
1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container. I really don't understand what's wrong and what this error mean. Error points to the highlighted line. Any help/tips? Thanks!! Here is my code: mx:Script ![CDATA[ [Bindable] private var

Re: [flexcoders] Flex always returns true, how is this possible?

2007-10-04 Thread George Georgiou
@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *George Georgiou *Sent:* Thursday, October 04, 2007 3:24 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex always returns true, how is this possible? Hi guys, I have this very strange problem: here's my code for those

[flexcoders] Flex always returns true, how is this possible?

2007-10-04 Thread George Georgiou
Hi guys, I have this very strange problem: here's my code for those that are willing to help: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.controls.Alert;

Re: [flexcoders] HTTPService Error event

2007-10-01 Thread George Georgiou
:* Re: [flexcoders] HTTPService Error event why not just use a webService, and then only show an error if something is wrong.? - Original Message From: George Georgiou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, September 30, 2007 3:43:55 PM Subject: Re

[flexcoders] Simple RemoteObject call - cannot figure out what is wrong

2007-10-01 Thread George Georgiou
Hi all, I am trying to switch from httpservice into remoteobject but i m having a problem in here which i cannot figure out how to solve. I have managed to read data using a CFC and display them in a grid (I have really wrote my own component that I can pass SQL there and display data). However

[flexcoders] HTTPService Error event

2007-09-30 Thread George Georgiou
Hi, I have this code. It works perfect but I would like to get alerted only when I have some kind of error in my test.cfm file. Instead, the 'errorAlert()' function always is triggered :( Any idea's on how to make this work only when I have problems in my test.cfmfile? ?xml version=1.0

Re: [flexcoders] HTTPService Error event

2007-09-30 Thread George Georgiou
(); params.firstName = firstName.text; ... srv.send(params); } hth Scott George Georgiou wrote: Hi, I have this code. It works perfect but I would like to get alerted only when I have some kind of error in my test.cfm file. Instead, the 'errorAlert()' function always is triggered :( Any

Re: [flexcoders] New Project using ColdFusion Flash Remoting Service

2007-09-26 Thread George Georgiou
Hi Tom, Sorry - perhaps you failed to send your message? On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: that's it, i hit Next, i try to wrinte some MXML (anything really) but it fails to compile, it keeps running and running with no

Re: [flexcoders] New Project using ColdFusion Flash Remoting Service

2007-09-26 Thread George Georgiou
I don't have problem with the code. The problem is to create a new project using the CF flash service setup. Even for a single button that just popups an alert - if I don't define the correct project settings it won't compile at all! On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On

[flexcoders] New Project using ColdFusion Flash Remoting Service

2007-09-25 Thread George Georgiou
Hi all, A quick and newbie question - i m sure this is easy for most of you. I want to test the flash remoting service of ColdFusion and flex. I have a book on Flex explains perfectly some examples but it has very poor help in setting up the whole thing. This is my scenario: I have coldfusion

[flexcoders] HTTPServer Fault Response

2007-09-25 Thread George Georgiou
Hi there, I am using this httpserver to send some form variables in a coldfusion .cfm file which inserts them in a database. mx:HTTPService id=srv url=http://myserv.flexdata/test.cfm; fault=errorAlert(); method=POST mx:request

[flexcoders] Data Management in Flex : Add/Edit/Delete

2007-09-23 Thread George Georgiou
Hi there, I am really new into Flex programming. I have been through a few tutorials and I really liked it. I am not sure though how to make a very simple task. Suppose I have a simple form and I want to update an SQL table when I enter some values in there. I want when I click submit to do

Re: [flexcoders] Data Management in Flex : Add/Edit/Delete

2007-09-23 Thread George Georgiou
[mailto:[EMAIL PROTECTED] *On Behalf Of *George Georgiou *Sent:* Sunday, September 23, 2007 3:41 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Data Management in Flex : Add/Edit/Delete Hi there, I am really new into Flex programming. I have been through a few tutorials

[flexcoders] Marker ID #### not found

2006-11-25 Thread George Georgiou
Hi there, I am kind of new to Flex (but not to ColdFusion). I have been playing around with Flex 2 during the last days and so far I find it very future-promissing platform, worth investing some time on it. I have a small problem which I have no clue what's wrong. As soon as I try to execute my