Re: [flexcoders] Re: Flex - Create Application From Database
Hi, Thanks for the link. But I think the courses there requires that you need to enroll and pay up for their courses. I am still having trouble making this Create Application from Database thing to work. Although I managed to get the web service running (for another separate application). I still got a lot more to learn and I am very thankful that this group exists. Kind Regards, Angelo From: valdhor valdhorli...@embarqmail.com To: flexcoders@yahoogroups.com Sent: Friday, 15 May, 2009 2:07:07 Subject: [flexcoders] Re: Flex - Create Application From Database If you still can't get it to work, you may like to look at http://www.lynda. com/home/ DisplayCourse. aspx?lpk2= 437 . There is a course component labeled Using Flex Builder 3's ASP.NET Data Wizard. --- In flexcod...@yahoogro ups.com, valdhor valdhorlists@ ... wrote: I don't use .NET or NorthWind. I would try http://localhost: 12345 or http://localhost: 12345/service. asmx as the server name. Put the database name you want to use in the Database Name field and leave the other fields as is (Flex automatically populates the user name field with sa). Then try clicking the Test Connection button. Flex will try to connect and give you some sort of error if it can't. As I understand it, you should be able to connect to a NorthWind database. HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ wrote: Hi Steve, I am trying to connect to the NorthWind database which I placed in the App_Data folder of my web service. When I run the webservice, it runs in the address: http://localhost: 12345/service. asmx So would I be placing the localhost:12345 as my host url for the database? How do I set the northwind (or any other SQL Server database to run in the localhost for this matter?) By default the username for the SQL Server Express database is sa and password is left blank. Thanks a lot. Regards, Angelo _ _ __ From: valdhor valdhorlists@ To: flexcod...@yahoogro ups.com Sent: Friday, 15 May, 2009 0:04:47 Subject: [flexcoders] Re: Flex - Create Application From Database So, when I do this the window says Simple MySQL Connection- Create a connection to a MySQL Database. At this point you plug in details for your database connection.. . Host URL: The IP address or hostname of your MySQL Database (If it's on your local machine use localhost or 127.0.0.1 or your local machines IP address). Database Name: The database you want to connect to (You will select a table later). User Name: The User Name you use to connect to the database above. Password: The Password you use to connect to the database above. You should then click the Test Connection button to see if Flex can connect to the database with the parameters you have entered. HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi All, I have FB3 on my machine, coupled with VS 2008 Express. When I click on Data | Create Application From Database, I get the Popup WIndow - Create Application From Database. I click on the New button beside the Connection and I am directed to the Create Connection Profile. I then enter the Name for the New Connection and click on Next button.. On the next screen, I have the following fields: Server Name: localhost Database Name User Name Password I cannot figure out what values need to be entered into these fields. Kindly help me sort this out so that I could leverage the database app capability of Flex. Thanks. P.S. When I run my web service application, I am able to connect to it. Inside my web service, I have already defined the Northwind database in the App_Data folder.
Re: [flexcoders] PDF and XL
Go through this link for printing flex component: http://examples.adobe.com/flex3/componentexplorer/explorer.html http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html I hope you will get your solution from here. Regards, Vikram From: senthilkumarirtt senthilkumari...@yahoo.co.in To: flexcoders@yahoogroups.com Sent: Tuesday, 19 May, 2009 11:05:00 AM Subject: [flexcoders] PDF and XL Hi all i need to export my advanced datagrid data as PDF and XL format.. Thanks in advance S.Senthilkumar Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/
[flexcoders] Adobe Flash Help Urgent
I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks
[flexcoders] Adobe Flash Help Urgent
I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks
Re: [flexcoders] Adobe Flash Help Urgent
crossdomain file? just off the cuff. - Original Message - From: saritha To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe Flash Help Urgent Date: Tue, 19 May 2009 07:49:27 - I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks David Kramer CISSP Secure Patterns 917.652.0632 www.securepatterns.com
[flexcoders] Call a Flex Function by Name
I'm using a Menu control. Normally I'd catch the Menu's control event and then act on whatever selection the user made with something like a switch block. But I wanted to see if I could be more clever and embed the function name and parameters in the XML Menu data provider itself, like this: mx:XML id=xmlFormMenuOptions Menu id=MenuOptions menuitem id=AddNewChartMenuOption label=Add Chart... callback=AddNewChartButton_click arguments= / menuitem id=RenameChartMenuOption label=Rename Chart... callback=PopUpTextBox arguments=RenameChart, RenameChartButtonTextBox, {nameChartSelected} enabled={selectedChartingPanelTableCell} / menuitem id=DeleteChartMenuOption label=Delete Chart callback=PopUpCheckBox arguments=DeleteChart, DeleteChartButtonCheckBox enabled={selectedChartingPanelTableCell} / menuitem id=RaiseChartOrderMenuOption label=Raise Chart Order callback=RaiseChartOrderButton_click arguments= enabled={RaiseChartOrderButton.enabled} / menuitem id=LowerChartOrderMenuOption label=Lower Chart Order callback=LowerChartOrderButton_click arguments= enabled={LowerChartOrderButton.enabled} / menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callback=ProjectProperties.setValue arguments=ShowAlertsWindow, true / menuitem id=ChartingPanelWhatAmIMenuOption label=What am I? callback=PopUpMessage arguments=ChartingPanelWhatAmIMenuOption, null/ menuitem id=HelpMenuOption label=Help callback= / /Menu /mx:XML If you look at each menuitem/ you'll see a 'callback' attribute and an 'arguments' attribute. The arguments are comma-delineated that I need to parse into an Array and scrub: for example, by converting string references into real ones like this: if( this.hasOwnProperty(arg) ) arrayArguments[i] = this[arg]; I then have been successful in using the callLater function like this: callLater(this[callback], arrayArguments); So far so good - it works great! But I've hit a tiny snag. If the function is in a foreign class then everything falls apart. For example, this won't work: callback = ProjectProperties.setValue arguments = ShowAlertsWindow, true Because there is no such thing as this[ProjectProperties.setValue] the callLater function can't handle it. I can easily build a little stub but I'm hoping to keep things clean and elegant. I've been searching for a way to call-by-name in Flex but haven't found one (except for callLater). Is there a way I can do this?
Re: [flexcoders] Re: modify item before binding to datagrid
My apologies but I forgot to mention that I am getting the data from a .NET web service which is a dataset and then returned via string (XML) using the .NET function String strConn = ConfigurationManager.ConnectionStrings[conString].ConnectionString; SqlConnection dbConnection = new SqlConnection(strConn); String strCommand = SELECT SupplierID, CompanyName, ContactName, ContactTitle, Address FROM Suppliers ; SqlDataAdapter objCommand = new SqlDataAdapter(strCommand, dbConnection); DataSet DS = new DataSet(); objCommand.Fill(DS); dbConnection.Close(); dbConnection = null; DataTable DT = DS.Tables[0]; return DS.GetXml(); So, basically, I think the SupplierID which is numeric originally becomes a string. How can I then prior to binding the same to the datagrid control, convert its data type back to numeric so that when I perform a sort, it would sort the supplierID interpreting it as a numeric value? Thanks. From: markgoldin_2000 markgoldin_2...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, 18 May, 2009 23:44:33 Subject: [flexcoders] Re: modify item before binding to datagrid Here is what I am doing. column definition: mx:DataGridColumn headerText= Block dataField=tcbkcd sortCompareFunction =sortNumericCol umnTrackTotal / and: private function sortNumericColumnTr ackTotal( itemA:Object, itemB:Object) :int { return ObjectUtil.numericC ompare(itemA[ TrackTotal. col], itemB[TrackTotal. col]); } where TrackTotal is a DG's id. HTH --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi. I am quite new in Flex and would like to ask a simple question. I am retrieving datasets from a .NET webservice and binding the same to a datagrid. The datagrid comes with a feature that when you click on any of the headers, the column is sorted ASC or DESC. Now, one column which I am binding to is originally a numeric column. But when it binds to the datagrid, it's data type becomes string. Is it possible that prior to binding the said column to the datagrid, I would be able to convert it back to its numeric data taype? Since sorting the column in a string format would give a different result as compared to sorting the same column in a numeric format. Thanks. Regards.
Re: [flexcoders] Adobe Flash Help Urgent
P.S. It's urgent to you, not to anyone else. If it's really urgent and important, get a support contract. -- Helping to collaboratively establish back-end customized dynamic 24/7 customers as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] HTML Formatting lost in TextArea
**bump** I'm encountering a strange problem which I can't reliably replicate. I have a TextArea. During its lifetime, I set the htmlText property one time with a string of HTML that includes an IMG tag. The text property never gets set. Sometimes, when the TextArea is first displayed, I'll see that all of its HTML is formatted properly for a few seconds, with various fonts, font styles, sizes, colors, etc., and then suddenly it will re-render itself and all of the text will be in a single font, size, color and style. Things like paragraph breaks and bulleted lists are preserved, however. The only styles that are getting set on this TextArea are paddingLeft and paddingRight. Although I have an embedded font in the application, it's not being set in any stylesheets, only through explicit setStyle calls, and only where text needs to be rotated. So I don't think that has anything to do with the issue. I'm using Flex 3.1, whatever version that was current on 8/25/2008. As I mentioned, this can't be reliably replicated. Sometimes it works correctly when following the same path through the application, and sometimes it doesn't. Does anyone have any ideas on what might be causing this?
[flexcoders] Re: Doing math with Date()
--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: At 10:10 PM 5/18/2009, you wrote: I have a list of events in a table, and I need to check and see if someone has selected two events that time-conflict with one another. How do I do math with the Date() function in Flex to see if two events occur at the same time or not? Are there other date-and-time functions in Flex? Never mind -- I finally found it in LiveDocs. Man, I wish that was easier to find stuff in. Are you using Builder? If so, try something like: http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html HTH; Amy
[flexcoders] Line of error in file
Hi all I am getting I got 1086 : expecting semicolon before target but it doesn't refer to any line or file even when I click it how can I know to which component / mxml it belongs and on which line moshe
[flexcoders] getting only last NumericStepper change event
I am using a NumericStepper and am looking for a way to turn off sending of the change event while the mouse is down on the arrows. I only want the last event with the ending value. I thought there would be a property to control this since it seems like it would be a common thing to want to do but I can't find one. Am I overlooking something or any known best ways to do this? THanks Ron Wagner
Re: [flexcoders] Adobe Flash Help Urgent
On May 19, 2009, at 3:49 AM, saritha wrote: I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks I've had to add a base href=http://www.full/path/to/ html_document.html to get everything to load on Windows. Have you checked the webserver error logs to see where it wants to grab the missing items from? Ron
[flexcoders] MVC view and model communication
I have a view that I would like to change state when a field in my model changes values. Up until now I've been using data binding to link my view and model. It seems like my current situation I will have to dispatch an event from the model and have the view watch it. In the model: A username string that changes occasionally and is sometimes null. In the view: A List - should become unselected if the username becomes null. A State - should change when the username changes values. Do I need to register an event handler in my view? Can I do this somehow through data binding? Or is there another way? ascii
Re: [flexcoders] Adobe Flash Help Urgent
Look at your web server compression settings. SSL. caching. All are things IE screws up on a regular basis. Tell your users to download a browser that works. :-) On 19/05/2009, at 5:49 PM, saritha wrote: I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks
RE: [flexcoders] Call a Flex Function by Name
I would separate the classname out into another argument in your XML, so in your example that's not working, you'd have: menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callbackClass=ProjectProperties callback=setValue arguments=ShowAlertsWindow, true / Then you'd have to dynamically instantiate that class and call the assigned method. I have a couple tutorials on my blog about doing this: http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ The 2nd one deals with data casting which might not be as relevant but I still do the class stuff dynamically. Here's an example of what this might look like for you: var className:Class = Class( getDefinitionByName( getQualifiedClassName( ProjectProperties ) ) ); var function:Function = className[setValue]; function.call(className[or null], parmaters.); FYI, this code is completely untested, just trying to give you an idea. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of edlueze Sent: Tuesday, May 19, 2009 6:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call a Flex Function by Name I'm using a Menu control. Normally I'd catch the Menu's control event and then act on whatever selection the user made with something like a switch block. But I wanted to see if I could be more clever and embed the function name and parameters in the XML Menu data provider itself, like this: mx:XML id=xmlFormMenuOptions Menu id=MenuOptions menuitem id=AddNewChartMenuOption label=Add Chart... callback=AddNewChartButton_click arguments= / menuitem id=RenameChartMenuOption label=Rename Chart... callback=PopUpTextBox arguments=RenameChart, RenameChartButtonTextBox, {nameChartSelected} enabled={selectedChartingPanelTableCell} / menuitem id=DeleteChartMenuOption label=Delete Chart callback=PopUpCheckBox arguments=DeleteChart, DeleteChartButtonCheckBox enabled={selectedChartingPanelTableCell} / menuitem id=RaiseChartOrderMenuOption label=Raise Chart Order callback=RaiseChartOrderButton_click arguments= enabled={RaiseChartOrderButton.enabled} / menuitem id=LowerChartOrderMenuOption label=Lower Chart Order callback=LowerChartOrderButton_click arguments= enabled={LowerChartOrderButton.enabled} / menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callback=ProjectProperties.setValue arguments=ShowAlertsWindow, true / menuitem id=ChartingPanelWhatAmIMenuOption label=What am I? callback=PopUpMessage arguments=ChartingPanelWhatAmIMenuOption, null / menuitem id=HelpMenuOption label=Help callback= / /Menu /mx:XML If you look at each menuitem/ you'll see a 'callback' attribute and an 'arguments' attribute. The arguments are comma-delineated that I need to parse into an Array and scrub: for example, by converting string references into real ones like this: if( this.hasOwnProperty(arg) ) arrayArguments[i] = this[arg]; I then have been successful in using the callLater function like this: callLater(this[callback], arrayArguments); So far so good - it works great! But I've hit a tiny snag. If the function is in a foreign class then everything falls apart. For example, this won't work: callback = ProjectProperties.setValue arguments = ShowAlertsWindow, true Because there is no such thing as this[ProjectProperties.setValue] the callLater function can't handle it. I can easily build a little stub but I'm hoping to keep things clean and elegant. I've been searching for a way to call-by-name in Flex but haven't found one (except for callLater). Is there a way I can do this?
[flexcoders] DataGrid drag and drop
If I have a source DG with dragMoveEnabled=true should dd remove dragged item from the source dataProvider as well or I have to do it manually? Thanks
[flexcoders] FormItem with Datagrid extra white space
mx:FormItem width=100% direction=horizontal label=Contacts mx:DataGrid id=custcontacts fontSize=10 width=100% height=70% creationComplete=contactList() mx:columns mx:DataGridColumn headerText=Contact dataField=contact/ mx:DataGridColumn headerText=Name dataField=contactname/ mx:DataGridColumn headerText=Phone dataField=contactphone/ mx:DataGridColumn headerText=Email dataField=contactemail/ /mx:columns /mx:DataGrid /mx:FormItem I want to make my DG shorter than a default. It gets shorter but next FormItem under will be shown as I would not make DG shorter, another words there is a large vertical white gap between FormItems. How can I get rid this vertical gap? Thanks
[flexcoders] Re: filter complex arrayCollection
Thanks for the link Ivan... Although that's very cool stuff I don't believe that's what I'm looking for in this case. I'm really just looking to filter an ArrayCollection that goes beyond one level. I'm having a hard time with this so I'm even wondering if I can do it with an ArrayCollection or if I need to use something like XMLListCollection. Mark --- In flexcoders@yahoogroups.com, Ivan Perez manope...@... wrote: have you ever seen OLAP Cube for flex 3? http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.html Maybe it works. On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusat...@... wrote: Is there a way to filter an ArrayCollection of hierarchical data? So if I have a structure as I layed out below where I have a number of projects in my ArrayCollection, how can I filter on delCreationDate within deliverables/deliverable (there could be multiple deliverables)? I've looked around and can't find much on this. If I can't filter an ArrayCollection in this way, is there another collection I can use that will allow me to do this? Thanks projects project pKey120/pKey projectNameDeployment/pilot/projectName startDate07/01/2008/startDate endDate/endDate actualCompleationDate/actualCompleationDate isOngoing1/isOngoing creationDate3/31/2009/creationDate contactEmail/contactEmail description/description notes/notes actionSteps/actionSteps SOW/SOW extraProjectFalse/extraProject code14129911/code engagementNameICL Comms Internal Comms/engagementName audienceTitle/audienceTitle orderID1/orderID priorityTitle/priorityTitle statusTitleOpen/statusTitle categoryTitleActive/categoryTitle pmNameJay Lindell/pmName leadNameJay Lindell/leadName deliverables deliverable deliverableTitleAITIC: Communication/deliverableTitle estimatedHours1/estimatedHours actualHours1.5/actualHours startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate delCreationDate4/3/2009/delCreationDate statusTitleComplete/statusTitle comptencies competency pKey144/pKey startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate estimatedHours1/estimatedHours actualHours1.5/actualHours comCreationDate4/3/2009/comCreationDate resourceNameMark Pusateri/resourceName competencyTitleWriter/competencyTitle statusTitleComplete/statusTitle /competency /comptencies /deliverable /deliverables /project /projects -- Ivan Perez - Desenvolvimento Tecnológico TecSinapse - www.tecsinapse.com.br 11 9324-0097 / 19 8812-0809
[flexcoders] Re: Getting an error when using a tree as a component
I did the same as you did and it works fine main.mxml: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=700 height=250 borderStyle=solid creationComplete=CallMeNow() mx:Script ![CDATA[ import com.CallTree; public function CallMeNow():void { var t:CallTree = new CallTree(); addChild(t); } ]] /mx:Script /mx:Application CallTree.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ // Initialize the data provider for the Tree. private function initApp():void { firstList.dataProvider = treeDP; } ]] /mx:Script mx:XML id=treeDP node label=Mail node label=Inbox/ node label=Personal Folder node label=Demo/ node label=Personal/ node label=Saved Mail/ node label=bar/ /node node label=Calendar/ node label=Sent/ node label=Trash/ /node /mx:XML mx:Tree id=firstList height=200 width=200 showRoot=false labelField=@label dragEnabled=true dropEnabled=true dragMoveEnabled=true allowMultipleSelection=true creationComplete=initApp();/ /mx:Canvas --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: OK, Here is what I did. I wanted to know if there was a problem with my code or was it the tree stuff. I went to Adobe Live Docs to get a tree example (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe\ lp.htm?context=LiveDocs_Book_Partsfile=dragdrop_081_06.html). I took this code and created a Canvas Component from it. I then created an app and called the code from it. I then called the app and when I click on any of the items in the tree I get this error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.managers::SystemManager/getChildIndex()[C:\autobuild\3.2.0\frameworks\ \projects\framework\src\mx\managers\SystemManager.as:1652] at mx.managers::SystemManager/mouseDownHandler()[C:\autobuild\3.2.0\framewo\ rks\projects\framework\src\mx\managers\SystemManager.as:3439] Here is the code that I used for the component CallTree.mxml: [CODE] ?xml version=1.0? !-- dragdrop\SimpleTreeSelf.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=700 height=250 borderStyle=solid mx:Script ![CDATA[ // Initialize the data provider for the Tree. private function initApp():void { firstList.dataProvider = treeDP; } ]] /mx:Script mx:XML id=treeDP node label=Mail node label=Inbox/ node label=Personal Folder node label=Demo/ node label=Personal/ node label=Saved Mail/ node label=bar/ /node node label=Calendar/ node label=Sent/ node label=Trash/ /node /mx:XML mx:Tree id=firstList height=200 width=200 showRoot=false labelField=@label dragEnabled=true dropEnabled=true dragMoveEnabled=true allowMultipleSelection=true creationComplete=initApp();/ /mx:Application [/CODE] Here is the application that is calling CallTree.mxml [CODE] ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=700 height=250 borderStyle=solid creationComplete=CallMeNow() mx:Script ![CDATA[ import com.callTree; public function CallMeNow():void { var t:callTree = new callTree() addChild(t); } ]] /mx:Script /mx:Application [/CODE] I am not sure what to do here. Thanks for the read, timgerr
RE: [flexcoders] getting only last NumericStepper change event
Often folks listen to focusOut so the person has to leave the control Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ronwagner0001 Sent: Monday, May 18, 2009 10:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getting only last NumericStepper change event I am using a NumericStepper and am looking for a way to turn off sending of the change event while the mouse is down on the arrows. I only want the last event with the ending value. I thought there would be a property to control this since it seems like it would be a common thing to want to do but I can't find one. Am I overlooking something or any known best ways to do this? THanks Ron Wagner
Re: [flexcoders] MVC view and model communication
A couple of techniques to be aware of: 1) Binding functions currentState={computeState(model.username)} (computeState is in the Script block of your MXML and will fire when any of the argument expressions change) 2) Computed properties with custom getters/setters: [Bindable(event=userStateChanged)] public function get userState():String { // return something based on user name } [Bindable(event=userNameChanged)] public function get userName():String { return _userName; } public function set userName(value:String):void { _userName = value; // Should really check that it's different dispatchEvent(new Event(userNameChanged)); dispatchEvent(new Event(userStateChanged)); } On Tue, May 19, 2009 at 12:10 AM, steve horvath flexcod...@stevehorvath.com wrote: I have a view that I would like to change state when a field in my model changes values. Up until now I've been using data binding to link my view and model. It seems like my current situation I will have to dispatch an event from the model and have the view watch it. In the model: A username string that changes occasionally and is sometimes null. In the view: A List - should become unselected if the username becomes null. A State - should change when the username changes values. Do I need to register an event handler in my view? Can I do this somehow through data binding? Or is there another way? ascii
[flexcoders] Foaming at the mouth for Flex4... or Flashbuilder4
BTW, I am going to keep calling myself a flex developer (pays better)... When's the beta coming out? June when? thanks, Patrick
[flexcoders] Re: filter complex arrayCollection
Mark Check into the filterFunction property of the ArrayCollection class. This is how I use it in one section of my code... filterText = text I want to filter on; detailsArrColl.filterFunction = processFilter; public function processFilter(item:Object):Boolean { if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) = 0) { return true; } return false; } HTH Steve --- In flexcoders@yahoogroups.com, Mark mark.pusat...@... wrote: Thanks for the link Ivan... Although that's very cool stuff I don't believe that's what I'm looking for in this case. I'm really just looking to filter an ArrayCollection that goes beyond one level. I'm having a hard time with this so I'm even wondering if I can do it with an ArrayCollection or if I need to use something like XMLListCollection. Mark --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote: have you ever seen OLAP Cube for flex 3? http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\ tml Maybe it works. On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote: Is there a way to filter an ArrayCollection of hierarchical data? So if I have a structure as I layed out below where I have a number of projects in my ArrayCollection, how can I filter on delCreationDate within deliverables/deliverable (there could be multiple deliverables)? I've looked around and can't find much on this. If I can't filter an ArrayCollection in this way, is there another collection I can use that will allow me to do this? Thanks projects project pKey120/pKey projectNameDeployment/pilot/projectName startDate07/01/2008/startDate endDate/endDate actualCompleationDate/actualCompleationDate isOngoing1/isOngoing creationDate3/31/2009/creationDate contactEmail/contactEmail description/description notes/notes actionSteps/actionSteps SOW/SOW extraProjectFalse/extraProject code14129911/code engagementNameICL Comms Internal Comms/engagementName audienceTitle/audienceTitle orderID1/orderID priorityTitle/priorityTitle statusTitleOpen/statusTitle categoryTitleActive/categoryTitle pmNameJay Lindell/pmName leadNameJay Lindell/leadName deliverables deliverable deliverableTitleAITIC: Communication/deliverableTitle estimatedHours1/estimatedHours actualHours1.5/actualHours startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate delCreationDate4/3/2009/delCreationDate statusTitleComplete/statusTitle comptencies competency pKey144/pKey startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate estimatedHours1/estimatedHours actualHours1.5/actualHours comCreationDate4/3/2009/comCreationDate resourceNameMark Pusateri/resourceName competencyTitleWriter/competencyTitle statusTitleComplete/statusTitle /competency /comptencies /deliverable /deliverables /project /projects -- Ivan Perez - Desenvolvimento Tecnológico TecSinapse - www.tecsinapse.com.br 11 9324-0097 / 19 8812-0809
[flexcoders] Re: Flex - Create Application From Database
The problem is that there does not seem to be a free tutorial out there (That I could find). At least with the paid for course you get all the rest as well as what you need. It depends on how much your time is worth. I found the video tutorials worth it to me. YMMV. --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi, Thanks for the link. But I think the courses there requires that you need to enroll and pay up for their courses. I am still having trouble making this Create Application from Database thing to work. Although I managed to get the web service running (for another separate application). I still got a lot more to learn and I am very thankful that this group exists. Kind Regards, Angelo From: valdhor valdhorli...@... To: flexcoders@yahoogroups.com Sent: Friday, 15 May, 2009 2:07:07 Subject: [flexcoders] Re: Flex - Create Application From Database If you still can't get it to work, you may like to look at http://www.lynda. com/home/ DisplayCourse. aspx?lpk2= 437 . There is a course component labeled Using Flex Builder 3's ASP.NET Data Wizard. --- In flexcod...@yahoogro ups.com, valdhor valdhorlists@ ... wrote: I don't use .NET or NorthWind. I would try http://localhost: 12345 or http://localhost: 12345/service. asmx as the server name. Put the database name you want to use in the Database Name field and leave the other fields as is (Flex automatically populates the user name field with sa). Then try clicking the Test Connection button. Flex will try to connect and give you some sort of error if it can't. As I understand it, you should be able to connect to a NorthWind database. HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ wrote: Hi Steve, I am trying to connect to the NorthWind database which I placed in the App_Data folder of my web service. When I run the webservice, it runs in the address: http://localhost: 12345/service. asmx So would I be placing the localhost:12345 as my host url for the database? How do I set the northwind (or any other SQL Server database to run in the localhost for this matter?) By default the username for the SQL Server Express database is sa and password is left blank. Thanks a lot. Regards, Angelo _ _ __ From: valdhor valdhorlists@ To: flexcod...@yahoogro ups.com Sent: Friday, 15 May, 2009 0:04:47 Subject: [flexcoders] Re: Flex - Create Application From Database So, when I do this the window says Simple MySQL Connection- Create a connection to a MySQL Database. At this point you plug in details for your database connection.. . Host URL: The IP address or hostname of your MySQL Database (If it's on your local machine use localhost or 127.0.0.1 or your local machines IP address). Database Name: The database you want to connect to (You will select a table later). User Name: The User Name you use to connect to the database above. Password: The Password you use to connect to the database above. You should then click the Test Connection button to see if Flex can connect to the database with the parameters you have entered. HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi All, I have FB3 on my machine, coupled with VS 2008 Express. When I click on Data | Create Application From Database, I get the Popup WIndow - Create Application From Database. I click on the New button beside the Connection and I am directed to the Create Connection Profile. I then enter the Name for the New Connection and click on Next button.. On the next screen, I have the following fields: Server Name: localhost Database Name User Name Password I cannot figure out what values need to be entered into these fields. Kindly help me sort this out so that I could leverage the database app capability of Flex. Thanks. P.S. When I run my web service application, I am able to connect to it. Inside my web service, I have already defined the Northwind database in the App_Data folder.
[flexcoders] LangRef == FAIL
http://livedocs.adobe.com/flex/3/langref/
RE: [flexcoders] LangRef == FAIL
This is why you download it and view locally. ;) Saves everyone bandwidth too. Jonathon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, May 19, 2009 10:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LangRef == FAIL http://livedocs.adobe.com/flex/3/langref/ inline: image001.jpginline: image002.jpg
RE: [flexcoders] LangRef == FAIL
Use this URL to download the zip file http://livedocs.adobe.com/flex/3/flex3_documentation.zip This still works. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: 19 May 2009 16:36 To: flexcoders@yahoogroups.com Subject: [flexcoders] LangRef == FAIL http://livedocs.adobe.com/flex/3/langref/ Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] ListEventReason.CANCELLED problem
Hello All, I'm having a problem getting the ListEventReason.CANCELLED to fire. I was under the assumption that the ListEventReason.CANCELLED fires when you click outside of the List area but every time I click outside of the list area the only thing that fires is the ListEventReason.OTHER. How can I get the ListEventReason.CANCELLED to work? Here is a code snippet of what I have: mx:Script ![CDATA[ ... public function processData( event:ListEvent ):void { if ( event.reason == ListEventReason.CANCELLED ) { event.preventDefault(); return; } ... } ... ]] /mx:Script mx:VBox ... mx:List id=lstWorksheet width=715 height=610 dataProvider={testList} editable=true itemRenderer=com.blue.test.view.CustomItemRenderer itemEditor=com.blue.test.view.CustomItemEditor itemEditBeginning=startEdit(event) itemEditEnd=processData(event);/ /mx:VBox Any help on understanding this is greatly appreicated. Thank you Blue
Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3
Hi Alex, Well, continued to add complexity in my test case to mock what our real application does when loading modules however, still no problem loading fonts and no need to set the Module.moduleFactory to the SystemManager of the main application. But can still confirm, without doing so on our application modules no text will display... I am stumped. In debugging the test case I can confirm that my module.moduleFactory does not reference the main applications SystemManager. I am concerned that my modules are not being initialized properly and that I could have additional (much harder to fix issues in the future). I don't mind fixing fonts by assigning the module.moduleFactory to the applications SystemManager but only if it is safe. If you have any ideas as to how I could identify why my modules are not initialized properly to use the embedded fonts it would be greatly appreciated. Are there any implications to setting the modules.moduleFactory to reference the main applications SystemManager? Thanks, Greg On Fri, May 15, 2009 at 4:37 PM, Greg Hess flexeff...@gmail.com wrote: Hi Alex, Well, got my scaled down test case, but it is working fine as you said. I don't need to anything special to have my modules inherit the embedded fonts in Label's LinkButtons ect... I must be doing something funny and I will continue and try and find where...and hope to post back next week with my findings. Thanks, have a great weekend! Greg On Fri, May 15, 2009 at 1:14 PM, Alex Harui aha...@adobe.com wrote: Well, glad that worked, but it shouldn't be necessary for LinkButton. If you can post a test case in two 20-line mxml files I'll try to take a look. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Friday, May 15, 2009 8:46 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3 Thanks Alex! Not exactly sure why I don't get ANY automatic behavior even with base Flex controls(LinkButton ect..) but by assigning the main applications SystemManager(IFlexModuleFactory) that has the registered fonts to the loaded modules moduleFactory it is working like a charm. Wow, one line of code fixed it. Once my module is loaded I set the modules moduleFactory property like this: private function onModuleLoaded( event:ModuleEvent ):void { ... module.moduleFactory = Application.appliation.systemManager; } Is this what you meant and is this the right approach? Cheers, Greg On Thu, May 14, 2009 at 7:29 PM, Alex Harui aha...@adobe.com wrote: The key is that there must be code in the same SWF as the font that generates the class that will display the text (which might be from the module). This should be automatic for any Flex control, but if you're using itemrenderers and/or classFactories you'll probably need to use ContextualClassFactory instead. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Thursday, May 14, 2009 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Confused about modules using embedded fonts Flex 3.3 Hi Folks, I have a modular application built on Flex 3.3 SDK and have just introduced some embedded fonts and unfortunately all text is blank in the modules that attempt to use the embedded font. Popup windows displayed from my module shell(main application) work fine. Searching the archive and web I have found much discussion in relation to ActionScript 2 but not much regarding Flex 3 other than this adobe bug(3.2 sdk) http://bugs.adobe.com/jira/browse/SDK-18254 that has the same result (blank text), but in my testing my modules call to Font.enumerateFonts(false); does return my list of embedded fonts so I don't think the work around to register the fonts will help. Does anyone know how to allow a module to use fonts embedded in the main application in Flex 3.3? Do I have to register the embedded font when initializing each module? If my fonts are listed in Font.enumerateFonts(false) does that mean registration is already complete? Any help is much appreciated! Greg -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: filter complex arrayCollection
Thanks, but I'm looking to filter within children, so I need to dig down deeper then the root level. My understaning is the filterFunction will only filter on the top most level. -M --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Mark Check into the filterFunction property of the ArrayCollection class. This is how I use it in one section of my code... filterText = text I want to filter on; detailsArrColl.filterFunction = processFilter; public function processFilter(item:Object):Boolean { if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) = 0) { return true; } return false; } HTH Steve --- In flexcoders@yahoogroups.com, Mark mark.pusateri@ wrote: Thanks for the link Ivan... Although that's very cool stuff I don't believe that's what I'm looking for in this case. I'm really just looking to filter an ArrayCollection that goes beyond one level. I'm having a hard time with this so I'm even wondering if I can do it with an ArrayCollection or if I need to use something like XMLListCollection. Mark --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote: have you ever seen OLAP Cube for flex 3? http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\ tml Maybe it works. On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote: Is there a way to filter an ArrayCollection of hierarchical data? So if I have a structure as I layed out below where I have a number of projects in my ArrayCollection, how can I filter on delCreationDate within deliverables/deliverable (there could be multiple deliverables)? I've looked around and can't find much on this. If I can't filter an ArrayCollection in this way, is there another collection I can use that will allow me to do this? Thanks projects project pKey120/pKey projectNameDeployment/pilot/projectName startDate07/01/2008/startDate endDate/endDate actualCompleationDate/actualCompleationDate isOngoing1/isOngoing creationDate3/31/2009/creationDate contactEmail/contactEmail description/description notes/notes actionSteps/actionSteps SOW/SOW extraProjectFalse/extraProject code14129911/code engagementNameICL Comms Internal Comms/engagementName audienceTitle/audienceTitle orderID1/orderID priorityTitle/priorityTitle statusTitleOpen/statusTitle categoryTitleActive/categoryTitle pmNameJay Lindell/pmName leadNameJay Lindell/leadName deliverables deliverable deliverableTitleAITIC: Communication/deliverableTitle estimatedHours1/estimatedHours actualHours1.5/actualHours startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate delCreationDate4/3/2009/delCreationDate statusTitleComplete/statusTitle comptencies competency pKey144/pKey startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate estimatedHours1/estimatedHours actualHours1.5/actualHours comCreationDate4/3/2009/comCreationDate resourceNameMark Pusateri/resourceName competencyTitleWriter/competencyTitle statusTitleComplete/statusTitle /competency /comptencies /deliverable /deliverables /project /projects -- Ivan Perez - Desenvolvimento Tecnológico TecSinapse - www.tecsinapse.com.br 11 9324-0097 / 19 8812-0809
[flexcoders] AdvancedDataGrid, calling a sort on a column without a hidden header.
How do i duplicate the functionality of of sorting an advancedDatagrid without a header release event. I'd like to sort my IHierarchicalCollectionView recursively. Thanks, Patrick
[flexcoders] Prevent Tooltip From Scrolling
I am using a Tooltip to display the number of Inbox messages. I do this by setting the errorString property of a component and then dispatching a mouseOver event on the component to get the number of messages to show for 60 seconds. The problem I have is how to get the Tooltip to stay next to the component rather than moving when the user scrolls. Thank you in advance for any help, Orville
[flexcoders] Re: filter complex arrayCollection
So you have an ArrayCollection of XML objects that you want to filter on? In the filterFunction just case your array item to XML and use E4X to find the node / attribute that you want to filter on and build it in your filter logic, i.e. logical that determines the true/false return value. Thats why the filterFunction takes an arbitrary object - the array item - because it doesn't know what the object is OR how you want to filter it...you have to supply this logic. You may want to consider the performance of this approach as the number of items in the ArrayCollection grows. Huw --- In flexcoders@yahoogroups.com, Mark mark.pusat...@... wrote: Thanks, but I'm looking to filter within children, so I need to dig down deeper then the root level. My understaning is the filterFunction will only filter on the top most level. -M --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Mark Check into the filterFunction property of the ArrayCollection class. This is how I use it in one section of my code... filterText = text I want to filter on; detailsArrColl.filterFunction = processFilter; public function processFilter(item:Object):Boolean { if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) = 0) { return true; } return false; } HTH Steve --- In flexcoders@yahoogroups.com, Mark mark.pusateri@ wrote: Thanks for the link Ivan... Although that's very cool stuff I don't believe that's what I'm looking for in this case. I'm really just looking to filter an ArrayCollection that goes beyond one level. I'm having a hard time with this so I'm even wondering if I can do it with an ArrayCollection or if I need to use something like XMLListCollection. Mark --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote: have you ever seen OLAP Cube for flex 3? http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\ tml Maybe it works. On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote: Is there a way to filter an ArrayCollection of hierarchical data? So if I have a structure as I layed out below where I have a number of projects in my ArrayCollection, how can I filter on delCreationDate within deliverables/deliverable (there could be multiple deliverables)? I've looked around and can't find much on this. If I can't filter an ArrayCollection in this way, is there another collection I can use that will allow me to do this? Thanks projects project pKey120/pKey projectNameDeployment/pilot/projectName startDate07/01/2008/startDate endDate/endDate actualCompleationDate/actualCompleationDate isOngoing1/isOngoing creationDate3/31/2009/creationDate contactEmail/contactEmail description/description notes/notes actionSteps/actionSteps SOW/SOW extraProjectFalse/extraProject code14129911/code engagementNameICL Comms Internal Comms/engagementName audienceTitle/audienceTitle orderID1/orderID priorityTitle/priorityTitle statusTitleOpen/statusTitle categoryTitleActive/categoryTitle pmNameJay Lindell/pmName leadNameJay Lindell/leadName deliverables deliverable deliverableTitleAITIC: Communication/deliverableTitle estimatedHours1/estimatedHours actualHours1.5/actualHours startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate delCreationDate4/3/2009/delCreationDate statusTitleComplete/statusTitle comptencies competency pKey144/pKey startDate03/30/2009/startDate endDate04/02/2009/endDate actualCompleationDate04/02/2009/actualCompleationDate estimatedHours1/estimatedHours actualHours1.5/actualHours comCreationDate4/3/2009/comCreationDate resourceNameMark Pusateri/resourceName competencyTitleWriter/competencyTitle statusTitleComplete/statusTitle /competency /comptencies /deliverable /deliverables /project /projects -- Ivan Perez - Desenvolvimento Tecnológico TecSinapse - www.tecsinapse.com.br 11 9324-0097 / 19 8812-0809
[flexcoders] Re: AdvancedDataGrid, calling a sort on a column without a hidden header.
Just sort the collection that the grid is bound to. --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: How do i duplicate the functionality of of sorting an advancedDatagrid without a header release event. I'd like to sort my IHierarchicalCollectionView recursively. Thanks, Patrick
[flexcoders] Printing PDF417 barcodes in Flex...
Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Printing PDF417 barcodes in Flex...
Why couldn't you just call the servlet from mx:httpService? What's the output from the servlet? If it's a bitmap graphic file (jpeg, gif, png) you won't need a font. -- Howard Fore, howard.f...@hofo.com The universe tends toward maximum irony. Don't push it. - Jeff Atwood On Tue, May 19, 2009 at 2:59 PM, Laurence MacNeill lmacne...@comcast.netwrote: Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Printing PDF417 barcodes in Flex...
At 03:17 PM 5/19/2009, you wrote: Why couldn't you just call the servlet from mx:httpService? What's the output from the servlet? If it's a bitmap graphic file (jpeg, gif, png) you won't need a font. I didn't know if/how it was possible to call a Java Servlet from a Flex App. Figured it probably was, but that's why I asked this question. Can you give me an example of how that would work? I have no clue how to do such a thing. Thanks, Laurence MacNeill Mableton, Georgia, USA -- Howard Fore, mailto:howard.f...@hofo.comhoward.f...@hofo.com The universe tends toward maximum irony. Don't push it. - Jeff Atwood On Tue, May 19, 2009 at 2:59 PM, Laurence MacNeill mailto:lmacne...@comcast.netlmacne...@comcast.net wrote: Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoohttp://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/joinhttp://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) mailto:flexcoders-unsubscr...@yahoogroups.comflexcoders-unsubscr...@yahoogroups.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: 05/19/09 06:21:00
[flexcoders] How do I do a sort on IHierarchicalCollectionView
By the way, why is the sort different from ICollectionView? This makes this confusing because all my items duplicate... etc. private function sortDataField(value:String):void { //var hd:IHierarchicalCollectionView = IHierarchicalCollectionView(adg.dataProvider); var hd:IHierarchicalCollectionView =adg.dataProvider as IHierarchicalCollectionView; var sort:Sort = new Sort(); sort.fields = [new SortField(id)]; hd.sort = sort; gc.refresh(); } --- In flexcoders@yahoogroups.com, foobone9 foobo...@... wrote: Just sort the collection that the grid is bound to. --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: How do i duplicate the functionality of of sorting an advancedDatagrid without a header release event. I'd like to sort my IHierarchicalCollectionView recursively. Thanks, Patrick
[flexcoders] htmlLoader - saving document HTML - using HTML.htmlText
Hi all, I recently tried to save the html of a webpage I downloaded with my HTMLLoader. When I tried to set the htmlText of an HTML control, the page was not rendered correctly. I presume this is because the links to stylesheets and images and such don't resolve. ColdFusion addresses this with an option in their http tag that will resolve all relative links to absolute ones. Does anyone else think this is the culprit? If so, how to solve?
[flexcoders] Re: How do I do a sort on IHierarchicalCollectionView
I don't think that it is different. IHierarchicalCollectionView extends ICollectionView which is where the sort is defined. --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: By the way, why is the sort different from ICollectionView? This makes this confusing because all my items duplicate... etc. private function sortDataField(value:String):void { //var hd:IHierarchicalCollectionView = IHierarchicalCollectionView(adg.dataProvider); var hd:IHierarchicalCollectionView =adg.dataProvider as IHierarchicalCollectionView; var sort:Sort = new Sort(); sort.fields = [new SortField(id)]; hd.sort = sort; gc.refresh(); } --- In flexcoders@yahoogroups.com, foobone9 foobone9@ wrote: Just sort the collection that the grid is bound to. --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: How do i duplicate the functionality of of sorting an advancedDatagrid without a header release event. I'd like to sort my IHierarchicalCollectionView recursively. Thanks, Patrick
[flexcoders] Query String Parameters in Flex Builder
Is there any way to get Flex Builder to add query string parameters in debug mode? For example, F:\MyProject\bin-debug\myproject.html#param=1. Orville
[flexcoders]
I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
[flexcoders] DataGrid highlight issues
I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
[flexcoders] getting currency symbol to display when loading locale from resource module
For my application, I load a specific locale resource module based on the logged in user's locale. I am trying to configure the en_GB (British) and fr_CA (French Canadian) locales. In order to build my resource module from the command line, I need a properties file. The content of my properties file for the British locale looks like this: # locale/en_GB/FormattingValues.properties THEMECOLOR=0xFF DATE_FORMAT=DD/MM/YY TIME_FORMAT=L:NN A CURRENCY_PRECISION=0 CURRENCY_SYMBOL=£ THOUSANDS_SEPARATOR=, DECIMAL_SEPARATOR=. As you can see, I have the pound symbol for the CURRENCY_SYMBOL. I typed this with ALT-156 When I load this resource module and try to display currency values that have been formatted with the british locale, the pound symbol will not display. Instead I get a square box symbol. It's like the Flash player doesn't recognize the pound symbol. Also, I have a Canadian French locale - I wish to display a blank space as the thousands seperator. So for my fr_CA locale .properties file I have this: # locale/fr_CA/FormattingValues.properties THEMECOLOR=0xFF DATE_FORMAT=DD/MM/YY TIME_FORMAT=L:NN A CURRENCY_PRECISION=0 CURRENCY_SYMBOL=$ THOUSANDS_SEPARATOR= DECIMAL_SEPARATOR=, There is an actual blank space after the '=' sign. When I select the french locale, no space displays. How do I specify these characters in my .properties file? I have tried using HTML entities but every character then displays when my text input or datagrid column is formatted.
RE: [flexcoders] Query String Parameters in Flex Builder
There sure is. Open up your project properties, and go to the Run/Debug Settings menu. Select your driver application, and click the edit button. Uncheck the Use defaults under URL or path to launch, and set it to whatever you want it to be. Jonathon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of creativepragmatic Sent: Tuesday, May 19, 2009 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Query String Parameters in Flex Builder Is there any way to get Flex Builder to add query string parameters in debug mode? For example, F:\MyProject\bin-debug\myproject.html#param=1. Orville inline: image001.jpginline: image002.jpg
[flexcoders] Refreshing issues in Gumbo: Is that the bug or am i doing something wrong?
Hi Guys I am trying to make a simple app in Gumbo(flex 4) but it does not seem to be working, I am just trying to change the color of the a simple rectangle (which is in the form of the path data for the SVG image), I am not sure whats going on here but it does not seem to be working. Am I doing something wrong or is this the bug in the adobe Flex 4? Please let me know if you have any idea, Thanks a lot for your help ?xml version=1.0 encoding=utf-8? s:Skin xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/halo fx:Declarations s:SolidColor id=normalFill color=0x949EA3/ s:SolidColor id=overFill color=0xFF/ s:SolidColor id=downFill color=0x0066FF/ s:SolidColor id=disabledFill color=0x00/ /fx:Declarations fx:Script ![CDATA[ ]] /fx:Script !-- host component -- fx:Metadata [HostComponent(spark.components.Button)] /fx:Metadata !-- states -- s:states s:State name=up / s:State name=over / s:State name=down / s:State name=disabled/ /s:states s:Rect width=100% height=100% s:fill s:SolidColor color=0x00 alpha=0.0/ /s:fill /s:Rect s:Path fill={normalFill} fill.over={overFill} fill.down={downFill} fill.disabled={disabledFill} scaleX=12500 scaleY=12500 data=M0.0021747 0.00326205c0.0021744,0 0.00434941,0 0.00652411,0 0,0.0014495 0,0.00289991 0,0.00434941 -0.0021744,0 -0.00434941,0 -0.00652411,0 0,-0.0014495 0,-0.00289991 0,-0.00434941z/ /s:Skin
[flexcoders] New Flex 3 Component/Application Lifecycle White-paper
Hi All, We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for both component and application development. We discuss in detail how and what code is executed in the Flex SDK and how you can use this to create better and more performant applications in Flex and AIR. Download the free PDF here: http://www.developmentarc.com/site/articles/
[flexcoders] Re: Query String Parameters in Flex Builder
Thank you Jonathon. When I tried this, I got a File not found error. Open up your project properties, and go to the Run/Debug Settings menu. Select your driver application, and click the edit button. Uncheck the Use defaults under URL or path to launch, and set it to whatever you want it to be. Jonathon
[flexcoders] Transition only works once
I don't use transitions often, so I may be missing something. The transition works fine the first time, but the resize is applied instantaneously afterwards. This is part of a VBox-based MXML component. Transition is very simple: mx:transitions mx:Transition fromState= toState=filterView mx:Resize duration=500 target={bottomBox}/ /mx:Transition /mx:transitions The state to which it is applied adds an HBox with several buttons to the the parent VBox. mx:states mx:State id=filterState name=filterView mx:AddChild relativeTo={topBox} position=after mx:target mx:Spacer id=vSpacer height=2/ /mx:target /mx:AddChild mx:AddChild relativeTo={this} position=lastChild mx:target mx:HBox id=bottomBox width=100% !-- Several children here-- /mx:HBox /mx:target /mx:AddChild /mx:State /mx:states Have I done anything particularly dumb here? If not, where should I look to start debugging? TIA,
[flexcoders] How to optimise SWC to its minimal size?
I've created SWC consisting from a single class but class contains a bunch of methods and when I built SWc i found that it is 87Kb. In same time report.xml stated that my class is only 3kb, everything else is garbage consisting from many Flex frameworks classes used directly or indirectly in my main class. So question how to build my own SWC without all redundant classes? What is the reason to keep all that? As I understand when my SWC will be linked in flex Application Flex builder will add only required classes to the result SWF ?
[flexcoders] Pure MVC vs Cairgorm
Hi!!!, which is the best option?
[flexcoders] Looking for ability to know which item I selected when using Lists
Hey there, I am trying to figure out how to get the data (some text) from a list I have set to editable. It is binded to an array of Strings but I can't figure out how to determine which string I have selected to edit. This so that I can compare it to other strings using editEnd and editBegin ListEvents. Any ideas? I know when I add a MouseEvent.Click event listener to the list it the target returned is the text UIcomponent; but this does not work consistently. I am thinking there is an easier way I am missing ... :) Thanks. Anthony
[flexcoders] Dynamic Pod created in a Dashboard
Has anyone had the need to create a dynamic panel/container/pod in a dashboard layout? We have a dashboard where we can minimize/maximize our panels but now we are giving the user the ability to click on something that will then create a new panel that will show up in our dashboard. Has anyone had to do this before? Can they share their examples possibly? We also need to delete the panels and haven't figured this out either. Thank you, TJ
[flexcoders] BlazeDS RemoteObject Performance
( I copy this email from an internal communication I received ) quote Hello, I've found a serious performance problem on an application written on Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can see that the server side method (invoked via RemoteObject on the client side) never executes in more than two threads at the same time. What I mean is that if I fire 5 simultaneous requests to the method using RemoteObject from the flex side, and log when the method is executed and when it returns, I get something like this: 12:00:00 Method Executed 12:00:00 Method Executed 12:00:01 Method Exiting 12:00:01 Method Executed 12:00:04 Method Exiting 12:00:04 Method Executed 12:00:10 Method Exiting 12:00:10 Method Executed 12:00:11 Method Exiting 12:00:13 Method Exiting While on the client side I see that all the 5 invocations were fired at 12:00:00. As you can see, the method tend to take a while to run. But the big problem is that the log suggest that some queuing is happening on the server side, allowing only a maximum of two threads to run in parallel at any given time. I thought it could be a problem with the thread pool of the servlet container, but my Tomcat has the following configuration: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ So I guessed that the limit could be imposed by BlazeDS itself. But haven't found anything on the documentation. Of course, I could be wrong and the problem may be something else. Any ideas? Thanks, Leo /quote Note: The Remote Object destination has application scope, which means that there is only one instance of the Java object per application. Regards, A -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail.
Re: [flexcoders] Pure MVC vs Cairgorm
Depends on your requirements. Personally between those two, I lean more toward PureMVC, although the ideal would be to simply roll your own framework based on only the design patterns you need. On Tue, May 19, 2009 at 12:44 PM, mhbmarcos mhbmar...@yahoo.com.ar wrote: Hi!!!, which is the best option?
Re: [flexcoders] Foaming at the mouth for Flex4... or Flashbuilder4
Hey if you're using the Flex SDK, you still ARE a Flex developer. On Tue, May 19, 2009 at 10:21 AM, djhatrick djhatr...@yahoo.com wrote: BTW, I am going to keep calling myself a flex developer (pays better)... When's the beta coming out? June when? thanks, Patrick
[flexcoders] Re: BlazeDS RemoteObject Performance
I think you need to invest in Live Cycle Data Servies. --- In flexcoders@yahoogroups.com, Aldo Bucchi aldo.buc...@... wrote: ( I copy this email from an internal communication I received ) quote Hello, I've found a serious performance problem on an application written on Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can see that the server side method (invoked via RemoteObject on the client side) never executes in more than two threads at the same time. What I mean is that if I fire 5 simultaneous requests to the method using RemoteObject from the flex side, and log when the method is executed and when it returns, I get something like this: 12:00:00 Method Executed 12:00:00 Method Executed 12:00:01 Method Exiting 12:00:01 Method Executed 12:00:04 Method Exiting 12:00:04 Method Executed 12:00:10 Method Exiting 12:00:10 Method Executed 12:00:11 Method Exiting 12:00:13 Method Exiting While on the client side I see that all the 5 invocations were fired at 12:00:00. As you can see, the method tend to take a while to run. But the big problem is that the log suggest that some queuing is happening on the server side, allowing only a maximum of two threads to run in parallel at any given time. I thought it could be a problem with the thread pool of the servlet container, but my Tomcat has the following configuration: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ So I guessed that the limit could be imposed by BlazeDS itself. But haven't found anything on the documentation. Of course, I could be wrong and the problem may be something else. Any ideas? Thanks, Leo /quote Note: The Remote Object destination has application scope, which means that there is only one instance of the Java object per application. Regards, A -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail.
Re: [flexcoders] MVC view and model communication
Thanks! At least the first one looks like it should work for me. For the second one, I'm a little confused. Do those properties go into the model? How does the view watch for them and respond? ascii On Tue, May 19, 2009 at 8:10 AM, Richard Rodseth rrods...@gmail.com wrote: A couple of techniques to be aware of: 1) Binding functions currentState={computeState(model.username)} (computeState is in the Script block of your MXML and will fire when any of the argument expressions change) 2) Computed properties with custom getters/setters: [Bindable(event=userStateChanged)] public function get userState():String { // return something based on user name } [Bindable(event=userNameChanged)] public function get userName():String { return _userName; } public function set userName(value:String):void { _userName = value; // Should really check that it's different dispatchEvent(new Event(userNameChanged)); dispatchEvent(new Event(userStateChanged)); } On Tue, May 19, 2009 at 12:10 AM, steve horvath flexcod...@stevehorvath.com wrote: I have a view that I would like to change state when a field in my model changes values. Up until now I've been using data binding to link my view and model. It seems like my current situation I will have to dispatch an event from the model and have the view watch it. In the model: A username string that changes occasionally and is sometimes null. In the view: A List - should become unselected if the username becomes null. A State - should change when the username changes values. Do I need to register an event handler in my view? Can I do this somehow through data binding? Or is there another way? ascii
Re: [flexcoders] Pure MVC vs Cairgorm
At 06:55 PM 5/19/2009, you wrote: Depends on your requirements. Personally between those two, I lean more toward PureMVC, although the ideal would be to simply roll your own framework based on only the design patterns you need. So what are these frameworks you speak of, anyway? I keep seeing references to Cairgorm and others, but I have no idea what they'd be used for... Or how... Is it like an add-on to Flex Builder, or something? Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Pure MVC vs Cairgorm
- Original Message - From: mhbmarcos mhbmar...@yahoo.com.ar To: flexcoders@yahoogroups.com Sent: Tuesday, May 19, 2009 6:44 PM Subject: [flexcoders] Pure MVC vs Cairgorm Hi!!!, which is the best option? Would you say a Ferrari is best or a Mini? If you want to impress expensive women, then the Ferrari would do well, but if you want to go shopping and be able to negotiate narrow uneven streets, I'd go for the Mini. As it is with cars, the same follows for software. Some people like PureMVC, some people go with the Adobe-approved Cairngorm. Look them both up on google and check them out.
Re: [flexcoders] Pure MVC vs Cairgorm
- Original Message - From: Laurence MacNeill lmacne...@comcast.net To: flexcoders@yahoogroups.com Sent: Wednesday, May 20, 2009 12:28 AM Subject: Re: [flexcoders] Pure MVC vs Cairgorm At 06:55 PM 5/19/2009, you wrote: Depends on your requirements. Personally between those two, I lean more toward PureMVC, although the ideal would be to simply roll your own framework based on only the design patterns you need. So what are these frameworks you speak of, anyway? I keep seeing references to Cairgorm and others, but I have no idea what they'd be used for... Or how... Is it like an add-on to Flex Builder, or something? No, they are ways for building software that follow the MVC software pattern. Give google a spin. Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Re: BlazeDS RemoteObject Performance
foobone9, Are you saying that this is a known built-in limitation of BlazeDS? Thanks, A On Tue, May 19, 2009 at 6:58 PM, foobone9 foobo...@yahoo.com wrote: I think you need to invest in Live Cycle Data Servies. --- In flexcoders@yahoogroups.com, Aldo Bucchi aldo.buc...@... wrote: ( I copy this email from an internal communication I received ) quote Hello, I've found a serious performance problem on an application written on Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can see that the server side method (invoked via RemoteObject on the client side) never executes in more than two threads at the same time. What I mean is that if I fire 5 simultaneous requests to the method using RemoteObject from the flex side, and log when the method is executed and when it returns, I get something like this: 12:00:00 Method Executed 12:00:00 Method Executed 12:00:01 Method Exiting 12:00:01 Method Executed 12:00:04 Method Exiting 12:00:04 Method Executed 12:00:10 Method Exiting 12:00:10 Method Executed 12:00:11 Method Exiting 12:00:13 Method Exiting While on the client side I see that all the 5 invocations were fired at 12:00:00. As you can see, the method tend to take a while to run. But the big problem is that the log suggest that some queuing is happening on the server side, allowing only a maximum of two threads to run in parallel at any given time. I thought it could be a problem with the thread pool of the servlet container, but my Tomcat has the following configuration: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ So I guessed that the limit could be imposed by BlazeDS itself. But haven't found anything on the documentation. Of course, I could be wrong and the problem may be something else. Any ideas? Thanks, Leo /quote Note: The Remote Object destination has application scope, which means that there is only one instance of the Java object per application. Regards, A -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail. -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail.
RE: [flexcoders] DataGrid highlight issues
Try setting selectedIndex=-1 before you reset it to the correct values. Maybe it thinks certain rows already are drawn? You can set a breakpoint in drawSelectionIndicator to see if it is trying to draw Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Tuesday, May 19, 2009 1:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid highlight issues I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103
[flexcoders] Re: Call a Flex Function by Name
Ah - yes - this looks pretty cool! I'll start digging into it immediately. Thanks for the reference!! --- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote: I would separate the classname out into another argument in your XML, so in your example that's not working, you'd have: menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callbackClass=ProjectProperties callback=setValue arguments=ShowAlertsWindow, true / Then you'd have to dynamically instantiate that class and call the assigned method. I have a couple tutorials on my blog about doing this: http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ The 2nd one deals with data casting which might not be as relevant but I still do the class stuff dynamically. Here's an example of what this might look like for you: var className:Class = Class( getDefinitionByName( getQualifiedClassName( ProjectProperties ) ) ); var function:Function = className[setValue]; function.call(className[or null], parmaters.); FYI, this code is completely untested, just trying to give you an idea. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of edlueze Sent: Tuesday, May 19, 2009 6:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call a Flex Function by Name I'm using a Menu control. Normally I'd catch the Menu's control event and then act on whatever selection the user made with something like a switch block. But I wanted to see if I could be more clever and embed the function name and parameters in the XML Menu data provider itself, like this: mx:XML id=xmlFormMenuOptions Menu id=MenuOptions menuitem id=AddNewChartMenuOption label=Add Chart... callback=AddNewChartButton_click arguments= / menuitem id=RenameChartMenuOption label=Rename Chart... callback=PopUpTextBox arguments=RenameChart, RenameChartButtonTextBox, {nameChartSelected} enabled={selectedChartingPanelTableCell} / menuitem id=DeleteChartMenuOption label=Delete Chart callback=PopUpCheckBox arguments=DeleteChart, DeleteChartButtonCheckBox enabled={selectedChartingPanelTableCell} / menuitem id=RaiseChartOrderMenuOption label=Raise Chart Order callback=RaiseChartOrderButton_click arguments= enabled={RaiseChartOrderButton.enabled} / menuitem id=LowerChartOrderMenuOption label=Lower Chart Order callback=LowerChartOrderButton_click arguments= enabled={LowerChartOrderButton.enabled} / menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callback=ProjectProperties.setValue arguments=ShowAlertsWindow, true / menuitem id=ChartingPanelWhatAmIMenuOption label=What am I? callback=PopUpMessage arguments=ChartingPanelWhatAmIMenuOption, null / menuitem id=HelpMenuOption label=Help callback= / /Menu /mx:XML If you look at each menuitem/ you'll see a 'callback' attribute and an 'arguments' attribute. The arguments are comma-delineated that I need to parse into an Array and scrub: for example, by converting string references into real ones like this: if( this.hasOwnProperty(arg) ) arrayArguments[i] = this[arg]; I then have been successful in using the callLater function like this: callLater(this[callback], arrayArguments); So far so good - it works great! But I've hit a tiny snag. If the function is in a foreign class then everything falls apart. For example, this won't work: callback = ProjectProperties.setValue arguments = ShowAlertsWindow, true Because there is no such thing as this[ProjectProperties.setValue] the callLater function can't handle it. I can easily build a little stub but I'm hoping to keep things clean and elegant. I've been searching for a way to call-by-name in Flex but haven't found one (except for callLater). Is there a way I can do this?
Re: [flexcoders] Adobe Flash Help Urgent
Instead of stabbing in the dark, try installing Fiddler on the Windows client machine. It shows you all the calls any browser makes, the HTTP headers and responses, everything basically. Then compare the results before and after changing the web server configuration. If it is anything like what Guy suggested above, you should be able to see what's causing it. Then you have to work out how to fix it :) On 5/19/09, Ron Wagner r...@wagnertechnologies.com wrote: On May 19, 2009, at 3:49 AM, saritha wrote: I have a web page with external swf file(.swf)in it. The external swf file loads images dynamically. The files are put up in web server. If the web server is not clustered (say it runs in single instance mode) the external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0. If the web server is clustered(say it runs with mulitple instances) the external swf does not load in Internet Explorer 6.0 and Internet Explorer 7.0.But it still loads properly in firefox and safari. Its has become a show stopper issue. Any Help on this would be appreciated. Thanks I've had to add a base href=http://www.full/path/to/ html_document.html to get everything to load on Windows. Have you checked the webserver error logs to see where it wants to grab the missing items from? Ron -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device
RE: [flexcoders] Re: Query String Parameters in Flex Builder
Yeah, this used to work for me but it seems to have broken at some point, not sure when. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of creativepragmatic Sent: Tuesday, May 19, 2009 5:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Query String Parameters in Flex Builder Thank you Jonathon. When I tried this, I got a File not found error. Open up your project properties, and go to the Run/Debug Settings menu. Select your driver application, and click the edit button. Uncheck the Use defaults under URL or path to launch, and set it to whatever you want it to be. Jonathon
[flexcoders] Re: Transition only works once
Try resetting the dimensions of bottomBox back to 0 when you change to the base state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag. -TH --- In flexcoders@yahoogroups.com, jimmy5804 jimmy5...@... wrote: I don't use transitions often, so I may be missing something. The transition works fine the first time, but the resize is applied instantaneously afterwards. This is part of a VBox-based MXML component. Transition is very simple: mx:transitions mx:Transition fromState= toState=filterView mx:Resize duration=500 target={bottomBox}/ /mx:Transition /mx:transitions The state to which it is applied adds an HBox with several buttons to the the parent VBox. mx:states mx:State id=filterState name=filterView mx:AddChild relativeTo={topBox} position=after mx:target mx:Spacer id=vSpacer height=2/ /mx:target /mx:AddChild mx:AddChild relativeTo={this} position=lastChild mx:target mx:HBox id=bottomBox width=100% !-- Several children here-- /mx:HBox /mx:target /mx:AddChild /mx:State /mx:states Have I done anything particularly dumb here? If not, where should I look to start debugging? TIA,
[flexcoders] Re: Looking for ability to know which item I selected when using Lists
Hi Anthony, Use the itemClick event on the List tag. -TH --- In flexcoders@yahoogroups.com, a.scavarelli a.scavare...@... wrote: Hey there, I am trying to figure out how to get the data (some text) from a list I have set to editable. It is binded to an array of Strings but I can't figure out how to determine which string I have selected to edit. This so that I can compare it to other strings using editEnd and editBegin ListEvents. Any ideas? I know when I add a MouseEvent.Click event listener to the list it the target returned is the text UIcomponent; but this does not work consistently. I am thinking there is an easier way I am missing ... :) Thanks. Anthony
[flexcoders] Re: Form validation before submitting...
Just one technique: using AS, throw the validators into an ArrayCollection on creationComplete. Before you submit, loop through the validators and execute the validate() function on each. If one fails, bail out. The docs can show you how to work with ValidationResultEvent. Also remember that all validators can be cast as Validator; regardles of the subclass. -TH --- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: At 08:13 PM 5/18/2009, you wrote: Almost seems like you'd want to loop through the validators instead, huh? -TH Didn't know I could do that... How would I go about doing that? Thanks, Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Re: Call a Flex Function by Name
I've got this working. It's not as universal a solution as it could have been if I'd adopted all of Jake's blogs, but it satisfies the current need. In case anybody else is interested, these were the key elements: The XML Menu data provider (you can see I added the callbackclass to the menuitem/ as Jake suggested, but I didn't figure out how to avoid using the full class path): mx:XML id=xmlFormMenuOptions Menu id=MenuOptions menuitem id=RenameChartMenuOption label=Rename Chart... callback=PopUpTextBox arguments=RenameChart, RenameChartButtonTextBox, {nameChartSelected} enabled={selectedChartingPanelTableCell} / menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callback=setValue callbackclass=Classes.DataManagers.ProjectProperties arguments=ShowAlertsWindow, true / /Menu /mx:XML The Menu control event handler (I stuck with callLater as it seemed to work fine - I didn't check to see if I could pass an array of arguments to a Function variable): private function formMenuButton_click(event:MenuEvent):void { var callback:String = event.it...@callback; var className:String = event.it...@callbackclass; var classDefinition:Class = className ? getDefinitionByName( className ) as Class : undefined; var arguments:String = event.it...@arguments; var arrayArguments:Array = UtilityFunctions.ToArgumentArray(arguments, this); if( callback ) { if( className ) { if( arguments ) { callLater(classDefinition[callback], arrayArguments); } else { callLater(classDefinition[callback]); } } else { if( arguments ) { callLater(this[callback], arrayArguments); } else { callLater(this[callback]); } } } } The ToArgumentArray scrubbing function: public static function ToArgumentArray(arguments:String, container:Object):Array { var arrayArguments:Array = arguments.split(,); //Replace argument strings with object references when the strings represent real objects within this component var i:int = 0; //Argument offset counter for each( var arg:String in arrayArguments ) { //Replace all of the leading spaces in the arguments while( arg.search( ) == 0 ) { var replacePattern:RegExp = /\s/; //Replace the space character (note that the global flag is not set) arg = arg.replace(replacePattern, ); //Replace the first space with a blank character } arrayArguments[i] = arg; //Replace all of the lagging spaces in the arguments while( arg.charAt(arg.length - 1) == ) { arg = arg.substr(0, length - 2); //Replace the last space with a blank character } arrayArguments[i] = arg; //Replace any objects in this with the object reference if( container.hasOwnProperty(arg) ) arrayArguments[i] = container[arg]; //Replace the argument string with a reference to the object //Replace the null string with null if( arg == null ) arrayArguments[i] = null; //Replace the argument string the null operator i++; } return arrayArguments; } --- In flexcoders@yahoogroups.com, edlueze edlu...@... wrote: Ah - yes - this looks pretty cool! I'll start digging into it immediately. Thanks for the reference!! --- In flexcoders@yahoogroups.com, Jake Churchill jake@ wrote: I would separate the classname out into another argument in your XML, so in your example that's not working, you'd have: menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callbackClass=ProjectProperties callback=setValue arguments=ShowAlertsWindow, true / Then you'd have to dynamically instantiate that class and call the assigned method. I have a couple tutorials on my blog about doing this: http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ The 2nd one deals with data casting which might not be as relevant but I still do the class stuff dynamically. Here's an example of what this might look like for you: var className:Class = Class( getDefinitionByName( getQualifiedClassName( ProjectProperties ) ) ); var function:Function = className[setValue]; function.call(className[or null], parmaters.); FYI, this code is completely untested, just trying to give you an idea. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of edlueze Sent: Tuesday, May 19, 2009 6:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call a Flex Function by Name I'm using a Menu control. Normally I'd catch the Menu's control event and then act on whatever selection the user made with something like a switch block. But I wanted to see if I
RE: [flexcoders] ListEventReason.CANCELLED problem
Cancelled is only for hitting ESC. Every other kind of activity commits the data in the editor. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Blue Sent: Tuesday, May 19, 2009 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ListEventReason.CANCELLED problem Hello All, I'm having a problem getting the ListEventReason.CANCELLED to fire. I was under the assumption that the ListEventReason.CANCELLED fires when you click outside of the List area but every time I click outside of the list area the only thing that fires is the ListEventReason.OTHER. How can I get the ListEventReason.CANCELLED to work? Here is a code snippet of what I have: mx:Script ![CDATA[ ... public function processData( event:ListEvent ):void { if ( event.reason == ListEventReason.CANCELLED ) { event.preventDefault(); return; } ... } ... ]] nb! sp; /mx:Script ! nbs p; mx:VBox ... mx:List id=lstWorksheet width=715 height=610 dataProvider={testList} editable=true itemRenderer=com.blue.test.view.CustomItemRenderer itemEditor=com.blue.test.view.CustomItemEditor nbs! p; itemEditBeginning=startEdit(event) itemEditEnd=processData(event);/ /mx:VBox Any help on understanding this is greatly appreicated. Thank you Blue
RE: [flexcoders] Confused about modules using embedded fonts Flex 3.3
You're gonna have to debug through the part of UITextField that checks with the EmbeddedFontRegistry. You should see it find the font in the main app in your test app. What does it do for the actual app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Tuesday, May 19, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3 Hi Alex, Well, continued to add complexity in my test case to mock what our real application does when loading modules however, still no problem loading fonts and no need to set the Module.moduleFactory to the SystemManager of the main application. But can still confirm, without doing so on our application modules no text will display... I am stumped. In debugging the test case I can confirm that my module.moduleFactory does not reference the main applications SystemManager. I am concerned that my modules are not being initialized properly and that I could have additional (much harder to fix issues in the future). I don't mind fixing fonts by assigning the module.moduleFactory to the applications SystemManager but only if it is safe. If you have any ideas as to how I could identify why my modules are not initialized properly to use the embedded fonts it would be greatly appreciated. Are there any implications to setting the modules.moduleFactory to reference the main applications SystemManager? Thanks, Greg On Fri, May 15, 2009 at 4:37 PM, Greg Hess flexeff...@gmail.commailto:flexeffect%40gmail.com wrote: Hi Alex, Well, got my scaled down test case, but it is working fine as you said. I don't need to anything special to have my modules inherit the embedded fonts in Label's LinkButtons ect... I must be doing something funny and I will continue and try and find where...and hope to post back next week with my findings. Thanks, have a great weekend! Greg On Fri, May 15, 2009 at 1:14 PM, Alex Harui aha...@adobe.commailto:aharui%40adobe.com wrote: Well, glad that worked, but it shouldn't be necessary for LinkButton. If you can post a test case in two 20-line mxml files I'll try to take a look. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui -Original Message- From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Greg Hess Sent: Friday, May 15, 2009 8:46 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3 Thanks Alex! Not exactly sure why I don't get ANY automatic behavior even with base Flex controls(LinkButton ect..) but by assigning the main applications SystemManager(IFlexModuleFactory) that has the registered fonts to the loaded modules moduleFactory it is working like a charm. Wow, one line of code fixed it. Once my module is loaded I set the modules moduleFactory property like this: private function onModuleLoaded( event:ModuleEvent ):void { ... module.moduleFactory = Application.appliation.systemManager; } Is this what you meant and is this the right approach? Cheers, Greg On Thu, May 14, 2009 at 7:29 PM, Alex Harui aha...@adobe.commailto:aharui%40adobe.com wrote: The key is that there must be code in the same SWF as the font that generates the class that will display the text (which might be from the module). This should be automatic for any Flex control, but if you're using itemrenderers and/or classFactories you'll probably need to use ContextualClassFactory instead. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Greg Hess Sent: Thursday, May 14, 2009 11:02 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Confused about modules using embedded fonts Flex 3.3 Hi Folks, I have a modular application built on Flex 3.3 SDK and have just introduced some embedded fonts and unfortunately all text is blank in the modules that attempt to use the embedded font. Popup windows displayed from my module shell(main application) work fine. Searching the archive and web I have found much discussion in relation to ActionScript 2 but not much regarding Flex 3 other than this adobe bug(3.2 sdk) http://bugs.adobe.com/jira/browse/SDK-18254 that has the same result (blank text), but in my testing my modules call to Font.enumerateFonts(false); does return my list of embedded fonts so I don't think the work around to register the fonts will help. Does anyone know how to allow a module to use fonts
Re: [flexcoders] getting currency symbol to display when loading locale from resource module
flexcoder2008 wrote: # locale/en_GB/FormattingValues.properties THEMECOLOR=0xFF DATE_FORMAT=DD/MM/YY TIME_FORMAT=L:NN A CURRENCY_PRECISION=0 CURRENCY_SYMBOL=� THOUSANDS_SEPARATOR=, DECIMAL_SEPARATOR=. As you can see, I have the pound symbol for the CURRENCY_SYMBOL. I typed this with ALT-156 no i can't see, its garbaged. is that properties file utf-8 encoded? and in unicode the codepoint for the pound sign is 163 (0x00A3). When I load this resource module and try to display currency values that have been formatted with the british locale, the pound symbol will not display. Instead I get a square box symbol. It's like the Flash player doesn't a box means the whatever can't render that symbol using the given font (except in buzzword which wandered off the reservation all by it's lonesome). either a minor encoding issue or wrong font. a major encoding issue results in questions marks being displayed.
[flexcoders] Re: Transition only works once
Tim, thanks a lot for making the effort to help. Got partial success. Using heightX properties, I was able to get the forward transition to work, but I wasn't able to get the reverse transition (not shown in code below) to work using heightX props, putting it in a sequence w/ add/remove child, manually setting values, or anything else I tried. So it expands nice and slow, then snaps shut on close. Any other ideas? If I have time, I may try doing w/ effects at the AS level to see if I can get a better handle on it. --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Try resetting the dimensions of bottomBox back to 0 when you change to the base state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag. -TH --- In flexcoders@yahoogroups.com, jimmy5804 jimmy5804@ wrote: I don't use transitions often, so I may be missing something. The transition works fine the first time, but the resize is applied instantaneously afterwards. This is part of a VBox-based MXML component. Transition is very simple: mx:transitions mx:Transition fromState= toState=filterView mx:Resize duration=500 target={bottomBox}/ /mx:Transition /mx:transitions The state to which it is applied adds an HBox with several buttons to the the parent VBox. mx:states mx:State id=filterState name=filterView mx:AddChild relativeTo={topBox} position=after mx:target mx:Spacer id=vSpacer height=2/ /mx:target /mx:AddChild mx:AddChild relativeTo={this} position=lastChild mx:target mx:HBox id=bottomBox width=100% !-- Several children here-- /mx:HBox /mx:target /mx:AddChild /mx:State /mx:states Have I done anything particularly dumb here? If not, where should I look to start debugging? TIA,
[flexcoders] DataGridColumn backgroundColor bug?
Hi guys, This seems like an awfully simple thing for nobody to have picked up before, so hopefully someone can point me in the right direction as to what I'm doing wrong. I have gone way heaps hardcore and simplified the issue to the following using SDK3.2: mx:DataGrid showHeaders=false mx:columns mx:DataGridColumn backgroundColor=#00 / /mx:columns /mx:DataGrid With either showHeaders=false or headerHeight=0 the code is generating the following error found in DataGrid's drawColumnBackground function: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::DataGrid/drawColumnBackground()[C:\autobuild\3.2.0\framewor\ ks\projects\framework\src\mx\controls\DataGrid.as:3012] at mx.controls::DataGrid/drawLinesAndColumnGraphics()[C:\autobuild\3.2.0\fr\ ameworks\projects\framework\src\mx\controls\DataGrid.as:3311] at mx.controls::DataGrid/drawLinesAndColumnBackgrounds()[C:\autobuild\3.2.0\ \frameworks\projects\framework\src\mx\controls\DataGrid.as:3207] at mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0\frameworks\\ projects\framework\src\mx\controls\DataGrid.as:1506] at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2\ .0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as\ :3280] at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\fram\ eworks\projects\framework\src\mx\managers\LayoutManager.as:622] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\fr\ ameworks\projects\framework\src\mx\managers\LayoutManager.as:677] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\framework\ s\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\ \projects\framework\src\mx\core\UIComponent.as:8568] Line 3012 is: var xx:Number = columnHeader.rendererArray[columnIndex].x There appears to be no rendererArray. Can someone shed some light on this? Is it something fixed in 3.3 (which is something I'm unable to test at this point)? MrB
Re: [flexcoders] Re: BlazeDS RemoteObject Performance
You should be able to exhaust your tomcat thread pool using BlazeDS, something else is going wrong. -Josh 2009/5/20 Aldo Bucchi aldo.buc...@gmail.com foobone9, Are you saying that this is a known built-in limitation of BlazeDS? Thanks, A On Tue, May 19, 2009 at 6:58 PM, foobone9 foobo...@yahoo.comfoobone9%40yahoo.com wrote: I think you need to invest in Live Cycle Data Servies. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aldo Bucchi aldo.buc...@... wrote: ( I copy this email from an internal communication I received ) quote Hello, I've found a serious performance problem on an application written on Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can see that the server side method (invoked via RemoteObject on the client side) never executes in more than two threads at the same time. What I mean is that if I fire 5 simultaneous requests to the method using RemoteObject from the flex side, and log when the method is executed and when it returns, I get something like this: 12:00:00 Method Executed 12:00:00 Method Executed 12:00:01 Method Exiting 12:00:01 Method Executed 12:00:04 Method Exiting 12:00:04 Method Executed 12:00:10 Method Exiting 12:00:10 Method Executed 12:00:11 Method Exiting 12:00:13 Method Exiting While on the client side I see that all the 5 invocations were fired at 12:00:00. As you can see, the method tend to take a while to run. But the big problem is that the log suggest that some queuing is happening on the server side, allowing only a maximum of two threads to run in parallel at any given time. I thought it could be a problem with the thread pool of the servlet container, but my Tomcat has the following configuration: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ So I guessed that the limit could be imposed by BlazeDS itself. But haven't found anything on the documentation. Of course, I could be wrong and the problem may be something else. Any ideas? Thanks, Leo /quote Note: The Remote Object destination has application scope, which means that there is only one instance of the Java object per application. Regards, A -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail. -- Aldo Bucchi U N I V R Z Office: +56 2 795 4532 Mobile:+56 9 7623 8653 skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail. INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL Este mensaje está destinado sólo a la persona u organización al cual está dirigido y podría contener información privilegiada y confidencial. Si usted no es el destinatario, por favor no distribuya ni copie esta comunicación, por email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente vía e-mail. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] New Flex 3 Component/Application Lifecycle White-paper
Will check it out, cheers. -Josh 2009/5/20 jamesdevelopmentarc ja...@developmentarc.com Hi All, We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for both component and application development. We discuss in detail how and what code is executed in the Flex SDK and how you can use this to create better and more performant applications in Flex and AIR. Download the free PDF here: http://www.developmentarc.com/site/articles/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/