Re: [flexcoders] Memory leaks - binding to e4x XML?

2007-08-25 Thread Scott - FastLane
Alex - That is my posting, and I would hate for it to be misinformation in any way. If your research turns up no evidence that I am correct then I will endeavor to re-create my problem in a sample application that I can send along to you for inspection. If I cannot successfully demonstrate

Re: [flexcoders] Memory leaks - binding to e4x XML?

2007-08-26 Thread Scott - FastLane
. Sorry, if I ruffled feathers, -Alex *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Scott - FastLane *Sent:* Saturday, August 25, 2007 1:33 PM *To:* flexcoders@yahoogroups.com *Subject:* Re

Re: [flexcoders] Flex Builder 3 Profiler

2007-09-05 Thread Scott - FastLane
If I recall correctly, when I hit this I had to make sure I did the following 1) Make sure you have the correct flash player... I found a post somewhere that told me which version of flash to use for profiling. I think it was the version that came with the flex3 beta download 2) Launch from

Re: [flexcoders] Bubbling custom events

2007-09-05 Thread Scott - FastLane
Don - In the constructor for your custom event you can set the bubbles param when you call super as in the following example. import flash.events.Event; import mx.controls.CheckBox; public class CheckBoxListEvent extends Event { public var data:Object; public var

Re: [flexcoders] DataGrid Speed

2007-09-06 Thread Scott - FastLane
John - I am guessing that it is the large number of complex controls (particularly combo box) you are using as renderers that is slowing you down. I had a similar situation and had to change my app such that the data rendered for combo boxes and text inputs is rendered using mx:Label or

Re: [flexcoders] Re: DataGrid Speed

2007-09-06 Thread Scott - FastLane
, John --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: John - I am guessing that it is the large number of complex controls (particularly combo box) you are using as renderers that is slowing you down. I had a similar situation

Re: [flexcoders] How to build on command line?

2007-09-10 Thread Scott - FastLane
Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here are the pertinent sections from my build script... !-- Need this in order to define the flex tasks that we will use -- taskdef resource=flexTasks.tasks

Re: [flexcoders] How to build on command line?

2007-09-10 Thread Scott - FastLane
and searchable on the web (other than in this archive)? It'd be a nice thing to put up on a wiki somewhere. Christian. On 10-Sep-07, at 11:46 AM, Scott - FastLane wrote: Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here

Re: [flexcoders] Getting xml in code only

2007-09-10 Thread Scott - FastLane
Steve - I believe you intend to be adding the listener for the Event.RESULT event instead of the Event.COMPLETE. hth Scott Steve Hueners wrote: All the samples i've come across so far show the mxml route - I'm able to instantiating and fireing the send correctly with: public var

Re: [flexcoders] help linking combobox to httpservice data

2007-09-10 Thread Scott - FastLane
Robert - Have a look at the source code in my flex calendar sample app http://blog.fastlanesw.com/?p=22 here... just right click on the app to view source. I am populating a combo box with valid times from XML when the user edits an event... if the user changes the date/time of the event I

Re: [flexcoders] Getting xml in code only

2007-09-10 Thread Scott - FastLane
mx.collections.XMLListCollection; On 9/10/07, *Scott - FastLane* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Steve - I believe you intend to be adding the listener for the Event.RESULT event instead of the Event.COMPLETE. hth Scott Steve Hueners wrote: All

Re: [flexcoders] Datagrid editable cell loses focus on screen update

2007-09-10 Thread Scott - FastLane
In general it seems it would be preferable to validate user input on the client side... if you did this you could use the errorString of the itemEditorInstance to show the error to the user without having to wait for the back end, etc. When you do this the error is shown in the cell where the

Re: [flexcoders] Re: goto flex command?

2007-09-11 Thread Scott - FastLane
Dylan - Your repeated component can be accessed via an array that has the name of the repeated component. For example: mx:Repeater id=rp dataProvider={groupsAC} mx:VBox id=groupBox verticalScrollPolicy=off horizontalScrollPolicy=off width=100% ...

Re: [flexcoders] How to check to see if an XML element exists

2007-09-12 Thread Scott - FastLane
assuming var itemSource:XML is assigned to the structure below... I think if(itemSource.Media != undefined) should do it. hth Scott kc7cia wrote: Hi, I was hoping someone could tell me how to check to see if an XML element exists in AS3. I have an XML structure that looks like this:

Re: [flexcoders] Using Ant in Eclipse to build

2007-09-13 Thread Scott - FastLane
Giles - Yes, it is not too hard. I just blogged about how to build a flex project using Ant http://blog.fastlanesw.com/?p=23... let me know if you need more than that. hth Scott Giles Roadnight wrote: Hi Guys I'm using the eclipse Flex 2 plugin and use an Ant build.xml file to put the

Re: [flexcoders] Follow-up on the watermark thing

2007-09-14 Thread Scott - FastLane
You can do that now afaik. Check out my blog for how to build flex stuff from command line using Ant http://blog.fastlanesw.com/?p=23. Notice specifically this part compiler.library-path dir=${proj-flex.dir.thirdparty}/adobe/ append=true include name=libs /

Re: [flexcoders] Re: Follow-up on the watermark thing

2007-09-14 Thread Scott - FastLane
%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: You can do that now afaik. Check out my blog for how to build flex stuff from command line using Ant http://blog.fastlanesw.com/?p=23 http://blog.fastlanesw.com/?p=23. Notice specifically this part compiler.library-path dir=${proj

Re: [flexcoders] Re: Follow-up on the watermark thing

2007-09-14 Thread Scott - FastLane
%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Scott - FastLane smelby@ wrote: You can do that now afaik. Check out my blog for how to build flex stuff from command line using Ant http://blog.fastlanesw.com/?p=23 http://blog.fastlanesw.com/?p=23. Notice specifically this part

[flexcoders] Invisible checkbox renderer

2007-09-17 Thread Scott - FastLane
I am attempting to optimize my renderers in an AdvancedDataGrid. The following code works perfectly, but it seems I should be able to do this without the overhead of an HBox. So... I have implemented the following code and am having trouble seeing why it won't work. If I debug, I see that

Re: [flexcoders] Invisible checkbox renderer

2007-09-17 Thread Scott - FastLane
. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Scott - FastLane *Sent:* Monday, September 17, 2007 3:32 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Invisible checkbox renderer I am attempting

Re: [flexcoders] Cache-Control header not working in HTTPService

2007-09-17 Thread Scott - FastLane
If you have control of the server side of your project, you could ask them to include the cache in their response header... I believe that is the way it is supposed to work. The server indicates that the content it is returning is dynamic in nature and should not be cached. While adding the

Re: [flexcoders] Re: Memory usage by flex

2007-09-24 Thread Scott - FastLane
I have posted a few things on my blog about flex memory leaks and other performance issues. The first post is http://blog.fastlanesw.com/?p=14 That post describes issues I encountered with unbounded memory growth when binding my DataGrid controls directly to e4x XML data returned from an

Re: [flexcoders] tabNavigator - dynamic tabs?

2007-09-24 Thread Scott - FastLane
Have you looked at SuperTabNavigator in FlexLib http://code.google.com/p/flexlib/wiki/ComponentList? hth Scott byte.sensei wrote: I have a tabNavigator with 3 mx:Canvas tabs, each containing a dataGrid for a different user/customer. Above the tabNavigator you can select up to 3 different

Re: [flexcoders] Hyperlink in Flex 2...

2007-09-26 Thread Scott - FastLane
Daniel - mx:LinkButton label=Your Text color=0xff click=yourEventHandler(event)/ hth Scott Daniel Sanderson wrote: Is there a way to make a label look like a hyperlink. It may trigger a view state or send and e-mail, whatever but I want to make it look and function like a hyperlink

Re: [flexcoders] HTTPService Performance Issue - very slow

2007-09-28 Thread Scott - FastLane
Tracy Spratt wrote: In my experience, the rendering of the UI is the bottleneck, not the data transfer. Use timer and the result handler function to time the actual data transfer. You ARE using a result handler, and not binding directly to lastResult, right? Are your item renderers

Re: [flexcoders] HTTPService Performance Issue - very slow

2007-09-28 Thread Scott - FastLane
oops... sorry about the prior message. Doh! It has also been my experience that rendering is usually the bottleneck. See this post on my blog http://blog.fastlanesw.com/?p=25 for an example of the difference a UIComponent based renderer can make over containers. hth Scott Tracy Spratt

Re: [flexcoders] Re: HTTPService Performance Issue - very slow

2007-09-29 Thread Scott - FastLane
. Is there anything to be done to speed the processing of the incoming data until the result handler is called? Thanks a bunch, John --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: oops... sorry about the prior message. Doh

Re: [flexcoders] HTTPService Error event

2007-09-30 Thread Scott - FastLane
George - I have not seen this syntax for passing request params to an HTTPService. Of course that doesn't mean it is wrong :) But, here is how I would do it. Change button definition to mx:Button label=Add Employee click=callServer()/ then public function callServer():void { var

Re: [flexcoders] HTTPService Error event

2007-09-30 Thread Scott - FastLane
of problem in my CFM file. any ideas? Thanks, George On 9/30/07, *Scott - FastLane* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: George - I have not seen this syntax for passing request params to an HTTPService. Of course that doesn't mean it is wrong :) But, here is how

Re: [flexcoders] Dates and Months Problem

2007-10-01 Thread Scott - FastLane
The docs on the date class http://livedocs.adobe.com/flex/2/langref/Date.html#month state that the month is zero based 0 = jan 1= feb ... 9=oct Scott hugocorept wrote: Hello all, how you doing ^^ I want to get the month we are by number. Can some one explain me why is flex saying the Month

[flexcoders] Mxml editor no longer working

2007-10-04 Thread Scott - FastLane
Does anybody know what causes this issue http://bugs.adobe.com/jira/browse/FB-8390, and if there is any way I can get around it? My MXML editor worked fine yesterday (or maybe the day before), but today it does not. I tried uninstalling and re-installing flex builder 3 beta 1 that I have

Re: [flexcoders] Mxml editor no longer working

2007-10-04 Thread Scott - FastLane
Tom - Sorry, but I don't see any suggestion on the bug. Guess I just don't know where to look. Anyway, here is the whole trace from my eclipse. Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates

Re: [Fwd: Re: [flexcoders] Mxml editor no longer working]

2007-10-05 Thread Scott - FastLane
That did it!!! Thanks... I probably should have found this myself, but I got thrown off by the bug report where it says workarounds: None Somebody should update that and document this procedure as a possible work around. Thanks again Scott João Fernandes wrote: wild guess, try this

Re: [flexcoders] ArrayCollection XMLList?

2007-10-05 Thread Scott - FastLane
Assuming your ArrayCollection contains strongly typed objects, I think you can make the ArrayCollection itself be the dataprovider for your tree. Your class (the data stored in the ArrayCollection) just needs to implement the get children():Array and get label():String method iirc. hth Scott

Re: [flexcoders] Detecting optional elements in XML

2007-10-07 Thread Scott - FastLane
var myXML:XML = someXML; if(myXML.someNode != undefined) { //do something with the node } hth Scott - J.R. A people that values their privileges over their principles, will soon lose both. - Dwight Ike Eisenhower

Re: [flexcoders] DataGrid with DateField Editor

2007-10-08 Thread Scott - FastLane
John - The problem is likely related to the DataGridColumn.editorDataField property. If you are using DateField etc. for an editor this property is data and it assumes that you will be assigning a Date object or a String that is in a format that the Date class can parse. (as shown in code

Re: [flexcoders] Re: DataGrid with DateField Editor

2007-10-08 Thread Scott - FastLane
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: John - The problem is likely related to the DataGridColumn.editorDataField property. If you are using DateField etc. for an editor this property is data and it assumes that you

Re: [flexcoders] Definition question

2007-10-18 Thread Scott - FastLane
I'm going to guess that your import is within the scope of your mx:Script tag which closes with your /mx:Script tag and does not cover your mxml for the page. Using itemRenderer=com.toro.classes.CenteredCheckBox in the MXML should resolve the issue. hth Scott Scott Melby Founder, Fast

Re: [flexcoders] How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread Scott - FastLane
Not sure if you can do all of that from within flex... but you can certainly do it via JavaScript's window.open() method. If you want to do it that way you will need to make a call to ExternalInterface.call() to call the JS method on the HTML page that contains your swf. hth Scott Scott

Re: [flexcoders] Re: How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread Scott - FastLane
Scott Melby Founder, Fast Lane Software LLC http://blog.fastlanesw.com michniu wrote: Thanks Scott! But what if I use it in AIR Application? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: Not sure if you can do all

Re: [flexcoders] Hyperlink in flex.

2007-10-19 Thread Scott - FastLane
Sure.. try mx:LinkButton label=Some Text color=0xff click=doSomething(event)/ Scott Scott Melby Founder, Fast Lane Software LLC http://blog.fastlanesw.com Venkat Perpati wrote: Hi, Is there anyway we can use a label/text with an image as a link in flex so that on clicking that link

[flexcoders] AdvancedDataGrid Hierarchical data and columns

2007-10-22 Thread Scott - FastLane
I have an AdvancedDataGrid with a Hierarchical data provider. The Hierarchy is two levels deep. The top level objects have something like 5 attributes (columns) to display, while only the first attribute (descrtipion) applies to their children. It was easy enough to get the grid to display

Re: [flexcoders] Problem with AdvancedDataGrid

2007-10-22 Thread Scott - FastLane
Have you tried AdvancedDataGrid.invalidateList() after you set the data? hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com reflexactions wrote: I am having an issue with the ADG. I have it set up and I load data into it say with 1 row and it displays fine

Re: [flexcoders] Re: AdvancedDataGrid and setItemAt()

2007-10-22 Thread Scott - FastLane
You need to set the ArrayCollection.sort property... have a look at mx.collections.Sort and mx.collections.SortField. There are examples on this page http://livedocs.adobe.com/flex/2/langref/mx/collections/Sort.html that show how you can create a Sort with multiple SortFields. hth Scott

Re: [flexcoders] Re: Problem with AdvancedDataGrid

2007-10-22 Thread Scott - FastLane
://www.fastlanesw.com reflexactions wrote: Hmm didnt make any difference unfortunately. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: Have you tried AdvancedDataGrid.invalidateList() after you set the data? hth Scott Scott Melby

Re: [flexcoders] FormItemLabel style

2007-10-22 Thread Scott - FastLane
If you only want to set it for one label, can't you just set it on the label declaration i.e. mx:Label fontWeight=bold text=Your Label Text/ hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com diehlryan wrote: I can style a FormItemLabel to be bold using a

Re: [flexcoders] Re: Problem with AdvancedDataGrid

2007-10-22 Thread Scott - FastLane
than an ArrayCollection --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: Hmmm... well, since a column resize ends up displaying the data it certainly sounds like you are missing an invalidate. A couple of other things to try

Re: [flexcoders] Re: FormItemLabel style

2007-10-22 Thread Scott - FastLane
, but that will style the control as well as the label. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott - FastLane [EMAIL PROTECTED] wrote: If you only want to set it for one label, can't you just set it on the label declaration i.e. mx:Label fontWeight=bold text=Your Label Text

Re: [flexcoders] AdvancedDataGrid Hierarchical data and columns *** SOLVED ***

2007-10-22 Thread Scott - FastLane
=mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer / /mx:rendererProviders /mx:AdvancedDataGrid Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Scott - FastLane wrote: I have an AdvancedDataGrid with a Hierarchical data provider

Re: [flexcoders] does something like this exist?

2007-10-22 Thread Scott - FastLane
Not sure if anything official exists... I keep a very simple flex project around on my dev box for trying out simple code ideas etc. I also find this useful for when I want to create a sample app to include along with questions I post to this list, etc. hth Scott Scott Melby Founder, Fast

Re: [flexcoders] Re: Problem with AdvancedDataGrid

2007-10-23 Thread Scott - FastLane
the source --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Scott - FastLane smelby@ wrote: The sample that I posted for you is using a HierarchicalData as the dataProvider so there is some difference there. But, it still seems

Re: [flexcoders] Detecting browser window close event?

2007-10-23 Thread Scott - FastLane
I generally do this type of work on the server side in a session closed type event. This will work regardless of how the user lost their session: logout, closed browser, crashed Windows (I couldn't resist), power outage on client machine, etc. hth Scott Scott Melby Founder, Fast Lane

Re: [flexcoders] Simple SimpleButton 2nd try

2007-10-23 Thread Scott - FastLane
From what you have posted it looks like some of the flex framework code assumes that your child is an IUIComponent even though the API is addChild(child:DisplayObject)... since SimpleButton IS a DisplayObject and IS NOT an IUIComponent you are getting hosed. Looks to me like you have found a

Re: [flexcoders] Report building.

2007-10-23 Thread Scott - FastLane
Paul - Not sure what your back end is, but I am using Java on the back end and have found it very easy to use the iText library to create PDF reports. The iText library is very simple to use and creates nice tabular reports (no GUI though). I do it by using a navigateToURL that targets a

Re: [flexcoders] Re: Report building.

2007-10-24 Thread Scott - FastLane
In case you are interested in programmatically generating PDFs... you can find a .NET port of the iText library here http://sourceforge.net/projects/itextdotnet. A quick google search also turned up C# and other versions as well. hth Scott Scott Melby Founder, Fast Lane Software LLC

Re: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Scott - FastLane
Mark - You should be able to do something like the following in your mxml file: (you could also construct the titleWindow in a creationComplete() handler after simply decarling it as a member var.) mx:Script ![CDATA[ private var titleWindow:TitleWindow = new TitleWindow(...);

Re: [flexcoders] Change all other DataGrid rows from target row

2007-10-25 Thread Scott - FastLane
I would try dispatching an event and letting it bubble out to the parent of the grid control... then update all rows in the grid's dataProvider and then invalidate. This should cause the custom renderer to re-display the altered data. hth Scott Scott Melby Founder, Fast Lane Software LLC

Re: [flexcoders] datagridcolumn input filter

2007-10-26 Thread Scott - FastLane
I have not used this component http://weblogs.macromedia.com/pent/archives/2006/08/flex_2_componen.cfm but it looks like you could use it as your item editor. If you don't want to mask input, but just want to validate that it is all numeric during the edit or at the end you could use a