[flexcoders] AdvancedDataGrid: Disable Dragging Columns
In the Adobe documentation it says the following about disabling the ability to re-arrange columns by dragging: To disable dragging of all columns in a group, set the AdvancedDataGridColumnGroup.childrenDragEnabled property to false. To disable dragging for a single column, set the AdvancedDataGridColumn.dragEnabled property to false. However, I don't seem to see any trace of the dragEnabled property for AdvancedDataGridColumn. I'm probably just missing something obvious, so can someone point me in the right direction? Thanks! Paul
[flexcoders] Detecting the Access of a Non-Existant Property
I thought I read somewhere that there is a way to intercept an attempted access of a non-existent object property. For example, suppose an attempt is made to access the property bar of an object foo which is an instance of the class FooBar (i.e. x = foo.bar). Further suppose that the property bar does not exist for foo. Is there a way to define a method in FooBar that will catch the attempt to access the non-existent property bar and return a value as if bar actually did exist? Even something similar to the way the prototype property works would be helpful (if it is scoped to the instance rather than to the class). Thanks.
[flexcoders] Re: Detecting the Access of a Non-Existant Property
Thanks! That's it! Paul --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Not per-property for sealed classes. If you inherit from flash.utils.Proxy, you can handle all property accesses From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Sunday, May 25, 2008 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Detecting the Access of a Non-Existant Property I thought I read somewhere that there is a way to intercept an attempted access of a non-existent object property. For example, suppose an attempt is made to access the property bar of an object foo which is an instance of the class FooBar (i.e. x = foo.bar). Further suppose that the property bar does not exist for foo. Is there a way to define a method in FooBar that will catch the attempt to access the non-existent property bar and return a value as if bar actually did exist? Even something similar to the way the prototype property works would be helpful (if it is scoped to the instance rather than to the class). Thanks.
[flexcoders] When are asynchronous events processed?
When a response is received from a web service (for example), when is the listener code executed? The beginning of the next frame? I'm assuming that currently executing code is not suspended so that an asynchronous event can be handled, but I was curious as to exactly when asynchronous events are serviced. Thanks.
[flexcoders] Re: When are asynchronous events processed?
Thanks for the explanation. I found the following in Colin Moock's book and assume that asynchronous events are handled during step 2: 1.Execute Frame 1's frame script. 2.Wait until the next scheduled frame-render time. While waiting, if any events are triggered, execute all registered event listeners. 3.At frame-render time, check if the screen needs updating. The screen needs updating if any of the following is true: * Frame 1 contains changes to the contents of the Stage made manually in the Flash authoring tool. * Code in Frame 1's frame script created new visual content or modified existing visual content. * Code in a listener function executed during Step 2 created new visual content or modified existing visual content. 4.If necessary, update the screen to reflect all changes detected in Step 3. 5.Repeat Steps 1-4 --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 7:48 PM, Paul Whitelock [EMAIL PROTECTED] wrote: When a response is received from a web service (for example), when is the listener code executed? The beginning of the next frame? I'm assuming that currently executing code is not suspended so that an asynchronous event can be handled, but I was curious as to exactly when asynchronous events are serviced. Thanks. Currently executing code will never be suspended in a single-threaded environment, which is what Flash is. The asynchronous events are handled when your application is idle. Although I don't know how exactly the Flash Player does this, I imagine that events are pushed into an event queue from where they are processed one by one. So at some point, when your network call has returned, its event might go into the queue and from there it might get dispatched and subsequently handled by your app. The frame rate has nothing to do with event processing.
[flexcoders] Re: How to tell if variable is an int, uint, or a Number?
Alrighty then, I filed a bug report since the following outputs int: var uintVar:uint = 5; trace(describeType(uintVar)[EMAIL PROTECTED]()); --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I think there is a conceptual distinction between the runtime type of an AS3 value and the compile-time type of a var or parameter that holds such a value. The 'is' operator works on values. A value like 5 'is' both an int, a uint, and a Number because it is a legal value in the set of possible values for each of these types. But I would expect a var declared as var u:uint; to report itself via describeType() as a uint, just like int and Number do. It seems like a bug that it doesn't. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a Number? Thanks for the suggestion, but it still considers an int to be a uint if the int is positive. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou sherif626@ wrote: try using a dictionary instead of object - Original Message From: Paul Whitelock paul@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, May 15, 2008 4:11:19 PM Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a Number? Well, it turns out that doesn't work either if the int is positive. If an int is positive all of the follow tests return true: var testInt:int = 5; var obj:Object = testInt; obj is int - true obj is uint - true obj is Number - true So, I'm back to assuming there is no way to tell an int from a uint. --- In [EMAIL PROTECTED] ups.com, Paul Whitelock paul@ wrote: I found another way that seems to work (not sure why though): var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var obj:Object = testUint; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: true int: false Number: false obj = testInt; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: true Number: false obj = testNumber; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: false Number: true --- In [EMAIL PROTECTED] ups.com, Paul Whitelock paul@ wrote: Thanks! That did help, but it doesn't seem to work for a uint. Here's my test code: var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var testString:String = test; var testDate:Date = new Date(); var testArray:Array = new Array(); var test:Array = [testUint, testInt, testNumber, testString, testDate, testArray]; for (var i:uint = 0; i test.length; i++) { var typeInfo:String = describeType( test[i]). @name.toString( ); trace(typeInfo) ; } And here's the output: int int Number String Date Array I'm guessing there's no way to identify a uint -- is that correct? --- In [EMAIL PROTECTED] ups.com, Alex Harui aharui@ wrote: There is code that might help in DataGrid.as: itemEditorItemEd itEndHandler _ _ __ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 12:31 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] How to tell if variable is an int, uint, or a Number? I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] How to tell if variable is an int, uint, or a Number?
I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] Re: How to tell if variable is an int, uint, or a Number?
Thanks! That did help, but it doesn't seem to work for a uint. Here's my test code: var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var testString:String = test; var testDate:Date = new Date(); var testArray:Array = new Array(); var test:Array = [testUint, testInt, testNumber, testString, testDate, testArray]; for (var i:uint = 0; i test.length; i++) { var typeInfo:String = describeType(test[i])[EMAIL PROTECTED](); trace(typeInfo); } And here's the output: int int Number String Date Array I'm guessing there's no way to identify a uint -- is that correct? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There is code that might help in DataGrid.as:itemEditorItemEditEndHandler From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 12:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to tell if variable is an int, uint, or a Number? I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] Re: How to tell if variable is an int, uint, or a Number?
I found another way that seems to work (not sure why though): var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var obj:Object = testUint; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: true int: false Number: false obj = testInt; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: true Number: false obj = testNumber; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: false Number: true --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Thanks! That did help, but it doesn't seem to work for a uint. Here's my test code: var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var testString:String = test; var testDate:Date = new Date(); var testArray:Array = new Array(); var test:Array = [testUint, testInt, testNumber, testString, testDate, testArray]; for (var i:uint = 0; i test.length; i++) { var typeInfo:String = describeType(test[i])[EMAIL PROTECTED](); trace(typeInfo); } And here's the output: int int Number String Date Array I'm guessing there's no way to identify a uint -- is that correct? --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: There is code that might help in DataGrid.as:itemEditorItemEditEndHandler From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 12:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to tell if variable is an int, uint, or a Number? I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] Re: How to tell if variable is an int, uint, or a Number?
Well, it turns out that doesn't work either if the int is positive. If an int is positive all of the follow tests return true: var testInt:int = 5; var obj:Object = testInt; obj is int - true obj is uint - true obj is Number - true So, I'm back to assuming there is no way to tell an int from a uint. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I found another way that seems to work (not sure why though): var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var obj:Object = testUint; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: true int: false Number: false obj = testInt; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: true Number: false obj = testNumber; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: false Number: true --- In flexcoders@yahoogroups.com, Paul Whitelock paul@ wrote: Thanks! That did help, but it doesn't seem to work for a uint. Here's my test code: var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var testString:String = test; var testDate:Date = new Date(); var testArray:Array = new Array(); var test:Array = [testUint, testInt, testNumber, testString, testDate, testArray]; for (var i:uint = 0; i test.length; i++) { var typeInfo:String = describeType(test[i])[EMAIL PROTECTED](); trace(typeInfo); } And here's the output: int int Number String Date Array I'm guessing there's no way to identify a uint -- is that correct? --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: There is code that might help in DataGrid.as:itemEditorItemEditEndHandler From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 12:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to tell if variable is an int, uint, or a Number? I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] Re: How to tell if variable is an int, uint, or a Number?
Thanks for the suggestion, but it still considers an int to be a uint if the int is positive. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: try using a dictionary instead of object - Original Message From: Paul Whitelock [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, May 15, 2008 4:11:19 PM Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a Number? Well, it turns out that doesn't work either if the int is positive. If an int is positive all of the follow tests return true: var testInt:int = 5; var obj:Object = testInt; obj is int - true obj is uint - true obj is Number - true So, I'm back to assuming there is no way to tell an int from a uint. --- In [EMAIL PROTECTED] ups.com, Paul Whitelock paul@ wrote: I found another way that seems to work (not sure why though): var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var obj:Object = testUint; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: true int: false Number: false obj = testInt; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: true Number: false obj = testNumber; trace (uint: + (obj is uint obj is int)); trace (int: + (obj is int !(obj is uint))); trace (Number: + ((obj is Number) !(obj is int) !(obj is uint))); Output: uint: false int: false Number: true --- In [EMAIL PROTECTED] ups.com, Paul Whitelock paul@ wrote: Thanks! That did help, but it doesn't seem to work for a uint. Here's my test code: var testUint:uint = 1; var testInt:int = -1; var testNumber:Number = 1.1; var testString:String = test; var testDate:Date = new Date(); var testArray:Array = new Array(); var test:Array = [testUint, testInt, testNumber, testString, testDate, testArray]; for (var i:uint = 0; i test.length; i++) { var typeInfo:String = describeType( test[i]). @name.toString( ); trace(typeInfo) ; } And here's the output: int int Number String Date Array I'm guessing there's no way to identify a uint -- is that correct? --- In [EMAIL PROTECTED] ups.com, Alex Harui aharui@ wrote: There is code that might help in DataGrid.as: itemEditorItemEd itEndHandler _ _ __ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Paul Whitelock Sent: Thursday, May 15, 2008 12:31 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] How to tell if variable is an int, uint, or a Number? I have a situation where an untyped variable is passed in a method call and I need to determine the data type for the variable. My first thought was to use typeof, but typeof returns number for an int, uint, or a Number. The operator is will not work on primitives. Is there any way to determine the data type of an untyped primitive object?
[flexcoders] [Fixed] Flex Weirdness: Verify Errors and E4X
Actually, it's more of a surrender than a fix :-) I finally removed the E4X code and used the old XMLDocument object to process the XML and the verify errors went away. I guess that E4X is not quite mature enough to be dependable in all cases, though it's a bit surprising that the compiler chokes on fairly simple E4X expressions. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Verify errors generally mean that you fooled the compiler somehow. Sometimes, name collisions can fool the compiler. Hmmm, odd. I wasn't doing anything out of the ordinary. What I did to fix the problem in two of the cases was to move the code that creates the new event outside of the dispatchEvent method (can't remember exactly what I did for the other three or four instances to fix things). As far as E4x goes, the code you showed may mean that XMLDataItem3 may not be in the default namespace. The root tag has a xmlns declaration, but all of the children are just simple tags (not even any attributes). The structure is similar to this: ?xml version=1.0? Root xmlns:http://mynamespace; Result XMLDataItem3String1/XMLDataItem3 XMLDataItem3String2/XMLDataItem3 XMLDataItem3String3/XMLDataItem3 /Result MetaData XMLDataItem1String/XMLDataItem1 XMLDataItem22/XMLDataItem2 /MetaData /Root --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Verify errors generally mean that you fooled the compiler somehow. Sometimes, name collisions can fool the compiler. As far as E4x goes, the code you showed may mean that XMLDataItem3 may not be in the default namespace. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Sunday, May 04, 2008 2:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Weirdness: Verify Errors and E4X For some reason I've been seeing a lot of verify errors on a project I'm working on. The error always seems to be: VerifyError: Error #1025: An invalid register 5 was accessed. It seems to be related to constructing an event within a dispatchEvent call, but I've done this countless times and have never seen a VerifyError. So far I've been able to restructure the code a bit and it goes away, but this doesn't seem normal. Anyone know what might be going on? The other bit of strangeness is related to E4X. I have something similar to the following: var returnedXML:String = event.result.content as String; var myXML:XML = new XML(returnedXML); var xmlNS:Namespace = myXML.namespace(); default xml namespace = xmlNS; var dataItem1:String = myXML..XMLDataItem1; var dataItem2:Number = Number(myXML..XMLDataItem2); if (event.result.header.code == someValue) { switch (switchVar) { case 1: var dataItem3:XMLList = myXML..XMLDataItem3; break; } } The problem is that dataItem3 is always set to null UNLESS I recreate the XML object just before the dataItem3 statement, like so: myXML = new XML(returnedXML); var dataItem3:XMLList = myXML..XMLDataItem3; Any idea why E4X returns null if I don't recreate the XML object?
[flexcoders] Flex Weirdness: Verify Errors and E4X
For some reason I've been seeing a lot of verify errors on a project I'm working on. The error always seems to be: VerifyError: Error #1025: An invalid register 5 was accessed. It seems to be related to constructing an event within a dispatchEvent call, but I've done this countless times and have never seen a VerifyError. So far I've been able to restructure the code a bit and it goes away, but this doesn't seem normal. Anyone know what might be going on? The other bit of strangeness is related to E4X. I have something similar to the following: var returnedXML:String = event.result.content as String; var myXML:XML = new XML(returnedXML); var xmlNS:Namespace = myXML.namespace(); default xml namespace = xmlNS; var dataItem1:String = myXML..XMLDataItem1; var dataItem2:Number = Number(myXML..XMLDataItem2); if (event.result.header.code == someValue) { switch (switchVar) { case 1: var dataItem3:XMLList = myXML..XMLDataItem3; break; } } The problem is that dataItem3 is always set to null UNLESS I recreate the XML object just before the dataItem3 statement, like so: myXML = new XML(returnedXML); var dataItem3:XMLList = myXML..XMLDataItem3; Any idea why E4X returns null if I don't recreate the XML object?
[flexcoders] Re: Flex Weirdness: Verify Errors and E4X
Verify errors generally mean that you fooled the compiler somehow. Sometimes, name collisions can fool the compiler. Hmmm, odd. I wasn't doing anything out of the ordinary. What I did to fix the problem in two of the cases was to move the code that creates the new event outside of the dispatchEvent method (can't remember exactly what I did for the other three or four instances to fix things). As far as E4x goes, the code you showed may mean that XMLDataItem3 may not be in the default namespace. The root tag has a xmlns declaration, but all of the children are just simple tags (not even any attributes). The structure is similar to this: ?xml version=1.0? Root xmlns:http://mynamespace; Result XMLDataItem3String1/XMLDataItem3 XMLDataItem3String2/XMLDataItem3 XMLDataItem3String3/XMLDataItem3 /Result MetaData XMLDataItem1String/XMLDataItem1 XMLDataItem22/XMLDataItem2 /MetaData /Root --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Verify errors generally mean that you fooled the compiler somehow. Sometimes, name collisions can fool the compiler. As far as E4x goes, the code you showed may mean that XMLDataItem3 may not be in the default namespace. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Sunday, May 04, 2008 2:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Weirdness: Verify Errors and E4X For some reason I've been seeing a lot of verify errors on a project I'm working on. The error always seems to be: VerifyError: Error #1025: An invalid register 5 was accessed. It seems to be related to constructing an event within a dispatchEvent call, but I've done this countless times and have never seen a VerifyError. So far I've been able to restructure the code a bit and it goes away, but this doesn't seem normal. Anyone know what might be going on? The other bit of strangeness is related to E4X. I have something similar to the following: var returnedXML:String = event.result.content as String; var myXML:XML = new XML(returnedXML); var xmlNS:Namespace = myXML.namespace(); default xml namespace = xmlNS; var dataItem1:String = myXML..XMLDataItem1; var dataItem2:Number = Number(myXML..XMLDataItem2); if (event.result.header.code == someValue) { switch (switchVar) { case 1: var dataItem3:XMLList = myXML..XMLDataItem3; break; } } The problem is that dataItem3 is always set to null UNLESS I recreate the XML object just before the dataItem3 statement, like so: myXML = new XML(returnedXML); var dataItem3:XMLList = myXML..XMLDataItem3; Any idea why E4X returns null if I don't recreate the XML object?
[flexcoders] Re: How do I get status codes and responses from httpservice faults?
When an error occurs a web service will typically return a HTTP error code with the error message in the body. The problem is that Flex does not allow you to access the body and just throws a 2032 error. None of the information from the HTTP response describing the actual error is available in the fault event. --- In flexcoders@yahoogroups.com, kuroiryu42 [EMAIL PROTECTED] wrote: Thats it I have inspected the Fault event and found nothing useful. Did I set up Httpservice wrong or something? Thanks.
[flexcoders] Re: error when ttring to create web application which uses HTTP service
One thing to check is if the web service is returning an error. Normally if there is a problem with the request (parameters, etc.) the web service will return a HTTP error code with the error message in the body. The problem is that Flex does not allow you to access the body and just throws a 2032 error. --- In flexcoders@yahoogroups.com, raghu_v_naveen [EMAIL PROTECTED] wrote: hi guys, i am new to Flex i create an air application to plot the charts using the data recieved by web services when i trying to create the web application with the same application code but i am getting error the error goes here [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://son1244/CubeDataWebService/Categories.35958.aspx;]. URL: http://son1244/CubeDataWebService/Categories.35958.aspx;]
[flexcoders] How to Clear/Reset Item Renderers When the Data Provider Changes?
I have a single row DataGrid with a typed object bound as a data provider. When data is entered in all columns the handler for itemEndEvent updates another DataGrid and creates a new empty object that replaces the previous data provider for the DataGrid. Even though the data in the new object that replaces the old data provider is empty, the data that was previously entered in the DataGrid columns randomly fills one or two of the five columns that should be empty (it most often happens with two DateFields that are in custom item renderers). Though data appears in the column cell, if you try to get the data it comes back as null. Somehow the DataGrid or the custom item renderer is caching the previous data and randomly re-displaying it. I've tried setting the DataGrid data provider to null, then attaching the new empty object as the data provider, but the ghost data still comes back. Any ideas how I can clear this old data when I replace the data provider for the DataGrid so it doesn't reappear in columns that should be empty? Thanks.
[flexcoders] Re: How to Clear/Reset Item Renderers When the Data Provider Changes?
After a bit more investigation it appears that it might be a redraw issue since the last cell that is clicked is the one where the ghost data appears. Is there a way to force the DataGrid and all custom renderers to redraw? I've tried calling validateNow() on the DataGrid but it did not have an effect. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I have a single row DataGrid with a typed object bound as a data provider. When data is entered in all columns the handler for itemEndEvent updates another DataGrid and creates a new empty object that replaces the previous data provider for the DataGrid. Even though the data in the new object that replaces the old data provider is empty, the data that was previously entered in the DataGrid columns randomly fills one or two of the five columns that should be empty (it most often happens with two DateFields that are in custom item renderers). Though data appears in the column cell, if you try to get the data it comes back as null. Somehow the DataGrid or the custom item renderer is caching the previous data and randomly re-displaying it. I've tried setting the DataGrid data provider to null, then attaching the new empty object as the data provider, but the ghost data still comes back. Any ideas how I can clear this old data when I replace the data provider for the DataGrid so it doesn't reappear in columns that should be empty? Thanks.
[flexcoders] Re: How to Clear/Reset Item Renderers When the Data Provider Changes?
I just tried removing the DataGrid from the display list and then immediately re-adding it. The ghost data did not go away, so perhaps it's not a redraw issue. I can't understand why the last item edited in the grid sticks around when the data provider is changed. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: After a bit more investigation it appears that it might be a redraw issue since the last cell that is clicked is the one where the ghost data appears. Is there a way to force the DataGrid and all custom renderers to redraw? I've tried calling validateNow() on the DataGrid but it did not have an effect. --- In flexcoders@yahoogroups.com, Paul Whitelock paul@ wrote: I have a single row DataGrid with a typed object bound as a data provider. When data is entered in all columns the handler for itemEndEvent updates another DataGrid and creates a new empty object that replaces the previous data provider for the DataGrid. Even though the data in the new object that replaces the old data provider is empty, the data that was previously entered in the DataGrid columns randomly fills one or two of the five columns that should be empty (it most often happens with two DateFields that are in custom item renderers). Though data appears in the column cell, if you try to get the data it comes back as null. Somehow the DataGrid or the custom item renderer is caching the previous data and randomly re-displaying it. I've tried setting the DataGrid data provider to null, then attaching the new empty object as the data provider, but the ghost data still comes back. Any ideas how I can clear this old data when I replace the data provider for the DataGrid so it doesn't reappear in columns that should be empty? Thanks.
[flexcoders] Re: HTTPService Error - Response Body Text?
I've now tried using HTTPService, WebService, and the low-level URLStream and in every case it does not appear possible to access data in the response body when the web server returns an error. All you get is a 2032 Stream Error (which is vague and misleading). Has anyone ever been able to get around this problem? If so I'll keep trying, but for now it looks like it's an exercise in futility. Why is this not documented in the Flex Language Reference??? Paul --- In flexcoders@yahoogroups.com, Shiv Kumar [EMAIL PROTECTED] wrote: I've been told that it's a Flash player issue, in that since the player relies on the browser's socket there seem to be some limitation there. This one issue really prevents us from using Flex/AIR as an RIA solution, since we have infrastructure in place on the server side and there are already clients (Browser, C# and Delphi built) using this infrastructure and they do just fine today. In order to use Flex/AIR we'll have to change the way exceptions are treated on the server or special case Flex/AIR requests etc. Just not worth it for us. If the limitation is truly brought about by browsers, I'm sure Adobe could work with the browser makers to eliminate this issue. Or just not use the browser's socket and their own instead. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Friday, March 28, 2008 5:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService Error - Response Body Text? Thanks for confirming the problem -- I guess I'll try using SOAP instead. Does anyone know why this well known problem still exists in Flex 3? Is it a Flash player issue or is it a Flex framework problem? Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: This is a well known problem. Google / search for more knowledgable and detailed responses, but as I recall, if you do not control the server, the only solution is to use a proxy. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Paul Whitelock Sent: Friday, March 28, 2008 9:28 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] HTTPService Error - Response Body Text? I'm using an Amazon Web Service (REST) and when an there is an error in a request AWS returns HTTP/1.1 400 Bad Request and the HTTP service throws an IOErrorEvent 2032. The problem is that AWS also returns XML text in the response body (which I see if a sniffer) but I can't see the response text in the IOErrorEvent. I need to get the response text as it describes what was wrong with the request. Any idea how to retrieve the response body text from HTTPService when a HTTP/1.1 400 Bad Request is returned by the server? Thanks!
[flexcoders] Re: HTTPService Error - Response Body Text?
Shiv, Thanks for the suggestion. Unfortunately the remote service is an Amazon Web Service so I don't have any control over what is being sent. I could create a proxy to intercept a HTTP error, reformat it, and then pass it along to the Flex app but I was hoping to avoid a proxy altogether. I wish that Adobe had documented this so I didn't have to spend the time just to find out it's not possible to get the body data. Of course what I wish for the most is that it worked :-) Paul --- In flexcoders@yahoogroups.com, Shiv Kumar [EMAIL PROTECTED] wrote: Paul, Your findings are correct and the situation is very frustrating indeed. The only way I've circumvented this is to tailor the response in the case of exceptions based on user agent. Then on the Flex side to look at this special case and throw an exception with the data in the response. So in the case where the user agent is flash player (don't remember the actual user agent), trap the exception and send back a status code of 200 (instead of 500) and in the response, have a way to indicate that there was an error, so the flex side can act accordingly. Shiv. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Sunday, March 30, 2008 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService Error - Response Body Text? I've now tried using HTTPService, WebService, and the low-level URLStream and in every case it does not appear possible to access data in the response body when the web server returns an error. All you get is a 2032 Stream Error (which is vague and misleading). Has anyone ever been able to get around this problem? If so I'll keep trying, but for now it looks like it's an exercise in futility. Why is this not documented in the Flex Language Reference??? Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Shiv Kumar shiv@ wrote: I've been told that it's a Flash player issue, in that since the player relies on the browser's socket there seem to be some limitation there. This one issue really prevents us from using Flex/AIR as an RIA solution, since we have infrastructure in place on the server side and there are already clients (Browser, C# and Delphi built) using this infrastructure and they do just fine today. In order to use Flex/AIR we'll have to change the way exceptions are treated on the server or special case Flex/AIR requests etc. Just not worth it for us. If the limitation is truly brought about by browsers, I'm sure Adobe could work with the browser makers to eliminate this issue. Or just not use the browser's socket and their own instead. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Paul Whitelock Sent: Friday, March 28, 2008 5:51 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: HTTPService Error - Response Body Text? Thanks for confirming the problem -- I guess I'll try using SOAP instead. Does anyone know why this well known problem still exists in Flex 3? Is it a Flash player issue or is it a Flex framework problem? Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: This is a well known problem. Google / search for more knowledgable and detailed responses, but as I recall, if you do not control the server, the only solution is to use a proxy. Tracy 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 Paul Whitelock Sent: Friday, March 28, 2008 9:28 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] HTTPService Error - Response Body Text? I'm using an Amazon Web Service (REST) and when an there is an error in a request AWS returns HTTP/1.1 400 Bad Request and the HTTP service throws an IOErrorEvent 2032. The problem is that AWS also returns XML text in the response body (which I see if a sniffer) but I can't see the response text in the IOErrorEvent. I need to get the response text as it describes what was wrong with the request. Any idea how to retrieve the response body text from HTTPService when a HTTP/1.1 400 Bad Request is returned by the server? Thanks!
[flexcoders] HTTPService Error - Response Body Text?
I'm using an Amazon Web Service (REST) and when an there is an error in a request AWS returns HTTP/1.1 400 Bad Request and the HTTP service throws an IOErrorEvent 2032. The problem is that AWS also returns XML text in the response body (which I see if a sniffer) but I can't see the response text in the IOErrorEvent. I need to get the response text as it describes what was wrong with the request. Any idea how to retrieve the response body text from HTTPService when a HTTP/1.1 400 Bad Request is returned by the server? Thanks!
[flexcoders] Re: HTTPService Error - Response Body Text?
Thanks for confirming the problem -- I guess I'll try using SOAP instead. Does anyone know why this well known problem still exists in Flex 3? Is it a Flash player issue or is it a Flex framework problem? Paul --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: This is a well known problem. Google / search for more knowledgable and detailed responses, but as I recall, if you do not control the server, the only solution is to use a proxy. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Friday, March 28, 2008 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService Error - Response Body Text? I'm using an Amazon Web Service (REST) and when an there is an error in a request AWS returns HTTP/1.1 400 Bad Request and the HTTP service throws an IOErrorEvent 2032. The problem is that AWS also returns XML text in the response body (which I see if a sniffer) but I can't see the response text in the IOErrorEvent. I need to get the response text as it describes what was wrong with the request. Any idea how to retrieve the response body text from HTTPService when a HTTP/1.1 400 Bad Request is returned by the server? Thanks!
[flexcoders] Re: how to make opaque panel border?
There is a style borderAlpha that you can use to change the opacity of the title bar, control bar and sides of the Panel. You can experiment with some different Panel styles and see the generated style code using a design application that I wrote for FBPanelBgSkin (my free component that adds new styles to a Panel, TitleWindow, or Alert): http://code.mediablur.com/FBPanelBgSkin/FBSkinDesigner.html Here are the details about the FBPanelBgSkin component: http://blog.mediablur.com/2008/03/21/enhanced-panel-skin-for-flex/ --- In flexcoders@yahoogroups.com, coder3 [EMAIL PROTECTED] wrote: the default panel border is semi-transparent, that's why if I add 2 panels at the same position, the title of the panel will look messy. I know I can use borderStyle=solid to make it opaque, but then i will lose the border color, which I really need. what's the solution of this? -- View this message in context: http://www.nabble.com/how-to-make-opaque-panel-border--tp16262463p16262463.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] FREE Component: New Styles for Panel, TitleWindow and Alert
Hi, I've created a component that adds additional styles to a Panel, TitleWindow or Alert and I'm making the component, source code and documentation available for free under the MIT License. The additional styles include an inner shadow for the content area, a gradient background for the content area, a tiled image background for the content area, a tiled image border, and the ability to independently adjust the transparency of a background image and the transparency of the content area. An interactive design application is included so that you can experiment with different styles and copy the resulting CSS class selector to your application. For more information, or to download the component, documentation and source code visit: http://blog.mediablur.com/2008/03/21/enhanced-panel-skin-for-flex/ Enjoy! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Subversion and Subclipse for Flex on Leopard
If you are using a Mac with OS X 10.5 as your development platform for Flex and would like to install Subversion for version control, I just put together a document that describes how to set up Subversion on Leopard and how to install Subclipse in Eclipse. You can find the information here: http://blog.mediablur.com/2008/03/03/setting-up-subversion-for-flex-on-leopard/ Hope this is helpful! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] No Serial Numbers for Flex Builder 3?
I purchased the upgrade to Flex Builder 3 Professional and after the order went through instead of a serial number all that I got was a message that said Contact Customer Service. I just got off of a 15 minute phone call with Customer Service and was told that it will take 24 to 48 hours before serial numbers are available. Supposedly I will receive an email with the serial number, but after many bad experiences with Adobe Customer Service, let's just say I'll believe it when I see it ;-) Anyway, just wanted to get the word out in case you buy Flex Builder 3 and expect to receive a serial number for the product at the time you make the purchase.
[flexcoders] Re: No Serial Numbers for Flex Builder 3?
Just checked my online account here in the U.S. and it still says Contact Customer Service so it appears that U.K. Adobe support is more efficient that then U.S. Adobe support (which actually seems to be based in India). Paul --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: I had the same problem, ordered FlexBuilder 3 Professional upgrade this morning, in the email confirmation entitled Your Serial Numbers it said Contact Customer Service under Adobe Flex Builder 3 Professional (Mac/Win,English), and on my downloads page in my Adobe account it also said Contact Customer Service in place of a serial number. So I contacted our local (UK) customer service, spoke to a nice lady who checked out my order and said she'd get back in contact when she got the serial number. Although she was supposed to send it by email, she called and said that I should now have an email with the serial number. I didn't have it, but she said I should be able to see it in the downloads in my online account. I went online (keeping her on the phone until I could verify), and sure enough my serial number was there. I have my serial number, after a little wait, hopefully the bug in serial number delivery has been fixed by now. Ian On 25 Feb 2008, at 15:09, Battershall, Jeff wrote: I upgraded to Pro but no S/N. Wasted 20 minutes on the phone to discuver this. Also - was asked for my Adobe ID - anyone know where that can be found online? I sure couldn't and finally they verfied my identity via my home phone number. If Customer Service is going to ask for such things, it has to be somewhere where you can find it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers Sent: Monday, February 25, 2008 9:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] No Serial Numbers for Flex Builder 3? FWIW, i just purchased Flex Builder 3 Standard Upgrade and got my serial instantly. Cheers, Claus. Paul Whitelock wrote: I purchased the upgrade to Flex Builder 3 Professional and after the order went through instead of a serial number all that I got was a message that said Contact Customer Service. I just got off of a 15 minute phone call with Customer Service and was told that it will take 24 to 48 hours before serial numbers are available. Supposedly I will receive an email with the serial number, but after many bad experiences with Adobe Customer Service, let's just say I'll believe it when I see it ;-) Anyway, just wanted to get the word out in case you buy Flex Builder 3 and expect to receive a serial number for the product at the time you make the purchase. -- 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
[flexcoders] Free Image Cropping Component
Greetings! I've just completed developing a component for Flex that enables an image to be cropped. A cropping rectangle is used to select the portion of the image to retain. The cropping rectangle may be resized using four corner handles and the rectangle may be repositioned by clicking inside of the rectangle and dragging. The dimensions of the rectangle may be unconstrained, or they may be constrained to an aspect ratio. The component is free and includes full source code (licensed under the MIT License). You can see an example of the component, read the documentation and download the component, documentation and source code here: http://blog.mediablur.com/2008/02/20/flex-image-cropping-component/ Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Disable Auto-Highlighting in FlexBuilder 3?
I just started working with the FlexBuilder 3 beta and found that it highlights (in an ugly cyan color) all instances of a variable name, function name, etc. whenever you click in one. Is there any way to disable this or change the color? Can't seem to find anything in the Eclipse 3.3.1.1 preferences
[flexcoders] Re: Disable Auto-Highlighting in FlexBuilder 3?
Thanks for the clue about what it's called. I couldn't find anything called Mark Occurrences but using Google I found the following Blog post that solved the problem: http://www.ericfeminella.com/blog/2008/01/05/quick-tip-flex-3-ide Thanks again for the pointer! --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Top, --Mark Occurences is that what you are talking bout. - Original Message From: Paul Whitelock [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 13, 2008 11:45:59 AM Subject: [flexcoders] Disable Auto-Highlighting in FlexBuilder 3? I just started working with the FlexBuilder 3 beta and found that it highlights (in an ugly cyan color) all instances of a variable name, function name, etc. whenever you click in one. Is there any way to disable this or change the color? Can't seem to find anything in the Eclipse 3.3.1.1 preferences. ... Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Blurring Application Area Beneath TitleWindow (Like an Alert)
I need to blur the application area beneath a TitleWindow based on what's going on in the TitleWindow. The blur effect I'm looking for is the same that is drawn when an Alert window pops up but the difference is that I want to be able to programatically disable or enable the application blur based on a control in the TitleWindow. Any suggestions how I might accomplish this? Thanks!
[flexcoders] Re: Blurring Application Area Beneath TitleWindow (Like an Alert)
Thanks! I just discovered that I can apply/remove a BlurFilter to Application.application, but I'll check out the PopUpManagerImpl.as to see how it SHOULD be done :-) --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Start copying code from mx.managers.PopUpManagerImpl.as From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Friday, January 11, 2008 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Blurring Application Area Beneath TitleWindow (Like an Alert) I need to blur the application area beneath a TitleWindow based on what's going on in the TitleWindow. The blur effect I'm looking for is the same that is drawn when an Alert window pops up but the difference is that I want to be able to programatically disable or enable the application blur based on a control in the TitleWindow. Any suggestions how I might accomplish this? Thanks!
[flexcoders] Keycode for Cmd-V (Paste) on Mac?
I'm trying to detect when a paste is performed from the keyboard when I get a KeyboardEvent. On Windows I just look for event.ctrlKey and event.keyCode == 86 but this does not work on the Mac. The keyCode that I get for a CMD-V on a Mac is 0x (charCode = 0). How do you detect a paste operation from the keyboard on the Mac (CMD-V)? Thanks! Paul
[flexcoders] ContextMenu: Detecting when Paste is selected
I have a TextArea and I need to know whenever a user selects the Paste option from the ContextMenu. I tried creating and adding a ContextMenu to the TextArea, but I can only add an event listener for MENU_SELECT since I believe you need to have a reference to the menu item in order to add a MENU_ITEM_SELECT event listener. Any idea how I can detect when Paste is selected from a ContextMenu in a TextArea? Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] DISREGARD: FileReference on Mac - When will it be fixed?
I figured it out -- I didn't realize that the data reported by FileReference depends on the OS on which Flash Player is running. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Just tried Ubuntu and no joy there either -- maybe it shares the same code base as the Mac since they are both Unix. --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've read that the bugs with FileReference on the Macintosh have been fixed, but I'm still having problems uploading (as in uploads don't work). The problem exists in Leopard (Mac Pro running Flash Player 9.0.98.0) and Tiger (MacBook Pro running 9.0.60.235). No problems with uploads running on Windows. Anyone from Adobe care to comment?
[flexcoders] FileReference on Mac - When will it be fixed?
I've read that the bugs with FileReference on the Macintosh have been fixed, but I'm still having problems uploading (as in uploads don't work). The problem exists in Leopard (Mac Pro running Flash Player 9.0.98.0) and Tiger (MacBook Pro running 9.0.60.235). No problems with uploads running on Windows. Anyone from Adobe care to comment?
[flexcoders] Re: FileReference on Mac - When will it be fixed?
Just tried Ubuntu and no joy there either -- maybe it shares the same code base as the Mac since they are both Unix. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I've read that the bugs with FileReference on the Macintosh have been fixed, but I'm still having problems uploading (as in uploads don't work). The problem exists in Leopard (Mac Pro running Flash Player 9.0.98.0) and Tiger (MacBook Pro running 9.0.60.235). No problems with uploads running on Windows. Anyone from Adobe care to comment?
[flexcoders] Re: Vista, Eclipse 3.2.2 and a Microsoft Mouse
Well the verdict is in -- the Logitech (VX Nano Wireless) mouse wheel works just fine in Eclipse 3.2 and the Microsoft (Wireless Laser Mouse 8000) mouse wheel does not. I'm using a clean install of Vista, so there are no other drivers monkeying around behind the scenes that can be blamed. Maybe Microsoft just doesn't like Java applications ;-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I thought Eclipse 3.3 had some problems with Flex 2.0.1 -- is this not the case? One odd thing is that if I spin the mouse wheel really fast I can scroll a little bit, but if I did that too often I think I'd lose my finger :-) I've got a Logitech mouse on order, so I'll see how it goes and keep the one that works the best. Paul
[flexcoders] Re: Vista, Eclipse 3.2.2 and a Microsoft Mouse
Can't ... take it ... any ... more ... Aagg! I just ordered a Logitech mouse.
[flexcoders] Vista, Eclipse 3.2.2 and a Microsoft Mouse
My old mouse went to the big cheese factory in the sky and I replaced it with a Microsoft Wireless Laser Mouse 8000. The problem is that the scroll wheel does not scroll source code in Eclipse 3.2 (the scroll wheel works in every application other than Eclipse). I tried uninstalling the Microsoft IntelliPoint 6.2 driver reverting to the generic mouse driver and scrolling began to work in Eclipse, but the next time I booted my machine I was back to a having a disfunctional scroll wheel. I did some Googling and apparently there are other people with the same problem (scroll wheel does not function with a Microsoft mouse in Eclipse), but I haven't seen any solutions. Has anyone here had the problem and found a workaround? It's a real pain not to be able to scroll through my Flex code with the scroll wheel Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Re: Vista, Eclipse 3.2.2 and a Microsoft Mouse
I thought Eclipse 3.3 had some problems with Flex 2.0.1 -- is this not the case? One odd thing is that if I spin the mouse wheel really fast I can scroll a little bit, but if I did that too often I think I'd lose my finger :-) I've got a Logitech mouse on order, so I'll see how it goes and keep the one that works the best. Paul --- In flexcoders@yahoogroups.com, Samuel R. Neff [EMAIL PROTECTED] wrote: You could try Eclipse 3.3.. I don't know of any changes why it would work in one or the other, but I have a MS Wireless Natural Laser Mouse 7000 and don't have problems with Eclipse scrolling (and I previously had a MS Wireless Laser 6000 and similarly no problems). I the past I had problems with a Logitech mouse not scrolling in MS Visual Studio and in that situation the driver provided a basic and advanced scrolling with an option to turn off advanced scrolling in some applications. However, I don't see anything like that in the Intellipoint 6.2 software. I would recommend calling MS support--they may not help since problem is only with Eclipse but in the past I've been pleasantly surprised with the quality of MS hardware support (stress: hardware). Good luck. Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Thursday, November 08, 2007 3:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Vista, Eclipse 3.2.2 and a Microsoft Mouse My old mouse went to the big cheese factory in the sky and I replaced it with a Microsoft Wireless Laser Mouse 8000. The problem is that the scroll wheel does not scroll source code in Eclipse 3.2 (the scroll wheel works in every application other than Eclipse). I tried uninstalling the Microsoft IntelliPoint 6.2 driver reverting to the generic mouse driver and scrolling began to work in Eclipse, but the next time I booted my machine I was back to a having a disfunctional scroll wheel. I did some Googling and apparently there are other people with the same problem (scroll wheel does not function with a Microsoft mouse in Eclipse), but I haven't seen any solutions. Has anyone here had the problem and found a workaround? It's a real pain not to be able to scroll through my Flex code with the scroll wheel Thanks! Paul
[flexcoders] Re: Programatic Icon
Thanks Mike and Paul for the style solution. I changed my class so that the icon is controlled by styles rather than using mx_internal. The only change I made was to override the styleChanged() function rather than retrieving style information in updateDisplayList(). Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: I agree, styles are better for styles. Again, just answering some ones question. What I have learned in flex is, there a re a lot of ways to climb the mountain. Ok, because I'm a big loser and I don't like using mx_internal... sorry that I'm so lame Mike Thats a joke right? I don't like it either unless it gets me somewhere. if(this.parent!= null this.parent is UIComponent) { if((this.parent as UIComponent).getStyle(arrowColor)) { _color = (this.parent as UIComponent).getStyle(arrowColor); } } You could replace that block with; var color:uint; if (parent is IStyleClient) color = IStyleClient(parent).getStyle(arrowColor); if (!isNaN(color)) _color = color; Peace, Mike On 4/27/07, Paul J DeCoursey [EMAIL PROTECTED] wrote: Ok, because I'm a big loser and I don't like using mx_internal... sorry that I'm so lame Mike... but here is a modified version that doesn't use mx_internal. Basically three things change from Mikes example. private function changeIcon(event:MouseEvent):void { myPanel.setStyle(arrowColor, 0xff); } I set a style rather than a property on an object we can't safely access. on the Icon class I add this metadata [Style(name=arrowColor,type=uint,format=Color,inherit=yes)] and updateDisplayList becomes this override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(this.parent!= null this.parent is UIComponent) { if((this.parent as UIComponent).getStyle(arrowColor)) { _color = (this.parent as UIComponent).getStyle(arrowColor); } } graphics.clear(); graphics.beginFill(_color, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } Might be possible to improve the logic in the part where it gets the style. Paul Michael Schmalle wrote: Ok, I got it; MXML APP -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.mx_internal; use namespace mx_internal; private function changeIcon(event:MouseEvent):void { myPanel.titleIconObject.color = 0xFFCC00; } ]] /mx:Script mx:Panel id=myPanel titleIcon={Icon} title=Icon Panel mx:List/ mx:Button label=Change click=changeIcon(event)/ /mx:Panel /mx:Application Icon Class -- package { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var _color:uint = 0xFF; public function get color():uint { return _color; } public function set color(value:uint):void { _color = value; validateDisplayList(); } public function Icon() { super(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.clear(); graphics.beginFill(_color, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } Peace, Mike -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Programatic Icon
Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul
[flexcoders] Re: Programatic Icon
Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul
[flexcoders] Re: Programatic Icon
Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock news@ wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed
[flexcoders] Re: Programatic Icon
I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule
[flexcoders] Re: Programatic Icon
Sorry, that error should be: TypeError: Error #1034: Type Coercion failed: cannot convert mx.containers::[EMAIL PROTECTED] to Namespace. My copying and pasting got a little mixed up there :-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock news@ wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do
[flexcoders] Re: Programatic Icon
Ahhh, the Chemical Brothers -- I haven't heard them in a while. Maybe I should dig them out of my collection :-) Thanks for the colorful description of mx_internal. I also just found a good description here: http://tinyurl.com/3y62jd However, yours is more fun :-) Thanks again for the help. Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Maybe I should be listening to whatever music you're listening to You have Chemical Brothers :) haha No, my problem is I try to do 20 things at once. I just needed to focus on what you were witting and I could have had it solved 3 hours ago :) mx_internal is the namespace Adobe engineers use as a purgatory. Some properties there might go to heaven and some might go to hell. :) That is why I would wrap calls to anything that is in the mx_internal namespace in your own property or method. But, if it is minor stuff, you should be somewhat safe. Peace, Mike
[flexcoders] Re: TitleWindow, Borderskin, and the Move Effect
I doubt if anyone is interested in this, but I have some additional details that I'll record here just in case someone needs it someday. It appears that if the content of a TitleWindow exceeds the boundaries of the content area that the content area is filled with the background color after the borderskin is drawn. Forms sized at 100% seem to be very aggressive in taking up all available space, so it's possible that using a Form sized at 100% could cause the condition where the content area is filled with the background color after the borderskin is drawn in some situations (such as during a Move effect). The solution appears to be to set the backgroundAlpha for the TitleWindow to zero. This way if the background color fill is triggered after the borderskin is drawn it will not wipe out the content area background drawn by the borderskin. Of course if the borderskin does not draw in the content area, then this problem may never occur. I'm not sure why PopUpManager.centerPopUp and/or the Move effect triggers the background color fill because it doesn't in all cases. Regardless, setting backgroundAlpha to zero seems to solve the problem when it occurs. --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Well, I think I've solved one part of the problem and stumbled into another. I looks like PopUpManager.centerPopUp is causing the problem with the background color fill. I create the TitleWindow using PopUpManager.createPopUp and then right after that I call PopUpManager.centerPopUp. A bit later in the code is when I execute the Move animation. If I remove the call to PopUpManager.centerPopUp then the custom content background is drawn. If I leave centerPopUp in, then the content area is filled with the background color. The new problem is that the FormItem labels for the Form in the Window disappear when the Move animation is performed (the form fields are still there). Programming is fun, isn't it? :-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I have a TitleWindow that uses a BorderSkin (based on HaloBorder) to draw a custom background in the window's content area. The skin works fine until I try applying a Move effect to the TitleWindow. What happens is that when the move begins from offscreen top, the TitleWindow's content background is filled with the background color and the background generated by the BorderSkin is not displayed. Once the move has completed (the background color still fills the content area) if I display another TitleWindow that uses the same skin, the custom background is suddenly displayed in the TitleWindow that was moved (probably due to an invalidateDisplayList call). I tried changing the Move effect to a Zoom effect and the problem does not occur (the custom background is correctly displayed in the TitleWindow content area). I've put trace statements in the BorderSkin code and the custom content area background is being generated and drawn, so the only thing I can think of is that something is filling the content area of the TitleWindow with the background color AFTER the BorderSkin code executes. Anyone have any ideas about what might be happening and how to make it stop overwriting the content area background? Thanks!
[flexcoders] Re: White box problem with custom scrollbar skins SOLVED
I ran into the scrollbar white box problem also and this posting helped, but there is a problem with the workaround. While it will work if the scrollbars are static, if they are dynamically added and removed then an error will occur when the scrollbars are removed because they will attempt to remove the child whiteBox which is no longer on the display list. Here's the technique that I came up with that is even easier. In your container add the following event listener to the initialization code: addEventListener(Event.ADDED, whiteBoxCheck); And then add the following listener function: private function whiteBoxCheck(event:Event):void { if (event.target.name == whiteBox) { FlexShape(event.target).alpha = 0; } } If you'd rather create a solid color white box, use this: private function whiteBoxCheck(event:Event):void { if (event.target.name == whiteBox) { var whiteBox:FlexShape = FlexShape(event.target); var g:Graphics = whiteBox.graphics; g.beginFill(0xFF); g.drawRect(0, 0, whiteBox.width, whiteBox.height); g.endFill(); } } Hope this is useful to someone! Paul --- In flexcoders@yahoogroups.com, tombaggett [EMAIL PROTECTED] wrote: I'm in the process of creating a custom look for a Flex app and ran into a problem while creating custom skins for scrollbars. There is a hard-coded shape object in the mx:Container class that creates a white box in the bottom-right corner, between the horizontal and vertical scroll bars. The whiteBox object is declared as a private data member and instantiated and destroyed in a private function, seemingly putting it out of reach of my derived classes. Fortunately, I found an easy workaround that I post about in detail on my blog here: http://tommyb.com/2006/11/30/flex-using-custom-scrollbar-skins-youll-run\ \ -into-this-problem/ http://tommyb.com/2006/11/30/flex-using-custom-scrollbar-skins-youll-ru\ \ n-into-this-problem/ The short version of it is this: Create overridden versions of both the createChildren and validateDisplayList functions, locate the shape by name in the display list and delete it. FYI for anyone else that runs into this problem!
[flexcoders] TitleWindow, Borderskin, and the Move Effect
I have a TitleWindow that uses a BorderSkin (based on HaloBorder) to draw a custom background in the window's content area. The skin works fine until I try applying a Move effect to the TitleWindow. What happens is that when the move begins from offscreen top, the TitleWindow's content background is filled with the background color and the background generated by the BorderSkin is not displayed. Once the move has completed (the background color still fills the content area) if I display another TitleWindow that uses the same skin, the custom background is suddenly displayed in the TitleWindow that was moved (probably due to an invalidateDisplayList call). I tried changing the Move effect to a Zoom effect and the problem does not occur (the custom background is correctly displayed in the TitleWindow content area). I've put trace statements in the BorderSkin code and the custom content area background is being generated and drawn, so the only thing I can think of is that something is filling the content area of the TitleWindow with the background color AFTER the BorderSkin code executes. Anyone have any ideas about what might be happening and how to make it stop overwriting the content area background? Thanks!
[flexcoders] Re: TitleWindow, Borderskin, and the Move Effect
Well, I think I've solved one part of the problem and stumbled into another. I looks like PopUpManager.centerPopUp is causing the problem with the background color fill. I create the TitleWindow using PopUpManager.createPopUp and then right after that I call PopUpManager.centerPopUp. A bit later in the code is when I execute the Move animation. If I remove the call to PopUpManager.centerPopUp then the custom content background is drawn. If I leave centerPopUp in, then the content area is filled with the background color. The new problem is that the FormItem labels for the Form in the Window disappear when the Move animation is performed (the form fields are still there). Programming is fun, isn't it? :-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I have a TitleWindow that uses a BorderSkin (based on HaloBorder) to draw a custom background in the window's content area. The skin works fine until I try applying a Move effect to the TitleWindow. What happens is that when the move begins from offscreen top, the TitleWindow's content background is filled with the background color and the background generated by the BorderSkin is not displayed. Once the move has completed (the background color still fills the content area) if I display another TitleWindow that uses the same skin, the custom background is suddenly displayed in the TitleWindow that was moved (probably due to an invalidateDisplayList call). I tried changing the Move effect to a Zoom effect and the problem does not occur (the custom background is correctly displayed in the TitleWindow content area). I've put trace statements in the BorderSkin code and the custom content area background is being generated and drawn, so the only thing I can think of is that something is filling the content area of the TitleWindow with the background color AFTER the BorderSkin code executes. Anyone have any ideas about what might be happening and how to make it stop overwriting the content area background? Thanks!
[flexcoders] 1 Pixel Gap Between Scrollbar and List Component
I have a scrollbar skin that was created in Flash, but I've discovered a problem when the vertical scrollbar is first displayed in a List component. When an item is added to a list causing the vertical scrollbar to be drawn for the first time, there is a 1 pixel gap between the right edge of the vertical scrollbar and the right side of the List. If an additional item is added to the List then the scrollbar is correctly redrawn flush against the right side of the List. The gap also disappears if the browser window is resized. This also happens in the DataGrid, but sometimes the DataGrid will automatically refresh itself and draw the scrollbar correctly. Anyone have any idea why the first time a vertical scrollbar is displayed in a List there is a one pixel gap between the scrollbar and the component's edge? I don't think it's the skin because the same scrollbar is drawn correctly in other components. By the way, I've got the borderStyle set to none but the gap appears regardless of whether or not the borderStyle is set to none or solid. Thanks for any suggestions! Paul
[flexcoders] SOLVED: 1 Pixel Gap Between Scrollbar and List Component
Wow! This is like magic! I post a question and suddenly I figure the answer out myself :-) The answer, it turns out, did have to do with the skin, but there's a twist. I was using the Flash skin template supplied by Adobe and the scrollbar width in the template is 15 pixels. Just on a hunch I tried redesigning the scrollbar with a width of 16 pixels and the problem with the 1 pixel gap was solved. I would suggest that if you are creating a scrollbar using Adobe's skin template that you consider using a width of 16 pixels instead of the 15 pixels that Adobe recommends. Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I have a scrollbar skin that was created in Flash, but I've discovered a problem when the vertical scrollbar is first displayed in a List component. When an item is added to a list causing the vertical scrollbar to be drawn for the first time, there is a 1 pixel gap between the right edge of the vertical scrollbar and the right side of the List. If an additional item is added to the List then the scrollbar is correctly redrawn flush against the right side of the List. The gap also disappears if the browser window is resized. This also happens in the DataGrid, but sometimes the DataGrid will automatically refresh itself and draw the scrollbar correctly. Anyone have any idea why the first time a vertical scrollbar is displayed in a List there is a one pixel gap between the scrollbar and the component's edge? I don't think it's the skin because the same scrollbar is drawn correctly in other components. By the way, I've got the borderStyle set to none but the gap appears regardless of whether or not the borderStyle is set to none or solid. Thanks for any suggestions! Paul
[flexcoders] Re: Tiling a Background Image
Thanks Alex, I'll take a look at that. Paul --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'd make a custom border class. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Wednesday, April 04, 2007 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tiling a Background Image I've just started work on the UI/Graphic Design for a Flex application and I need to tile a seamless image as the application's background. I've found that while it is possible to specify an image for the application background, I see no way to tile the image. I assume that I'll need to write my own code to tile the image, but could someone perhaps give me a tip as to where I should begin looking? Do I need to do something like subclass the Application class or is there some simple way to insert a custom component so that it becomes the application's background? Thanks! Paul
[flexcoders] Image Item Renderer in ActionScript for DataGrid
I need to draw a number of icons in one DataGrid column based on a quantity value and a type value in the data. The icons are embedded assets. For the past few hours I've been trying to figure out how to write an Item Renderer in ActionScript to accomplish this task, but I'm not getting anywhere. Does anyone know where I might find example ActionScript code for a DataGrid Item Renderer that draws an image in a DataGrid column? I'm specifically looking for an ActionScript solution, not MXML. By the way, I took a look at Alex's blog entry regarding DataGrid Item Renderers (http://blogs.adobe.com/aharui/). It's excellent information, but none of the examples deal with image assets. Thanks, Paul
[flexcoders] SOLVED: Image Item Renderer in ActionScript for DataGrid
Wouldn't you know it -- I figured it out as soon as I posted. I created a component that extends UIComponent and that implements IListItemRenderer and everything seems to be working properly. I'm still a little fuzzy on where things should be done in an ItemRenderer (I'm doing almost everything -- including making addChild calls -- in the data function). It seems to work regardless of whether or not it's technically right :-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I need to draw a number of icons in one DataGrid column based on a quantity value and a type value in the data. The icons are embedded assets. For the past few hours I've been trying to figure out how to write an Item Renderer in ActionScript to accomplish this task, but I'm not getting anywhere. Does anyone know where I might find example ActionScript code for a DataGrid Item Renderer that draws an image in a DataGrid column? I'm specifically looking for an ActionScript solution, not MXML. By the way, I took a look at Alex's blog entry regarding DataGrid Item Renderers (http://blogs.adobe.com/aharui/). It's excellent information, but none of the examples deal with image assets. Thanks, Paul
[flexcoders] Tiling a Background Image
I've just started work on the UI/Graphic Design for a Flex application and I need to tile a seamless image as the application's background. I've found that while it is possible to specify an image for the application background, I see no way to tile the image. I assume that I'll need to write my own code to tile the image, but could someone perhaps give me a tip as to where I should begin looking? Do I need to do something like subclass the Application class or is there some simple way to insert a custom component so that it becomes the application's background? Thanks! Paul
[flexcoders] Re: RegExp Help
Actually, Flex does a pretty good job of supporting Regular Expressions. They can be tricky, however, and all it takes is one character in the wrong place to give you a totally unexpected result. A good book to get your feet wet with is Regular Expressions in 10 Minutes by Ben Forte. Some other resources that you might want to check out are: A Flex Regular Expression Tester http://www.stratulat.com/technical/regexpflex/ RegEx Coach (Windows) http://weitz.de/regex-coach/ Good luck! Paul --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: They sure are confusing. I spent several hours reading various sites last night and everything I tried didn't work; they gave me nothing. Seems not everything works with Flex.
[flexcoders] New Adobe Products and Flex
In case you weren't aware, there seem to be a lot of goodies in the new Adobe products for Flex developers. In particular, check out these three CS3 packages (click the Feature Tour button for some of the highlights): Fireworks CS3: http://www.adobe.com/products/fireworks/?xNav=WPFW Flash Professional CS3: http://www.adobe.com/products/flash/?xNav=WPFL Illustrator CS3: http://www.adobe.com/products/illustrator/?xNav=PPIL Can't wait for April 20th! Paul
Re: [flexcoders] New Adobe Products and Flex
Yes, April 20th for most of the new products. The video products and the Master Collection will not be available until July, but if you're interested in the Master Collection (which includes everything) you can buy one of the other Creative Suite packages now (like the Web Premium package) and Adobe will let you upgrade to the Master Collection when it becomes available for just the difference in price between what you paid for the package you bought and the price you would have paid for the Master Collection (which is nice). Paul --- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: It's going to be VERY nice having a smooth workflow. I think this will further boost Flex as a viable tool for web applications. Is April 20th the published ship date? Jurgen
[flexcoders] Re: Setting the Font Color for a Selected ComboBox Item
Yes, that's what I would have thought too :-) On the ComboBox close event this is all I'm doing: if (cb.selectedItem.status == a) cb.setStyle(color, #0B333C); else cb.setStyle(color, #AA); If I select an item in the list that has the color #0B333C (the default dark gray font color for list items), then everything is fine (the #AA items in the list stay red and the #0B333C items in the list stay gray). If I select a list item that has the red color, then when the setStyle(color, #AA) executes all of the list items are rendered in red (#AA). A odd thing is that if I next select one of the (now red) list items that should be gray, then when the cb.setStyle(color, #0B333C) executes the list items are rendered properly (gray items are gray and red items are red). It seems it's only when setStyle changes the color to something other than the default that the itemRenderer no longer has an effect. When the color is changed back to the default, then the itemRenderer works again. Very strange, and very irritating :-) Paul --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: In theory, if your renderer picks a new font color based on a property, they should be ignoring the default color always. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Tuesday, March 27, 2007 7:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting the Font Color for a Selected ComboBox Item I'm using a ComboBox with an itemRenderer to control the font color of items in the dropdown list (items in the dropdown list have their font color determined by a property value for each item). I'd like to have the font color for the selected item in the ComboBox match the font color that the item has in the dropdown list. By default, this doesn't happen. If I do a setStyle on the ComboBox to manually set the selected item's font color to match the font color the item has in the list, this works to set the selected item's font color, but it also sets the font color for every item in the dropdown list (it seems to override the itemRenderer). Is there a way that I can set the font color for a selected item in a ComboBox without impacting the font color (set by an itemRenderer) of dropdown list items? Thanks for any tips! Paul
[flexcoders] Re: Setting the Font Color for a Selected ComboBox Item
The itemRenderer is very simple. The source is below -- is there another that way I should code it? Thanks for any suggestions! Paul ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; backgroundAlpha=1 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Style .normal { color: #0B333C; } .inactive { color: #AA; font-weight: bold; } /mx:Style mx:Label text={data.name} styleName={data.status == 'a' ? 'normal' : 'inactive'} selectable=false/ /mx:Canvas --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The key will be in your renderer code for the ComboBox. How did you set up coloring? On occasion, the entire List is destroyed and re-created which can reset your renderers. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Tuesday, March 27, 2007 8:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting the Font Color for a Selected ComboBox Item Yes, that's what I would have thought too :-) On the ComboBox close event this is all I'm doing: if (cb.selectedItem.status == a) cb.setStyle(color, #0B333C); else cb.setStyle(color, #AA); If I select an item in the list that has the color #0B333C (the default dark gray font color for list items), then everything is fine (the #AA items in the list stay red and the #0B333C items in the list stay gray). If I select a list item that has the red color, then when the setStyle(color, #AA) executes all of the list items are rendered in red (#AA). A odd thing is that if I next select one of the (now red) list items that should be gray, then when the cb.setStyle(color, #0B333C) executes the list items are rendered properly (gray items are gray and red items are red). It seems it's only when setStyle changes the color to something other than the default that the itemRenderer no longer has an effect. When the color is changed back to the default, then the itemRenderer works again. Very strange, and very irritating :-) Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: In theory, if your renderer picks a new font color based on a property, they should be ignoring the default color always. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Paul Whitelock Sent: Tuesday, March 27, 2007 7:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Setting the Font Color for a Selected ComboBox Item I'm using a ComboBox with an itemRenderer to control the font color of items in the dropdown list (items in the dropdown list have their font color determined by a property value for each item). I'd like to have the font color for the selected item in the ComboBox match the font color that the item has in the dropdown list. By default, this doesn't happen. If I do a setStyle on the ComboBox to manually set the selected item's font color to match the font color the item has in the list, this works to set the selected item's font color, but it also sets the font color for every item in the dropdown list (it seems to override the itemRenderer). Is there a way that I can set the font color for a selected item in a ComboBox without impacting the font color (set by an itemRenderer) of dropdown list items? Thanks for any tips! Paul
[flexcoders] Re: New Adobe Products and Flex
I've seen it pop up a few places on the web, but most notably it's the date that Amazon lists as the ship date. It's probably just a best guess that Adobe gave to retailers, but I'm hoping that it's an accurate guess :-) Paul --- In flexcoders@yahoogroups.com, Nancy Gill [EMAIL PROTECTED] wrote: Where did you hear April 20th? I have asked and looked extensively and haven't found anyone who knows a specific date. The press release says during April and May for the web and design suite products .. but nowhere have I found a specific published date. where did you see this date? Thanks, Nancy Gill Adobe Community Expert Author: Dreamweaver 8 e-book for the DMX Zone Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003) Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner''s Guide, Mastering Macromedia Contribute Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
[flexcoders] SOLVED: Setting the Font Color for a Selected ComboBox Item
I gave up on using MXML to write the list item renderer and instead wrote it in ActionScript using a TextField. The ComboBox now doesn't have the problem with setting list items to the color assigned to the control. Sometimes MXML is just more trouble than it's worth ;-) Paul --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: In theory, if your renderer picks a new font color based on a property, they should be ignoring the default color always. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Tuesday, March 27, 2007 7:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting the Font Color for a Selected ComboBox Item I'm using a ComboBox with an itemRenderer to control the font color of items in the dropdown list (items in the dropdown list have their font color determined by a property value for each item). I'd like to have the font color for the selected item in the ComboBox match the font color that the item has in the dropdown list. By default, this doesn't happen. If I do a setStyle on the ComboBox to manually set the selected item's font color to match the font color the item has in the list, this works to set the selected item's font color, but it also sets the font color for every item in the dropdown list (it seems to override the itemRenderer). Is there a way that I can set the font color for a selected item in a ComboBox without impacting the font color (set by an itemRenderer) of dropdown list items? Thanks for any tips! Paul
[flexcoders] Disabling Selectable Text for a ComboBox
I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Re: Disabling Selectable Text for a ComboBox
Thanks Ben, that helped a bit. I have two ComboBoxes on the Form and each had an enabled=false in the MXML. However, when I removed the enabled=false from the MXML I was still getting the i-beam and selectable text. In my code I'm also programatically changing the enabled state of the ComboBoxes, so I tried removing the code where the ComboBoxes are disabled in response to other settings in the form. This time it worked: the i-beam cursor was gone and the text was no longer selectable. Of course the ComboBoxes are always enabled now, which is bad. I did discover something else odd. With the enabled=false gone in the MXML I can programatically enable and disable the SECOND ComboBox without it becoming selectable (the first ComboBox still has the problem when it is programatically disabled and enabled). Anyone know of a way to disabling/enabling a ComboBox without running into this problem of the text becoming selectable? Paul --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I actually discovered this same issue in my app a few days ago. I also have several other ComboBoxes (including one right next to the problematic one) that don't display the i-beam. After a bit of investigation, it seems that having enabled=false in the ComboBox's MXML tag (then enabling it at some point of course) causes the selectable text. Any idea on a workaround? Thanks, Ben --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Re: Disabling Selectable Text for a ComboBox
I just discovered why the second ComboBox was not affected -- it's because I was disabling the ** Form item ** that wraps the ComboBox and not the ComboBox itself. I changed my code so that I enable and disable both ComboBoxes by setting the enabled property for the Form item rather than for the ComboBox and now the problem with the selectable text is gone (you can even set the enabled property for the Form item to false in the MXML without causing a problem). One possible drawback that I found in doing this is that the Form item's label text is dimmed when the Form item is disabled (disabling only the ComboBox left the Form item's label untouched). Still, it's better than the alternative of selectable text in the ComboBox. Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Thanks Ben, that helped a bit. I have two ComboBoxes on the Form and each had an enabled=false in the MXML. However, when I removed the enabled=false from the MXML I was still getting the i-beam and selectable text. In my code I'm also programatically changing the enabled state of the ComboBoxes, so I tried removing the code where the ComboBoxes are disabled in response to other settings in the form. This time it worked: the i-beam cursor was gone and the text was no longer selectable. Of course the ComboBoxes are always enabled now, which is bad. I did discover something else odd. With the enabled=false gone in the MXML I can programatically enable and disable the SECOND ComboBox without it becoming selectable (the first ComboBox still has the problem when it is programatically disabled and enabled). Anyone know of a way to disabling/enabling a ComboBox without running into this problem of the text becoming selectable? Paul --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: I actually discovered this same issue in my app a few days ago. I also have several other ComboBoxes (including one right next to the problematic one) that don't display the i-beam. After a bit of investigation, it seems that having enabled=false in the ComboBox's MXML tag (then enabling it at some point of course) causes the selectable text. Any idea on a workaround? Thanks, Ben --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Trace Output Stopped Working
Yesterday for some mysterious reason the trace() statement stopped sending data to the console. Event a simple statement like trace(Here) did nothing (and yes, I was in debug mode). I tried restarting Eclipse, rebooting the computer, etc. and nothing helped. Finally I uninstalled the Flex plug-in, trashed Eclipse and all Eclipse workspace preferences and reinstalled everything cleanly from scratch. That fixed the problem ... or so I thought. This morning I started working and tossed a trace statement into some code I'm working on and again there was no output in the console. The only thing that shows up is: [SWF] /cmq/FTApp-debug.swf - 715,093 bytes after decompression I don't want to have to continually reinstall Eclipse and Flex everyday as it's a bit time consuming. Anyone have an idea of what's going on and how to get trace statements working again? Thanks! Paul
[flexcoders] Re: Trace Output Stopped Working
No, I'm on a PC. Flex Builder connects to the SWF and I can set breakpoints so I don't think there's a problem with the Flash Player but maybe I'll try re-installing the debug version just to see if it makes a difference. Thanks for the reply! Paul --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Are you using a Mac? I noticed that when I installed the latest 10.4.9 updates on my Macbook Pro, Apple pushed the install of Flash Player 9.0.28.0 (non-debug). It took me a few minutes to figure out that my debug version of the player had been trashed, and that I had to re-install. Hope this helps! Brian -- Brian Dunphy
[flexcoders] Re: Trace Output Stopped Working
Just tried re-installing the Flash Player Debug version and no luck :-( Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: No, I'm on a PC. Flex Builder connects to the SWF and I can set breakpoints so I don't think there's a problem with the Flash Player but maybe I'll try re-installing the debug version just to see if it makes a difference.
[flexcoders] Re: Trace Output Stopped Working
Through the console in Flex Builder. I've been using Flex Builder since about August of last year and this is the first time that I've had a problem with the trace statement not working. It's especially odd that it's happened two days in a row now. Paul --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: How are you trying to view the trace outputs?
[flexcoders] Re: Trace Output Stopped Working
I think I've figured out how to fix the problem. I first quit Eclipse and deleted the .metadata folder in my workspace after first making a copy of it. Next I restarted Eclipse and imported my project (Eclipse was reset to it's default workspace without the metadata). I tried debugging the project and trace statements started working again. I next quit Eclipse and tried copying all of the subfolders in the old .metadata directory that I saved except for the com.adobe.flexbuilder subfolders back into the live workspace. When I restarted I was back to my old configuration and trace was still working. There must be something in those com.adobe.flexbuilder subfolders that caused the problem, but I don't know what it is or why it caused the trace statement to stop functioning. Anyway, it was a lot easier to fix the problem this way than the other way of re-installing the whole development environment ;-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Through the console in Flex Builder. I've been using Flex Builder since about August of last year and this is the first time that I've had a problem with the trace statement not working. It's especially odd that it's happened two days in a row now. Paul
[flexcoders] Re: O'Reilly's Programming Flex 2 book
Amazon sent me a notification recently that the publication date has changed to May 15th. Paul --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: Does anyone have this book yet? O'Reilly Press Programming Flex 2: The Comprehensive Guide to Creating Rich Media Applications with Adobe Flex by Kazoun, Lott
[flexcoders] Re: DB access in Apollo
I'm working on Flex app that would be great for Apollo but it too requires DB access and I don't see how the app would ever work unless Apollo includes an integrated DB (I vote for MySQL too). I think that Apollo would generate a lot more interest if an integrated DB was included sooner rather than later. Paul --- Paul Whitelock Denver, Colorado --- In flexcoders@yahoogroups.com, steve_benfield [EMAIL PROTECTED] wrote: So if we install our own DB with Apollo, how does Apollo communicate with that DB? From what I've heard there is no native DLL access in Apollo, so how is this going to work? Will I also have to install an app server as well to recieve web service calls? Our app requires a complex data set and occasionally connected clients--Apollo seems a great way to do this but the DB access on the client is an unknown to us. Anyone have insight into this? Thanks. --Steve
[flexcoders] Re: Determining Drop Index in a List
Axel, Thank you very much for the tip on calculateDropIndex and the link to the example. I'll take a look a look and give it a try. Paul --- In flexcoders@yahoogroups.com, jensen.axel [EMAIL PROTECTED] wrote: Paul, I think I found a good source to look at for the answer, use a function called calculateDropIndex(event) I don't know enough about it yet, but here is a page to look at, just right-click to view the source, and copy and paste it into your own new flex project... Hope you can dissect it and understand it and put it to use like i did... anyway... later if anything just do some research on calculateDropIndex Here is the link where the project and source is: http://thanksmister.com/dnddatagrid/index.html
[flexcoders] Determining Drop Index in a List
When doing a drag-and-drop between two Lists, the target List shows a line to indicate where in the target List the source item will be placed when it is dropped. Is there any way to tell what this index is in the target List while handling the dragDrop event? Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Re: Exporting Charts as Image
Hi Ely, I'm also interested in creating bitmap in Flex and transferring it as a JPG or PNG to the server. I took a look at the as3corelib but didn't see anything in the documentation about working with bitmap/image files. I could be I'm just missing it, so could you perhaps point out where in the package/class the image tools are located? Also, is there an example or documentation somewhere regarding how to send a JPG or PNG created in a Flex application from a bitmap to ColdFusion and have ColdFusion create the physical file on the server? Thanks! Paul --- Paul Whitelock Denver, Colorado --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Prateek. There are various libraries around that allow you to capture a chart, or any other flex component, as a PNG or JPG. you could then upload that to the server, and do what you want with it. See: http://code.google.com/p/as3corelib/ Ely.
[flexcoders] Re: Exporting Charts as Image
Thanks Brendan! I was indeed looking in the Language Reference documents which is why I couldn't find anything. In the last section of the Andrew Trice tutorial he's doing pretty much what I'd like to do, but he doesn't supply the source. The piece that I think I need is how to handle the data sent from Flex on the ColdFusion side (i.e., how to create the JPG from a ByteArray sent from Flex). Has anyone seen any tutorials or documentation on this? Paul --- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED] wrote: Hey Paul, It's in there... just not shown in the Language Reference documents if that's where you're looking... check out corelib\src\trunk\src\actionscript3\com\adobe\images Andrew Trice also has a tutorial on capturing UI to bitmap on his blog here: http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and Brendan
[flexcoders] Re: Exporting Charts as Image
Hi Andy, I'm using remoting/AMF in other parts of my application, so I don't think I'll have a problem sending the data to ColdFusion after it's prepared. I just wasn't sure what to do with the data once I got it to ColdFusion to turn it into a file (I'm fairly new to ColdFusion). I'll take a look at the ColdFusion toBinary function and I assume that after the data comes out of toBinary I can write the file using cffile. Anyway, it gives me a foothold to get started :-) Thanks! Paul --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: Glad my blog entry helped. :-) You can use the as3 PNGEncoder or JPGEncoder libraries at http://code.google.com/p/as3corelib/ to do the image format conversion within the flex application. You can post it to a server using either remoting, web service, or http service. Remoting/AMF3 is fastest and easiest, but the other methods work well too. Remoting does not require any base64 conversion for the binary data; you can send it across the wire as is. -Andy This is from a previous post I wrote here on flexcoders... If you are using AMF3 (RemoteObject), you can serialize binary data without any conversion. If you are trying a standard HTTP post, I would use a HTTPService with the method= POST. Then you have to Base64 encode the binary data and attach it to the parameters of the http service. On the server side, you will need to decode the base64 encoded data back into binary. Example: mx:HTTPService id=httpService showBusyCursor=true useProxy=false method=POST resultFormat=text url=/BinaryData/cf/HTTPImageSave.cfm result=onResult('Data Saved via mx:HTTPService') fault=onFault(event) / private function base64Encode( data : ByteArray ) : String { var encoder : Base64Encoder = new Base64Encoder(); encoder.encodeBytes( data ); return encoder.flush(); } private function sendData() : void { var data : ByteArray = encoder.encode( myPngByteArray ); var params : Object = { data : base64Encode( data ) }; httpService.send( params ); } In ColdFusion, you can decode the base64 data simply by using the toBinary function. Other languages have similar functions as well. Just a FYI... using the JPG instead of PNG requires significantly less bandwidth time to post the data to the server. Base64 encoding the data also increases the size of the data being transferred across the wire. It is much more efficient to use a remoteObject method with JPG-compressed data. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY
[flexcoders] Re: Exporting Charts as Image
A. Thank you! That's what I needed to know! I'll be looking forward to seeing your article once it is released :-) Paul --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: In it's most simple form: this is all you need to do in CF. You don't need to convert it. It comes over AMF as binary data. cffunction name=save access=remote output=false returntype=void cfargument name=data type=binary required=true / cffile action=write file=c:\temp\data.jpg output=#arguments.data# / /cffunction You only need to use tobinary if you are sending it as base64 encoded data across a web service or http service. -Andy
[flexcoders] Controlling a Component in an Item Renderer
I have an item renderer specified for a List component and there is a CheckBox component within the item renderer so that each List element displays a CheckBox. What I'd like to do is if a certain condition exists in the application I'd like to disable the item renderer's CheckBox for specific List elements (i.e. some List elements would show an enabled CheckBox and some List elements would show a disabled CheckBox depending upon what's going on in the application). Is there any way to disable the item renderer's CheckBox for a specific List element from the application? Thanks for any pointers! Paul
[flexcoders] Re: Controlling a Component in an Item Renderer
Thanks Tracy! I did a quick test and that appears to do exactly what I need! Paul --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You must work with the dataProvider. The renderer must set its enabled state based on a field/property/attribute in the dataProvider in the set data() function. When you update the dataProvider using the API, and set the enabled field/property/attribute on the desired items, the itemRenderer will automatically disable the assocated checkboxes. You cannot directly control the checkbox in the renderer, but must work with the dataProvider. Did I mention that you must work with the dataProvider? Tracy
[flexcoders] Re: Full Application Reset?
I've found that if you have open windows created by an application you can't just remove the application from the display list and set it to null -- the windows will remain open. Also, any listeners that have been registered will continue to fire even though the application component is no longer in the display list. If you are going to use the shell model then it seems to me that you'll have to make sure to close all open windows created by the application and unregister listeners prior to dereferencing the application when logging off. Paul --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Could be just me, but if that does work it seems like kind of a hack... I think most applications would use something similar to the shell concept. It let's you have a lot of flexibility on what operations to perform on login/logout, and it will work for applications outside of the browser I'm guessing. Brian On 1/30/07, Tracy Spratt [EMAIL PROTECTED] wrote: What abour navigateToUrl, pointing to the app itself, using _self as the target? Just thinking, haven't tried it. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brent_trx Sent: Tuesday, January 30, 2007 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Full Application Reset? That sounds like exactly what I need to do. Thanks for the help! Don't feel bad, this left me scratching my head when I encountered it as well. I was used to just displaying a titlewindow for a login screen, making it modal, and having the application blurred in the background. My way of implementing an application reset was to have a shell app that handled the instantiation of a login or my main application. When the shell app first loads, it displays a Login application... after login, the login app gets removed and the main application gets created. Upon logout, vice versa. Hope this helps! Brian On 1/30/07, Oleg Filipchuk justversus@ wrote: Why don't you just refresh the page where your application is embedded? On 30/01/07, Brent Dearth brent.dearth@ wrote: This has got to be an obvious implementation, but it's left me scratching my head. Here's my scenario: When user performs a logout in an authenticated flex application, I would like to fully re-initialize the application back to it's initial load state (as if the SWF was being accessed anew). All children components are reset, or ideally destroyed and re-created. There are portions of this application that may contain sensitive data, and thus, I'm not willing to leave it to chance by manually calling custom initialization functions on each component / sub-component / etc. I've thought about recursively iterating through the Application's children, looking for these custom methods and executing them when encountered, but there has got to be a cleaner, simpler way that I am missing. I didn't see much on the mx.core.Application documentation that was relevant, beyond accessing children properties manually. Ideas? -- Best regards, Oleg Filipchuk -- Brian Dunphy -- Brian Dunphy
[flexcoders] Re: Flex Builder no longer compiles
I occasionally have a similar problem in that I'll make changes to code but when I run or debug the application in Firefox from Flex Builder it's the same version as the one before the changes were made. It turns out that for reasons unknown Firefox caches the SWF and doesn't recognize that it's been changed. If I clear the browser cache (using the Firefox Web Developer Toolbar plug-in) and run again everything is fine. It took me a while to figure out what was going on, but it's now quite easy to solve this problem when it occurs. Browser caching might not be what is causing your problem, but try clearing the cache next time you see this problem and see if it helps. Paul --- Paul Whitelock Denver, Colorado --- In flexcoders@yahoogroups.com, dustyjewett [EMAIL PROTECTED] wrote: I made a variable of a class private instead of public, then attempted to sort an ArrayCollection based on this variable. Now, no matter what changes I make to the code, I get the same output in the console, and the same error! First I changed the variable to public, got the same error, I started adding trace statements to figure out what was wrong, but they stopped tracing. I then commented out the sort/refresh lines and anything referring to the cursor... The debugger still points at a commented line. Finally, I deleted the lines from the file completely, the debugger points at the same line number with the same error, which is now a completely different line. I've delete the bin directory, I've Clean...ed up. I've even attempted to run the code on my laptop (which unfortunately already had the buggy code on it, thanks to Version Control)... I've uninstalled FB, installed Eclipse with the FB Plugin, uninstalled the SDK... I've done everything I can think of, but I can't get the files to compile. Has anyone had this problem? What can I do other than try to build the app from the ground up?
[flexcoders] Problem with Visibility at Beginning of Effect Animation
I've been trying to figure out this problem for a few hours now and I'm not getting anywhere so I figured it's time to ask :-) I have a simple panel onscreen but with visible=false. When a button is clicked I want to move the panel from an off screen position to its current position (or vice versa). The problem is that sometimes when the panel is being moved on screen it flashes briefly in the ending (current) position before the animation starts. It should be hidden until the animation starts at the off screen position. It's like the effect displays the panel, moves it off screen, and then animates it to the ending on screen position. Is there any way to prevent this occasional visibility flash from occurring when the move_on animation begins? Here are the relevant bits of code: mx:Move id=move_on xFrom=-200 / mx:Move id=move_off xTo=-200 / mx:Panel id=panel1 visible=false showEffect={move_on} hideEffect={move_off} / mx:Button label=+ width=20 click=panel1.visible=true; / mx:Button label=- width=20 click=panel1.visible=false; / Thanks for any help! Paul
[flexcoders] Flex 2 for Mac Available Now
Just noticed that you can purchase Flex 2 for Mac at the Adobe web store now. It's available as a download or boxed. Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Installing Flex 2.0.1 Update
What's the deal with installing the 2.0.1 update? Do you need to uninstall Flex Builder 2.0, install the demo download, and then re-register with your current serial number? I've got other plug-ins installed in the Flex Builder version of Eclipse and I'd hate to have to reinstall everything, but I don't seen any documentation from Adobe with upgrade instructions.
[flexcoders] Re: Installing Flex 2.0.1 Update
Nevermind, I found the answer here: http://weblogs.macromedia.com/flexteam/archives/2007/01/flex_201_is_her.cfm --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: What's the deal with installing the 2.0.1 update? Do you need to uninstall Flex Builder 2.0, install the demo download, and then re-register with your current serial number? I've got other plug-ins installed in the Flex Builder version of Eclipse and I'd hate to have to reinstall everything, but I don't seen any documentation from Adobe with upgrade instructions.
[flexcoders] Flex 2 Updater Available for Download
It can be found here: http://www.adobe.com/support/flex/downloads_updaters.html It's not clear to me whether the updater updates Flex Charting and Flex Data Services. The page says: The 2.0.1 updates for these Flex products can be implemented by installing the full, updated versions of the products. So I don't know whether you have to install the product from scratch if you are using Flex Charting and Flex Data Services.
[flexcoders] Re: Flex 2 Updater Available for Download
I used the updater to upgrade to 2.0.1 on Windows XP SP2. The update completed normally and everything seems to work (haven't done much yet, though). I'm just not sure if I got the updates for Flex Charting and Flex Data Services with the update or if those products require a different updater. Paul --- In flexcoders@yahoogroups.com, phillips1021 [EMAIL PROTECTED] wrote: Paul: Did you upgrade Flex to 2.01? If so what is your OS (Windows)? I could not get the update to install correctly and had to reinstall Flex Builder from the original CD. Bruce --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: It can be found here: http://www.adobe.com/support/flex/downloads_updaters.html It's not clear to me whether the updater updates Flex Charting and Flex Data Services. The page says: The 2.0.1 updates for these Flex products can be implemented by installing the full, updated versions of the products. So I don't know whether you have to install the product from scratch if you are using Flex Charting and Flex Data Services.
[flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days
Amazon shows Flex 2 for Macintosh is in stock, but they are charging $10 more than Adobe's price for the Windows version. Paul
[flexcoders] DataGrid Background Anomoly During Vertical Scroll
I've got a basic DataGrid inside a VBox which is inside of a TitleWindow. Sometimes during vertical scrolling the white background will be drawn *above* the top of the DataGrid component. It's a solid white filled rectangle about 50 pixels high with a width that matches the DataGrid's width. The TitleWindow's title is drawn on top of the white rectangle (probably due to z-depth order). It's almost like a clipping rectangle is removed allowing the DataGrid to draw its background outside of the its display area. Again, it doesn't occur all the time, just at certain scroll positions. The DataGrid has an itemRenderer, but it's just a simple mx:Text component, so that shouldn't have anything to do with it. Anyone know what's going on and how to prevent the DataGrid from sticking a white rectangle up at some scroll positions? Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Re: DataGrid Background Anomoly During Vertical Scroll
Hi Doug, Thanks for the suggestion. I added a cacheAsBitmap=false attribute on the mx:TitleWindow tag and on the mx:DataGrid tag but it didn't seem to make a difference. Paul --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Hi Paul, I recall seeing some similar strangeness with datagrids in title windows. Try setting the cacheAsBitmap property to false on the titlewindow and/or datagrid and see if that helps. --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a basic DataGrid inside a VBox which is inside of a TitleWindow. Sometimes during vertical scrolling the white background will be drawn *above* the top of the DataGrid component. It's a solid white filled rectangle about 50 pixels high with a width that matches the DataGrid's width. The TitleWindow's title is drawn on top of the white rectangle (probably due to z-depth order). It's almost like a clipping rectangle is removed allowing the DataGrid to draw its background outside of the its display area. Again, it doesn't occur all the time, just at certain scroll positions. The DataGrid has an itemRenderer, but it's just a simple mx:Text component, so that shouldn't have anything to do with it. Anyone know what's going on and how to prevent the DataGrid from sticking a white rectangle up at some scroll positions? Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Re: DataGrid Background Anomoly During Vertical Scroll
Yes! That's the problem! After reading through the thread I changed my code to set cacheAsBitmap=false on the instance of the PopUpWindow rather than in the MXML component definition. In other words, this: var crRTEW:ContentRowRTEWindow = ContentRowRTEWindow(PopUpManager.createPopUp(this, ContentRowRTEWindow)); crRTEW.cacheAsBitmap = false; And NOT this: mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:v=views.* cacheAsBitmap=false ... Problem solved! Thank you very much for finding that thread!!! Paul --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Is the issue you're seeing the same as in this thread? http://tech.groups.yahoo.com/group/flexcoders/message/46996 Maybe there are some tips in the various responses that can help. --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: Hi Doug, Thanks for the suggestion. I added a cacheAsBitmap=false attribute on the mx:TitleWindow tag and on the mx:DataGrid tag but it didn't seem to make a difference. Paul --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Hi Paul, I recall seeing some similar strangeness with datagrids in title windows. Try setting the cacheAsBitmap property to false on the titlewindow and/or datagrid and see if that helps. --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a basic DataGrid inside a VBox which is inside of a TitleWindow. Sometimes during vertical scrolling the white background will be drawn *above* the top of the DataGrid component. It's a solid white filled rectangle about 50 pixels high with a width that matches the DataGrid's width. The TitleWindow's title is drawn on top of the white rectangle (probably due to z-depth order). It's almost like a clipping rectangle is removed allowing the DataGrid to draw its background outside of the its display area. Again, it doesn't occur all the time, just at certain scroll positions. The DataGrid has an itemRenderer, but it's just a simple mx:Text component, so that shouldn't have anything to do with it. Anyone know what's going on and how to prevent the DataGrid from sticking a white rectangle up at some scroll positions? Thanks! Paul --- Paul Whitelock Denver, Colorado
[flexcoders] Flex 2 for Mac Release Coming Within 7 Days
I received the reply copied below regarding the problem that I had with the beta for Flex 2 Mac expiring unexpectedly and thought I'd pass it on. Paul --- Paul Whitelock Denver, Colorado Hi, The commercial version of Flex Builder for the Mac will be available within the next 7 days, so your problem should be solved shortly. Sorry for the slight gap. I hope you are enjoying Flex ;-) Phil Costa Group Product Manager, Flex
[flexcoders] Converting Rich Text to HTML
Is there some sample code anywhere that shows how to convert htmlText generated by the RichTextEditor to standard HTML? For instance, when adding a bulleted list in the RichTextEditor it generates LI tags but no enclosing UL tag. Any pointers are appreciated Paul
[flexcoders] Anchor Tags in Rich Text
Whenever an anchor tag appears in Rich Text the cursor always changes to a hand when you move over it and the link is clickable. In some instances I would like to disable this behavior so that the anchor text behaves just like normal text (i.e., it is not clickable). I don't want to remove the anchor tags because they are needed elsewhere. Is there any way to do disable anchor text behavior in a component that displays Rich Text (e.g., in a mx:Text component)?
[flexcoders] Re: change markup in richTextEditor
Funny, I must have posted my question about the RichTextEditor (Converting Rich Text to HTML ) at just about the same time as this thread was started. If the methods referred to below are undocumented, where can information about them be found? Also, since they are undocumented is there a chance they might be changed or removed in the future thereby causing code to break? Paul --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: There are some undocumented methods of the UITextfield that might be useful if you can make use of them. Specifically getTextRuns() and getXMLText() might be useful to you depending on what functionality you are looking for. - Dan On 12/29/06, Brian Dunphy [EMAIL PROTECTED] wrote: When working on a CMS in Flex, I was making heavy use of the RTE component, and I too discovered the horrible markup it generates. My only advice would be to write a good formatter using regex in either AS3 or your backend. I started to write one in AS3 but it's nowhere near completion. I disable a lot of the functionality of the RTE in the CMS, i.e. I don't allow them to change fonts, colors, etc. I only allow them to format lists, paragraphs, links, etc. It cuts down on the bad markup (not sure if this is an option for you). Best of luck! Brian On 12/28/06, joshuagatcke [EMAIL PROTECTED] joshua%40visua.ca wrote: I am wondering if it is possible to change the markup that is output by the rich text editor, if anyone has any tips or advice, it would be much appreciated. Thanks in advance, -- Brian Dunphy