RE: [flexcoders] Re: Cursor change problem
Does this work for Flex 1.5? Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sreeni_r Sent: 25 November 2005 11:31 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cursor change problem Hi Allen, Along with useHandCursor, buttonMode property also needs to be set to true to show the hand cursor. It is property available on Sprite hence available with all UI components in Flex. -Sreenivas. --- In flexcoders@yahoogroups.com, "Allen Manning" <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I saw the below post on Flexcoders, but didn't see an answer. Anyone know > how to use the hand cursor? > > > > Is there a reference to the hand cursor to use in setCursor - `hand' or > something like that? I couldn't find it in the docs. > > > > Best, > > Allen > > > Probably an easy question for those who know... > > I'm trying to change the default cursor to a hand cursor when hovering > over a component. The component is based on the VBox. > > I want to use the Flexs hand-cursor icon, which appears within > MovieClips components e.g. Buttons when "useHandCursor" property is > set, and not have to create my own icon. > > Can't find this in the docs. > > Is there something like "setHandCursor()" and "removeHandCursor()" > within flex? > > setCursor(cursorSymbol:String, priorityLevel:Number, xOffset:Number, > yOffset:Number) > > All help is appreciated. > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005 > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005 Yahoo! Groups Sponsor ~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cursor change problem
Hello, I saw the below post on Flexcoders, but didn’t see an answer. Anyone know how to use the hand cursor? Is there a reference to the hand cursor to use in setCursor - ‘hand’ or something like that? I couldn’t find it in the docs. Best, Allen Probably an easy question for those who know... I'm trying to change the default cursor to a hand cursor when hoveringover a component. The component is based on the VBox. I want to use the Flexs hand-cursor icon, which appears withinMovieClips components e.g. Buttons when "useHandCursor" property isset, and not have to create my own icon. Can't find this in the docs. Is there something like "setHandCursor()" and "removeHandCursor()"within flex? setCursor(cursorSymbol:String, priorityLevel:Number, xOffset:Number,yOffset:Number) All help is appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005
RE: [flexcoders] Disabling dragging on
Does this mean you want to disable the component? If so, you may just want to set the 'enabled' property from UIComponent. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sandip_patil01 Sent: 18 October 2005 14:20 To: flexcoders@yahoogroups.com Subject: [flexcoders] Disabling dragging on Hi All, with allowTrackClick="false" I am able to restrict user, to move slider on mouse click. But I want to restrict user for dragging with mouse. How to do this ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DataGridColumn display issue
Darron, I agree that re-use is a good argument for this approach. I guess it is down to personal preference. Best, allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: 14 October 2005 20:30 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGridColumn display issue Allen Manning wrote: >Custom cell renderer might be a bit OTT for this, labelFunction would be a >good start. > > A cell renderer for an object path is reusable, whereas with using a label function you have to create a new function for each path. It may be over the top for this particular case, but it's a "once and done" thing. Example: All 3 of the above columns can use a single "label with a path" cell renderer, as opposed to having to create 3 different label functions to return the different paths individually. In a small project this probably isn't a big deal (maintaining a long list of label functions), but in a large project it could get cumbersome quickly. I agree that labelFunction is easier to create, but easiest isn't always best. :-) -d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Why you shouldn't set creationPolicy="all" to solve your deferred instantiation problems
I'll try and get some simple test cases together. Thanks, allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: 14 October 2005 17:24 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why you shouldn't set creationPolicy="all" to solve your deferred instantiation problems On 10/14/05, Allen Manning <[EMAIL PROTECTED]> wrote: > Repeater in a VBox in a view stack. Layout gets messed up on auto, but seems to draw a bit more properly with an all. Do you have a test case to reproduce this bug? At least we can make sure it doesn't happen in 2.0! > ViewStack in a ViewStack, the outer view stack can't see all of the inner view stack's children. _All_ of the inner viewstack's children? Or just the ones that haven't been created? You have to wait until they are created, and the "childrenCreated" event will tell you when. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DataGridColumn display issue
Custom cell renderer might be a bit OTT for this, labelFunction would be a good start. Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: 14 October 2005 14:10 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGridColumn display issue Husain Kitabi wrote: > I tried to use >headerText="Classgroup Venue" /> > headerText="Classgroup Capacity"/> > headerText="Module"/> > > > The first 2 columns are fine. But module.moduleName - it does not > display anything. Has anybody done something like this. Pl advise. You need to create a custom cell renderer. The default cell renderer only allows you to go "1 deep" into an object, so you have to createa cell renderer that can understand column names that use a path to get deeper into a object. Heres some partial code to give you an idea.. the entire cell renderer will be found in Flex By Example with sample usage. This code would go inside a "PathCellRenderer.as" file that creates a Label component to render text. private function setValue( str:String, item:Object, selection:String ):Void { if ( item == undefined ) { label.visible = false; return; } label.visible = true; // Split up the complex path into pieces var path = getDataLabel().split("."); // "dot down" to the item to display var toDisplay = item[ path[0] ]; for ( var i:Number = 1; i < path.length; i++ ) { toDisplay = toDisplay[ path[i] ]; } label.text = toDisplay; } Flex by example will ship on October 24th, I believe. :-) -d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Why you shouldn't set creationPolicy="all" to solve your deferred instantiation problems
Gordon, The reason why I normally set creation policy to all is to work around flex bugs. Two of them this week: Repeater in a VBox in a view stack. Layout gets messed up on auto, but seems to draw a bit more properly with an all. ViewStack in a ViewStack, the outer view stack can’t see all of the inner view stack’s children. Sure, I want things to run fast, but when strange rendering bugs and undefined elements get in the way of getting something done, setting creation policy to all is a common work around. Best, allen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: 13 October 2005 21:56 To: flexcoders@yahoogroups.com Cc: Flex IMD Subject: [flexcoders] Why you shouldn't set creationPolicy="all" to solve your deferred instantiation problems > On the accordion tag, set creationPolicy=”all”. > Setting a creationPolicy="All" on the accordian container will cause all of the "children" to be created when the accordian is created. In my post two days ago I tried to explain why setting creationPolicy="all" is not The Right Way to solve problems caused by deferred instantiation. I'll try to work with our doc folks to do a better job of explaining the right technique in the future. In the meantime, here's a repeat of what I wrote then. - Gordon I'd like to suggest that it's better to learn how to make deferred instantiation your friend than to simply turn it off. The point of deferred instantiation is to not waste time at app startup creating controls that you don't need yet. If you had a ViewStack with 500 views, it probably wouldn't be a good idea to create the controls on all 500 of them at startup, when only one view is initially visible. The only good reason to set creationPolicy="all", and therefore increase startup time, is to decrease the small navigation delays when you switch from view to view. If these delays are acceptable, then you should allow the views to do deferred creation of their controls, as they were designed to do. So how do you set the initial state of controls that undergo deferred instantiation? You use the appropriate events to set their state AFTER they have been created. For example, you could use 'initialize' or 'creationComplete' events on the the controls themselves. Or you could use events like 'childrenCreated' or 'childrenCreationComplete' on the view that you navigated to. Once you realize that every control in the app doesn't get created at startup, it's always possible -- and not difficult -- to design your app so that you don't push information prematurely into controls that don't exist yet. Instead, it's typical to store information into a "data model" of some kind that is independent of the controls that display that information. When the controls get created, they pull the information in from the data model. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Thursday, October 13, 2005 12:57 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Any explanation as to why this would happen(Question about accordions) This is due to a feature of Flex known as Deferred Instantiation. My post on Tuesday entitled "Re: Unable to refer controls in Accordion !" addressed the issue. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, October 13, 2005 11:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Any explanation as to why this would happen(Question about accordions) I am having some problems getting a button on one panel of an accordion to change the textinput box on another panel of an accordion and I was wondering if someone can give me some idea as to what could be causing this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 -- No virus found in this outgoi
RE: [flexcoders] Problem setting combobox selectedIndex
Andrew, If you databind a function to the selectedIndex property of your combobox, then as the data loads into your combo the function can return the correct value. Make sure you pass in as a param of this function the dataprovider of the combo so the function fires as data comes in. HTH, allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: 12 October 2005 15:32 To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem setting combobox selectedIndex I have a tab navigator, with 2 tabs, each with a canvas. Each tab has its own combo box with its own list of locations. When certain values are entered else where on the screen, I want to automatically change the selected item in each combo box. I have this working as I want for the combo box in the 1st tab which is visible, but it does not display the correct value for the combo box on the second tab, which is not visible. How can I get the non-visible combo box to have the correct selected item. My logic seems to fail because initially the 2nd combo box is not visible. Once it has been made visible my logic works regardless of wheter it is currently visible or not. Thanks Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005 Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit Test Runner inside of a flex application
Hello Flexcoders, Has anyone been able to get the FlexUnit test runner working along-side a flex application? Basically I would like to run tests against a loaded application. I tried putting the test runner into a TitleWindow and then open the title window via a pop-up. When the pop-up opens, Flash crashes. I put it in the root and all runs fine. xmlns:flexunit="http://www.iterationtwo.com/flexunit" xmlns:mx="http://www.macromedia.com/2003/mxml"> { tests.AllTests.suite.() } I don’t want the runner to act as a stand-alone application I want it to perform tests against my existing application. For example //automate some work being done in my UI, then check assertTrue( mx.core.Application.application.navigationBar.selectedIndex == 4 ); Thanks for any help, allen -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005
RE: [flexcoders] Datagrid bug, two rows selected at the same time.
Manish, Thanks for responding. We have written our own Filtering Data Provider, but I'm sure they are very similar. I have found a work-around to the problem. If I set the selectedIndex property during the change event of the datagrid like this: mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: 10 October 2005 17:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Datagrid bug, two rows selected at the same time. On 10/10/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > … > > selectedIndex=" { helper.getSelectedIndexInDatagrid( mFilterProvider.filteredData ) }" > > 'filteredData' is a property of my filtering data provider. I databind to that so that the function gets called as the data comes in from the server side, or when client – side filtering happens. [...] > The data loads, the first item is selected and the selecteItem property of the view gets populated. If I try to select another row in the datagrid, the 0th selected row stays selected. Two rows highlighted at the same time. Note: the mutlipleSelect property is not set to true. I move my mouse over the 0th row and the selection disappears and all acts like normal. Are you using the FilteredDataProvider class that I had written? Sorry I've been so bad at supporting this. People have reported problems with DataGrid selection when a FilteredDataprovider is used. I don't have time to look into it right away, but here's a hint: you might want to look into the DataProvider class (which FilteredDataProvider extends). Last time I fixed a problem by overriding the getItemID method from the API, so see if that works for you. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005 Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Please Help!!!!
Alfie, You need to talk to the server for that. I would look in the docs under Remote Object. Best, al -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AlfrED Sent: 10 October 2005 03:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Please Help I am new with flexand I am having problem understanding how I can communicate with the database (msyql). If there is someone that could help me understand how I can insert data to the database (mysql) using coldfusion and flexI would really appreciate it. A sample code will be great! Thank you in advance Alfie -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005 Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Datagrid bug, two rows selected at the same time.
Hello Flexcoders, If I could only give you a simple snippet which could reproduce this Mandelbug, it certainly would make my life easier. But alas, I can only give you a textual explanation with the hope that someone can help shed some light on this. Basically I have a datagrid in which I would like to have the first item selected after the data loads. I achieve this by databinding a function on the selectedIndex property like this: … selectedIndex=" { helper.getSelectedIndexInDatagrid( mFilterProvider.filteredData ) }" /> ‘filteredData’ is a property of my filtering data provider. I databind to that so that the function gets called as the data comes in from the server side, or when client – side filtering happens. getSelectedIndexInDatagrid is a rather straightforward function. It returns 0, and also sets a selectedItem property in the main view so that a details panel can render the data of the 0th item. It looks something like this: /** * Return back an item to the datagrid during databinding. * */ public function getSelectedIndexInDatagrid(filteredData):Number { view.selectedItem = filteredData.dataProvider.getItemAt( 0 ); return 0; } This works, mostly… The data loads, the first item is selected and the selecteItem property of the view gets populated. If I try to select another row in the datagrid, the 0th selected row stays selected. Two rows highlighted at the same time. Note: the mutlipleSelect property is not set to true. I move my mouse over the 0th row and the selection disappears and all acts like normal. I need to solve this bug, and have tried numerous workarounds to no avail. Any suggestions will be warmly received. Best, al -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005
RE: [flexcoders] Re: doLater and deletePopUp with Cairngorm
I thought it was an issue with un-registering view helpers. Ok cool. Best, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: 20 September 2005 14:57 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: doLater and deletePopUp with Cairngorm Thanks for all the help. =) It turns out this solution (http://groups.yahoo.com/group/flexcoders/message/17858) and the one shown 4/5 of the way down this page (http://www.jessewarden.com/archives/flex/) is exactly what I needed, just in case someone else is having similar issues. --- In flexcoders@yahoogroups.com, "Allen Manning" <[EMAIL PROTECTED]> wrote: > Fire up the Flash log: > > http://www.macromedia.com/devnet/flex/articles/client_debug_03.html > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of fowleryj > Sent: 15 September 2005 15:22 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: doLater and deletePopUp with Cairngorm > > Allen, > > Nothing in WEB-INF\flex\logs\flex.log has anything of that nature-- is > there another log I should look at? > > Thanks > > --- In flexcoders@yahoogroups.com, "Allen Manning" <[EMAIL PROTECTED]> > wrote: > > Are any exceptions being thrown in the flash log from Cairngorm? > > > > In particular anything about ViewHelpers? > > > > Best, > > Allen > > > > -Original Message- > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of fowleryj > > Sent: 15 September 2005 14:26 > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] doLater and deletePopUp with Cairngorm > > > > Hi everyone, > > > > I am writing an app using the Cairngorm framework, and I am having a > > problem getting a pop-up to close. Here's the scenario: > > > > - I have a Main.mxml and a MainViewHelper.as > > - Upon clicking one of many " Search" buttons in > > Main.mxml, the MainViewHelper.as calls the EventBroadcaster and > > invokes an OpenSearchWindowCommand.as > > - The OpenSearchWindowCommand.as decides what kind of search is being > > performed, and makes the following call (code in <> is dependent upon > > which search window is being opened): > > > > ModelLocator.Window = > > mx.managers.PopUpManager.createPopUp(_root, , true, > > {deferred: true}); > > ModelLocator.Window.centerPopUp(); > > > > - Now, within the pop-up window, the user performs a search, and the > > search results populate a DataGrid in the pop-up window ("") > > - The user will now select one row in the DataGrid as the item of > > choice, whose information will be stored in the ModelLocator so that > > it can be displayed on the main screen (Main.mxml) > > > > *** This was working fine when I had item selection implemented such > > that the user would simply click on a row and then click a "Select > > Item" button. I would have ViewHelper.as's selectItem() > > function call its closePopUp() function [which consists solely of the > > line "view.deletePopUp();" (view referring to .mxml)] > > after storing the object representing the selected item in the > > ModelLocator. *** > > > > - However, now I need to implement item selection via double-click and > > the Enter key. This is where my problems start... bear with me-- I'm > > going to cover all the cases I've tested... > > > > 1) When I leave all the code as it is and select an item via the Enter > > key, all is well. The pop-up window closes, and the main window is > > populated with the selected item's details. > > 2) When I leave all the code as it is and select an item via a > > double-click, things go awry. The pop-up window closes, but none of > > the selected item's information is shown on the main screen. Also, > > once you are back to the main screen, the app will only let you click > > one search button once more, and then everything on the screen is > > unavailable, and you have to hit Refresh to start all over. > > 3) I decided to try the "doLater" function within > > ViewHelper.as's closePopUp() function. I tried various > > permutations of the line of code below, and all of them had the same > > result (whether selection was performed via double-click or Enter > > key): the pop-up window would not close, but I could see that the main > > window beneath the pop-up was populated with the selected item's > > information. > > &
RE: [flexcoders] Capturing Events from Cell Renderers
Thanks Omar. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 16 September 2005 14:31 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Capturing Events from Cell Renderers You would have to register manualy using addEventListener. You could do this on your tag On 9/16/05, Allen Manning <[EMAIL PROTECTED]> wrote: Omar, Thanks for the reply. Would I need to register that event with my list, won't the complier complain of I do this: Or do I need to add the event listener programmatically? Thanks, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 16 September 2005 13:59 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Capturing Events from Cell Renderers Hi Allen, I usualy do what you say on my cell renders. What I usualy do is dispatch the event tru your list controll, in your case the dataGrid. Remember on the cell render you have a reference of the list which is the variable listOwner. So you could do this listOwner.dispatchEvent({type:"MyEvent",data:"MyData"}); Hope it helps! Omar Ramos System Developer On 9/16/05, Allen Manning < [EMAIL PROTECTED]> wrote: Hello, I want to dispatch and event from a cell renderer and call it in the view which has the parent datagrid. Any advice on how to do this? I don't need code, just a brief explanation would do. J Many thanks, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005
RE: [flexcoders] Capturing Events from Cell Renderers
Omar, Thanks for the reply. Would I need to register that event with my list, won’t the complier complain of I do this: Or do I need to add the event listener programmatically? Thanks, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 16 September 2005 13:59 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Capturing Events from Cell Renderers Hi Allen, I usualy do what you say on my cell renders. What I usualy do is dispatch the event tru your list controll, in your case the dataGrid. Remember on the cell render you have a reference of the list which is the variable listOwner. So you could do this listOwner.dispatchEvent({type:"MyEvent",data:"MyData"}); Hope it helps! Omar Ramos System Developer On 9/16/05, Allen Manning <[EMAIL PROTECTED]> wrote: Hello, I want to dispatch and event from a cell renderer and call it in the view which has the parent datagrid. Any advice on how to do this? I don't need code, just a brief explanation would do. J Many thanks, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005
[flexcoders] Capturing Events from Cell Renderers
Hello, I want to dispatch and event from a cell renderer and call it in the view which has the parent datagrid. Any advice on how to do this? I don’t need code, just a brief explanation would do. J Many thanks, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005
RE: [flexcoders] 'show' event called on creation complete or init?
Hello Steve, What is the creationPolicy on the TabNav? If it is all, then all of the containers will be rendered, that might be it. Best, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steve Cox Sent: 16 September 2005 09:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] 'show' event called on creation complete or init? Morning all, Ok Situation I’m having at the moment is the show event on a form is being called when I don’t believe it should be. I’ve a tabnav containing 8 sections, one of those sections I need to be able to jump to from other sections so the children of this is being created using createChildren(). For some reason however without actually clicking on the tab to view this form the show is still getting called. Am I missing something ? Steve -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005
RE: [flexcoders] Re: doLater and deletePopUp with Cairngorm
Fire up the Flash log: http://www.macromedia.com/devnet/flex/articles/client_debug_03.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: 15 September 2005 15:22 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: doLater and deletePopUp with Cairngorm Allen, Nothing in WEB-INF\flex\logs\flex.log has anything of that nature-- is there another log I should look at? Thanks --- In flexcoders@yahoogroups.com, "Allen Manning" <[EMAIL PROTECTED]> wrote: > Are any exceptions being thrown in the flash log from Cairngorm? > > In particular anything about ViewHelpers? > > Best, > Allen > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of fowleryj > Sent: 15 September 2005 14:26 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] doLater and deletePopUp with Cairngorm > > Hi everyone, > > I am writing an app using the Cairngorm framework, and I am having a > problem getting a pop-up to close. Here's the scenario: > > - I have a Main.mxml and a MainViewHelper.as > - Upon clicking one of many " Search" buttons in > Main.mxml, the MainViewHelper.as calls the EventBroadcaster and > invokes an OpenSearchWindowCommand.as > - The OpenSearchWindowCommand.as decides what kind of search is being > performed, and makes the following call (code in <> is dependent upon > which search window is being opened): > > ModelLocator.Window = > mx.managers.PopUpManager.createPopUp(_root, , true, > {deferred: true}); > ModelLocator.Window.centerPopUp(); > > - Now, within the pop-up window, the user performs a search, and the > search results populate a DataGrid in the pop-up window ("") > - The user will now select one row in the DataGrid as the item of > choice, whose information will be stored in the ModelLocator so that > it can be displayed on the main screen (Main.mxml) > > *** This was working fine when I had item selection implemented such > that the user would simply click on a row and then click a "Select > Item" button. I would have ViewHelper.as's selectItem() > function call its closePopUp() function [which consists solely of the > line "view.deletePopUp();" (view referring to .mxml)] > after storing the object representing the selected item in the > ModelLocator. *** > > - However, now I need to implement item selection via double-click and > the Enter key. This is where my problems start... bear with me-- I'm > going to cover all the cases I've tested... > > 1) When I leave all the code as it is and select an item via the Enter > key, all is well. The pop-up window closes, and the main window is > populated with the selected item's details. > 2) When I leave all the code as it is and select an item via a > double-click, things go awry. The pop-up window closes, but none of > the selected item's information is shown on the main screen. Also, > once you are back to the main screen, the app will only let you click > one search button once more, and then everything on the screen is > unavailable, and you have to hit Refresh to start all over. > 3) I decided to try the "doLater" function within > ViewHelper.as's closePopUp() function. I tried various > permutations of the line of code below, and all of them had the same > result (whether selection was performed via double-click or Enter > key): the pop-up window would not close, but I could see that the main > window beneath the pop-up was populated with the selected item's > information. > > Here's the line I've been messing with to no avail: > view.doLater(this, "deletePopUp()"); > I've also tried: > view.doLater(_root, "deletePopUp()"); > view.doLater(_parent, "deletePopUp()"); > view.doLater(view, "deletePopUp()"); > _root.doLater(this, "deletePopUp()"); > _root.doLater(view, "deletePopUp()"); > _root.doLater(_root, "deletePopUp()"); > _root.doLater(_parent, "deletePopUp()"); > _parent.doLater(this, "deletePopUp()"); > _parent.doLater(view, "deletePopUp()"); > _parent.doLater(_root, "deletePopUp()"); > _parent.doLater(_parent, "deletePopUp()"); > > Also, in case it helps at all, I am checking for double-clicks and > Enter key presses in the following way: > > //--- > > public static function wasEnterKeyPressed(keyPressed):Boolean { > if(keyPressed.code == 13){ > return true; > } else { > return false; >
RE: [flexcoders] doLater and deletePopUp with Cairngorm
Are any exceptions being thrown in the flash log from Cairngorm? In particular anything about ViewHelpers? Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: 15 September 2005 14:26 To: flexcoders@yahoogroups.com Subject: [flexcoders] doLater and deletePopUp with Cairngorm Hi everyone, I am writing an app using the Cairngorm framework, and I am having a problem getting a pop-up to close. Here's the scenario: - I have a Main.mxml and a MainViewHelper.as - Upon clicking one of many " Search" buttons in Main.mxml, the MainViewHelper.as calls the EventBroadcaster and invokes an OpenSearchWindowCommand.as - The OpenSearchWindowCommand.as decides what kind of search is being performed, and makes the following call (code in <> is dependent upon which search window is being opened): ModelLocator.Window = mx.managers.PopUpManager.createPopUp(_root, , true, {deferred: true}); ModelLocator.Window.centerPopUp(); - Now, within the pop-up window, the user performs a search, and the search results populate a DataGrid in the pop-up window ("") - The user will now select one row in the DataGrid as the item of choice, whose information will be stored in the ModelLocator so that it can be displayed on the main screen (Main.mxml) *** This was working fine when I had item selection implemented such that the user would simply click on a row and then click a "Select Item" button. I would have ViewHelper.as's selectItem() function call its closePopUp() function [which consists solely of the line "view.deletePopUp();" (view referring to .mxml)] after storing the object representing the selected item in the ModelLocator. *** - However, now I need to implement item selection via double-click and the Enter key. This is where my problems start... bear with me-- I'm going to cover all the cases I've tested... 1) When I leave all the code as it is and select an item via the Enter key, all is well. The pop-up window closes, and the main window is populated with the selected item's details. 2) When I leave all the code as it is and select an item via a double-click, things go awry. The pop-up window closes, but none of the selected item's information is shown on the main screen. Also, once you are back to the main screen, the app will only let you click one search button once more, and then everything on the screen is unavailable, and you have to hit Refresh to start all over. 3) I decided to try the "doLater" function within ViewHelper.as's closePopUp() function. I tried various permutations of the line of code below, and all of them had the same result (whether selection was performed via double-click or Enter key): the pop-up window would not close, but I could see that the main window beneath the pop-up was populated with the selected item's information. Here's the line I've been messing with to no avail: view.doLater(this, "deletePopUp()"); I've also tried: view.doLater(_root, "deletePopUp()"); view.doLater(_parent, "deletePopUp()"); view.doLater(view, "deletePopUp()"); _root.doLater(this, "deletePopUp()"); _root.doLater(view, "deletePopUp()"); _root.doLater(_root, "deletePopUp()"); _root.doLater(_parent, "deletePopUp()"); _parent.doLater(this, "deletePopUp()"); _parent.doLater(view, "deletePopUp()"); _parent.doLater(_root, "deletePopUp()"); _parent.doLater(_parent, "deletePopUp()"); Also, in case it helps at all, I am checking for double-clicks and Enter key presses in the following way: //--- public static function wasEnterKeyPressed(keyPressed):Boolean { if(keyPressed.code == 13){ return true; } else { return false; } } //--- private static var timestamp:Date; public static function wasMouseButtonDoubleClicked(event):Boolean { var now = new Date(); if((now.getTime() - timestamp.getTime()) < 375){ return true; } else { timestamp = new Date(); return false; } } Any suggestions would be greatly appreciated! =) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 Yahoo! Groups Sponsor ~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
RE: [flexcoders] How to properly use dispatchEvent
Jeremy, Why would you want to skip a step in your bubbling? Best, Allen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jcrane Sent: 15 September 2005 14:30 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to properly use dispatchEvent Yes, I have the MetaData setup. It actually is working the way I expect it to, I just wanted to see if there is a way use dispatchEvent() to go directly from the grandchild -> grandparent rather then from child -> parent -> grandparent. Thanks, Jeremy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005 Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] dispatchEvent with parameter
Hey np. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: 22 August 2005 16:00 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dispatchEvent with parameter Wow, It's working! Thanks a lot Allen! :) On 8/22/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stanislav Zayarsky > Sent: 22 August 2005 15:15 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] dispatchEvent with parameter > > Dear Flex Coders, > > I have next small issue: I don't know how to dispatchEvent with > parameter from *.as custom component to Flex. > > Actually I know how to send parameter from component, it should look like > this: > > link.dispatchEvent({type:"eventName",param:"Hello World"}); > > But I don't know how to receive the parameter in mxml! > > I'm writing smth like this: > > > And it show me error: There is no property with the name "param". > > Can anybody help me? > > Best regards > Stanislav > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hpg8vgd/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124730317/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] dispatchEvent with parameter
-Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: 22 August 2005 15:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] dispatchEvent with parameter Dear Flex Coders, I have next small issue: I don't know how to dispatchEvent with parameter from *.as custom component to Flex. Actually I know how to send parameter from component, it should look like this: link.dispatchEvent({type:"eventName",param:"Hello World"}); But I don't know how to receive the parameter in mxml! I'm writing smth like this: And it show me error: There is no property with the name "param". Can anybody help me? Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12h4o5i68/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124728482/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm woes =\
A left tab nav singleton? Maybe there are some Singleton UI management classes which are used to build the UI dynamically rather than using good 'ole MXML. I would love to see the arguments as to why that is a good way to go... Maybe they are dynamically building the UIs from some other XML. :-? I wonder how easy it is to layout views using this approach. Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Niklas Richardson Sent: 21 August 2005 23:49 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairngorm woes =\ Hi Nate, It looks like your missing the LeftTabNavigator class from your app. So, yes, you are probably missing some code from the user classes directory or from your app directory. See where the class LeftTabNavigator.as exists on the app that works then replicate on the app that doesn't work. HTH Regards Niklas On 18/08/05, Nate Nielsen <[EMAIL PROTECTED]> wrote: > > Hi all, > > Having a tough time with a cairngorm app that's been inherited. I didn't > write the cairngorm adaptation, so I'm a bit lost. This is what we're > getting : > > > Error > C:\Inetpub\wwwroot\bidfly\com\bidfly\view\BrowseViewHelper.as:100 > There is no method with the name 'getInstance'. > > > > 99: function showView(Void):Void{ > 100: var nav:LeftTabNavigator=LeftTabNavigator.getInstance(); > 101: nav.selectedIndex = nav.getChildIndex(UIObject(view)); > > > The odd part about it is that the same code works on another server, or the > same server but some setup changes were made. > > Is it possible I need to include some of the framework into the user classes > area or something? > > Any help anyone can provide would be greatly appreciated and I'll paypal ya > so you're next round of brews are on me! > > > Thanks, > > -Nate > > -- > Flexcoders Mailing List > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > YAHOO! GROUPS LINKS > > > Visit your group "flexcoders" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > -- Niklas Richardson Prismix Ltd Flex and ColdFusion Experts! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12h6ghdj5/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124705526/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call
Steven, I think you are right. My point was more about breaking them into VOs first, rather then piping the whole query back direct. Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster Sent: 19 August 2005 14:10 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call I'd take a very different view on this; if you have a business need to pass back a collection of data, that collection of data must have some "semantic" business meaning. Perhaps it is "initialisation data" or "customer overview" or "customer portfolio" or "dashboard summary" or something similar. A "dashboard summary" might be a list of recent orders, a list of sales by territory and a summary of invoices owed. So ... I'd create a business object - let's call it DashboardSummaryVO - and that would contain an array of OrderVO (recent orders), an array of TerritorySalesVO (sales by territory - probably a business object that by composition contains a further array of SalesVO objects) and an array of InvoiceVOs (for oustanding invoices). I'd then return that DashboardSummaryVO from my service, which encapsulates in business/object terms, the data that is being returned to the client. Furthermore, the code that picks apart the DashboardSummaryVO and updates your model/whatever will have infinitely more clarity for this object model. Flex is the technology, but Object Oriented design is the paradigm (I hate people that use that word too), so be mindful of creating a well-defined object model. Make sense ? Steven -- Steven Webster Technical Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: 19 August 2005 13:19 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call Darius, I don’t know, passing back an uber array feels a bit monolithic (but maybe good for performance?). Why not break them down into different Array’s of Value Objects. For example: EmployeeListVO – array of Employee VOs InvoiceListVO – array of Invoice VOs FooListVO – array of Foo VOs Now you have the fine grained control of just asking for one or all of them. And you can do what you want with each. We represent our VOs as CFCs. This allows you to type the package path in the returnType attribute of your CFCs. Queries and Structures are not typed, you could get anything back and ColdFusion won’t report any problems. How do you check for a well formed Struct or a well formed Query? You might also want to look at the advantages of automatic object conversion into ActionScript. You could have a 1:1 mapping between FooVO.cfc and FooVO.as. Hope that helps, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 19 August 2005 06:42 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call Why not return an arrray containing recordsets and then setting the recordsets from the array as dataproviders to your controls by actionscript as follows: resultArray looks like: [0] Recordset1 (an array of resultobjects from query 1) [1] Recordset2 (an array of resultobjects from query 2) [2] Recordset3 (an array of resultobjects from query 3) …. And: myGrid.dataProvider = resultArray[0]; myOtherGrid.dataProvider = resultArray[1]; … -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of coldfs Sent: 19. elokuuta 2005 3:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call Hi, My Flex app connects to a large ColdFusion application. When I make calls from Flex via RO to CF, I n
RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call
Darius, I don’t know, passing back an uber array feels a bit monolithic (but maybe good for performance?). Why not break them down into different Array’s of Value Objects. For example: EmployeeListVO – array of Employee VOs InvoiceListVO – array of Invoice VOs FooListVO – array of Foo VOs Now you have the fine grained control of just asking for one or all of them. And you can do what you want with each. We represent our VOs as CFCs. This allows you to type the package path in the returnType attribute of your CFCs. Queries and Structures are not typed, you could get anything back and ColdFusion won’t report any problems. How do you check for a well formed Struct or a well formed Query? You might also want to look at the advantages of automatic object conversion into ActionScript. You could have a 1:1 mapping between FooVO.cfc and FooVO.as. Hope that helps, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 19 August 2005 06:42 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call Why not return an arrray containing recordsets and then setting the recordsets from the array as dataproviders to your controls by actionscript as follows: resultArray looks like: [0] Recordset1 (an array of resultobjects from query 1) [1] Recordset2 (an array of resultobjects from query 2) [2] Recordset3 (an array of resultobjects from query 3) …. And: myGrid.dataProvider = resultArray[0]; myOtherGrid.dataProvider = resultArray[1]; … -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of coldfs Sent: 19. elokuuta 2005 3:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it possible to return multiple recordsets to Flex from one Remote Object call Hi, My Flex app connects to a large ColdFusion application. When I make calls from Flex via RO to CF, I need to return more than one recordset in order to populate my various datagrids. I know how to return one recordset as an Array of Structures, but what if I have 5 different querries that have 5 different recordsets. How does one deal with this? Many thanks for any clarification one can give. Darius -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 18/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 18/08/2005
[flexcoders] Testing Flex Applications
Hello Flex Coders, I’m using FlexUnit to do unit testing of my Flex applications. The QA team that I’m working with would like to use a screen-reader style tool to check the state of the Flash application and set it up in regressions. Do any tools exist that do this type of regression testing. If so, has anyone used them? Many thanks for any help or ideas, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005
RE: [flexcoders] Dinamically adding itens to a grid
Title: Dinamically adding itens to a grid Hello Michael, You should use the DataProvider API to get the databinding to fire. HTH, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel Bertrand Sent: 15 August 2005 19:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Dinamically adding itens to a grid Hi all ! I'm new at the list and a new flex coder. I'm trying to add GridRows to a Grid using the following code: function addFilterCondition(){ var fieldName = new ComboBox(); var operation = new TextInput(); var condition = new TextInput(); var addButton = new Button(); var removeButton = new Button(); var row = new GridRow(); row.createChild(mx.controls.ComboBox,"",""); row.createChild(mx.controls.TextInput,"",""); row.createChild(mx.controls.TextInput,"",""); row.createChild(mx.controls.Button,"",""); row.createChild(mx.controls.Button,"",""); grid.createChild(row); grid.layoutChildren(); } I called the function above from a "click" event of a button, but no GridRow has been add to the Grid. Did I miss something ? Is my code right ? Thanks in advance ! Michel. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005
RE: [flexcoders] Cairgorm command question.
Omar, I think 'onFault' or 'onStatus' is a method of the Responder. Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Omar Ramos Sent: 10 August 2005 18:10 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairgorm command question. Hi guys I have a simple question. Does my command need to have the logic to manage the exceptiosn I recive from remoting and decide what to do depending on the exception? or does that belong on the view helper? Thanks for any feedback you can give with this. Omar Ramos -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12h05rub7/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123702622/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Caret positioning problem
Mika, Have you looked at: Selection.setSelection(stringLength,stringLength) HTH, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 10 August 2005 13:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Caret positioning problem Hi, I’m trying to set the caret to the end of the textfield. I have a keyUp event handler that adds the dot “.” automatically for the text entered. The problem is that when the dot is added by actionscript the caret stays behind the added dot while typing, so the dot gets misplaced and the typing comes out wrong. How can I position the caret AFTER the autoinserted dot? I’ve tried to fool around with the Selection class functions but none of it seems to help…. Here is an example of the handler I’d like to use: function onKeyUp( event ) { if( MyTextField.text.length == 2 ) { MyTextField.text = MyTextField.text + "."; // HOW TO POSITION THE CARET HERE SO THAT IT COMES OUT LIKE THIS ON TEXTFIELD: “myenteredtext.CARET_BLINKING_HERE??? } } -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Filtering Dataprovider with Large Datasets
Hello Flex Coders, I want to be able to expand the Type-ahead filtering concept of a filtering custom dataprovider to a dataset of about 5,000 items. I’m in the early stages of planning this and am thinking of a combination of an Implicit Paging Dataprovider (aka Matt Chotin’s large datasets blog) and a text filtering dataprovider. This is how I’m thinking of tackling the problem: talk to the server in the beginning of the filter, and then switch to client side filtering when the filtered dataset is down to one page. Has anyone tried this before? Any suggestions before I go down this path? Is Flex2 DG going to help me accomplish this any easier? Thanks for any ideas or comments, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Fastest Hardware for Flex compilation
> Or can I compile once and save the swf to be distributed to the clients? James, To the best of my knowledge, once the SWF is compiled it is just delivered to clients directly without needing to recompile every time. As for distribution, Macromedia is the best to answer that. Every time I compile with mxmlc it says my SWF will time out after one day because I'm using the developer addition locally. I would assume for production the swf can be used legally on one, and only one, dual processor box per Flex license. HTH, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Sent: 08 August 2005 17:57 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Allen, I got a question for you. I can understand the problem in development about having to recompile on every load, however should I need to recompile every time in production? Or can I compile once and save the swf to be distributed to the clients? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Friday, August 05, 2005 4:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Brian, Thanks so much for such a complete explanation. Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Deitte Sent: 05 August 2005 16:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Some answers and suggestions in regards to compilation speed: - the best hardware to use is probably whatever is best for the JVM you are using. I don't know of and don't think there's any real recommended solutions out there, other than "whatever is fastest". - similarly, one thing that helps compilation speed would be to try a different JVM (different version or even a different implementation... it has been quite awhile since my JRun days so I haven't paid as much attention to this, but back then it paid to try out IBMs JVM or JRockit). Garbage collection settings are also helpful to tweak. If you're using mxmlc.exe, the JVM settings are in bin/jvm.config. - the compiler isn't multi-threaded when it is used from the command-line. It is multi-threaded when used via the browser, but only for allowing multiple compilations to happen at once. - one reason the server is slow to start up because it takes awhile for mx.swc and other SWCs to load. This is one reason why compiling from the command-line is slower, since this loading has to happen on each compilation. - I just checked and we aren't doing incremental compilation from the command-line in a way I thought we were. The way is through something called SWOs. As far as I can tell, this doesn't work from the command-line. Because of this, I would recommend setting cache-swos to false in the flex-config.xml used when compiling from the command-line. While this speeds things up when using the server, from the command-line this is just saved a whole lot of information that isn't being used. - you can get a broad idea of where time is being spent through the unsupported, just-for-the-curious setting of "-Dtrace.benchmark" in the JVM arguments. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Friday, August 05, 2005 3:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Eric, Thanks for the background on this. I agree that it does seem much slower than standard mxml page compilation. Any idea if it is multi-threaded? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Raymond Sent: 05 August 2005 15:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Fastest Hardware for Flex compilation As an aside, I'll mention some things that you probably know: - If you let the Flex server compile the app as the result of hitting an mxml page, it compiles incrementally ... which is very fast. Of course this doesn't work well via ant (you can use the tag, but there's no easy way to check for errors). - Startup time for the compiler seems farily high. If you hve more than one app to compile, it's better to compile them in one fell swoop (e.g., We compile three flex apps in about the sam time as it take to compile just the largest app app alone!) - Personally we use the incremental server based compilation during daily development and standalone ant based compilation for distribution builds. > > On 05/08/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my flex compilation time down to as little as > possibl
RE: [flexcoders] how to add items to the dragsource?
Douglas, Are you sure that DS is actually a Data Provider? I think it would exhibit that behaviour if you were attaching dynamic properties onto an Object. Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 08 August 2005 17:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] how to add items to the dragsource? I'm trying to add items to a dragsource on th efly. var DS = event.dragSource.dataForFormat("items"); DS.addItem(objectitem); alert(DS.length); It adds it according to the alert, but nothing is changed in the display. In other words, the dragproxy image thingy is not updated. Is this possible? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hf6ssml/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123529548/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Fastest Hardware for Flex compilation
Brian, Thanks so much for such a complete explanation. Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Deitte Sent: 05 August 2005 16:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Some answers and suggestions in regards to compilation speed: - the best hardware to use is probably whatever is best for the JVM you are using. I don't know of and don't think there's any real recommended solutions out there, other than "whatever is fastest". - similarly, one thing that helps compilation speed would be to try a different JVM (different version or even a different implementation... it has been quite awhile since my JRun days so I haven't paid as much attention to this, but back then it paid to try out IBMs JVM or JRockit). Garbage collection settings are also helpful to tweak. If you're using mxmlc.exe, the JVM settings are in bin/jvm.config. - the compiler isn't multi-threaded when it is used from the command-line. It is multi-threaded when used via the browser, but only for allowing multiple compilations to happen at once. - one reason the server is slow to start up because it takes awhile for mx.swc and other SWCs to load. This is one reason why compiling from the command-line is slower, since this loading has to happen on each compilation. - I just checked and we aren't doing incremental compilation from the command-line in a way I thought we were. The way is through something called SWOs. As far as I can tell, this doesn't work from the command-line. Because of this, I would recommend setting cache-swos to false in the flex-config.xml used when compiling from the command-line. While this speeds things up when using the server, from the command-line this is just saved a whole lot of information that isn't being used. - you can get a broad idea of where time is being spent through the unsupported, just-for-the-curious setting of "-Dtrace.benchmark" in the JVM arguments. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Friday, August 05, 2005 3:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation Eric, Thanks for the background on this. I agree that it does seem much slower than standard mxml page compilation. Any idea if it is multi-threaded? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Raymond Sent: 05 August 2005 15:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Fastest Hardware for Flex compilation As an aside, I'll mention some things that you probably know: - If you let the Flex server compile the app as the result of hitting an mxml page, it compiles incrementally ... which is very fast. Of course this doesn't work well via ant (you can use the tag, but there's no easy way to check for errors). - Startup time for the compiler seems farily high. If you hve more than one app to compile, it's better to compile them in one fell swoop (e.g., We compile three flex apps in about the sam time as it take to compile just the largest app app alone!) - Personally we use the incremental server based compilation during daily development and standalone ant based compilation for distribution builds. > > On 05/08/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my flex compilation time down to as little as > possible. > > > We are using mxmlc via Ant to compile our flex code. What machine > spec > > > would be the best to build these swfs fast. Would a dual proc help at > > all? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 0
RE: [flexcoders] Re: Fastest Hardware for Flex compilation
Eric, Thanks for the background on this. I agree that it does seem much slower than standard mxml page compilation. Any idea if it is multi-threaded? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Raymond Sent: 05 August 2005 15:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Fastest Hardware for Flex compilation As an aside, I'll mention some things that you probably know: - If you let the Flex server compile the app as the result of hitting an mxml page, it compiles incrementally ... which is very fast. Of course this doesn't work well via ant (you can use the tag, but there's no easy way to check for errors). - Startup time for the compiler seems farily high. If you hve more than one app to compile, it's better to compile them in one fell swoop (e.g., We compile three flex apps in about the sam time as it take to compile just the largest app app alone!) - Personally we use the incremental server based compilation during daily development and standalone ant based compilation for distribution builds. > > On 05/08/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my flex compilation time down to as little as > possible. > > > We are using mxmlc via Ant to compile our flex code. What machine > spec > > > would be the best to build these swfs fast. Would a dual proc help at > > all? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hvs41dd/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123276691/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] equivalent to cfdump in Flex?
Ghislain, There are many AS dump object functions. I would check out these two resources as a start: http://www.macromedia.com/devnet/flex/articles/client_debug_05.html http://www.richinternet.de/blog/index.cfm?entry=EB3BA9D6-A212-C5FA-A9B1B5DB4 BB7F555 HTH, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard Sent: 05 August 2005 11:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] equivalent to cfdump in Flex? Is there an equivalent to a cfdump in Flex? I am trying to display the content of an object. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12h24tgs3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123262125/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Fastest Hardware for Flex compilation
I have 1.5 gigs of memory and still have loads free when the compilation is happening. Would a second processor assist in mxmlc compilation? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Niklas Richardson Sent: 05 August 2005 10:17 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fastest Hardware for Flex compilation Lots of CPUs and lots of memory! :) On 05/08/05, Allen Manning <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm trying to get my flex compilation time down to as little as possible. > We are using mxmlc via Ant to compile our flex code. What machine spec > would be the best to build these swfs fast. Would a dual proc help at all? > > > > Thanks, > > Allen > > www.prismix.com/ > > > > -- > Flexcoders Mailing List > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > YAHOO! GROUPS LINKS > > > Visit your group "flexcoders" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > > > -- > Outgoing mail is certified Virus Free. > Checked by AVG Anti-Virus (http://www.grisoft.com). > Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 > -- Niklas Richardson Prismix Ltd Flex and ColdFusion Experts! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hb7vuls/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123259360/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy. ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Fastest Hardware for Flex compilation
Hello, I’m trying to get my flex compilation time down to as little as possible. We are using mxmlc via Ant to compile our flex code. What machine spec would be the best to build these swfs fast. Would a dual proc help at all? Thanks, Allen www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005
RE: [flexcoders] Form Control focus and Default Button
Thanks jeff. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 18:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Form Control focus and Default Button That might require a bit of javaScript to make sure the browser has focus, im not sure that there is much you could do within flex to get that. At 12:52 PM 7/28/2005, you wrote: >Jeff, > >Thanks so much for this. Is there any way that I can set it up so I don't >need to click - in to the page. So I could just hit refresh and then enter >and the form is submitted? > >Allen >www.prismix.com/ > > >-Original Message- >From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of Jeff Tapper >Sent: 28 July 2005 17:39 >To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com >Subject: Re: [flexcoders] Form Control focus and Default Button > >I've got it working, just made a few changes to your code: > * I got a handle on the focus manager before setting focus > * defaultButton as attribute of Form, not panel. > >Otherwise, all is well. > > > >http://www.macromedia.com/2003/mxml"; > creationComplete="checkLoginFormForSelection();"> > > > > > > > > > > > > > label="Login" id="login"/> > > > >At 12:04 PM 7/28/2005, Allen Manning wrote: > >Hello Flexcoders, > > > >I'm working on a simple login form and attempting to accomplish the >following: > > > >+ Assign a default button to login so after page loads and you hit enter > >the form submits, no need to click in to the page. > >+ Assign selection to the first of the two text fields that have no text, > >otherwise focus should be on the button. > > > >I have made a few attempts but I have not been able to get it all working, > >only some of the functionality here and there. > > > >Thanks for any help, > >Allen > ><http://www.prismix.com/>www.prismix.com/ > > > > > >http://www.macromedia.com/2003/mxml"; > > initialize="checkLoginFormForSelection();"> > > > > > > > > > > > > > > > > > > > > > > > label="Login" id="login"/> > > > > > > > > > > > > > >-- > >Flexcoders Mailing List > >FAQ: > ><http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>http://gr >oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > >Search Archives: > ><http://www.mail-archive.com/flexcoders%40yahoogroups.com>http://www.mail-a >rchive.com/flexcoders%40yahoogroups.com > > > > > > > > > >-- > >YAHOO! GROUPS LINKS > > > >* Visit your group > > "<http://groups.yahoo.com/group/flexcoders>flexcoders" on the web. > >* > >* To unsubscribe from this group, send an email to: > >* > > ><mailto:[EMAIL PROTECTED]>flexcode r >[EMAIL PROTECTED] > > > >* > >* Your use of Yahoo! Groups is subject to the > > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service. > > > > > >-- > > > >-- > >Outgoing mail is certified Virus Free. > >Checked by AVG Anti-Virus (http://www.grisoft.com). > >Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 > > > >-- >Flexcoders Mailing List >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com >Yahoo! Groups Links > > > > > > > >-- >Incoming mail is certified Virus Free. >Checked by AVG Anti-Virus (http://www.grisoft.com). >Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 > > >-- >Outgoing mail is certified Virus Free. >Checked by AVG Anti-Virus (http://www.grisoft.com). >Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 > > > > >-- >Flexcoders Mailing List >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com >Yahoo! Groups Links > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search
RE: [flexcoders] Form Control focus and Default Button
Jeff, Thanks so much for this. Is there any way that I can set it up so I don't need to click - in to the page. So I could just hit refresh and then enter and the form is submitted? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 17:39 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: Re: [flexcoders] Form Control focus and Default Button I've got it working, just made a few changes to your code: * I got a handle on the focus manager before setting focus * defaultButton as attribute of Form, not panel. Otherwise, all is well. http://www.macromedia.com/2003/mxml"; creationComplete="checkLoginFormForSelection();"> At 12:04 PM 7/28/2005, Allen Manning wrote: >Hello Flexcoders, > >I'm working on a simple login form and attempting to accomplish the following: > >+ Assign a default button to login so after page loads and you hit enter >the form submits, no need to click in to the page. >+ Assign selection to the first of the two text fields that have no text, >otherwise focus should be on the button. > >I have made a few attempts but I have not been able to get it all working, >only some of the functionality here and there. > >Thanks for any help, >Allen ><http://www.prismix.com/>www.prismix.com/ > > >http://www.macromedia.com/2003/mxml"; > initialize="checkLoginFormForSelection();"> > > > > > > > > > > > label="Login" id="login"/> > > > > > > >-- >Flexcoders Mailing List >FAQ: ><http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>http://gr oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >Search Archives: ><http://www.mail-archive.com/flexcoders%40yahoogroups.com>http://www.mail-a rchive.com/flexcoders%40yahoogroups.com > > > > >-- >YAHOO! GROUPS LINKS > >* Visit your group > "<http://groups.yahoo.com/group/flexcoders>flexcoders" on the web. >* >* To unsubscribe from this group, send an email to: >* > <mailto:[EMAIL PROTECTED]>flexcoder [EMAIL PROTECTED] > >* >* Your use of Yahoo! Groups is subject to the > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service. > > >-- > >-- >Outgoing mail is certified Virus Free. >Checked by AVG Anti-Virus (http://www.grisoft.com). >Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Form Control focus and Default Button
Hello Flexcoders, I’m working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen www.prismix.com/ initialize="checkLoginFormForSelection();"> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005
RE: [flexcoders] Form visibility question
Hello Jeff, Check out the DynamicFormItem component from the I2 Flex book - databind visible to an expression. It's great, we us it all of the time. Hope this helps, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman Sent: 27 July 2005 21:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Form visibility question We've got a project that has the following behavior. When a particular form item is answered a certain way, another form item should "turn on" on the page. A common example is choosing "Other" in a radio group turns on a text box for inputting what "Other" is. Right now, we've got ActionScript turning the visibility of the form items on and off depending on answers to previous questions. The problem is that the form items still take up physical space. The behavior we'd like would have the form item not only be invisible but also not take up space. Then, when the required answer is given, the form item would appear and push the content after it down. I know it's a weird question, so here's a visual example: Initial form state: Choose your favorite fruit: () Apples () Oranges () Lemons () Other Choose your favorite car: () Chevy () Ford () Toyota If Other is chosen: Choose your favorite fruit: () Apples () Oranges () Lemons (*) Other Please describe "other": - | | - Choose your favorite car: () Chevy () Ford () Toyota /*** * Jeff Beeman * Digital Media & Instructional Technologies * Arizona State University ***/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Using Value Objects & CFC's
Good stuff... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 27 July 2005 02:17 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Testify! That sure did the trick. I have done the following -- in the LoginDelegate.as -- var call = service.login( { loginVO : loginVO } ); -- cfc -- Thanks Allen. Malcolm -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Tuesday, 26 July 2005 7:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Malcom, I think that's it. Try this: var call = service.login( { loginVO : loginVO } ); //strange looking syntax huh, but it works You see the anon object which is naming the param. It took us ages to figure this one out. There is an article which describes this here: http://www.flexingcfmx.com/index.cfm?mode=entry&entry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 25 July 2005 22:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Hi Allen, I am using the Cairngorm framework and calling the CFC inside my LoginDelegate (via a service) Part of LoginDelegate.as public function login( loginVO : LoginVO ): Void { // call login service, pass loginVO var call = service.login( loginVO ); call.resultHandler = Delegate.create(responder, responder.onResult); call.faultHandler = Delegate.create(responder, responder.onFault); } Is this my problem? var call = service.login( loginVO ); - This is my LoginService CFC It would be awesome if I could get this working, right now I am resorting to building toArray() functions in my Flex value objects and calling my CFC like this: var call = service.login( loginVO.toArray() ); Muchos gracias, Malcolm -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Tuesday, 26 July 2005 3:11 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Malcolm, We are doing this very thing and it is working well for us. We use CFCs as our VOs and it allows us to type them in and out of CFC method calls. Can you post how the CFC is being called by Flex? You need to use an anon object with a named param, so this might be the problem. Allen http://www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 24 July 2005 11:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's For the record, I did end up trying Approach 1. Doesn't work, exactly the same error as before: Error Type: Expression Message: You have attempted to dereference a scalar variable of type Unless I am missing something, I think it's fair to say when using CF as a backend for Flex applications you can not pass your own data types. m -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: Sunday, 24 July 2005 3:56 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Ok think I am going to have to admit defeat here, I have now tried the following...I have created a cfc version of the Login Value Object. LoginVO.cfc - CFC I still get the same error as before... Error Type: Expression Message: You have attempted to dereference a scalar variable of type I assume this is because I am passing in a Flex/Java object of the type 'LoginVO' and this is just not the same as a ColdFusion object of the type 'LoginVO' (as defined in LoginVO.cfc). I really don't want to give up using value objects on the Flex side, as I may one day move the backend of the application from cf to java. I think I am going to have to give up on trying to define a cf version of my value object and take one of the following approaches: 1. Create a Java Value Object in ColdFusion using the CreateObject function in cf. Assign the Flex Value Object Data to the Java Value Object (created via ColdFusion). Then access the values of cf/java object. I have no idea if this will actually work! May just end up with the same error again :{ 2. In my Flex value object have a "function toArray()" call that and then pass to my cfc remote object. Yes would require going
RE: [flexcoders] Using Value Objects & CFC's
Malcom, I think that's it. Try this: var call = service.login( { loginVO : loginVO } ); //strange looking syntax huh, but it works You see the anon object which is naming the param. It took us ages to figure this one out. There is an article which describes this here: http://www.flexingcfmx.com/index.cfm?mode=entry&entry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 25 July 2005 22:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Hi Allen, I am using the Cairngorm framework and calling the CFC inside my LoginDelegate (via a service) Part of LoginDelegate.as public function login( loginVO : LoginVO ): Void { // call login service, pass loginVO var call = service.login( loginVO ); call.resultHandler = Delegate.create(responder, responder.onResult); call.faultHandler = Delegate.create(responder, responder.onFault); } Is this my problem? var call = service.login( loginVO ); - This is my LoginService CFC It would be awesome if I could get this working, right now I am resorting to building toArray() functions in my Flex value objects and calling my CFC like this: var call = service.login( loginVO.toArray() ); Muchos gracias, Malcolm -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Tuesday, 26 July 2005 3:11 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Malcolm, We are doing this very thing and it is working well for us. We use CFCs as our VOs and it allows us to type them in and out of CFC method calls. Can you post how the CFC is being called by Flex? You need to use an anon object with a named param, so this might be the problem. Allen http://www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 24 July 2005 11:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's For the record, I did end up trying Approach 1. Doesn't work, exactly the same error as before: Error Type: Expression Message: You have attempted to dereference a scalar variable of type Unless I am missing something, I think it's fair to say when using CF as a backend for Flex applications you can not pass your own data types. m -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: Sunday, 24 July 2005 3:56 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Ok think I am going to have to admit defeat here, I have now tried the following...I have created a cfc version of the Login Value Object. LoginVO.cfc - CFC I still get the same error as before... Error Type: Expression Message: You have attempted to dereference a scalar variable of type I assume this is because I am passing in a Flex/Java object of the type 'LoginVO' and this is just not the same as a ColdFusion object of the type 'LoginVO' (as defined in LoginVO.cfc). I really don't want to give up using value objects on the Flex side, as I may one day move the backend of the application from cf to java. I think I am going to have to give up on trying to define a cf version of my value object and take one of the following approaches: 1. Create a Java Value Object in ColdFusion using the CreateObject function in cf. Assign the Flex Value Object Data to the Java Value Object (created via ColdFusion). Then access the values of cf/java object. I have no idea if this will actually work! May just end up with the same error again :{ 2. In my Flex value object have a "function toArray()" call that and then pass to my cfc remote object. Yes would require going around every remote service call sometime in the future when I go to java and removing such calls. Hmmm, re-reading my email, approach 1 really is madness, even if it did work, it's a lot of work for the sake of being able to pass a flex/java value object to a cfc (I am still going to have to pull the sucker to pieces inside cf anyway), so I am not going to bother with this. What does everyone else do here? Only pass data types that are supported by cf argument? Any suggested best practice? Comments welcome :D Cheers, M -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Sunday, 24 July 2005 7:32 AM To: flexcoders@yahoogroups.com Subject
RE: [flexcoders] Using Value Objects & CFC's
Malcolm, We are doing this very thing and it is working well for us. We use CFCs as our VOs and it allows us to type them in and out of CFC method calls. Can you post how the CFC is being called by Flex? You need to use an anon object with a named param, so this might be the problem. Allen http://www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: 24 July 2005 11:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's For the record, I did end up trying Approach 1. Doesn't work, exactly the same error as before: Error Type: Expression Message: You have attempted to dereference a scalar variable of type Unless I am missing something, I think it's fair to say when using CF as a backend for Flex applications you can not pass your own data types. m -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: Sunday, 24 July 2005 3:56 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using Value Objects & CFC's Ok think I am going to have to admit defeat here, I have now tried the following...I have created a cfc version of the Login Value Object. LoginVO.cfc - CFC I still get the same error as before... Error Type: Expression Message: You have attempted to dereference a scalar variable of type I assume this is because I am passing in a Flex/Java object of the type 'LoginVO' and this is just not the same as a ColdFusion object of the type 'LoginVO' (as defined in LoginVO.cfc). I really don't want to give up using value objects on the Flex side, as I may one day move the backend of the application from cf to java. I think I am going to have to give up on trying to define a cf version of my value object and take one of the following approaches: 1. Create a Java Value Object in ColdFusion using the CreateObject function in cf. Assign the Flex Value Object Data to the Java Value Object (created via ColdFusion). Then access the values of cf/java object. I have no idea if this will actually work! May just end up with the same error again :{ 2. In my Flex value object have a "function toArray()" call that and then pass to my cfc remote object. Yes would require going around every remote service call sometime in the future when I go to java and removing such calls. Hmmm, re-reading my email, approach 1 really is madness, even if it did work, it's a lot of work for the sake of being able to pass a flex/java value object to a cfc (I am still going to have to pull the sucker to pieces inside cf anyway), so I am not going to bother with this. What does everyone else do here? Only pass data types that are supported by cf argument? Any suggested best practice? Comments welcome :D Cheers, M -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Sunday, 24 July 2005 7:32 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Using Value Objects & CFC's a CFC can except "types" defined by another CFC. In the cfargumnet tag use the CFC name, dot.noted.paths.are.ok.too. Note, the CFC method can also return "types" defined by CFCs too. DK On 7/23/05, Tariq Ahmed <[EMAIL PROTECTED]> wrote: > Hey Malcolm. Well CFC's generally only accept datatypes they understand: > boolean, string, numeric, array, struct, etc... > > This article may give you a head start: > http://www.flexingcfmx.com/index.cfm?mode=entry&entry=D36D5CE5-FB00-283B-A23 A89CB46949A4D > > > Malcolm wrote: > > >Hi yo'll > > > >I am using Remote Objects (definitely the way to go) with ColdFusion 7 > >(CFC). I have no problems passing strings to a CFC but can't seem to be able > >to use Value Objects, is this possible? > > > >Or put another way can a CFC argument be of the type Object? Using example > >code from the Cairngorm login sample, this is the object I am passing to the > >CFC. > > > > LoginVO.as > > > >import org.nevis.cairngorm.vo.ValueObject; > >class com.company.product.vo.LoginVO implements ValueObject > >{ > > public function toString() : String > > { > > var s : String = "LoginVO[username="; > > s += username; > > s += ", password="; > > s += password; > > s += ", loginDate="; > > s += loginDate; > > s += " ]"; > > return s; > > } > > > > public static var registered:Boolean = Object.registerClass( " > >com.company.product.vo.LoginVO", LoginVO ); > > > > public var username : String; > > public var password : String; > > public var loginDate : Date; > >} > > > >- CFC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Generates the following CF Err
RE: [flexcoders] Flex and CFCs -- problems displaying recordsets in datagrids
Darius, Rather than passing ColdFusion recordsets directly back to Flex, what we did is transform the results into an array of CFCs or an array of structs and let the automatic AS type translation transform these results into native AS value objects. I would be weary of too tightly coupling your Flex layer with the specifics of your server side. HTH, Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coldfs Sent: 22 July 2005 00:35 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and CFCs -- problems displaying recordsets in datagrids Hi, I'm new to Flex and have been working over the last few weeks to integrate this product with CF. One of my central aims is to be able to pass data from Flex to a CFC which houses a query and will return a recordset back to Flex. Through piecing together examples here and there, I've figured out how to call the CFC and send data to it from Flex, but I've been unable to figure out how to display the recordset in a Flex datagrid. Any help/examples, best practices, on how to do this would be greatly appreciated. My existing code follows. The query recordset returns two fields. The error I receive is: 1 Error found. Error /FlexToCFC2.mxml:19 There is no property with the name 'text'. -- http://www.macromedia.com/2003/mxml"; xmlns="*"> http://gx270dev.childsupport.net/flashservices/gateway"; source="Model.mUtilities.mUpdate.qry_UpdateAuthorization" fault="doFault(event)" result="doResult(event)"> Many thanks, Darius -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE??
Matt & Clint, I tried the below code, and I can’t get it to work for me in Mozilla or IE. Am I missing something? Thanks for your help! Allen Manning http://www.prismix.com/ private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener("click",eventHandlerObj); } TitleWindow.mxml From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: 21 July 2005 13:53 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? works on my IE... and i don't seem to be doing anything fancy... here's the code i run... on the TitleWindow i set the keyUp to the func http://www.macromedia.com/2003/mxml" keyUp="this_keyUp()"> //here's the code 4 the func private function this_keyUp() { if (Key.getCode() == Key.ESCAPE) this.deletePopUp(); } Disclaimer: Matt Chotin has helped me with almost every problem I've posted here. *Thanks for that Matt* On 7/21/05, Matt Chotin <[EMAIL PROTECTED]> wrote: I'm not sure I've ever gotten IE to pass the escape key through to the Player unfortunately. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Wednesday, July 20, 2005 9:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? Hello Flexcoders, I can close the pop-up with the Escape key in Mozilla but not IE. Any ideas? Index.mxml http://www.macromedia.com/2003/mxml"> private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener("click",eventHandlerObj); } TitleWindow.mxml http://www.macromedia.com/2003/mxml" title="Popup" width="300" height="300" closeButton="true" initialize="initKeyDown();"> private function initKeyDown():Void { var myListener:Object = new Object(); myListener. handleKeyDown); Key.addListener(myListener); } private function handleKeyDown (event) : Void { if (Key.isDown(Key.ESCAPE)) { this.deletePopUp(); Key.removeListener(handleKeyDown); } } Thanks, Allen http://www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoi
RE: [flexcoders] Automatic Scrolling via Tab in a Container
Clint, Are you suggesting that I databind to this property against some maths inside of the container? I guess I could update the vPostion when a tab event fires, but I was hoping for something cleaner if you get my drift. Thanks for your help, Allen http://www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: 20 July 2005 18:19 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Automatic Scrolling via Tab in a Container have a peek @ vPosition On 7/20/05, Allen Manning <[EMAIL PROTECTED]> wrote: Hello Flexcoders, I did a bit of research sorry if it has been posted already. Any idea how can I make a container's view port automatically scroll when I tab to a control outside of the view port? http://www.macromedia.com/2003/mxml"> Thanks for any help, Allen http://www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005
[flexcoders] Automatic Scrolling via Tab in a Container
Hello Flexcoders, I did a bit of research sorry if it has been posted already. Any idea how can I make a container’s view port automatically scroll when I tab to a control outside of the view port? Thanks for any help, Allen http://www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005
[flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE??
Hello Flexcoders, I can close the pop-up with the Escape key in Mozilla but not IE. Any ideas? Index.mxml private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener("click",eventHandlerObj); } TitleWindow.mxml private function initKeyDown():Void { var myListener:Object = new Object(); myListener. handleKeyDown); Key.addListener(myListener); } private function handleKeyDown (event) : Void { if (Key.isDown(Key.ESCAPE)) { this.deletePopUp(); Key.removeListener(handleKeyDown); } } Thanks, Allen http://www.prismix.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005
RE: [flexcoders] Extending Datagrid Column
Thanks Nick! *smacks head* From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sauro, Nick Sent: 12 July 2005 13:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Datagrid Column Correct me if im wrong, but shouldnt it be: class IconDataGridColumn extends mx.controls.gridclasses.DataGridColumn { bla bla } ?? the big difference being the use of the keyword 'class' Nick Sauro + R O U N D A R C H + bus 212.909.2335 + mob 914.882.3687 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning Sent: Tuesday, July 12, 2005 1:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Datagrid Column Hello Flex Coders, I am trying to extend the Datagrid column so that I can set a custom property ‘iconName’ which will refer to an icon that I would like to appear in each row. Here is how I would like to use it, and below that is my error message – it appears I can’t extend DataGridColumn. Any help would be greatly appreciated. I would like to make the iconName available to my cell renderer without polluting my DataProvider. Thanks for any help, Allen IconDataGridColumn.as IconDataGridColumn extends mx.controls.gridclasses.DataGridColumn { public var iconName:String; } Error - ActionScript 2.0 class scripts may only define class or interface constructs. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.8.13 - Release Date: 12/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.8.13 - Release Date: 12/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.8.13 - Release Date: 12/07/2005
[flexcoders] Extending Datagrid Column
Hello Flex Coders, I am trying to extend the Datagrid column so that I can set a custom property ‘iconName’ which will refer to an icon that I would like to appear in each row. Here is how I would like to use it, and below that is my error message – it appears I can’t extend DataGridColumn. Any help would be greatly appreciated. I would like to make the iconName available to my cell renderer without polluting my DataProvider. Thanks for any help, Allen IconDataGridColumn.as IconDataGridColumn extends mx.controls.gridclasses.DataGridColumn { public var iconName:String; } Error - ActionScript 2.0 class scripts may only define class or interface constructs. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.8.13 - Release Date: 12/07/2005
RE: [flexcoders] Re: New to Flex, Questions for datagrid
Ritesh, I'm no expert on .net, but I think that any application that can do this will need to support MS latest flavour of OLE. I have heard the newer version of the MS OSs and their RIA framework will include Office components. So instead of a datagrid, you would have Excel. I have also heard that the actual reality of this is pretty far off, like years and years away. Well that's my limited knowledge, only rumours at this point. Anyone have the real inside scoop? Thanks, Al Allen Manning Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: 20 June 2005 21:17To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: New to Flex, Questions for datagrid Unless I am mistaken, the Flash player doesn't support this functionality. You can make a feature request by using this form: http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform Dimitrios "Jimmy" Gianninas RIA Developer Optimal Payments Inc. From: mehrotraritesh [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 4:08 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: New to Flex, Questions for datagrid Thanks Jimmy for the responses, I am reading the websites that you pointed. Could you or anybody tell why we cannot paste rows and columns in EXCEL to DataGrid, has anybody done any research on this topic?Thanks,Ritesh--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" <[EMAIL PROTECTED]> wrote:> I'll quickly give you some answers:> > 1) you can find info here:> http://macromedia.max04.v4.breezecentral.com/p98974576/> 2) you can find something like that here:> http://www.richinternetapps.com/archives/2005_01.html> 3) you mean paste and whole set of rows and columns? unfortunately not> 4) easily done via CellRenderer> 5) easily done via CellRenderer> > Dimitrios "Jimmy" Gianninas> RIA Developer> Optimal Payments Inc.> > > _ > > From: mehrotraritesh [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 10:12 AM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] New to Flex, Questions for datagrid> > > Hi All,> I am new to Flex enviornment and have been assigned to investigate > whether flex would make right choice for our application (VC++) based > to move to Flex and this is where I am looking for help. I have few > questions:> > > Can Flex DataGrid conrol> 1. Manage to hold more 1,00,000 rows with 256 columns.> ( If so, does anybody has stats of how much it takes to load)> 2. Freeze panes or fix column while other colums can scroll> ( I read: it is real hard to do)> 3. Cut/Copy/paste from and to Excel> 4. Put images in one of columns of Grid control> ( I read: I need to render an image, but donot know if I can> add click event on the image)> 5. Put Combo boxes or Date control in one of the columns of Grid > Control> > Please execuse me if these are already answered, Any direction to > previous post would also be great.> Thanks in advance,> Ritesh> > > > > > > > > _ > > Yahoo! Groups Links> > > * To visit your group on the web, go to:> http://groups.yahoo.com/group/flexcoders/> > * To unsubscribe from this group, send an email to:> [EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of> Service <http://docs.yahoo.com/info/terms/> . AVIS IMPORTANT WARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document
RE: [flexcoders] Cairngorm Store missing link?
Hello Kent, >I ask because I currently have an Array of objects that represent lines in a >DataGrid. When I add an element to that array I am not seeing it in the >datagrid. One thing to try is using the Dataprovider API rather than Array methods against the DG's Data Provider. Doing this broadcasts events which tell the Flex UI to update itself. Hope this helps, Al Allen Manning Technical Director Prismix Ltd t +44 (0)870 749 1100 f +44 (0)870 749 1200 w http://www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kent Henneuse Sent: 20 June 2005 16:35 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm Store missing link? Ok it is a missing link in my brain and not a link that is missing. I am confused how the dataProvider on line 58 of ShoppingCart.mxml gets linked to the one in the ModelLocator? It appears as if everything is done by manipulating the ShoppingCart object that is in the ModelLocator and some how it is getting changed in the View. I ask because I currently have an Array of objects that represent lines in a DataGrid. When I add an element to that array I am not seeing it in the datagrid. I figure that it has something to do with the redrawing of the component. I looked at the Cairngorm Store as an example because it is very similar to what I am trying. Anxiously awaiting the next Blog installments on the Cairngorm store, -Kent "Black holes are where God divided by zero." - Steven Wright Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: okay, so I can't beleive that......
Craig, Can you try calling the RO in AS using an anon object in the call rather than MXML. Also, just drop the type attribute for now in your CFC while you are debugging. ... Thrust_Query({ThrustName:thrustCB.selectedItems}) ... Check the Net Connection Debugger for any activity. Some Resources: http://tomlink.net/blog/index.cfm?mode=entry&entry=BBFE84D5-7E97-A3B0-EE0B2DC292F5272F http://www.richinternet.de/blog/index.cfm?entry=74BA931D-C3DA-FDE0-C7959146205942DA HTH, Allen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 09 June 2005 15:01To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: okay, so I can't beleive that.. i have tried every combination of the "Type" that I can, now the will let you knowdo you have any examples of a RO accepting mutlitple data and returning results? If so then please send, maybe I am missing something else.. thanks, Craig "Mercer, Dustin" <[EMAIL PROTECTED]> wrote: Ok sorry, I thought he was going to Java not CFC. A method signature is just what the method is expecting and what it is returning. Basically how you typed the function. I.E. a java method signature looks like this : private static void someFunction( String param1, String param2 ). I don’t know if I have enough knowledge to help you with CF, but here goes… Looks like your CF code should look like this : Here is the CFC: output="true" access="remote"> Look at the cold bolded and red. This code should look like this if you want to use selectedItems: You have to make sure your query will support an array though… You may have to change the way you are doing this to include some code to parse the array. I would really have to see what you are doing to explain better. Hopefully this was enough of an explanation to help you. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819iSent: Wednesday, June 08, 2005 12:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: okay, so I can't beleive that.. I am helping him on this, what do you mean method signature?The method is Thrust_Query the argument is ThrustName the web srv works fine.. the RO does not.Here is the CFC: output="true" access="remote"> type="string" > Here is the RO call in flex:> endpoint="http://mydomains.com/flashservices/gateway" >> > > {thrustCB.selectedItems}> > > --- In flexcoders@yahoogroups.com, "Mercer, Dustin" <[EMAIL PROTECTED]> wrote:> What is your RO expecting as a parameter? An array or a single object?> selectedItems is an array so you must set your RO to accept an array as> a parameter. What is the Thrust_Query method signature?> > > > _ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of cnewroth55> Sent: Wednesday, June 08, 2005 11:36 AM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] okay, so I can't beleive that..> > > > okay, so i can't beleive that I cannot pass multiple valuse into a > RO tagI have a list control, it is being fed from an array, > multiple selections are set to truei have tried SEVERAL > different ways to pass the 'selectedItems' property to my Remote > Object tag...see below> the cfc call (obvious parts removed):> > access="remote">> > (have tired every thing in the type for this piece)> > the function;> > var revResult:Object;> function one(myEvent:Object):Void> {> revResult=myEvent.result;> } //Thanks Matt Boles> > the list control> > > change="gvsQueriesRO.Thrust_Query.send()" id="thrustCB" > multipleSelection="true" width="250" toolTip="Select from this list > to get an overview. Hold the control key down to select multiple > items." alpha="0" color="#FF" textRollOverColor="#33">> > the RO tag:> id="gvsQueriesRO" > endpoint="http://mydomains.com/flashservices/gateway" >> > > {thrustCB.selectedItems}> > > > no matter WHAT I do tyring to use this returns squat!> if i change just this in the mx:arguments tag it works,> {thrustCB.selectedItem}> (so that i am only using a single value)...if I change the RO to a > web service then using 'selectedItems' will work. I am convinced > that you cannot make a call to a CFC using a RO with > the 'selectedIems' property, maybe a bug, has ANYONE been able to do > this? any insights or code would be MUCH appreciated...I want the > performance of an AMF vs the SOAP, but.> > > > > > > > > _ > > Yahoo! Groups Li
RE: [flexcoders] CrossDomain.xml file question
Hello Mike, Tom Link has a good blog on this topic, HTH http://tomlink.net/blog/index.cfm?mode=entry&entry=6EC95F69-7E97-A3B0-E2DF6C783163B393 Best, Allen Allen Manning Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike AndersonSent: 08 June 2005 23:15To: flexcoders@yahoogroups.comSubject: [flexcoders] CrossDomain.xml file question Hello, I am continuing this from the whitelist thread...Could you all clarify for me, precisely *where*, and in how many places,I must locate the "crossdomain.xml" file?Lets say, my Flex Server page resides at"http://192.168.10.160/mypage.mxml", and I am trying to access aRemoting Service which resides at "http://www.abc.com"? It's obviouswhich entries need to be made in the actual .xml file, but WHERE must Iplace the actual files?My Remoting server is actually a Microsoft IIS Server, using the .NETFlash Remoting .dll file. For those .NET remoting users out there, inorder to properly setup Flash Remoting for .NET, you must first setup aVirtual Directory, and then have a /bin directory underneath that(containing the .dll file).My actual remoting calls are made to"http://www.abc.com/virtualDirectory/flashgateway.aspx so the questionis, where do I actually place the crossdomain.xml files? Do I have toplace one in the actual Flex Root directory? If so, would it be the WebRoot, or the directory in which the .MXML file is being served from?Also, the same goes for my IIS Web Directory - do I place it in myVirtual Root? Any other places that I should be concerned with?If you could all clarify that for me, I'd be very appreciative.Thanks,Mike Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Accordion, fillColors and a Validator
Hello Christoph, There are two approaches that I have seen so far to solving this problem: 1. Concatenate a message "Requires Attention" to the existing title if the form is not valid. (I2 book chapter 8 I think...) 2. Attach an image to child container header, like a little red exclamation or an informational 'i' icon and provide a tool tip. (As seen in Caledonian Bank if I remember correctly...). I haven't seen a code snippet of this, but I would imagine that it is floating around somewhere. If so I would like to see it. HTH, Allen Allen Manning Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christoph GuseSent: 08 June 2005 10:31To: flexcoders@yahoogroups.comSubject: [flexcoders] Accordion, fillColors and a Validator Hi List,I use an Accordion with several childs which are together one big form. I use Validator.isStructureValid() to validate the Form. The validation-process works well. I'll give you a little screenshot:Every thy the button "eintragen" is pushed, Validator.isStructureValid() is called. My problem is that the user can't see the invalid "Vorname" and invalid "Nachname" if the Accordion-child "Web / Info" is active. To solve this problem I tried to change the accordionHeader-color:var myColor = [0xFF,0xFF];myAccordion.getHeaderAt(0).setStyle("fillColors",myColor);But this didn't work. Perhaps it is not possible to change a style on runtime? How can I flag the first accordion header when some values in it are not valid?I appreciate for any thought.GreetsChristoph-- Christoph Guse Löhstraße 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831 Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?)
Tolulope, We have used ColdFusion with our Flex development and are pleased with it. But I see that there is a trade-off to consider, rapid prototyping of ColdFusion vs. compiler support in catching type errors in Java. I'm sure there are many other trade-offs, but this one seem paramount to me. HTH, Allen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: 07 June 2005 08:16To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) So Allen, You’d rather not use Coldfusion? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen ManningSent: Monday, June 06, 2005 5:44 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Tolulope, One thing to keep in mind is that ColdFusion is not strongly typed. So although it allows you to whip up server - side Java code rapidly, the compiler doesn't support you in catching typing issues. HTH, Allen Allen Manning, Technical Director - Certified Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: 06 June 2005 12:00To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Thanks All, David what about people like me comfortable with C family of languages like C/C++ and C#? I heard the transition from those languages to Java is not much? How true is that? There was a time I was trying to set up a Java web development environment and I had to fiddle with things like JBoss, Apache,Tomcat, http conf, text files, xml files etc On the contrary on IIS its just few clicks and you are up and running… I think Xamlon is trying to preempt Macromedia by throwing weight behind these families of developers i.e. they love flash but prefer C# on MS.NET OR Click once Web/App server deployment. So between CFM and Java help compare ease of use AND Power to achieve things from a Flex perspective. Thanks a lot. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David MendelsSent: Monday, June 06, 2005 10:46 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Hi, I think you will find Flex is equally well designed to work with both CFMX (which itself runs on J2EE) or any of the widely used Java/J2EE servers. Your choice at that tier should be based on other considerations. In general, if you are already using CFMX, I'd stay with it; if you are already using Java/J2EE I'd stay with that. If you are not familiar with Java/J2EE ColdFusion is a faster learning curve and a more RAD model for building apps and I would reccomend you check it out. Regards, David Macromedia From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: Monday, June 06, 2005 3:10 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Can anyone please hit the bull’s eye for me on which server side platform Flex is best with? I know there no support for .NET for now. But what of ColdFusion and Java as most of our applications here tie into Databases a lot. Thanks. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?)
Tolulope, One thing to keep in mind is that ColdFusion is not strongly typed. So although it allows you to whip up server - side Java code rapidly, the compiler doesn't support you in catching typing issues. HTH, Allen Allen Manning, Technical Director - Certified Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: 06 June 2005 12:00To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Thanks All, David what about people like me comfortable with C family of languages like C/C++ and C#? I heard the transition from those languages to Java is not much? How true is that? There was a time I was trying to set up a Java web development environment and I had to fiddle with things like JBoss, Apache,Tomcat, http conf, text files, xml files etc On the contrary on IIS its just few clicks and you are up and running… I think Xamlon is trying to preempt Macromedia by throwing weight behind these families of developers i.e. they love flash but prefer C# on MS.NET OR Click once Web/App server deployment. So between CFM and Java help compare ease of use AND Power to achieve things from a Flex perspective. Thanks a lot. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David MendelsSent: Monday, June 06, 2005 10:46 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Hi, I think you will find Flex is equally well designed to work with both CFMX (which itself runs on J2EE) or any of the widely used Java/J2EE servers. Your choice at that tier should be based on other considerations. In general, if you are already using CFMX, I'd stay with it; if you are already using Java/J2EE I'd stay with that. If you are not familiar with Java/J2EE ColdFusion is a faster learning curve and a more RAD model for building apps and I would reccomend you check it out. Regards, David Macromedia From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: Monday, June 06, 2005 3:10 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex best with which server side technology ? (CFM/Java/ASPX?) Can anyone please hit the bull’s eye for me on which server side platform Flex is best with? I know there no support for .NET for now. But what of ColdFusion and Java as most of our applications here tie into Databases a lot. Thanks. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex as a Windows Service?
Hello Richard, We use JRUN as our J2EE Server and we startup and run Flex via the JMC or as a Windows service. To add a server as a windows service in JRUN we use the jrunsvc tool. From the JRUN Live docs (http://livedocs.macromedia.com/jrun/4/JRun_SDK_Guide/apis4.htm): Using the jrunsvc tool Use the jrunsvc tool to execute command on a JRun server that is a Windows service. With this tool, you can install, remove, start, and stop the JRun server's Windows service. To install a JRun server as a Windows service, use the following syntax from the jrun_root/bin directory: %> jrunsvc -install jrun_server [service_name [service_display_name [service_description]]] To remove, start or stop a JRun server that is currently a Windows service, use the following syntax from the jrun_root/bin directory: %> jrunsvc -[remove|start|stop service_name] Hope this helps, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard ButlerSent: 20 May 2005 12:01To: [flexcoders]Subject: [flexcoders] Flex as a Windows Service? Hi all,This may be a dumb question, so forgive me, but is it possible to runFlex as a Windows Service? The DOS window thing seems a nasty way ofrunning it, or maybe that's just us...Cheers,Rich--Richard Butler.Monochrome.Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.Free: 08000 199 742Tel: +44 (0) 1932 862 874 Fax: +44 (0) 1932 866 065 www.monochrome.co.uk Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Fully qualified URL
Joren, According to the MXML API docs: getFullURLstatic getFullURL( rootURL: String, url: String) : String ' Converts a potentially relative URL to a full qualified URL. If the URL is not relative, it is just returned as is. If the URL starts with a slash, the host and port from the root URL are prepended. Otherwise, the host, port, and path are prepended. ' HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen De VosSent: 19 May 2005 12:14To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified URL Hi, And what does mx.utils.URLUtil.getFullURL() do then? Jeroen. Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens Allen ManningVerzonden: donderdag 19 mei 2005 12:56Aan: flexcoders@yahoogroups.comOnderwerp: RE: [flexcoders] Fully qualified URL Jeff, Thanks. http://www.macromedia.com/2003/mxml"> http://{getPageDomain()}/"/> Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff TapperSent: 19 May 2005 11:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified URL Ugggh. _root -- bad.in the example below, since its running in the core application tag, you can just remove the word _root entirely, and it will still work, or, as Abdul suggested, mx.core.Application.application._url will work from any place in the app.At 06:43 AM 5/19/2005, you wrote:>Hello Jeroen,>>Below is an example of one way of doing it.>>>http://www.macromedia.com/2003/mxml">> > >> > > http://{getPageDomain()}/"/>>> >>>HTH,>Allen>>Allen Manning, Technical Director>Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com>>>>>>>>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of Jeroen De Vos>Sent: 19 May 2005 11:28>To: flexcoders@yahoogroups.com>Subject: [flexcoders] Fully qualified URL>>Hi all,>>In ActionScript I need to read the fully qualified URL to the application >(http://x/x/…).>How can I get this URL?>>Jeroen.>>>>Jeroen De Vos>Gemeentelijk Havenbedrijf Antwerpen>C/ICT - AMARIS>>>Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het >Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of >persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via >e-mail of telefonisch te verwittigen als u deze e-mail per vergissing >heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te >reproduceren, te verspreiden of te ontsluiten naar derden. Het >Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier >verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze >e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk >gesteld worden voor directe of indirecte schade, verlies of ongemak >veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail.>>English Translation: This e-mail and all attached files are official >documents of Antwerp Port Authority and may contain confidential or >personal information. If you have received this e-mail in error, you are >asked to inform the sender by e-mail or telephone immediately, and to >remove it from your system without reading or reproducing it or passing it >on to other parties. Antwerp Port Authority is in no way responsible for >any errors or inaccuracies in the contents of this e-mail, nor can it be >held liable for any direct or indirect loss, damage or inconvenience >arising from any such errors or inaccuracies. [GHA#Disclaimer]>>>Yahoo! Groups Links>To visit your group on the web, go to:>http://groups.yahoo.com/group/flexcoders/>>To unsubscribe from this group, send an email to:>[EMAIL PROTECTED]>>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex on the Web
Hello Michel, The examples on the Macromedia Flex Development centre is a start: http://www.macromedia.com/devnet/flex/example_apps.html HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel JansenSent: 19 May 2005 12:07To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex on the Web LS,I am looking for Flex application on the Web. Can anynone send me some URL's where i can find them? It looks like most of the RIA's in production on the Web are build with Flash, BackBase and/or Laszlo.Please enlighten me...Michel Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Fully qualified URL
Jeff, Thanks. http://www.macromedia.com/2003/mxml"> http://{getPageDomain()}/"/> Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff TapperSent: 19 May 2005 11:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified URL Ugggh. _root -- bad.in the example below, since its running in the core application tag, you can just remove the word _root entirely, and it will still work, or, as Abdul suggested, mx.core.Application.application._url will work from any place in the app.At 06:43 AM 5/19/2005, you wrote:>Hello Jeroen,>>Below is an example of one way of doing it.>>>http://www.macromedia.com/2003/mxml">> > >> > > http://{getPageDomain()}/"/>>> >>>HTH,>Allen>>Allen Manning, Technical Director>Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com>>>>>>>>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of Jeroen De Vos>Sent: 19 May 2005 11:28>To: flexcoders@yahoogroups.com>Subject: [flexcoders] Fully qualified URL>>Hi all,>>In ActionScript I need to read the fully qualified URL to the application >(http://x/x/…).>How can I get this URL?>>Jeroen.>>>>Jeroen De Vos>Gemeentelijk Havenbedrijf Antwerpen>C/ICT - AMARIS>>>Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het >Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of >persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via >e-mail of telefonisch te verwittigen als u deze e-mail per vergissing >heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te >reproduceren, te verspreiden of te ontsluiten naar derden. Het >Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier >verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze >e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk >gesteld worden voor directe of indirecte schade, verlies of ongemak >veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail.>>English Translation: This e-mail and all attached files are official >documents of Antwerp Port Authority and may contain confidential or >personal information. If you have received this e-mail in error, you are >asked to inform the sender by e-mail or telephone immediately, and to >remove it from your system without reading or reproducing it or passing it >on to other parties. Antwerp Port Authority is in no way responsible for >any errors or inaccuracies in the contents of this e-mail, nor can it be >held liable for any direct or indirect loss, damage or inconvenience >arising from any such errors or inaccuracies. [GHA#Disclaimer]>>>Yahoo! Groups Links>To visit your group on the web, go to:>http://groups.yahoo.com/group/flexcoders/>>To unsubscribe from this group, send an email to:>[EMAIL PROTECTED]>>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Fully qualified URL
Title: Fully qualified URL Hello Jeroen, Below is an example of one way of doing it. http://www.macromedia.com/2003/mxml"> http://{getPageDomain()}/"/> HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen De VosSent: 19 May 2005 11:28To: flexcoders@yahoogroups.comSubject: [flexcoders] Fully qualified URL Hi all, In ActionScript I need to read the fully qualified URL to the application (http://x/x/…). How can I get this URL? Jeroen. Jeroen De Vos Gemeentelijk Havenbedrijf Antwerpen C/ICT - AMARIS Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. [GHA#Disclaimer] Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] combobox selectedIndex
Title: Mercury Email Signature Shlomi, One possibility is that you are setting the index of the combobox before the databinding fires. Thus: 1. It attempts to set the index to 2. 2. It sees the dataprovider has length 0. 3. It silently fails at runtime. some time goes by 4. The dataprovider is populated by databinding. You might want to try this: private function getMySelectedIndex(intervals:Object):Number { return(2); } selectedIndex="{getMySelectedIndex(intervals)}"/> When 'intervals' changes it fires off a call to the local function getMySelectedIndex via databinding. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith UnnikrishnanSent: 17 May 2005 14:34To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] combobox selectedIndex Shlomi,There's nothing wrong with the code that you have posted below.Only reason why I think this would not work is if you have only 2 items in the ComboBox!If not, try this as wellinitialize="intervalCMB.selectedIndex="2" />SreeShlomi Cohen wrote: Hi Does anyone know how to set an initial selected index on a Combo (for edit dialog for example) i have tried this code and it doesn't work . selectedIndex="2" />thanks Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Looking for a critique
Jeff, I like it. It reminds me of the new weather widget that you can get in Tiger. I agree with changing the first pane, it does seem like it should be interactive. Best, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: 16 May 2005 16:28To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Looking for a critique It does need a description; for me, I clearly saw the cold front coming on Friday evening, and knew my weekend of camping was screwed... but during nice days, you couldn't tell I guess!- Original Message - From: "Manish Jethani" <[EMAIL PROTECTED]>To: Sent: Monday, May 16, 2005 11:22 AMSubject: Re: [flexcoders] Looking for a critiqueOn 5/14/05, Jeff Steiner <[EMAIL PROTECTED]> wrote:> Would you mind taking a look at something for me and let me know what you> think?>> http://www.flexauthority.com/Test/weather/weather.mxmlLooks pretty neat! I didn't get the purpose of the first accordionpane though. It just shows a map, but you can't interact with it (amI missing something?). Normally if I see a map and a zipcode field, Iexpect that clicking the map would auto-fill the zipcode for me.Now if you could show us the source... ;)Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Datagrid word wrap- it isnt working.
Sree and Hari, Shouldn't you place the escaped new line char in single quotes? var newHeader = Order + '\n' + Appl; Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTRSent: 16 May 2005 15:06To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Datagrid word wrap- it isnt working. Hi Sree, Thank you very much for the tip with two variables. I do remember this. Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith UnnikrishnanSent: Monday, May 16, 2005 10:02 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Datagrid word wrap- it isnt working. Thanks Hari,I tried it ... it does work when you have want to construct the string from 2 non-variables.In your case I assume Order and Appl are not 2 variables and I wonder why you would want a variable for the header :-) ... But, I also found that if you want to construct from 2 variables such as Order and Appl, you will have to construct it as follows:var Order;var Appl;var newHeader = Order+newline+Appl; var newHeader = Order+\n+Appl;or var newHeader = Order\nAppl;does not work!Otherwise you are bound to get an error as follows!Operator '+' must be followed by an operandRegardsSreeDoodi, Hari - BLS CTR wrote: Yes, it is working. I can see "Order" and "Appl" in two lines in my datagrid. Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith UnnikrishnanSent: Monday, May 16, 2005 9:42 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Datagrid word wrap- it isnt working. Hari,A bit confused ... does the variable declaration really work?I was assuming that you have to use something like var totalColumnName = "Total"newLine"Reserves";for it to render correctly. I have a feeling that the \n would not work.Can somebody clarify!Nithya, and also you have to specify the height for the header! headerHeight="30">RegardsSreeDoodi, Hari - BLS CTR wrote: We had the same problem but the way we did roundabout to this is - declare a var with a value with "\n" char in it and then bind this var to datagrid headertext property as shown below.. It did work for me. var ordappl="Order\nAppl"; . . . Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt ChotinSent: Monday, May 16, 2005 2:23 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Datagrid word wrap- it isnt working. Have you set variableRowHeight to true? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthikSent: Sunday, May 15, 2005 10:14 PMTo: flexcodersSubject: [flexcoders] Datagrid word wrap- it isnt working. Hai, when i give wordwrap="true" in a datagrid, it isnt wraping the text... May i know the reason and the way to rectify it? I used something like this: I want 'Total' in the first line and 'reserves' in the next line of the header.. How to do this? Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm + Tartan Thread
Neil, Could you unzip the directory and then rename all of the sub-zips to 'zippo', and email them to us as an attachment if you get the time. I think that might trick the anti-virus software. Otherwise, if you could email it to me offlist, then I will post it up on a website. I'm sure we will get there somehow. :) Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: 16 May 2005 14:54To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + Tartan Thread Hi Allen,I had the same problem, too, searching back to January.Neil,I think there were 3 zips, total. TartanUI.zip TartanFlex.zip TartanCF.zip The link to the TartanFramework download site does not include a working example of Flex with Tartan. Oddly, it doesn't include a working example of Flash Remoting with Tartan, either.Agha's examples included a working example of the framework and right middleware (CF) for my purposes.Dave On 5/16/05, Allen Manning <[EMAIL PROTECTED]> wrote: I had a good look through the flexcoders Yahoo group website and had a difficult time searching back to January when this message was posted. I'll keep looking around and if I find the zip, I'll post it up here. Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Cliff MeyersSent: 16 May 2005 13:10To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + Tartan Thread Yeah, I'd love to get my greedy mits on those too if they're availablesomewhere.-CliffOn 5/16/05, dave buhler <[EMAIL PROTECTED]> wrote:> Thanks very much Allen. It is!> > Are Agha's Zips still available?> > Dave> > > On 5/16/05, Allen Manning <[EMAIL PROTECTED]> wrote:> > > > Hello David, > > > > Is this the one you are looking for? > > > > http://groups.yahoo.com/group/flexcoders/message/8408 > > > > HTH, > > Allen> > > > > > > > Allen Manning, Technical Director > > Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w:> www.prismix.com > > > > > > > > > > > > > > > > > > > > > > > From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On> Behalf Of dave buhler> > Sent: 16 May 2005 08:43> > To: flexcoders@yahoogroups.com> > Subject: [flexcoders] Cairngorm + Tartan Thread> > > > > > > > Does somoene have a link to the thread where one of our FlexCoders had> posted a sample of Cairngorm being used with Tartan?> > > > Thanks,> > David Buhler> > > > > Yahoo! Groups Links> > > > > > To visit your group on the web, go to:> > http://groups.yahoo.com/group/flexcoders/> > > > To unsubscribe from this group, send an email to:> > [EMAIL PROTECTED] > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > Yahoo! Groups Links> > > To visit your group on the web, go to:> http://groups.yahoo.com/group/flexcoders/ > > To unsubscribe from this group, send an email to:> [EMAIL PROTECTED]> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm + Tartan Thread
I had a good look through the flexcoders Yahoo group website and had a difficult time searching back to January when this message was posted. I'll keep looking around and if I find the zip, I'll post it up here. Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cliff MeyersSent: 16 May 2005 13:10To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + Tartan Thread Yeah, I'd love to get my greedy mits on those too if they're availablesomewhere.-CliffOn 5/16/05, dave buhler <[EMAIL PROTECTED]> wrote:> Thanks very much Allen. It is!> > Are Agha's Zips still available?> > Dave> > > On 5/16/05, Allen Manning <[EMAIL PROTECTED]> wrote:> > > > Hello David, > > > > Is this the one you are looking for? > > > > http://groups.yahoo.com/group/flexcoders/message/8408 > > > > HTH, > > Allen> > > > > > > > Allen Manning, Technical Director > > Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w:> www.prismix.com > > > > > > > > > > > > > > > > > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of dave buhler> > Sent: 16 May 2005 08:43> > To: flexcoders@yahoogroups.com> > Subject: [flexcoders] Cairngorm + Tartan Thread> > > > > > > > Does somoene have a link to the thread where one of our FlexCoders had> posted a sample of Cairngorm being used with Tartan?> > > > Thanks,> > David Buhler> > > > > Yahoo! Groups Links> > > > > > To visit your group on the web, go to:> > http://groups.yahoo.com/group/flexcoders/> > > > To unsubscribe from this group, send an email to:> > [EMAIL PROTECTED] > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > Yahoo! Groups Links> > > To visit your group on the web, go to:> http://groups.yahoo.com/group/flexcoders/> > To unsubscribe from this group, send an email to:> [EMAIL PROTECTED]> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Style Question
Hello Rich, When I've noticed issues or had suggestions the Macromedia team pointed me in the direction of the 'Feature Request/Bug Report Form'. http://www.macromedia.com/support/email/wishform/ For documentation requests and comments, there is a separate docs email form. http://www.macromedia.com/support/email/techsupport/ Both of these are outline in the below TechNote ' Sending feedback to the product and documentation teams'. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_12032 HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich TretolaSent: 16 May 2005 10:58To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Style Question I will give it a try this morning but this all seems like a lot ofwork to simply get the text color I want for the datagrid. Where isthe Flex 2 wishlist where can I request a css style for this ?RichOn 5/16/05, Matt Chotin <[EMAIL PROTECTED]> wrote:> > > > Add mouseOver handlers and whatnot to your cell renderer? > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of Rich Tretola> Sent: Friday, May 13, 2005 10:05 AM> > To: flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Style Question > > > > > Yep, you are right. Another tip, make sure you set> hScrollPolicy="off" vScrollPolicy="off" on the blackText..mxml file or> you will wind up scroll bars in your grid when resizing the app. The> only other problem is that the grids hover over policies no longer> work where the cell renderer is. Any ideas ?> > Rich> > On 5/13/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:> > > > Wrong! I learnt the little I know from FlexCoders (I mean the people on> this> > list) > > It does not hurt to put in a little code ... > > Good for the novice (learns) and the expert (reviews and corrects or> > improves), dont you agree :-) > > > > This is a great forum and a repository! > > > > > > > > -Original Message-> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> > Behalf Of Rich Tretola> > Sent: Friday, May 13, 2005 9:59 PM> > To: flexcoders@yahoogroups.com> > Subject: Re: [flexcoders] Style Question> > > > Thanks but you could have just said that the Cell was supposed to be> > the id prop for the Text component.> > > > Rich> > > > On 5/13/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:> > > > > > Sorry missed that one theCell is the ID of the mx:Text in the> > > CellRenderer > > > > > > I shall rewrite the code for you ... > > > > > > > > > height="30%">> > > > > > > > > > > > width="200" cellRenderer="blacktext"/>> > > > > > labelFunction="formatGridRevenue"> > > cellRenderer="blackText"/>> > > > > > > > > > > > > > > > > > // The CellRenderer File --- blackText.mxml > > > > > > > > > > xmlns:mx="http://www.macromedia.com/2003/mxml"> > > width="100%" xmlns="*">> > > > > > > > > > > > > > > > > > > > > > > > > > > Hope this helps! > > > Sree > > > > > > > > > -Original Message-> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> > > Behalf Of Rich Tretola> > > Sent: Friday, May 13, 2005 9:07 PM> > > To: flexcoders@yahoogroups.com> > > Subject: Re: [flexcoders] Style Question> > > > > > What is theCell.text supposed to be ?> > > > > > Here is my grid:> > > > > > > > > height="30%">> > > > > > > > > > > > headerText="Website"> > > width="200"/>> > > > >
RE: [flexcoders] Cairngorm + Tartan Thread
Hello David, Is this the one you are looking for? http://groups.yahoo.com/group/flexcoders/message/8408 HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: 16 May 2005 08:43To: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm + Tartan Thread Does somoene have a link to the thread where one of our FlexCoders had posted a sample of Cairngorm being used with Tartan?Thanks,David Buhler Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Internal popups
Hello Jeff, Have you thought of using a View Stack with a Title Window? For a project we were working on, we first started with a Popup Window, but found performance to be a problem. We switched to a simulating a popup via a Title Window / View Stack and found it more performant and more usable. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff BeemanSent: 12 May 2005 17:56To: flexcoders@yahoogroups.comSubject: [flexcoders] Internal popups I’ve been scouring the documentation, but I can’t seem to find how to do something that should be quite simple. How do I create a popup window that doesn’t reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? / Jeff Beeman* Digital Media & Instructional Technologies* Arizona State University***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Datagridcolumn sortCompareFunction
Jeroen, What if you pass an AS Object containing both 'type' and 'name' properties to both columns. You could then use a different label function on each column to display properly in the grid, and you would also have access to both values in your custom sort function. I don't know how performant this would be, but the approach is worth mentioning... HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim LaingSent: 04 May 2005 15:22To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Datagridcolumn sortCompareFunction I've solved this problem in the past by using the sort() function ofthe Array class, which takes a compare function as its only argument.Assuming that you are using an array as the data provider of yourgrid, you can sort the array and then display the sorted data in thegrid. You'll have to rig up some extra wiring if you want this to sorton a user action (e.g. clicking a column header).http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary068.htmlJimOn 5/4/05, Jeroen De Vos <[EMAIL PROTECTED]> wrote:> > > Hi all, > > I'm writing a custom sort function that needs information from two colums to> do the sorting. > > Example: > The data is formed like this: > TYPE NAME > a Test_1 > b Test_2 > a Test_3 > a Test_4 > b Test_5 > > The TYPE column is not shown in the datagrid, only the NAME column is> visible. > When sorting on the NAME column, the datagrid needs to take into account the TYPE column so that the result of the sort is: > > TYPE NAME > a Test_1 > a Test_3 > a Test_4 > b Test_2 > b Test_5 > So, first sort on TYPE and then sort on NAME. > > How do I do this? > Can I use the sortCompareFunction of the datagridcolumn for this? I guess> not because the objects in the parameters of the function are not the rows,> but the values inside the column to be sorted. > > Thanks, > Jeroen. > > > > Jeroen De Vos > Gemeentelijk Havenbedrijf Antwerpen > C/ICT - AMARIS > > > Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het> Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke> informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of> telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen> en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te> verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf> Antwerpen is op geen enkele manier verantwoordelijk voor fouten of> onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk> Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of> indirecte schade, verlies of ongemak veroorzaakt als gevolg van een> onnauwkeurigheid of fout in deze e-mail. > > English Translation: This e-mail and all attached files are official> documents of Antwerp Port Authority and may contain confidential or personal> information. If you have received this e-mail in error, you are asked to> inform the sender by e-mail or telephone immediately, and to remove it from> your system without reading or reproducing it or passing it on to other> parties. Antwerp Port Authority is in no way responsible for any errors or> inaccuracies in the contents of this e-mail, nor can it be held liable for> any direct or indirect loss, damage or inconvenience arising from any such> errors or inaccuracies. [GHA#Disclaimer] > > Yahoo! Groups Links> > > To visit your group on the web, go to:> http://groups.yahoo.com/group/flexcoders/> > To unsubscribe from this group, send an email to:> [EMAIL PROTECTED]> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Un-Registering View Helpers with a ViewLocator
Title: Niklas Richardson, Prismix Ltd Oh perfect. Thanks... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alistair McLeodSent: 21 April 2005 16:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Un-Registering View Helpers with a ViewLocator Hi Allen, See this post, which gives some idea of what'll be in the next release: http://groups.yahoo.com/group/flexcoders/message/6148 It adds an unregister method to the ViewHelper base class. Cheers, Ali -- Alistair McLeodDevelopment Director iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen ManningSent: 21 April 2005 16:41To: flexcoders@yahoogroups.comSubject: [flexcoders] Un-Registering View Helpers with a ViewLocator Hello Flexcoders, Using Cairngorm, I'm registering a view with my View Locator which is a pop - up window. I delete the popup using 'deletePopUp()'. I then try and opening it again, but Cairngorm throws an exception : 'View names must be unique. A view has already been registered with...' What is the best way to un-register this view from the ViewLocator, so that I can open up my pop-up again? Many thanks, Allen Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Un-Registering View Helpers with a ViewLocator
Thanks, that's it! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: 21 April 2005 16:46To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Un-Registering View Helpers with a ViewLocator Hi Allenthere's a bug fix for this issue available. See this message:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg05333.htmlCheers,Dirk.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Allen ManningSent: Thursday, April 21, 2005 5:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Un-Registering View Helpers with a ViewLocatorHello Flexcoders,Using Cairngorm, I'm registering a view with my View Locator which is a pop - up window. I delete the popup using 'deletePopUp()'.I then try and opening it again, but Cairngorm throws an exception : 'View names must be unique. A view has already been registered with...'What is the best way to un-register this view from the ViewLocator, so that I can open up my pop-up again?Many thanks,AllenAllen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com Yahoo! Groups LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Un-Registering View Helpers with a ViewLocator
Title: Niklas Richardson, Prismix Ltd Hello Flexcoders, Using Cairngorm, I'm registering a view with my View Locator which is a pop - up window. I delete the popup using 'deletePopUp()'. I then try and opening it again, but Cairngorm throws an exception : 'View names must be unique. A view has already been registered with...' What is the best way to un-register this view from the ViewLocator, so that I can open up my pop-up again? Many thanks, Allen Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Flex Cairngorm question
Rohit, 1. I think I read a post that said this type of 'command chaining' is going to be in the .99 release of Cairngorm. I remember reading through a few posts of people working around this limitation, although I haven't done it myself, sorry. 2. In Flex there is automatic translating that occurs between Java and ActionScript 2 objects. This resource may be of use: Converting data from Java to ActionScript http://livedocs.macromedia.com/flex/15/flex_docs_en/0778.htm Your Java VOs can map to AS2 VOs. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoding [mailto:[EMAIL PROTECTED] Sent: 13 April 2005 16:41To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Flex Cairngorm question Hi Gurus,Any response to the following questions about Cairngorm? Posting it again in the forum because the original is burried deep inside. Thanks for the help in advance...Hello Guys, I just started Flex development two months back and we are trying to develop an enterprise level application. So we decided to use open source Cairngorm Framework v 0.9 by Iteration Two. Though it lacks ample documentation, we straightway found its benefits as it neatly separates and organizes the mxml/action script code. Kudos to the developers of this great framework. We found this to be very benefitial for a big size application. I have two questions releted to the Cairngorm framework for rich internet apps: Question 1. If we need to execute multiple delegate methods in response to one user action, should we write a command action script for each of the methods? Or can we just have one command corresponding to each user action and invoke more than one delegate method in the execute method of this single command? If we can do the latter, is there a way to know in the onResult method that the respons is coming from which delegate method's execution and take appropriate action? Question 2. In the Java business classes, we return POJOs. Do they need to be converted to MXML Value Objects? We tried to directly pass these pojos to the view helpers do display them in the application and it seems to work perfectly. Are we doing something wrong or can there be any design problems in doing that which I am not realizing at the moment? Thanks & Regards, Rohit Chhabra. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Using FlexUnit with Cairngorm
Michael and Dan, thanks for the responses. Let's say I had a custom component Login.mxml which is a simple login box. How would I set that up for testing in my testing application with FlexUnit? Would this be the way you would suggest? I guess that if I were to move my Login.mxml into 'net.acme.project.views' then I could just instantiate them and test them : net.acme.project.views.Login. Thus: import net.acme.project.view.Login; Function setup(){myLoginView = new Login(); } Function testLogin():Void { assertTrue('username getter isn't pre-set correctly', myLoginView.getUsername(), 'Enter Username...'); } That might be the path that I start down unless I'm missing something. I'm not using View Helpers now just for clarity. Adding a testing suite to the Cairngorm demo example would be a good investment IMHO. Thanks, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: Dan Tropp [mailto:[EMAIL PROTECTED] Sent: 12 April 2005 03:49To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Using FlexUnit with Cairngorm I'm tackling a simlar thing at the moment too :)I'm trying to test AS business delegate methods to check that they correctly call remote java methods. The delegates try and use something like "this.service = ServiceLocator.getInstance().getService( "applicationDelegate" );". But how do instantiate my ServiceLocator (in my case Services.mxml)Also, how do I test the asynch remote calls? In java I would do something like create a MockResponder as an inner class and put a wait() in my test and have the onResult() and onFault() methods call notify(). AS doesn't support inner classes (though I suspect Delegate is the answer somehow). Thoughts???cheersDan(...still eagerly awaiting the book from iteration::two to arrive :)Michael Herron wrote: Its an interesting problem Allen, and one that ive been trying to tackle for a while.The easiest way to do this is to: Var view:Object; Function setup(){ View.myLabel = new Label() viewHelper = new myViewHelper() viewHelper.view = view; }You can do this with most of the standard controls. Instantiating a mxml file directly from action script seems to be a lot more difficult. I've hadsome luck with instantiating the mxml normally as a class, the calling init(). I'm sure somebody will reply to this with the correct way to doit!The next step is to take the mock view and extract it in to a separate class: Class com.views.mockView{ Var myLabel:Label; mockVieW(){ this.myLabel = new Label } } ... .. Function setup(){ viewHelper.View = new mockView(); }The major disadvantage of this approach is that you will have to be sure toKeep your actual view and mock view "in-sync", but overall, you should be able to reliably unit tests your view helpers.Ta,MikeFrom: Allen Manning [mailto:[EMAIL PROTECTED]] Sent: 11 April 2005 17:08To: flexcoders@yahoogroups.comSubject: [flexcoders] Using FlexUnit with CairngormHello Flexcoders, I've started using FlexUnit to test business logic in my business delegates. I would now like to use FlexUnit to test my View Helpers and getter / setter functions in the views themselves. Does anyone have any examples of how one may run tests against their mxml views? For example, if I want to test that a function getLabel():String placed in the root of mx:Application in file 'index.mxml' returns the string 'myLabel', how would I go about writing my test? public function testGetLabelFromView() : Void{ myViewToTest = mx.core.application.Application;//?? how do I get access to this ?? assertEquals('should be ', 'myLabel' ,myViewToTest.getLabel());}I'm going to run this test from a testing application, tests.mxml so mx.core.application.Application refers to my testing application and not the target application I wish to test. Do I need to instantiate my target application in the tests themselves? Like this: public function testGetLabelFromView() : Void{ myViewToTest = index;//do I call this as a class? assertEquals('should be ', 'myLabel' ,myViewToTest.getLabel());}Any help would be greatly appreciated. Many Thanks,Allen Allen Manning, Technical Director
[flexcoders] Using FlexUnit with Cairngorm
Title: Niklas Richardson, Prismix Ltd Hello Flexcoders, I've started using FlexUnit to test business logic in my business delegates. I would now like to use FlexUnit to test my View Helpers and getter / setter functions in the views themselves. Does anyone have any examples of how one may run tests against their mxml views? For example, if I want to test that a function getLabel():String placed in the root of mx:Application in file 'index.mxml' returns the string 'myLabel', how would I go about writing my test? public function testGetLabelFromView() : Void { myViewToTest = mx.core.application.Application;//?? how do I get access to this ?? assertEquals('should be ', 'myLabel' ,myViewToTest.getLabel()); } I'm going to run this test from a testing application, tests.mxml so mx.core.application.Application refers to my testing application and not the target application I wish to test. Do I need to instantiate my target application in the tests themselves? Like this: public function testGetLabelFromView() : Void { myViewToTest = index;//do I call this as a class? assertEquals('should be ', 'myLabel' ,myViewToTest.getLabel()); } Any help would be greatly appreciated. Many Thanks, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Property elements may not have attributes
I recycled my Java server (JRun) and the problem went away. From: Allen Manning [mailto:[EMAIL PROTECTED] Sent: 08 March 2005 16:24 To: flexcoders@yahoogroups.com Subject: [flexcoders] Property elements may not have attributes <http://www.prismix.com/> Hello Flexcoders, I'm getting some strange errors after I have started developing on a project that I haven't touched in a while. MXML which worked before, now throws errors. I'm going to look into the log to see if I can catch anything... TIA This valid MXML : ... ... Throws this error: Property elements may not have attributes Any ideas? Thanks, Allen Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com <http://www.prismix.com/> Yahoo! Groups Sponsor ADVERTISEMENT click here <http://us.ard.yahoo.com/SIG=129sa12vr/M=298184.6018725.7038619.3001176/ D=groups/S=1705007207:HM/EXP=1110385591/A=2593423/R=0/SIG=11el9gslf/*htt p://www.netflix.com/Default?mqso=60190075> <http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group s/S=:HM/A=2593423/rand=788582112> Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . --_=_NextPart_002_01C523FD.C7F19AC8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd";> Niklas Richardson, Prismix Ltd http://www.prismix.com/images/background.gif NOSEND="1"> I recycled my Java server (JRun) and the problem went away. From: Allen Manning [mailto:[EMAIL PROTECTED] Sent: 08 March 2005 16:24To: flexcoders@yahoogroups.comSubject: [flexcoders] Property elements may not have attributes http://www.prismix.com/";>http://www.prismix.com/email/top2.gif"; width=606 border=0> http://www.prismix.com/email/mid2.gif)" background=mid.gif> Hello Flexcoders, I'm getting some strange errors after I have started developing on a project that I haven't touched in a while. MXML which worked before, now throws errors. I'm going to look into the log to see if I can catch anything... TIA This valid MXML : ... <mx:DataGrid id="dgItems" width="100%" height="100%" dataProvider="{liveOrders.items}" multipleSelection="true" change="setSelectedItem(dgItems.selectedItem)" dragEnabled="true"> <mx:columns><mx:Array> <mx:DataGridColumn headerText="" columnName="" editable="false" width="50" > <mx:DataGridColumn headerText="Order Id" columnName="orderNumber" width="60" textAlign="center"/> <mx:DataGridColumn headerText="Order Label" columnName="orderLabel"/> <mx:DataGridColumn headerText="Updated" columnName="dateUpdated" labelFunction="dateUpdatedLabelFunction"/> <mx:DataGridColumn headerText="Company Name" columnName="companyName"/> <mx:DataGridColumn headerText="Started" columnName="dateOrderStarted"/> <mx:DataGridColumn headerText="Status" columnName="status" labelFunction="orderStatusLabelFunction"/></mx:Array> </mx:columns> </mx:DataGrid> ... Throws this error: Property elements may not have attributes Any ideas? Thanks, Allen http://www.prismix.com/email/bottom2.gif)" vAlign=top width=606 background=http://www.prismix.com/email/bottom2.gif height=106> Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: http://www.prismix.com/";>www.prismix.com --_=_NextPart_002_01C523FD.C7F19AC8--<>
Property elements may not have attributes
<http://www.prismix.com/> Hello Flexcoders, I'm getting some strange errors after I have started developing on a project that I haven't touched in a while. MXML which worked before, now throws errors. I'm going to look into the log to see if I can catch anything... TIA This valid MXML : ... ... Throws this error: Property elements may not have attributes Any ideas? Thanks, Allen Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com <http://www.prismix.com/> --_=_NextPart_002_01C523FB.3449B99C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd";> Niklas Richardson, Prismix Ltd http://www.prismix.com/images/background.gif> http://www.prismix.com/";>http://www.prismix.com/email/top2.gif"; width=606 border=0> http://www.prismix.com/email/mid2.gif)" background=mid.gif> Hello Flexcoders, I'm getting some strange errors after I have started developing on a project that I haven't touched in a while. MXML which worked before, now throws errors. I'm going to look into the log to see if I can catch anything... TIA This valid MXML : ... <mx:DataGrid id="dgItems" width="100%" height="100%" dataProvider="{liveOrders.items}" multipleSelection="true" change="setSelectedItem(dgItems.selectedItem)" dragEnabled="true"> <mx:columns><mx:Array> <mx:DataGridColumn headerText="" columnName="" editable="false" width="50" > <mx:DataGridColumn headerText="Order Id" columnName="orderNumber" width="60" textAlign="center"/> <mx:DataGridColumn headerText="Order Label" columnName="orderLabel"/> <mx:DataGridColumn headerText="Updated" columnName="dateUpdated" labelFunction="dateUpdatedLabelFunction"/> <mx:DataGridColumn headerText="Company Name" columnName="companyName"/> <mx:DataGridColumn headerText="Started" columnName="dateOrderStarted"/> <mx:DataGridColumn headerText="Status" columnName="status" labelFunction="orderStatusLabelFunction"/></mx:Array> </mx:columns> </mx:DataGrid> ... Throws this error: Property elements may not have attributes Any ideas? Thanks, Allen http://www.prismix.com/email/bottom2.gif)" vAlign=top width=606 background=http://www.prismix.com/email/bottom2.gif height=106> Allen Manning, Technical Director Certified Flex Instructor Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: http://www.prismix.com/";>www.prismix.com --_=_NextPart_002_01C523FB.3449B99C--<><>
RE: [flexcoders] dateField questions?
I think 'new Date()' is today, no? Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: www.prismix.com From: Clint Tredway [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 18:21To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] dateField questions? use the selectedDate property and set it to a date-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Wednesday, February 23, 2005 12:21 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] dateField questions?Hi All,How does one access the dateField component and set a specific date to bevisible on init? right now by default is comes up blank and showToday onlyhighlights Todays date on the popup dateChooser.Thanks,-ArtYahoo! Groups Links
RE: [flexcoders] Remote object problem
Kleber, Have you tried looking at the traffic in the Net Connection Debugger? There may be a request that is attempting to be made, but the end point can't be found. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: www.prismix.com From: Kleber Henrique Voigt Pereira [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 16:15To: flexcoders@yahoogroups.comSubject: [flexcoders] Remote object problem Hi there,I make an app that's take data by a coldfusion component. The data is showin the datagrid, but the busycursor never stop, and the page never concludethe load of page. Any idea where I'm wrong?My code:endpoint="http://localhost/flashservices/gateway"source="weiler.intranet.components.controleTempos" showBusyCursor="true"> function oDesenho(){ temposCFC.getDesenho.send(); }dataProvider="{temposCFC.getDesenho.result}" initialize="oDesenho()" > headerText="Descrição"/> headerText="Usinagem"/> headerText="Montagem"/> headerText="Total"/>
RE: [flexcoders] Installing Flex under a full Jrun
Matt, Thanks for clearing up my ambiguity... Rather - Disabling the admin service does notprevent you from running another JRUN server on a different port. The Admin service running is not required to run other servers from other ports. I think that is clearer... Allen From: Matt Horn [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 15:37To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Installing Flex under a full Jrun Note that you can have any number of Jrun servers running. You don't have to disable the Admin server to run a new one. The limitationis that each server requires a unique port. There's extensive JRun documentation about installing, configuring, and using JRun servers in the JRun Administrator's Guide here: http://livedocs.macromedia.com/jrun/4/JRun_Administrators_Guide/contents.htm hth, matt h From: Allen Manning [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 7:17 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] InstallingFlex under a full Jrun Hello, The Admin Server is only for the JRUN Administrator Web Application. You can disable that to run another server instance. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: greenfishinwater [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 12:11To: flexcoders@yahoogroups.comSubject: [flexcoders] Installing Flex under a full Jrun I have been successfully using Flex with the integrated Jrunenviroment. I am now setting up a new Jrun environment on a differentbox, on top of which I will install Flex.I notice that after installing Jrun, there are 2 servers running,Admin and default.Do I need the admin server? Should I install Flexunder default, or should I create a new server?I have briefly browsed the Macromedia site for Jrun and cannot findany documentation about the admin server, or default server, cananybody point me in the right direction.Thank you
RE: [flexcoders] Installing Flex under a full Jrun
Hello, The Admin Server is only for the JRUN Administrator Web Application. You can disable that to run another server instance. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: www.prismix.com From: greenfishinwater [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 12:11To: flexcoders@yahoogroups.comSubject: [flexcoders] Installing Flex under a full Jrun I have been successfully using Flex with the integrated Jrunenviroment. I am now setting up a new Jrun environment on a differentbox, on top of which I will install Flex.I notice that after installing Jrun, there are 2 servers running,Admin and default. Do I need the admin server? Should I install Flexunder default, or should I create a new server?I have briefly browsed the Macromedia site for Jrun and cannot findany documentation about the admin server, or default server, cananybody point me in the right direction.Thank you
Credit Card Validator for Switch/Solo
<http://www.prismix.com/> Hello Flexcoders, Has anyone modified the credit card validator to include Switch and Solo cards? I also heard rumours that certain "Gold Cards" would fail with Kuhn mod10, but I haven't been able to verify. Anyone else have problems with this algorithm? Many thanks, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com <http://www.prismix.com/> --_=_NextPart_002_01C507A2.4EEF0BB4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd";> Niklas Richardson, Prismix Ltd http://www.prismix.com/images/background.gif> http://www.prismix.com/";>http://www.prismix.com/email/top2.gif"; width=606 border=0> http://www.prismix.com/email/mid2.gif)" background=mid.gif> Hello Flexcoders, Has anyone modified the credit card validator to include Switch and Solo cards? I also heard rumours that certain "Gold Cards" would fail with Kuhn mod10, but I haven't been able to verify. Anyone else have problems with this algorithm? Many thanks, Allen http://www.prismix.com/email/bottom2.gif)" vAlign=top width=606 background=http://www.prismix.com/email/bottom2.gif height=106> Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f:+44 (0)870 749 1200 w: http://www.prismix.com/";>www.prismix.com --_=_NextPart_002_01C507A2.4EEF0BB4--<><>
RE: [flexcoders] UI Question
Scott, A combination of dynamic text filtering along with the editor found in the Contact Manager example may bea good place to start. HTH, Allen Engineering Rich Internet Applications Dynamic Text Filtering with Large Data Sets Below is a demonstration of a UI component that is capable of displaying a large data-set of discrete values, which can then be quickly reduced as the user begins to type the value they are searching for. This is a desktop metaphor that many will be familiar with - Microsoft calls it "intellisense" completion in some of its products. Macromedia - Accessibility Flex Example Applications Macromedia Flex applications combine the rich interactive experience of the desktop with the reach of the web. The best way to understand Flex applications is to experience them yourself. Blog ReaderContact Manager (this was down when I looked at it today, but itcomes with the samples) From: scott_oppliger [mailto:[EMAIL PROTECTED] Sent: 29 January 2005 22:14To: flexcoders@yahoogroups.comSubject: [flexcoders] UI Question Folks:I've got a somewhat off-topic question, but it does pertain to Flexand HTML sites. I've trying to learn the best method for looking up acustomer record for a form page. We've all seen this done a number ofdifferent ways, but our particular challenge is that our clients arebanks and you won't believe how many banks have the same name - not tomention that we have dozens of entries in the database of branches ofthe same bank. We need a method where the user can look for a customerand choose that customer for use in the form, or if the customer isn'tfound - add the customer on the fly. In Flex there it seems that there might be several workable solutions,one of which would be: a panel could be used to filter choices byallowing the user to type the name and search or filter in some wayand then drag & drop the desired customer record onto the form. If therecord isn't found you simply add it though another panel or dialog. Does anyone have any other methods they could suggest? I have a needto accomplishing this on an html page as well and cannot think of anelegent solution that doesn't take the user off-page. A popup (this isonly for internal users) could work. I'm at a loss for an elegent wayto accomplish this via html. Ideas?Thanks,Scott
RE: [flexcoders] Validator + ValueObject
James, Please see the below code snippets, this works for us... HTH, Allen id="editedPayment" label="{labelTextInput.text}" > field="editedPayment.label"/> import mx.validators.Validator; public function addHandler( event ):Void { if (!Validator.isStructureValid(this, 'editedPayment')) return; } From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 23:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Validator + ValueObject It’s because you’re probably not using binding to setup the relationship between the contactVO and the form fields. All you need to do is on your validators set the listener property to be the TextInput that is the source. Matt From: James Ward [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 2:42 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Validator + ValueObject Has anyone ever tried to use the Validator with a ValueObject instead ofa Model object? I am trying it, but instead of my form fields gettingred borders when validation fails, I get pop-ups. :(Here is some of my code:import valueobjects.*;var contactVO : ContactVO;function initApp() : Void{ contactVO = new ContactVO();}function nextPage() : Void{ loadContactVO(); if (mx.validators.Validator.isStructureValid(this,'contactVO')) { // flip to the second accordian information.selectedIndex = 1; }}If I add in a Model object then it will work, but I hate having tomaintain my value objects in 3 places.BTW: The reason why I am using a Value Object is because it seems that Ihave to in order to pass a VO to my RemoteObject.Thanks in advance.-James