Re: [flexcoders] nulling primitive data types
These are the simple types and their default values: uint - 0 int - 0 Number - NaN String - null Boolean - false I still do not get your problem. In your database a representation of a boolean would be a bit type. Which means that it's either true or false. You could look at your problem in antother way. A boolean should have two values, that's what the term suggests. Your database however adds another value: NULL. This is kinda strange. You could set the field in your database to NOT NULLABLE and declare a default value. The field in the database should represent something that is either true or false. I hope this last bit makes any sense, quite hard to tell in a language which is not your own. Greetz Erik
Re: [flexcoders] nulling primitive data types
If you want to set values to NULL in your database you could make a simple method on the server side with a signature like this: setValueToNull(table, column, primaryKeyColumn, primaryKeyValue) You could get the primaryKeyColumn from the database metadata. Greetz Erik On 9/19/07, EECOLOR [EMAIL PROTECTED] wrote: These are the simple types and their default values: uint - 0 int - 0 Number - NaN String - null Boolean - false I still do not get your problem. In your database a representation of a boolean would be a bit type. Which means that it's either true or false. You could look at your problem in antother way. A boolean should have two values, that's what the term suggests. Your database however adds another value: NULL. This is kinda strange. You could set the field in your database to NOT NULLABLE and declare a default value. The field in the database should represent something that is either true or false. I hope this last bit makes any sense, quite hard to tell in a language which is not your own. Greetz Erik
[flexcoders] send data from dragdrop target component.
Hi Guys, i have a tileList as dragsource...and i have a component that can accept this tileList dragdrop operation, i catch the value of dragged element (of one tileList data avalue)from component and display it inside the component, now i want to share/send it back to main app(parent) how can i do this i try using eventListener but not succeed, using metadata also can put to much parameter as the tileList data array that i want to passed :( Thanks in advance ary. Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
Re: [flexcoders] Re: Multiple Axis in Flex 3 FLEX CHART
On Tuesday 18 Sep 2007, [EMAIL PROTECTED] wrote: One more thing Sunil: where do I go to file for an enhancement? Could you please send me the link? http://bugs.adobe.com/jira -- Tom Chiverton Helping to globally promote sticky features on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Alignment of SWF in HTML output
On Tuesday 18 Sep 2007, [EMAIL PROTECTED] wrote: I just looked at our default template. I think you have to modify AC_Generateobj in AC_OETags.js. Someone else may have a better solution. SWFObject ? -- Tom Chiverton Helping to appropriately improve compelling initiatives on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] nulling primitive data types
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote: not get your problem. In your database a representation of a boolean would be a bit type. Which means that it's either true or false. You Only if the column is set 'not null'. -- Tom Chiverton Helping to adaptively incentivize sexy customers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] navigateToURL() GET method works fine, but POST doesn't work.
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote: if I 'll change the url.method = GET, it is working fine.. but not with POST. WHY??? Does it throw an exception ? What happens (or not) ? Does WireShark/ServiceCapture show traffic going somewhere ? -- Tom Chiverton Helping to autoschediastically architect high-yield solutions on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Could people watch their subject lines ?
I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) -- Tom Chiverton, SPA-A-A-A-A-A-A-AM, SPA-A-A-A-A-A-A-AM, LOVELY SPAM, LOVELY SPAM ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] A file found in a source-path must have the same package structure
Greets...I've seen that caused by the name of the class not matching the name of the .as file. On 9/18/07, droponrcll [EMAIL PROTECTED] wrote: Hi, all; I'm working through the tutorial in the Flex Builder 2 Training from the Source book, using Flex Builder 3 beta. I accidentally called my events folder Events, and now when I renamed it I get A file found in a source-path must have the same package structure 'Events', as the definition's package, 'events'. I have changed the package name to events from Events, and I've even tried deleting the file and recreating it from scratch, but I still get the error. I had similar problems when I accidentally set the transparency of an AIR app without turning off its SystemChrome. No matter WHAT I did to that file, I still got errors. Unfortunately, I don't remember the fix to that. If anyone could give me a suggestion or two, I'd appreciate it. Thanks
[flexcoders] Doubt with Combo box
Hi All, In my application I used the combo Box to display a list of files(file Names). These files are retrived from a file using Remote object. Now, when I click on the fileName the contents in the file has to be displayed on the text area. But when i clicked on the file name the filename is displaying on the text area. Can anyone help me how to achieve this. If anyone could give me a suggestion, I'd appreciate it. Thanks, Preet.
[flexcoders] Re: A file found in a source-path must have the same package structure
When i usually get this error, I delete the package name and I hit Ctrl+Space, and let Flex autocomplete with its correct value. It might be a problem with the Folder name. I presume you have a folder list of something like com/classes/Events (if no, you might consider using one) --- In flexcoders@yahoogroups.com, droponrcll [EMAIL PROTECTED] wrote: Hi, all; I'm working through the tutorial in the Flex Builder 2 Training from the Source book, using Flex Builder 3 beta. I accidentally called my events folder Events, and now when I renamed it I get A file found in a source-path must have the same package structure 'Events', as the definition's package, 'events'. I have changed the package name to events from Events, and I've even tried deleting the file and recreating it from scratch, but I still get the error. I had similar problems when I accidentally set the transparency of an AIR app without turning off its SystemChrome. No matter WHAT I did to that file, I still got errors. Unfortunately, I don't remember the fix to that. If anyone could give me a suggestion or two, I'd appreciate it. Thanks
Re: [flexcoders] Use two DataBase tables values in a Datagrid
I think the best way around that is to combine both sets of data into 1 ArrayCollection tha tpopulates the dtagrid. On 9/19/07, jack4sol [EMAIL PROTECTED] wrote: The issue is I need to populate values from 2 tables, one needs to be a list of names(from 1 table) and the other a dropdown box containing dynamic values(and this needs to be done from another table) Mainly, gettin 2 columns from different tables in one grid...is this possible firstly? Please suggest ways to do the same.. -- Giles Roadnight 0797 4340702 http://giles.roadnight.name
[flexcoders] Re: Loading code from swf (instantiating classes from external swf)
No, actually my goal as an API provider is that I don't have to know anything about their code, not even the class name. I provide API that allows them to extend certain functionality of the application. I provide them public functions through objects in model locator. they can use how many classes they want in their swf, they just need to hook to that public methods I provide. I'm talking about post compile functionality extension with swf files containing the code. Alen --- In flexcoders@yahoogroups.com, Steve Mathews [EMAIL PROTECTED] wrote: Well using the non-module approach (again, I haven't used modules so I can't speak for that method), you at least need to know what class to instantiate. It sounds like you are doing something very similar in concept to what I am. So I provide an API (interface) that an external developer builds their class to. All I need to know from them is what the fully qualified class path is. Steve On 9/18/07, b_alen [EMAIL PROTECTED] wrote: Cheers guys, just one quick check, is it possible with these two methods: 1. I make an application and deploy it on the web. 2. You, knowing nothing about the application except the API I provide you, write the extension and submit it in form of swf on my server. 3. My application recognizes that the new extension has been submitted, it downloads it and uses the code from there. Let's say I have an employee management system, where different operations can be made on the employee. You write an extension where user can for example use their web cam in order to save a pic in the database. Now application is already up and running, and you submit this to the server, I don't have to recompile and know nothing about your part and all you need to know is my API. It's purely a hypothetical example but for the case above I would provide something like that probably: ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String); ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object); you would call this from your swf like this: ModelLocator.empDataManager.addEmployeeDetail(webcam_pic, Webcam pic); ModelLocator.empDataManager.editEmployeeDetail(webcam_pic, picData); What do you think? --- In flexcoders@yahoogroups.com, Steve Mathews happydog@ wrote: You can use LoadModule, which might be the best way to go. But I am doing a AS3 only project (no flex framework) and am doing this using applicationDomain.getDefinition which works great. On 9/17/07, Tom Chiverton tom.chiverton@ wrote: On Monday 17 Sep 2007, alen.balja@ wrote: I tried Google but I couldn't find anything, maybe it's pretty easy and maybe it's impossible. Anyone has any ideas? LoadModule -- Tom Chiverton Helping to continuously bully cross-media mindshares on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- 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
Re: [flexcoders] Re: Validating items in DataGrids
I remember I did it like this: public class FilesDataGridColumnEditor extends TextInput { public function SomeDataGridEditor() { _validator.source = this; _validator.triggerEvent = change; _validator.required = true; _validator.property = text; } private var _validator : Validator = new SomeValidator(); } It's not the best practices, but as far as I remember it worked. :) R. On 9/18/07, merelypixels [EMAIL PROTECTED] wrote: seems to me that no mucking about with itemEditors is necessary... extract the data you need from your dataProvider and then validate that data directly before sending it on. If you want the little red validation things, you should probably validate on a field by field basis using the dataGrids itemEditEnd event, validating using dg.itemEditorInstance and doing e.preventDefault() if the field is invalid. Hope that helps! -Pixels --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, j_lentzz [EMAIL PROTECTED] wrote: Hi, I'm now trying to validating the contents of a datagrid and I was wondering if there is an established way to do this. It seems like I would need to get an instance of the itemEditor and somehow pass it the value on that row. Then I would either call a validator against that editor, or call a method contained in the itemEditor to do the validation. I can get the itemEditor to do validation when the user is entering data, but I need to be able to do validation on all the entries in the datagrid when the save button is pressed - to handle the cases of missing data in required datagrid fields. I've found some examples of how to validate when the user is entering data for that field, but not for validating the complete datagrid. Any help or ideas would be greatly appreciated. John
Re: [flexcoders] Use two DataBase tables values in a Datagrid
- Original Message - From: jack4sol [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 19, 2007 10:18 AM Subject: [flexcoders] Use two DataBase tables values in a Datagrid The issue is I need to populate values from 2 tables, one needs to be a list of names(from 1 table) and the other a dropdown box containing dynamic values(and this needs to be done from another table) Mainly, gettin 2 columns from different tables in one grid...is this possible firstly? Please suggest ways to do the same.. You don't say how the data is getting from the database to the flex app. You could have a view on the database that includes the columns from two tables. Server-side you could read from the two tables and amalagmate the data before passing to flex. You could pass the data separately to flex from the server and amalgamate it there. or You could.. Paul
Re: [flexcoders] navigateToURL() GET method works fine, but POST doesn't work.
Useing GET method will display results fine. whereas POST method gives me output as if no parameters being received on the controller side. I tried with ServiceCapture, With GET, it displays me the Request Parameters tab and the list of parameters in there. With POST, it doesn't display any Parameters tab in Request window, so no parameter list. Thanks, Manu. Tom Chiverton-2 wrote: On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote: if I 'll change the url.method = GET, it is working fine.. but not with POST. WHY??? Does it throw an exception ? What happens (or not) ? Does WireShark/ServiceCapture show traffic going somewhere ? -- Tom Chiverton Helping to autoschediastically architect high-yield solutions on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- View this message in context: http://www.nabble.com/navigateToURL%28%29--GET-method-works-fine%2C-but-POST-doesn%27t-work.-tf4478874.html#a12773937 Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] navigateToURL() GET method works fine, but POST doesn't work.
With POST, it doesn't display any Parameters tab in Request window, so no parameter list. Have you checked with the docs you don't need to set the parameters a different way ? -- Tom Chiverton Helping to simultaneously engineer turn-key m-commerce on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Adding buttons to an Accordion header
Thx much for the quick packaging. But this should work with just the files from the svn and FB's Source path, shouldn't it? On 9/18/07, Doug McCune [EMAIL PROTECTED] wrote: Yeah, you need to download flexlib. I just updated the zip file to include the CanvasButtonAccordionHeader component. Download it here: http://code.google.com/p/flexlib/downloads/list unzip that zip file, grab the flexlib.swc file out of the bin directory that gets unzipped. Add that into your project directory and set the project preferences panel to reference that SWC file. Doug On 9/18/07, Steve Hueners [EMAIL PROTECTED] wrote: I seem to be missing a step in configuring my project's implementation of this [to Peter Griffinize my adulation] freak'n awesome component. Am told: Could not resolve CanvasButtonAccordionHeader to a component implementation. HeaderRenderer.mxml CanvasButtonAccodionHeader I've set a sourcepath but with no import being declared it isn't clear how/where sourcepath is referenced. given the http in the namespace is everything coming from flexlib? utmost thx --steve... On 9/18/07, Doug McCune [EMAIL PROTECTED] doug%40dougmccune.com wrote: Aight, check this out: http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/ Doug On 9/17/07, Doug McCune [EMAIL PROTECTED] doug%40dougmccune.com wrote: I might try to do a full post about this soon, but you can try checking out the CanvasButton component in FlexLib. Basically this is a subclass of Button that works like Canvas, so you can easily add whatever children to it that you want. So you would use that to create your header renderer, which you can set as a header renderer because it actually subclasses Button. You can get the FlexLib components here: http://code.google.com/p/flexlib/ Hopefully that makes some sense. I'll try to write up a post soon since I've seen this question asked multiple times. Doug On 9/17/07, Alex Harui [EMAIL PROTECTED] aharui%40adobe.com wrote: Yes, but you have to float buttons over the header. Someone may have done this already. From: [EMAIL PROTECTED] ups.com [mailto: flexcoders@ yahoogroups.com] On Behalf Of kundigee Sent: Monday, September 17, 2007 8:27 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Adding buttons to an Accordion header I am dynamically creating an Accordion at run time. I place a new panel in the Accordion which generates a new Accordion header that I attribute an icon to. All good so far. I need to dynamically place +/- buttons on the right side of each header to give the user the ability to replicate, or delete the panel/Accordion component. I can't seem to addChild to the header with a child button. The Accordion header is a button itself and not a container. I started to create a custom MXML module extending Button, which I intended to substitute via the headerRenderer if I could work something out, but that also will not allow me to drop anything onto the component, as it is not a container. Is there any way to do what I am trying to accomplish?
Re: [flexcoders] navigateToURL() GET method works fine, but POST doesn't work.
Yes, I confirmed it with adobe docs. http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequest.html#includeExamplesSummary Even I copy/pasted the code given there in the example in the method property section, that one is not working for me. Where I am making mistake :( Tom Chiverton-2 wrote: With POST, it doesn't display any Parameters tab in Request window, so no parameter list. Have you checked with the docs you don't need to set the parameters a different way ? -- Tom Chiverton Helping to simultaneously engineer turn-key m-commerce on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- View this message in context: http://www.nabble.com/navigateToURL%28%29--GET-method-works-fine%2C-but-POST-doesn%27t-work.-tf4478874.html#a12774456 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Redirect to login page: from flex to jsp in struts
Hii Can someone tell me how do i unload flex and load/redirect to login page, once the session is over. Currently, when the session is over. Obviously I cannot access any data from the server side. But my flex GUI will still remain there and it doesn't unload from the screen. Can anyone guide me in the right direction. Thanks. -- View this message in context: http://www.nabble.com/Redirect-to-login-page%3A-from-flex-to-jsp-in-struts-tf4480003.html#a12774460 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Load all classes implementing an interface
Hi, I have created an swc library with an interface and some classes implementing this interface. I get objects from the server of the same type and interface, and everything works fine if I do like this: private function serverResultHandler(event:ResultEvent):void{ var obj:Object = event.result; //All classes implementing IMyInterface //They are all in an swc library //Hell breaks loose if I leave out these four lines var s1:MyFirstClass; var s2:MySecondClass; var s3:MyThirdClass; var s4:MyFourthClass; if(obj is IMyInterface){ var short:IMyInterface= obj as IMyInterface; //process it... } } if I leave out the 4 lines initing my classes, the event.result will be of the type ObjectProxy. However, all classes are compiled in my swf since they are in the swc library. Is there a way to load all classes implementing an interface dynamically? Regards, Leen Toelen
[flexcoders] Reply Please !!!
Please some one reply me, i am still waiting for the answer of the following question Thanks Tehseen Ahmed --- In flexcoders@yahoogroups.com, ktadawn [EMAIL PROTECTED] wrote: Hi, I've already post a question that How a page of flex can be scrolled up using code. OR As in HTML we use Bookmark to move up or down , what is alternatve of this thing in Flex ? Thanks, Tehseen Ahmed
[flexcoders] compile all classes on the command line
Hi, is there a command line parameter to compc that makes it compile all classes in a folder and all of its subfolder? Right now I create all my as classes, and I have to use the flex builder interface to select which classes need to be compiled in my library. It would be far easier to automate this using compc using the command line. I only found the method of specifying all classes on the command line. Regards, Leen Toelen
[flexcoders] Re: HTTPService: Request timed out
Well, the following steps were done: 1 PHP.ini zlib.output_compression = Off 2. Apache - ssl_mod configuration SSLSessionCache none 3. Disable deflation in Apache #LoadModule defalte_module modules/mod_deflate.so 4. PHP code which generates XML //generate XML ob_flush(); flush(); Problem is still there.
[flexcoders] Re: Removing children when they have no id
Thanks so much for your help Alex! The support on this forum is excellent Don
RE: [flexcoders] DelegateFactory
Hi Sammi, Normal you don't need that sort of logic, but in this case it seems like you do. So your logic below seems correct, I guess you will have a global property that will define which service to use and then each delegate will take care of doing the apppropriate calls. So you can move along with your idea, it should work out just fine. Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sammi Sent: Monday, September 17, 2007 8:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DelegateFactory Hi, Am am creating a Cairngorm app that needs to support the API of a number of similar online webservices. All the webservices supply the same functionality - just in a slightly different way. My idea is this. Use the FactoryPattern for the Delegates. So when a Command needs a delegate it calls the Factory and the factory supplies the command with a delegate. So the command needs a LoginDelegate. It gets a LoginDelegateForWebServiceA(), because the user has previously configured the app to use web service A. I am just so new to actually applying design patterns. I have read many articles and books (Head first Java books are GREAT!) so I understand the concept. I just haven't used it much so I am not sure if my idea is any good. Is this the way to go? Can you point me at any good articles on how to support multiple backends? Best, Sammi -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
Re: [flexcoders] Reply Please !!!
Hi, Guaranteed you will NOT get an answer to your question talking like this and having a subject line that YELLS Reply Please!!! What makes you any different from those that never get their questions answered either? Remember that this is a public forum which means it's all free information given free by people that take time to answer other peoples questions. BTW, Adobe does have pay support programs you might want to check out. Peace, Mike On 9/19/07, ktadawn [EMAIL PROTECTED] wrote: Please some one reply me, i am still waiting for the answer of the following question Thanks Tehseen Ahmed --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, ktadawn [EMAIL PROTECTED] wrote: Hi, I've already post a question that How a page of flex can be scrolled up using code. OR As in HTML we use Bookmark to move up or down , what is alternatve of this thing in Flex ? Thanks, Tehseen Ahmed -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] using editor in datagrid causing refresh of dataGrid
I'm using CheckBox in DataGrid. Editing this component, cause the datagird to refresh, ITEM__EDIT_BEGINNING event is thrown and this cause updateDisplayList of all the datagrid. The all action and indication of the click is very slow, since the DataGrid fully refreshed. Is there a way to prevent/by-passing this refresh??? Thanks, Hadi
Re: [flexcoders] Enhanced auto complete
On Tuesday 18 Sep 2007, [EMAIL PROTECTED] wrote: e n_usextid=1047291 loc=en_usextid=1047291 with autocomplete feature, but whose data provider would be a remote component with many records, like a 1 employees list . I don't want the complete list to be loaded on the client side. I found some auto complete text input or combobox but none of them works that way. Do that exists? Did you look at http://weblogs.macromedia.com/sho/archives/2006/04/new_version_of.cfm ? -- Tom Chiverton Helping to preemptively iterate back-end paradigms on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Code behind - class extend mxml vs. mxml extend class
Hi, I just wanted to use code behind in a flex application, but wasn´t sure which way to go. In all Examples/Mailinglists,... following method was used. MyClassCodeBehind extends e.g. Canvas in the MyClass.mxml the root node is type of MyClassCodeBehind. The mxml class extends more or less the class MyClassCodeBehind. In this case the class MyClassCodeBehind of course has no access to the components in the mxml file. So all components have to be declared in the class MyClassCodeBehind as public properties. From the mxml file I can access Methods of class MyClassCodeBehind. If I make it the other way round, I can extend MyClass.mxml in class MyClassCodeBehind and don´t have to declare all components as properties because they are already derived from the parent MyClass.mxml. Drawback of this method is that if I want to call a method in the MyClass.mxml I have to implement a stub in MyClass.mxml and overwrite it in MyClassCodeBehind. But I don´t want to make function calls in mxml anyway. I want to have the code in the code behind. Have I missed something specific, why everyone is using the first method and not the other option? cheers, Christoph
[flexcoders] Re: Validating items in DataGrids
I'm doing something like that right now for the individual cells. I've integrated a validator into the cell object. However, I need to be able to validate the complete datagrid when the save button is pressed. If the user never moves to a cell, I can't use the itemEditEnd to validate, I need to move through the data and check. Using the itemEditor.newInstance() and calling my validation routine, I can detect that a validation fails. Now I'm going to try to use the itemRenderer property to indicate the nice red boxes. John --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: I remember I did it like this: public class FilesDataGridColumnEditor extends TextInput { public function SomeDataGridEditor() { _validator.source = this; _validator.triggerEvent = change; _validator.required = true; _validator.property = text; } private var _validator : Validator = new SomeValidator(); } It's not the best practices, but as far as I remember it worked. :) R. On 9/18/07, merelypixels [EMAIL PROTECTED] wrote: seems to me that no mucking about with itemEditors is necessary... extract the data you need from your dataProvider and then validate that data directly before sending it on. If you want the little red validation things, you should probably validate on a field by field basis using the dataGrids itemEditEnd event, validating using dg.itemEditorInstance and doing e.preventDefault() if the field is invalid. Hope that helps! -Pixels --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, j_lentzz jelentz@ wrote: Hi, I'm now trying to validating the contents of a datagrid and I was wondering if there is an established way to do this. It seems like I would need to get an instance of the itemEditor and somehow pass it the value on that row. Then I would either call a validator against that editor, or call a method contained in the itemEditor to do the validation. I can get the itemEditor to do validation when the user is entering data, but I need to be able to do validation on all the entries in the datagrid when the save button is pressed - to handle the cases of missing data in required datagrid fields. I've found some examples of how to validate when the user is entering data for that field, but not for validating the complete datagrid. Any help or ideas would be greatly appreciated. John
Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class
MyClassCodeBehind extends e.g. Canvas An AS class, yup. in the MyClass.mxml the root node is type of MyClassCodeBehind. The mxml class extends more or less the class MyClassCodeBehind. Yeah, the MXML extends the AS. In this case the class MyClassCodeBehind of course has no access to the components in the mxml file. What you should have done is declare a public Bindable in the code behind AS for each Button or whatever in the MXML file, where the variable name in the AS class matches the id parameter in the MXML. The creationComplete() handler for the AS class then attaches all the eventListeners. Have you seen http://ricoonflex.wordpress.com/2007/07/05/apply-code-behind-to-components/ ? -- Tom Chiverton Helping to confidentially leverage back-end architectures on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class
What you should have done is declare a public Bindable in the code behind AS for each Button or whatever in the MXML file, where the variable name in the AS class matches the id parameter in the MXML. The creationComplete() handler for the AS class then attaches all the eventListeners. That´s exactly what I want to prevent with the second suggestion. In this inheritence usage I have to add manually ALL components on stage as a public property and set the id as attribute as you already mentioned. The point I´m not sure about is class extends mxml vs. mxml extends class. Shall the MXML extend the CodeBehind class as suggested in the examples, or the CodeBehind class extend the MXML. I hope this makes it clearer, what I´m not sure about. cheers, Christoph On 9/19/07, Tom Chiverton [EMAIL PROTECTED] wrote: MyClassCodeBehind extends e.g. Canvas An AS class, yup. in the MyClass.mxml the root node is type of MyClassCodeBehind. The mxml class extends more or less the class MyClassCodeBehind. Yeah, the MXML extends the AS. In this case the class MyClassCodeBehind of course has no access to the components in the mxml file. What you should have done is declare a public Bindable in the code behind AS for each Button or whatever in the MXML file, where the variable name in the AS class matches the id parameter in the MXML. The creationComplete() handler for the AS class then attaches all the eventListeners. Have you seen http://ricoonflex.wordpress.com/2007/07/05/apply-code-behind-to-components/? -- Tom Chiverton Helping to confidentially leverage back-end architectures on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Validating items in DataGrids
Then all you need is dataProvider. Validate items held in there. And change some property of the item that indicates whether it's valid or not. Then item renderer easily can draw something bad basing on that info. R. On 9/19/07, j_lentzz [EMAIL PROTECTED] wrote: I'm doing something like that right now for the individual cells. I've integrated a validator into the cell object. However, I need to be able to validate the complete datagrid when the save button is pressed. If the user never moves to a cell, I can't use the itemEditEnd to validate, I need to move through the data and check. Using the itemEditor.newInstance() and calling my validation routine, I can detect that a validation fails. Now I'm going to try to use the itemRenderer property to indicate the nice red boxes. John --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: I remember I did it like this: public class FilesDataGridColumnEditor extends TextInput { public function SomeDataGridEditor() { _validator.source = this; _validator.triggerEvent = change; _validator.required = true; _validator.property = text; } private var _validator : Validator = new SomeValidator(); } It's not the best practices, but as far as I remember it worked. :) R. On 9/18/07, merelypixels [EMAIL PROTECTED] wrote: seems to me that no mucking about with itemEditors is necessary... extract the data you need from your dataProvider and then validate that data directly before sending it on. If you want the little red validation things, you should probably validate on a field by field basis using the dataGrids itemEditEnd event, validating using dg.itemEditorInstance and doing e.preventDefault() if the field is invalid. Hope that helps! -Pixels --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, j_lentzz jelentz@ wrote: Hi, I'm now trying to validating the contents of a datagrid and I was wondering if there is an established way to do this. It seems like I would need to get an instance of the itemEditor and somehow pass it the value on that row. Then I would either call a validator against that editor, or call a method contained in the itemEditor to do the validation. I can get the itemEditor to do validation when the user is entering data, but I need to be able to do validation on all the entries in the datagrid when the save button is pressed - to handle the cases of missing data in required datagrid fields. I've found some examples of how to validate when the user is entering data for that field, but not for validating the complete datagrid. Any help or ideas would be greatly appreciated. John
RE: [flexcoders] nulling primitive data types
The default value and NULL are very different things. NULL means the data point is not known or not set yet. If you just use the default values then there is no way to differentiate between a 0 value that is there because it happens to be the default or a 0 value that is correctly zero based on user input or application rules. And setting things to not nullable in the database only works if your data truly is not nullable. You're suggesting the user change his application data rules because the language doesn't support nullable booleans. Shouldn't the application rules dictate what the application does and not the language the application happens to be programmed in? :-) Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of EECOLOR Sent: Wednesday, September 19, 2007 2:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] nulling primitive data types These are the simple types and their default values: uint - 0 int - 0 Number - NaN String - null Boolean - false I still do not get your problem. In your database a representation of a boolean would be a bit type. Which means that it's either true or false. You could look at your problem in antother way. A boolean should have two values, that's what the term suggests. Your database however adds another value: NULL. This is kinda strange. You could set the field in your database to NOT NULLABLE and declare a default value. The field in the database should represent something that is either true or false. I hope this last bit makes any sense, quite hard to tell in a language which is not your own. Greetz Erik
[flexcoders] Saving istance of Canvas object
Hi, I have created a small module like paint brush in Flex. Here I have a Canvas and I can add shapes like ellipse, rectangle etc on it. The canvas also contains some child canvas etc. Now, I want to save the object of Main Canvas in which shapes and other children canvases are added. I can save the object in database or file. Is there any way to save instance of the Object like Canvas? Can any one guide me how can I do this? Thanks in advance, Vishal. -- View this message in context: http://www.nabble.com/Saving-istance-of-Canvas-object-tf4474252.html#a12756682 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Can't style a cursor with CSS, can you?
In order to allow cursor styles to be set on a per instance basis, this is the approach I am considering. Feedback is greatly appreciated. - Give my class a property called cursorStyleName. - Set a default cursorStyleName in constructor - In setCursor() method, I use the following code: var cursorStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration(. + cursorStyleName); cursorClass = cursorStyle.getStyle(resizeCursorVSkin); CursorManager.setCursor(cursorClass, ) Thoughts? Is this appropriate? Thanks, Ben --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ben, moveCursorSkin:Embed(source=moveCursor.png); Embed creates a class. You could also use setStyle(moveCursorSkin, MyCursorClass); or; moveCursorSkin:ClassReference(my.package.cursors.MyCursorClass); bottom line is my manager calls basically, var cls:Class = styleName.getStyle(cursorSkinName + Skin); if (cls) { CursorManager.setCursor(cls, 0, offsetX, offsetY); } Peace, Mike On 9/18/07, ben.clinkinbeard [EMAIL PROTECTED] wrote: Not sure I follow you. How do you glean a class from those styles? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Thats why for all of my custom components and managers I created a new CursorManager that wraps the mx one. In each of the managers or components I have; /* * The move cursor skin for the MoveManagerFX. */ moveCursorSkin:Embed(source=moveCursor.png); /* * The move cursor's x offset. */ moveCursorXOffset:-10; /* * The move cursor's y offset. */ moveCursorYOffset:-10; styles. Where the styles names are organized by; cursorName + Skin; cusrorName + XOffset; cursorName + YOffset; The custom cursor manager then uses the styleName of the client to get what ever cursor is needed. There then can easily be set in styles anywhere. Peace, Mike On 9/18/07, ben.clinkinbeard ben.clinkinbeard@ wrote: Pretty sure its not possible but just looking for confirmation. Since CursorManager.setCursor() expects a class I assume thats the only way. Correct? Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Validating items in DataGrids
True. Good idea. I've already coded the method to increment a counter to display number of failed items. I'll modify the item renderer too and see what appears. Thanks, John --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Then all you need is dataProvider. Validate items held in there. And change some property of the item that indicates whether it's valid or not. Then item renderer easily can draw something bad basing on that info. R. On 9/19/07, j_lentzz [EMAIL PROTECTED] wrote: I'm doing something like that right now for the individual cells. I've integrated a validator into the cell object. However, I need to be able to validate the complete datagrid when the save button is pressed. If the user never moves to a cell, I can't use the itemEditEnd to validate, I need to move through the data and check. Using the itemEditor.newInstance() and calling my validation routine, I can detect that a validation fails. Now I'm going to try to use the itemRenderer property to indicate the nice red boxes. John --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Roman Protsiuk roman.protsiuk@ wrote: I remember I did it like this: public class FilesDataGridColumnEditor extends TextInput { public function SomeDataGridEditor() { _validator.source = this; _validator.triggerEvent = change; _validator.required = true; _validator.property = text; } private var _validator : Validator = new SomeValidator(); } It's not the best practices, but as far as I remember it worked. :) R. On 9/18/07, merelypixels merelypixels@ wrote: seems to me that no mucking about with itemEditors is necessary... extract the data you need from your dataProvider and then validate that data directly before sending it on. If you want the little red validation things, you should probably validate on a field by field basis using the dataGrids itemEditEnd event, validating using dg.itemEditorInstance and doing e.preventDefault() if the field is invalid. Hope that helps! -Pixels --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, j_lentzz jelentz@ wrote: Hi, I'm now trying to validating the contents of a datagrid and I was wondering if there is an established way to do this. It seems like I would need to get an instance of the itemEditor and somehow pass it the value on that row. Then I would either call a validator against that editor, or call a method contained in the itemEditor to do the validation. I can get the itemEditor to do validation when the user is entering data, but I need to be able to do validation on all the entries in the datagrid when the save button is pressed - to handle the cases of missing data in required datagrid fields. I've found some examples of how to validate when the user is entering data for that field, but not for validating the complete datagrid. Any help or ideas would be greatly appreciated. John
[flexcoders] Re: caching in Flex
sure, i'll let you know. I am a starter with all this. and really thankful to you for your valuable suggestions --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Remember to have a way to turn the cache on and off - then you can measure how effective it is. Naturally, it takes time to fill a cache with enough results before it becomes effective. A server side cache is effectively saving you the time involved in a database query (for all clients), but not saving you any transfer time for the results ( which may be significant for large amounts of data). I don't think that you ever said what large was! A client-side cache would save you db access time and transfer time, but only for that specific client. Let us know how good the improvement is! Paul - Original Message - From: seemaherein [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, September 18, 2007 8:11 AM Subject: [flexcoders] Re: caching in Flex Thanks Paul Tom I'm planning to implement server side cache.
[flexcoders] caringorm architecture
Hi, i have been asked to look at caringorm architecture usage for my applications. I searched on net for tutorial but coudn't find a good one. If anybody has any tutorial, please send that across or if any online tutorial is available, let me know the link. Thanks Seema
Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote: That´s exactly what I want to prevent with the second suggestion. In this inheritence usage I have to add manually ALL components on stage as a public property and set the id as attribute as you already mentioned. It's worth doing to make the separation of code and view as clean as it does. A typical view only has a few, maybe a dozen, controls - if not, you should refactor *anyway* even if you're not doing code behind. Everything has a cost. You have to ask is it worth it. I happen to think for all but trivial views it is. The point I´m not sure about is class extends mxml vs. mxml extends class. Shall the MXML extend the CodeBehind class as suggested in the examples, or the CodeBehind class extend the MXML. If you do something other people don't (like this backwards-code-behind) you make it harder for other people to work with you. This may or may not be a problem. -- Tom Chiverton Helping to adaptively improve high-end initiatives on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] httpservice and crud
One HTTPService instance will work fine. Instantiate it with AS, or declare it in mxml as you choose. Then, in the function where you are going to invoke the send(), you can any properties you wish. The main property you will probably set is the url. Instead of declaring the request object in mxml as you show, build it in AS just before you invoke send() You can also set a property on the AsyncToken, which you can then access in the result handler function, in order to identify the result to perform the desired processing. Below are some snippets. Tracy Sample code using HTTPService, e4x, handler function to populate a list item. Also shows usage of AsyncToken. The DataGrid tag: mx:DataGrid id=dg dataProvider={_xlcMyListData} .../ The HTTPService tag: mx:HTTPService id=service resultFormat=e4x result=onResult(event) fault=/ Script block declaration: import mx.rpc.Events.ResultEvent; [Bindable]private var _xlcMyListData:XMLListCollection; Invoke send: var oRequest:Object = new Object(); oRequest.calDate = fmtDate.format(dateChoose.selectedDate); oRequest._update = true; var callToken:AsyncToken = service.send(oRequest); token.callId = myQuery1; Result Handler function: private function onResult(oEvent:ResultEvent):void { var xmlResult:XML = XML(event.result);//converts result Object to XML. can also use as operator var xlMyListData:XMLList = xmlResult.myListData; //depends on xml format, is row data _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the XMLList in a collection trace(_xlcMyListData.toXMLString()); //so you can see exactly how to specify dataField or build labelFunction var callToken:AsyncToken = oEvent.token; var sCallId = callToken.callId; //myQuery1 switch(sCallId) { case myQuery1: doWhatever(); //massage data, call another query, whatever break; ... } }//onResult From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nylarch Sent: Sunday, September 16, 2007 10:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] httpservice and crud noob question alert. Just starting on flex. I'm doing a simple CRUD page working with a calendar. Do I need to do seperate HTTPService components for the different CRUD operations or is it possible to dynamically pass in requests to one service since I'm doing all of the operations on the same backend php page. i.e. do you need to seperate: mx:HTTPService id=getEvent url=_calendar.php resultFormat=text method=GET mx:request calDate{fmtDate.format(dateChoose.selectedDate)}/calDate /mx:request /mx:HTTPService mx:HTTPService id=updateEvent url=_calendar.php method=GET result=getEvent.send() mx:request calDate{fmtDate.format(dateChoose.selectedDate)}/calDate _updatetrue/_update /mx:request /mx:HTTPService or can I dynamically pass in the in update=true and just use one service for both Get and Update. Thanks.
RE: [flexcoders] Doubt with Combo box
Are you also getting the file contents in the same RemoteObject call that returns the file Names? If so, then the content will be in a property of your dataprovider items, and you can access and item property like this: myComboBox.selectedItem.myProperty; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Preet Sent: Wednesday, September 19, 2007 5:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Doubt with Combo box Hi All, In my application I used the combo Box to display a list of files(file Names). These files are retrived from a file using Remote object. Now, when I click on the fileName the contents in the file has to be displayed on the text area. But when i clicked on the file name the filename is displaying on the text area. Can anyone help me how to achieve this. If anyone could give me a suggestion, I'd appreciate it. Thanks, Preet.
RE: [flexcoders] Redirect to login page
You could poll the server at intervals. When the session is gone, restart/reste the app, either programatically, or by calling NavigateToURL with target _self. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Tuesday, September 18, 2007 10:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Redirect to login page Hii Can someone tell me how do i unload flex and load/redirect to login page, once the session is over. Currently, when the session is over. Obviously I cannot access any data from the server side. But my flex GUI will still remain there and it doesn't unload from the screen. Can anyone guide me in the right direction. Thanks. -- View this message in context: http://www.nabble.com/Redirect-to-login-page-tf4478453.html#a12769927 http://www.nabble.com/Redirect-to-login-page-tf4478453.html#a12769927 Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] dynamic title of a panel
That looks ok. Debug this. First set the title to a hard coded string. Does that work? Next get the string in portafolio.client in a local var and trace it. Do you see it? Replace the hard coded string with the variable. Here is an example that sets the title in a popup: http://www.cflex.net/showFileDetails.cfm?ObjectID=558 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Tuesday, September 18, 2007 3:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic title of a panel Hi coders I have an app I've been doing and something is out of my league now, well I have a mx:model its id is portafolio and it load an external xml file. well one of its part is client name of the client/client and I'm using the pop up manager in order to create a pop up panel the code is. mx:Script ![CDATA[ import mx.managers.PopUpManager; private var panel:Panel = new Panel(); private function openWindow(event:MouseEvent):void{ PopUpManager.addPopUp(panel, this); panel.title=portafolio.client;// this is the part of the problem I don't know how to bind the information of the xml client in the panel title// panel.width= 500; panel.height=300; } ]] /mx:Script The panel opens when the tile is clicked and everything is ok, but I need the name of the client in the title of each panel any ideas? Regards Gustavo Duenas
[flexcoders] How would you go about to make SuperImage support .swf?
SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ I need it to support .swf's - but I don't worry about the cache part - as long as it shows the swf. I guess it would have to be done in the commitProperties() function - somewhere here: if(newSource is Class) { // if it's a class, instantiate it. newSource = new newSource(); } // if it's bitmap or bitmap data, we know how to render that. if(newSource is Bitmap) { _content = newSource; } } .. an embedded swf would be a class. Is there a way to convert this to Bitmap so that SuperImage behaves as normal? Bjørn -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class
Hi Christoph, I think one of the things you should look into doing, is try to avoid directly referencing the items that are in your view in your code behind class. By doing so this will allow you rebuild your view without changing much to your base class. For example, say you have an application that has a number of buttons that trigger some action. In your BaseClass.as you could have a number of consts: [Bindable] protected static const LABEL_SUBMIT:String = Submit; [Bindable] protected static const LABEL_RESET:String = Reset; Then a simple function to handle the processing of buttons: protected function handleButtonClick(event:MouseEvent) { var b:Button = event.targat as Button; var label:String = b.label; if(label == LABEL_SUBMIT) { doSubmit(); } else if(label == LABEL_RESET) { doReset(); else { throw(new Error(Invalid Label)); } } Then in your mxml view you can just bind to the consts and make a call to the generic function: mx:Button label={LABEL_SUBMIT} click=handleButtonClick(event) / mx:Button label={LABEL_RESET} click=handleButtonClick(event) / This is an overly simplistic example, but it does demonstrate my point. As Tom also pointed out, by separating out the view and the code, it looks much cleaner and in turn is more maintainable. You'll also have code that is more unit testable if you can just load in a class and not have to worry about referencing an initialized view. --Josh On 9/19/07, Christoph Atteneder [EMAIL PROTECTED] wrote: What you should have done is declare a public Bindable in the code behind AS for each Button or whatever in the MXML file, where the variable name in the AS class matches the id parameter in the MXML. The creationComplete() handler for the AS class then attaches all the eventListeners. That´s exactly what I want to prevent with the second suggestion. In this inheritence usage I have to add manually ALL components on stage as a public property and set the id as attribute as you already mentioned. The point I´m not sure about is class extends mxml vs. mxml extends class. Shall the MXML extend the CodeBehind class as suggested in the examples, or the CodeBehind class extend the MXML. I hope this makes it clearer, what I´m not sure about. cheers, Christoph On 9/19/07, Tom Chiverton [EMAIL PROTECTED] wrote: MyClassCodeBehind extends e.g. Canvas An AS class, yup. in the MyClass.mxml the root node is type of MyClassCodeBehind. The mxml class extends more or less the class MyClassCodeBehind. Yeah, the MXML extends the AS. In this case the class MyClassCodeBehind of course has no access to the components in the mxml file. What you should have done is declare a public Bindable in the code behind AS for each Button or whatever in the MXML file, where the variable name in the AS class matches the id parameter in the MXML. The creationComplete() handler for the AS class then attaches all the eventListeners. Have you seen http://ricoonflex.wordpress.com/2007/07/05/apply-code-behind-to-components/ ? -- Tom Chiverton Helping to confidentially leverage back-end architectures on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008 . For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Getting error string in FaultEvent passed from Server side
The short answer is you can't. On fault, the browser does not pass that information to the Flash Player. Some workarounds include causing the server to return a different response code. Search the archives. I handle all server exceptions on the sever, and then package the error in xml that I return to the client. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Tuesday, September 18, 2007 5:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting error string in FaultEvent passed from Server side Hii I am unable to receive the error string passed from the Server side in the FaultEvent object. Am using HttpService. From Server side, am throwing an error string like: throw new ServletException(Some error string); Now, how can I receive it in the Flex private function faultHandler(event:FaultEvent){ event.fault.???; } Can anyone guide me please. Thanks. -- View this message in context: http://www.nabble.com/Getting-error-string-in-FaultEvent-passed-from-Ser ver-side-tf4472831.html#a12752985 http://www.nabble.com/Getting-error-string-in-FaultEvent-passed-from-Se rver-side-tf4472831.html#a12752985 Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Could people watch their subject lines ?
Sorry - I think I am a culprit! Is it just me or does the flexcoders emails always have [SPAM] in front of the subject? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 19 September 2007 09:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Could people watch their subject lines ? I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) -- Tom Chiverton, SPA-A-A-A-A-A-A-AM, SPA-A-A-A-A-A-A-AM, LOVELY SPAM, LOVELY SPAM ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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
Re: [flexcoders] Could people watch their subject lines ?
It sounds like your email program is doing it. Most 90% of the posts don't. Peace, Mike On 9/19/07, Paul Steven [EMAIL PROTECTED] wrote: Sorry - I think I am a culprit! Is it just me or does the flexcoders emails always have [SPAM] in front of the subject? -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Tom Chiverton Sent: 19 September 2007 09:56 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Could people watch their subject lines ? I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) -- Tom Chiverton, SPA-A-A-A-A-A-A-AM, SPA-A-A-A-A-A-A-AM, LOVELY SPAM, LOVELY SPAM ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Actionscript sprite within the Flex framework
I'm trying to do a primarily Actionscript 3 written Flex app writing within the Flex framework. Following Moock's Actionscript 3.0: The Essential Guide examples, I have set up a simple 3 file project, all files in the same folder. The app attempts to draw a circle on the stage. See code and errors below: //Application MXML file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=EntryClass.main() /mx:Application //EntryClass.as file package { import mx.controls.Button; import mx.core.Application; public class EntryClass { public static function main():void { var testSprite:TestSprite = new TestSprite(12, 100, 100); var mxmlApp:Application = Application(Application.application); mxmlApp.addChild(testSprite); } } } //TestSprite.as file package { import flash.display.Sprite; class TestSprite extends Sprite { private var _x:int; private var _y:int; private var _radii:int public function TestSprite(size:int, posx:int, posy:int) { x = posx; y = posy; _radii = size; graphics.lineStyle(1, 0xFFCC33); graphics.beginFill(0xCC3300, 1); graphics.drawCircle(0, 0, _radii); graphics.endFill(); } } } Before compiling, I get this error: 1084: class 'TestSprite' will be scoped to the default namespace: internal. It will not be visible outside of this package. After compiling, the debugger gives this error: TypeError: Error #1034: Type Coercion failed: cannot convert ::[EMAIL PROTECTED] to mx.core.IUIComponent. at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChi ld() What's happening here? Is there a better way to set this up? Thanks. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team
RE: [flexcoders] Could people watch their subject lines ?
I think it is the spam filter system on your machine. It is probably configurable. How do you access the list? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: Wednesday, September 19, 2007 10:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Could people watch their subject lines ? Sorry - I think I am a culprit! Is it just me or does the flexcoders emails always have [SPAM] in front of the subject? -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tom Chiverton Sent: 19 September 2007 09:56 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Could people watch their subject lines ? I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) -- Tom Chiverton, SPA-A-A-A-A-A-A-AM, SPA-A-A-A-A-A-A-AM, LOVELY SPAM, LOVELY SPAM ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: A file found in a source-path must have the same package structure
--- In flexcoders@yahoogroups.com, flashcrow2000 [EMAIL PROTECTED] wrote: When i usually get this error, I delete the package name and I hit Ctrl+Space, and let Flex autocomplete with its correct value. It might be a problem with the Folder name. I presume you have a folder list of something like com/classes/Events (if no, you might consider using one) I tried that after reading your suggestion and FB replaced the old name with..itself. The error still exists on compile. I'm following the folder structure suggested in the book, which is more natural than cramming everything into a com folder (and saves on the typing). Presumably any third party components would be designed to go into a com folder and so would not conflict with somethimg more utilitarian created outside of it. Thanks; Amy
[flexcoders] Editable DataGridColumn Binding
I have a datagrid with many columns populated by data coming from an XML dataprovider. Is there a way to have the column data value edited/entered by the user in any of the datagrid cells to update the original XML dataprovider using binding? I appreciate any pointers. Cheers, /Jan
Re: [flexcoders] caringorm architecture
Did you not like any of these? http://www.google.com/search?q=cairngorm+examples seemaherein wrote: Hi, i have been asked to look at caringorm architecture usage for my applications. I searched on net for tutorial but coudn't find a good one. If anybody has any tutorial, please send that across or if any online tutorial is available, let me know the link. Thanks Seema
Re: [flexcoders] Could people watch their subject lines ?
Tom Chiverton wrote: I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) I think it's just you, none of us are seeing this... maybe you are just hungry and see spam everywhere -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Code behind - class extend mxml vs. mxml extend class
As far as I know, Flex gods from Scotland do not advise the use of code behind approach as seen in .net. I was doing the same at the beginning but after having a chat with them I see why it's not good. First of all there is no code generator that would create references to all mxml elements in the accompanying AS class. Second and more important, you can't use data binding that way which is one of the most powerful features of Flex. And there is also third, which is Cairngorm. Cairngorm is ment to use mxmls as classes, so you treat them as a class. There's more to Cairngorm than this of course but if you'd like to implement it don't use code behind approach. Alen --- In flexcoders@yahoogroups.com, cubrip [EMAIL PROTECTED] wrote: Hi, I just wanted to use code behind in a flex application, but wasn�t sure which way to go. In all Examples/Mailinglists,... following method was used. MyClassCodeBehind extends e.g. Canvas in the MyClass.mxml the root node is type of MyClassCodeBehind. The mxml class extends more or less the class MyClassCodeBehind. In this case the class MyClassCodeBehind of course has no access to the components in the mxml file. So all components have to be declared in the class MyClassCodeBehind as public properties. From the mxml file I can access Methods of class MyClassCodeBehind. If I make it the other way round, I can extend MyClass.mxml in class MyClassCodeBehind and don�t have to declare all components as properties because they are already derived from the parent MyClass.mxml. Drawback of this method is that if I want to call a method in the MyClass.mxml I have to implement a stub in MyClass.mxml and overwrite it in MyClassCodeBehind. But I don�t want to make function calls in mxml anyway. I want to have the code in the code behind. Have I missed something specific, why everyone is using the first method and not the other option? cheers, Christoph
Re: [flexcoders] caringorm architecture
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote: i have been asked to look at caringorm architecture usage for my applications. I searched on net for tutorial but coudn't find a good one. What wasn't good about the DevNet one ? -- Tom Chiverton Helping to conveniently architect interactive networks on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Could people watch their subject lines ?
No, Paul, I am seeing this in your subject line, using Outlook. How are you accessing the list? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul deCoursey Sent: Wednesday, September 19, 2007 11:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Could people watch their subject lines ? Tom Chiverton wrote: I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) I think it's just you, none of us are seeing this... maybe you are just hungry and see spam everywhere -- 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
Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex
Leif Do you use enterely ant for compile your flex apps ?, why did you decide not to use flexBuilder instead (i mean i like the idea for use ant but i dont know how to convince my architect to use it instead of the flex builder)? Leif Wells [EMAIL PROTECTED] escribió: Matt, At my workplace, we normally have a team working on the front-end and another working on the Java back-end. Although we share the same Subversion repository, we place our code in separate folders. The front-end team uses the root of the flex folder as the base of our Flex Builder project. For compiling, assembling and deploying we use Ant. Seriously, Ant is awesome. Check out the Flex Ant Tasks found on Adobe Labs (http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks ) for some examples of the tasks. To generally describe this to you, we have two build.xml files, one in the Java folder and one in the Flex folder. The Java file will call to the Flex build file, compile the Flex files and assemble them, then compile the Java, move the Flex files into the Java deploy folder and then create the War file. When I come in to the office in the morning, I update my Subversion repository, run the build process, start Tomcat and load up Flex Builder. I can't share the Ant files with you today, but they honestly are fairly easy to put together. That is one of the great things about Ant --- it's fairly easy to use. I hope this helps you. Leif On 9/18/07, mattmadhavan [EMAIL PROTECTED] wrote: mattmadhavan wrote: Hi, I would like the have the best practice to set up a webapp in my Eclipse. What are the recommended directory structure for java/flex source folders? Do I first create a webproject in eclipse, then place my flex binary folders in the webroot/WEB-INF folder? Do I keep my flex src code under webroot or at the project folder? If some one can give me a step by step instruction on doing this I would appreciate it. I need to work with both Java(server side-J2EE) and flex client in the same project. Most flex app I see do not even have a webroot folder. They just have WEB-INF folder in the root folder. Please, any ideas will be very appreciated. Thanks Matt -- View this message in context: http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245 Sent from the FlexCoders mailing list archive at Nabble.com. - ¡Sé un mejor asador! Aprende todo sobre asados en: http://mx.yahoo.com/promos/mejorasador.html
Re: [flexcoders] Actionscript sprite within the Flex framework
The first error says you need the TestSprite class to be defined like: public class TestSprite extends Sprite The second error I initially thought was because the application addChild takes a UICompoent, but according to the help docs what you have 'should' work. I would try casting it as a DisplayObject although this probably isn't the correct way to fix it. mxmlApp.addChild(testSprite as DisplayObject); Steve On 9/19/07, Merrill, Jason [EMAIL PROTECTED] wrote: I'm trying to do a primarily Actionscript 3 written Flex app writing within the Flex framework. Following Moock's Actionscript 3.0: The Essential Guide examples, I have set up a simple 3 file project, all files in the same folder. The app attempts to draw a circle on the stage. See code and errors below: //Application MXML file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=EntryClass.main() /mx:Application //EntryClass.as file package { import mx.controls.Button; import mx.core.Application; public class EntryClass { public static function main():void { var testSprite:TestSprite = new TestSprite(12, 100, 100); var mxmlApp:Application = Application(Application.application); mxmlApp.addChild(testSprite); } } } //TestSprite.as file package { import flash.display.Sprite; class TestSprite extends Sprite { private var _x:int; private var _y:int; private var _radii:int public function TestSprite(size:int, posx:int, posy:int) { x = posx; y = posy; _radii = size; graphics.lineStyle(1, 0xFFCC33); graphics.beginFill(0xCC3300, 1); graphics.drawCircle(0, 0, _radii); graphics.endFill(); } } } Before compiling, I get this error: 1084: class 'TestSprite' will be scoped to the default namespace: internal. It will not be visible outside of this package. After compiling, the debugger gives this error: TypeError: Error #1034: Type Coercion failed: cannot convert ::[EMAIL PROTECTED] to mx.core.IUIComponent. at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChi ld() What's happening here? Is there a better way to set this up? Thanks. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -- 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] combobox data acess problem
hiii i am just biginner in flex ,but i like to lern more now i haneone problem When i compile this code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Panel x=10 y=10 width=350 height=200 title=Rate Customer Service mx:ComboBox id=cbxRating x=20 y=20 width=100 mx:ArrayCollection !-- These Object tags replace the String tags. -- mx:Object label=a data=3/ mx:Object label=b data=3/ /mx:ArrayCollection /mx:ComboBox mx:Button x=140 y=20 label=Send/ mx:Label x=20 y=120 text={cbxRating.selectedLabel}/ //problem here /mx:Panel /mx:Application i didn't got the expected result ie a or b.When i inserting text={cbxRating.selectedLabel} { cbxRating.selectedIndex} i get output as a0 or b1 What is the reason behind?
[flexcoders] How do i aggregate data into charts
I am have data that does not have a uniqui field and therefore I need to aggregate the values. eg. {Month: Feb, Profit: 1200, Expenses: 400, Amount: 57} {Month: Mar, Profit: 1000, Expenses: 200, Amount: 32} {Month: Apr, Profit: 2000, Expenses: 600, Amount: 20} {Month: Apr, Profit: 200, Expenses: 100, Amount: 80} I want to agregate the 'Apr' data to show aggregated data in the chart. Adding both Aprils will get me the following: {Month: Apr, Profit: 2200, Expenses: 700, Amount: 100} Is there an automatic way to tell Flex to aggregate the data? Thanks
RE: [flexcoders] Flex Builder/Webapp/Flex
Hi Matt, All our projects here are Flex/Java projects and I usually setup things like so: /src/sampleJar - all the java classes go here in there respective packages /src/sampleWeb - this is the webroot basically for the flex app /src/sampleWeb/WEB-INF - contains the web.xml and the flex subfolder with all the flex config files that are specific to the app Then we have a ant build script that compiles the java classes and the flex app and puts everything in the /build folder (it also takes all the other flex related files, like jars and whatnot from a central location and puts them in the /build/WEB-INF/flex folder). This is the way we have done it for all projects for now and it works. But I am always looking for ways to improve this and perhaps others can share their experiences. Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mattmadhavan Sent: Tuesday, September 18, 2007 6:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder/Webapp/Flex Hi, I would like the have the best practice to set up a webapp in my Eclipse. What are the recommended directory structure for java/flex source folders? Do I first create a webproject in eclipse, then place my flex binary folders in the webroot/WEB-INF folder? Do I keep my flex src code under webroot or at the project folder? If some one can give me a step by step instruction on doing this I would appreciate it. I need to work with both Java(server side-J2EE) and flex client in the same project. Most flex app I see do not even have a webroot folder. They just have WEB-INF folder in the root folder. Please, any ideas will be very appreciated. Thanks Matt -- View this message in context: http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12764911 http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12764911 Sent from the FlexCoders mailing list archive at Nabble.com. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: Could people watch their subject lines ?
Nope, I see them in the web interface too. --- In flexcoders@yahoogroups.com, Paul deCoursey [EMAIL PROTECTED] wrote: Tom Chiverton wrote: I'm as much a fan on Monty Python as anyone else, but trying to scan down a list of messages with subject lines like Re: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] is a total pain :-) I think it's just you, none of us are seeing this... maybe you are just hungry and see spam everywhere
[flexcoders] How to specify filenames in custom mxml components?
Hello, due the fact, that i'm not able to set the skinning of a checkBox Component via CSS, i like to create a custom checkBox. ?xml version=1.0 encoding=utf-8? mx:CheckBox xmlns:mx=http://www.adobe.com/2006/mxml; disabledIcon=../assets/passiv.gif downIcon=../assets/passiv.gif overIcon=../assets/passiv.gif upIcon=../assets/passiv.gif selectedDisabledIcon=../assets/aktiv.gif selectedDownIcon=../assets/aktiv.gif selectedOverIcon=../assets/aktiv.gif selectedUpIcon=../assets/aktiv.gif /mx:CheckBox The problem is, that the compiler doesn't accept the path data and the name of the files. How could it be done? Thanks, Frank
RE: [flexcoders] combobox data acess problem
selectedLabel is not bindable and probably should be. You can use selectedItem.label instead From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renjith Ramachndran Sent: Wednesday, September 19, 2007 2:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] combobox data acess problem hiii i am just biginner in flex ,but i like to lern more now i haneone problem When i compile this code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Panel x=10 y=10 width=350 height=200 title=Rate Customer Service mx:ComboBox id=cbxRating x=20 y=20 width=100 mx:ArrayCollection !-- These Object tags replace the String tags. -- mx:Object label=a data=3/ mx:Object label=b data=3/ /mx:ArrayCollection /mx:ComboBox mx:Button x=140 y=20 label=Send/ mx:Label x=20 y=120 text={cbxRating.selectedLabel}/ //problem here /mx:Panel /mx:Application i didn't got the expected result ie a or b.When i inserting text={cbxRating.selectedLabel} {cbxRating.selectedIndex} i get output as a0 or b1 What is the reason behind?
[flexcoders] Cannot use 'filterFunction' from an HTTPService request
I want to setup a datagrid that can filter from a textfield. I have data coming back from an API using the HTTPRequest tag. I know the filterFunction only works with ArrayCollection, but I thought that the data returned was in form of a ArrayCollection. However when I try to use the following function, it gives me an error. public function initApp():void { // Set filter function // Be careful to set filterFunction // only after ArrayCollection has been // populated. // sanData.filterFunction=processFilter; } public function processFilter(item:Object):Boolean { var result:Boolean=false; // If no filter text, or a match, then true if (!item.name.length || item.Expr2.toUpperCase().indexOf (txtFilter.text.toUpperCase()) = 0) result=true; return result; } Here is the HTTP call mx:HTTPService id=sanData url=someAPI result=sanDataHandler(event)/ Thanks
RE: [flexcoders] Flex Builder/Webapp/Flex
Hello Dimitrios Do you have propetary Flex libs in your proyect and if so, were do you place them? Dimitrios Gianninas [EMAIL PROTECTED] escribió: Hi Matt, All our projects here are Flex/Java projects and I usually setup things like so: /src/sampleJar - all the java classes go here in there respective packages /src/sampleWeb - this is the webroot basically for the flex app /src/sampleWeb/WEB-INF - contains the web.xml and the flex subfolder with all the flex config files that are specific to the app Then we have a ant build script that compiles the java classes and the flex app and puts everything in the /build folder (it also takes all the other flex related files, like jars and whatnot from a central location and puts them in the /build/WEB-INF/flex folder). This is the way we have done it for all projects for now and it works. But I am always looking for ways to improve this and perhaps others can share their experiences. Dimitrios Gianninas Development Team Lead Optimal Payments Inc. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mattmadhavan Sent: Tuesday, September 18, 2007 6:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder/Webapp/Flex Hi, I would like the have the best practice to set up a webapp in my Eclipse. What are the recommended directory structure for java/flex source folders? Do I first create a webproject in eclipse, then place my flex binary folders in the webroot/WEB-INF folder? Do I keep my flex src code under webroot or at the project folder? If some one can give me a step by step instruction on doing this I would appreciate it. I need to work with both Java(server side-J2EE) and flex client in the same project. Most flex app I see do not even have a webroot folder. They just have WEB-INF folder in the root folder. Please, any ideas will be very appreciated. Thanks Matt -- View this message in context: http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12764911 Sent from the FlexCoders mailing list archive at Nabble.com. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. - ¡Sé un mejor ambientalista! Encuentra consejos para cuidar el lugar donde vivimos en: http://mx.yahoo.com/promos/mejorambientalista.html
[flexcoders] access a component name using array variable
Hi, i have 3 images, with 'image1', 'image' and 'image3' as object id, and i have a function that will return an array index value of 1,2 and 3 i want to set the image source above depend on the value returned by the function so if the value returned 2, i want to set the source of image2 i know 'switch' or nesting if could do the trick manually, but is there any other way, to make it more neat and loose? thank you ary Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting
Re: [flexcoders] File upload compression (esp. gzip)?
Technically, I do not believe there is. You might take a look at this AS3 zip library: http://www.nochump.com/blog/?p=15 . fgamador wrote: Is it possible to write a Flash/Flex/AIR app that compresses large files during upload (ideally using gzip)? As far as I can tell, FileReference (and URLRequest) do not support this. Is there any other way? Thanks in advance for any tips. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Components in a TileList?
Hi, I'm pretty sure this is possible - but I can't get it working so wondered if anyone had an example of how I could do this: I have a TileList and on this TileList I'd like to show a number of Flex Components (most likely based on Tile I guess?). I've tried defining the TileList with a dataprovider ArrayCollection then creating a component based on Tile, creating an actionscript instance of the Tile and then inserting it into the ArrayCollection. I suspect though, that TileList requires something a little more precise if it's going to be able to render the Tiles... I hope the above makes some kind of sense... Can anyone help? Thanks, Jamie.
[flexcoders] Re: Can't style a cursor with CSS, can you?
You mean like this in a CSS file?: CursorManager { busyCursor: Embed(source=busy.png); busyCursorBackground: Embed(source=busyBg.png); } DragManager { copyCursor: Embed(source=copy.png); defaultDragImageSkin: Embed(source=dragImage.png); linkCursor: Embed(source=link.png); moveCursor: Embed(source=move.png); rejectCursor: Embed(source=reject.png); } Or switching cursors on an event, maybe. Juan scalenine.com degrafa.com --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Not sure I follow you. How do you glean a class from those styles? --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Thats why for all of my custom components and managers I created a new CursorManager that wraps the mx one. In each of the managers or components I have; /* * The move cursor skin for the MoveManagerFX. */ moveCursorSkin:Embed(source=moveCursor.png); /* * The move cursor's x offset. */ moveCursorXOffset:-10; /* * The move cursor's y offset. */ moveCursorYOffset:-10; styles. Where the styles names are organized by; cursorName + Skin; cusrorName + XOffset; cursorName + YOffset; The custom cursor manager then uses the styleName of the client to get what ever cursor is needed. There then can easily be set in styles anywhere. Peace, Mike On 9/18/07, ben.clinkinbeard ben.clinkinbeard@ wrote: Pretty sure its not possible but just looking for confirmation. Since CursorManager.setCursor() expects a class I assume thats the only way. Correct? Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Layout question
I have a component that I need to center within a control bar attached to a panel. But the control bar also has a couple of link buttons over on the left. In the rest of the app, I have not yet had a need for absolute layout or constraints. For this scenario, the following seems to work: - a Canvas in the control bar, - set horizontalCenter=0 on the component that needs centering. - put the two link buttons in an HBox - set a minimum width on the panel, so the centered component and link buttons can't overlap. Does this seem like a good approach? As an aside, I'd love to have a setting so that components with text labels (like titles in panels, or link buttons) could shrink to small widths, and display a partial title with ellipses. Then the minimum width in the above example could be lower. Thanks in advance.
RE: [flexcoders] access a component name using array variable
Use bracket notation var i:int = 1; return [image + i]; //returns a reference to the component with the id=image1 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Wednesday, September 19, 2007 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] access a component name using array variable Hi, i have 3 images, with 'image1', 'image' and 'image3' as object id, and i have a function that will return an array index value of 1,2 and 3 i want to set the image source above depend on the value returned by the function so if the value returned 2, i want to set the source of image2 i know 'switch' or nesting if could do the trick manually, but is there any other way, to make it more neat and loose? thank you ary __ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting http://smallbusiness.yahoo.com/webhosting
[flexcoders] Re: Can't style a cursor with CSS, can you?
Hi Juan, Yea, my class switches between a handful of cursors in response to events. Would love to get your feedback on the approach I am leaning towards. http://tech.groups.yahoo.com/group/flexcoders/message/87693 Thanks, Ben --- In flexcoders@yahoogroups.com, scalenine [EMAIL PROTECTED] wrote: You mean like this in a CSS file?: CursorManager { busyCursor: Embed(source=busy.png); busyCursorBackground: Embed(source=busyBg.png); } DragManager { copyCursor: Embed(source=copy.png); defaultDragImageSkin: Embed(source=dragImage.png); linkCursor: Embed(source=link.png); moveCursor: Embed(source=move.png); rejectCursor: Embed(source=reject.png); } Or switching cursors on an event, maybe. Juan scalenine.com degrafa.com --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Not sure I follow you. How do you glean a class from those styles? --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Thats why for all of my custom components and managers I created a new CursorManager that wraps the mx one. In each of the managers or components I have; /* * The move cursor skin for the MoveManagerFX. */ moveCursorSkin:Embed(source=moveCursor.png); /* * The move cursor's x offset. */ moveCursorXOffset:-10; /* * The move cursor's y offset. */ moveCursorYOffset:-10; styles. Where the styles names are organized by; cursorName + Skin; cusrorName + XOffset; cursorName + YOffset; The custom cursor manager then uses the styleName of the client to get what ever cursor is needed. There then can easily be set in styles anywhere. Peace, Mike On 9/18/07, ben.clinkinbeard ben.clinkinbeard@ wrote: Pretty sure its not possible but just looking for confirmation. Since CursorManager.setCursor() expects a class I assume thats the only way. Correct? Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
RE: [flexcoders] How would you go about to make SuperImage support .swf?
Down at the bottom of the commitProperties() routine, add an extra else clause to the big if statement: Else if (newSource is DisplayObject) { _content = newSource; } That should in theory take care of it. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn - Sent: Wednesday, September 19, 2007 7:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How would you go about to make SuperImage support .swf? SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ I need it to support .swf's - but I don't worry about the cache part - as long as it shows the swf. I guess it would have to be done in the commitProperties() function - somewhere here: if(newSource is Class) { // if it's a class, instantiate it. newSource = new newSource(); } // if it's bitmap or bitmap data, we know how to render that. if(newSource is Bitmap) { _content = newSource; } } .. an embedded swf would be a class. Is there a way to convert this to Bitmap so that SuperImage behaves as normal? Bjørn -- http://www.juicability.com - flex blog http://www.43min.com - funny movies image001.jpgimage002.jpg
RE: [flexcoders] Components in a TileList?
Without looking at the docs, I suspect that Tilelist is a List component and will need a custom item renderer, with the normal renderer functionality overrides. To tile ordinary custom component, look at the Tile layout container. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Wednesday, September 19, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Components in a TileList? Hi, I'm pretty sure this is possible - but I can't get it working so wondered if anyone had an example of how I could do this: I have a TileList and on this TileList I'd like to show a number of Flex Components (most likely based on Tile I guess?). I've tried defining the TileList with a dataprovider ArrayCollection then creating a component based on Tile, creating an actionscript instance of the Tile and then inserting it into the ArrayCollection. I suspect though, that TileList requires something a little more precise if it's going to be able to render the Tiles... I hope the above makes some kind of sense... Can anyone help? Thanks, Jamie.
RE: [flexcoders] Actionscript sprite within the Flex framework
Even though the API says addChild takes DisplayObject, we can't override function signatures. The rules in Flex are: Navigator can only take Containers Containers can only take IUIComponents UIComponents can take anything. So put in a UIComponent tag and put the test sprite in there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Mathews Sent: Wednesday, September 19, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Actionscript sprite within the Flex framework The first error says you need the TestSprite class to be defined like: public class TestSprite extends Sprite The second error I initially thought was because the application addChild takes a UICompoent, but according to the help docs what you have 'should' work. I would try casting it as a DisplayObject although this probably isn't the correct way to fix it. mxmlApp.addChild(testSprite as DisplayObject); Steve On 9/19/07, Merrill, Jason [EMAIL PROTECTED] mailto:jason.merrill%40bankofamerica.com wrote: I'm trying to do a primarily Actionscript 3 written Flex app writing within the Flex framework. Following Moock's Actionscript 3.0: The Essential Guide examples, I have set up a simple 3 file project, all files in the same folder. The app attempts to draw a circle on the stage. See code and errors below: //Application MXML file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute applicationComplete=EntryClass.main() /mx:Application //EntryClass.as file package { import mx.controls.Button; import mx.core.Application; public class EntryClass { public static function main():void { var testSprite:TestSprite = new TestSprite(12, 100, 100); var mxmlApp:Application = Application(Application.application); mxmlApp.addChild(testSprite); } } } //TestSprite.as file package { import flash.display.Sprite; class TestSprite extends Sprite { private var _x:int; private var _y:int; private var _radii:int public function TestSprite(size:int, posx:int, posy:int) { x = posx; y = posy; _radii = size; graphics.lineStyle(1, 0xFFCC33); graphics.beginFill(0xCC3300, 1); graphics.drawCircle(0, 0, _radii); graphics.endFill(); } } } Before compiling, I get this error: 1084: class 'TestSprite' will be scoped to the default namespace: internal. It will not be visible outside of this package. After compiling, the debugger gives this error: TypeError: Error #1034: Type Coercion failed: cannot convert ::[EMAIL PROTECTED] to mx.core.IUIComponent. at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChi http://www.adobe.com/2006/flex/mx/internal::addingChi ld() What's happening here? Is there a better way to set this up? Thanks. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] RSLs
I switched my main Flex Project to load two Flex Library Projects as RSLs instead of as Merged Code to see if I can improve the efficiency of my project. Now I see this in the Console: [SWF] /website/bin/ExtendedLib.swf - 1,752,574 bytes after decompression [SWF] /website/bin/MainLib.swf - 2,345,628 bytes after decompression [Unload SWF] /website/bin/ExtendedLib.swf [Unload SWF] /website/bin/MainLib.swf And I'm noticing a long time to load modules loaded at runtime and I think it is due to the time it takes to load SWF/unload SWF. I thought that RSL's are loaded only once. I assume they are not being retrieved multiple times from the server, but why are they being loaded and unloaded multiple times? Thanks, Ariel
RE: [flexcoders] Cannot use 'filterFunction' from an HTTPService request
The HTTPService returns a ResultEvent object to your sanDataHandler(oEvent:ResultEvent) function. What is contained in that object depends on the http service source, and the resultFormat property of the HTTPService. The default is object, which attempts to convert the result data inot a nested object structure. If you hit the HTTPService url directly from a browser address line, what do you see? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Wednesday, September 19, 2007 12:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot use 'filterFunction' from an HTTPService request I want to setup a datagrid that can filter from a textfield. I have data coming back from an API using the HTTPRequest tag. I know the filterFunction only works with ArrayCollection, but I thought that the data returned was in form of a ArrayCollection. However when I try to use the following function, it gives me an error. public function initApp():void { // Set filter function // Be careful to set filterFunction // only after ArrayCollection has been // populated. // sanData.filterFunction=processFilter; } public function processFilter(item:Object):Boolean { var result:Boolean=false; // If no filter text, or a match, then true if (!item.name.length || item.Expr2.toUpperCase().indexOf (txtFilter.text.toUpperCase()) = 0) result=true; return result; } Here is the HTTP call mx:HTTPService id=sanData url=someAPI result=sanDataHandler(event)/ Thanks
[flexcoders] useHandCursor on swfLoader doesn't work?
Trying this: mx:AddChild position=lastChild mx:SWFLoader x=15 y=119 source=img/largebar.swf id=_largeBar useHandCursor=true rollOver=doZoom(event) rollOut=doZoom(event) mouseDown={barClicked()} / /mx:AddChild But it's still the regular cursor? It's in a component; do I have to also import the CursorManager?
RE: [flexcoders] How would you go about to make SuperImage support .swf?
If you don't need the cache, why not just use SWFLoader? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn - Sent: Wednesday, September 19, 2007 7:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How would you go about to make SuperImage support .swf? SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ I need it to support .swf's - but I don't worry about the cache part - as long as it shows the swf. I guess it would have to be done in the commitProperties() function - somewhere here: if(newSource is Class) { // if it's a class, instantiate it. newSource = new newSource(); } // if it's bitmap or bitmap data, we know how to render that. if(newSource is Bitmap) { _content = newSource; } } .. an embedded swf would be a class. Is there a way to convert this to Bitmap so that SuperImage behaves as normal? Bjørn -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies
RE: [flexcoders] Redirect to login page
is your login page with the flex app or a seperate JSP/ASP/PHP page? Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Tuesday, September 18, 2007 10:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Redirect to login page Hii Can someone tell me how do i unload flex and load/redirect to login page, once the session is over. Currently, when the session is over. Obviously I cannot access any data from the server side. But my flex GUI will still remain there and it doesn't unload from the screen. Can anyone guide me in the right direction. Thanks. -- View this message in context: http://www.nabble.com/Redirect-to-login-page-tf4478453.html#a12769927 http://www.nabble.com/Redirect-to-login-page-tf4478453.html#a12769927 Sent from the FlexCoders mailing list archive at Nabble.com. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Building ant scripts for flex projects
Hi, You place the crossdomain.xml file in the root directory on the server that your flex app will be calling. The Flash Player will then look at this file and see if it has permission to call that server. Here is a sample crossdomain.xml file: ?xml version=1.0? cross-domain-policy allow-access-from domain=* / /cross-domain-policy You should google for specifics, or look at the flex documentation. Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kgfsatish Sent: Tuesday, September 18, 2007 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Building ant scripts for flex projects Hi Friends, Iam working in flex technology , i am in the process of writing ant scripts for the project ,i have completed the script it is running , but an runtime error comes when i run the application , security error Error # 2060 , i think the problem is with the cross-domain.xml , i dont know how to include this file while writing script, please any guys can help me in the regard. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Redirect to login page: from flex to jsp in struts
Hi, Basically what you want to do is that the user will do some sort of action and if you have flex using standard J2EE authentication then that remote call will fail and your fault method you can catch that specific exception and then redirect the user to the login page: if( evt.fault.faultCode == Client.Authentication ) { var req:URLRequest = new URLRequest( login.jsp http://support.optimalpayments.com/REPOSITORY/WinSCP_Overview_Merchant.pdf ); navigateToURL( req, _blank ); } else { responder.fault( event ); } Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Wednesday, September 19, 2007 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Redirect to login page: from flex to jsp in struts Hii Can someone tell me how do i unload flex and load/redirect to login page, once the session is over. Currently, when the session is over. Obviously I cannot access any data from the server side. But my flex GUI will still remain there and it doesn't unload from the screen. Can anyone guide me in the right direction. Thanks. -- View this message in context: http://www.nabble.com/Redirect-to-login-page%3A-from-flex-to-jsp-in-struts-tf4480003.html#a12774460 http://www.nabble.com/Redirect-to-login-page%3A-from-flex-to-jsp-in-struts-tf4480003.html#a12774460 Sent from the FlexCoders mailing list archive at Nabble.com. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Dynamic image size
Hi, I have this image (http://www.6tems.com/test/sony_mb.png) And want to place a textarea inside it on screen. But I need that if image rescale, textarea rescale and don't move. Any idea. Thk, Giro.
RE: [flexcoders] access a component name using array variable
Thanks Tracy :) --- Tracy Spratt [EMAIL PROTECTED] wrote: Use bracket notation var i:int = 1; return [image + i]; //returns a reference to the component with the id=image1 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Wednesday, September 19, 2007 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] access a component name using array variable Hi, i have 3 images, with 'image1', 'image' and 'image3' as object id, and i have a function that will return an array index value of 1,2 and 3 i want to set the image source above depend on the value returned by the function so if the value returned 2, i want to set the source of image2 i know 'switch' or nesting if could do the trick manually, but is there any other way, to make it more neat and loose? thank you ary __ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting http://smallbusiness.yahoo.com/webhosting Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/
[flexcoders] Re: access a component name using array variable
I have a related question to this from the creation side of things. Is it possible to create an object using this type of notation?? For example, if you did not know how many images you would be adding, how can I sequentially name the images that are added to the app Can I do something like this var i:int = 1; image + i = new Image(); i++; Thanks Don
Re: [flexcoders] nulling primitive data types
Sam, I think that you're out of luck when it comes to Boolean. There is no undefined boolean value, and boolean can only ever be equal to true or false, nothing else. I'd second the recommendation in the case of number of using NaN to represent undefined values (and for that reason use Number in place of int/uint whenever I need undefined numeric values, though MIN_VALUE or MAX_VALUE sounds like equally good choices). I think the *correct* way of handling this will require a lot of model work, but it'll make it airtight in the end (and the API for the model will be clean even if the internals are dirty). What you're really talking about are two issues, one of serialization and one of Flex API. In regards to serialization, you'll more than likely be translating these values into strings to transmit to the server, in which case you simply just use a NULL string value (just like SQL) to indicate nulls and handle them appropriately on the server side. In regards to API of your Flex classes, this is the approach I've taken: in your model, create getters and setters for the various properties you want to be nullable. The getters and setters should return the correct static types. For each property you add an additional method named something like resetXXX or clearXXX that sets the property to the undefined value (since you can directly set the properties to undefined values). Internally to your model class, you store the private backing variables for the properties as plain old Objects, assigning them null is they're undefined. Your getters/setters will deal with all of the messy casting/boxing the types to and from the backing object. The one convention you need to establish is what happens when a client of the model attempt to get an undefined value. In most of my scenarios, an undefined value meant the value what either a default or an inherited value, so I always had a valid value to return even when the actual model instance's value was undefined (think prototypes). If getting an undefined value is a mistake, then you'll probably want to throw an exception *and* provide a method for the user to validate a property (isValidXXX, etc.) so that folks don't have to always try/catch around your exception for nulls. Yep, it does make the implementation of the model very messy (or busy, rather), but the API to the model remains clean and accurate to the application's design. Troy.
Re: [flexcoders] Re: Loading code from swf (instantiating classes from external swf)
Well if you load their swf into your application domain they will have full access to your code. So it sounds like you don't need anything special, just tell them how to access the relevant parts of code they will need. On 9/19/07, b_alen [EMAIL PROTECTED] wrote: No, actually my goal as an API provider is that I don't have to know anything about their code, not even the class name. I provide API that allows them to extend certain functionality of the application. I provide them public functions through objects in model locator. they can use how many classes they want in their swf, they just need to hook to that public methods I provide. I'm talking about post compile functionality extension with swf files containing the code. Alen --- In flexcoders@yahoogroups.com, Steve Mathews [EMAIL PROTECTED] wrote: Well using the non-module approach (again, I haven't used modules so I can't speak for that method), you at least need to know what class to instantiate. It sounds like you are doing something very similar in concept to what I am. So I provide an API (interface) that an external developer builds their class to. All I need to know from them is what the fully qualified class path is. Steve On 9/18/07, b_alen [EMAIL PROTECTED] wrote: Cheers guys, just one quick check, is it possible with these two methods: 1. I make an application and deploy it on the web. 2. You, knowing nothing about the application except the API I provide you, write the extension and submit it in form of swf on my server. 3. My application recognizes that the new extension has been submitted, it downloads it and uses the code from there. Let's say I have an employee management system, where different operations can be made on the employee. You write an extension where user can for example use their web cam in order to save a pic in the database. Now application is already up and running, and you submit this to the server, I don't have to recompile and know nothing about your part and all you need to know is my API. It's purely a hypothetical example but for the case above I would provide something like that probably: ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String); ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object); you would call this from your swf like this: ModelLocator.empDataManager.addEmployeeDetail(webcam_pic, Webcam pic); ModelLocator.empDataManager.editEmployeeDetail(webcam_pic, picData); What do you think? --- In flexcoders@yahoogroups.com, Steve Mathews happydog@ wrote: You can use LoadModule, which might be the best way to go. But I am doing a AS3 only project (no flex framework) and am doing this using applicationDomain.getDefinition which works great. On 9/17/07, Tom Chiverton tom.chiverton@ wrote: On Monday 17 Sep 2007, alen.balja@ wrote: I tried Google but I couldn't find anything, maybe it's pretty easy and maybe it's impossible. Anyone has any ideas? LoadModule -- Tom Chiverton Helping to continuously bully cross-media mindshares on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- 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
[flexcoders] Problem with sizing
Hi everyone, well I am still having problems with resizing a Text Area. At the moment I am using this code: package mylib { import mx.controls.TextArea; import flash.text.TextField; import mx.controls.Alert; public class AdvancedTextArea extends TextArea { public function AdvancedTextArea() { super(); this.editable=false; this.selectable=false; this.verticalScrollPolicy=off; this.horizontalScrollPolicy=off; } override protected function measure():void { super.measure(); var myTF:TextField=new TextField(); var altoxLineas:Number=new Number(); myTF.wordWrap=true; myTF.text=text; myTF.width=explicitWidth-10; altoxLineas=myTF.numLines*3.9+altoxLineas/3.9; measuredHeight = measuredMinHeight = myTF.textHeight + 10; if (altoxLineasmyTF.textHeight) measuredHeight = measuredMinHeight = altoxLineas + 10; } } } Although it does grows my Textarea, in some cases it doesn't grow it enough... Any pointers would be appreciated.
RE: [flexcoders] Actionscript sprite within the Flex framework
So put in a UIComponent tag and put the test sprite in there. How would that look? I'm calling my class method as soon as the applicationComplete event occurs. Everything else is in Actionscript, the only MXML is this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=EntryClass.main() /mx:Application Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, September 19, 2007 12:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework Even though the API says addChild takes DisplayObject, we can't override function signatures. The rules in Flex are: Navigator can only take Containers Containers can only take IUIComponents UIComponents can take anything. So put in a UIComponent tag and put the test sprite in there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Mathews Sent: Wednesday, September 19, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Actionscript sprite within the Flex framework The first error says you need the TestSprite class to be defined like: public class TestSprite extends Sprite The second error I initially thought was because the application addChild takes a UICompoent, but according to the help docs what you have 'should' work. I would try casting it as a DisplayObject although this probably isn't the correct way to fix it. mxmlApp.addChild(testSprite as DisplayObject); Steve On 9/19/07, Merrill, Jason [EMAIL PROTECTED] mailto:jason.merrill%40bankofamerica.com wrote: I'm trying to do a primarily Actionscript 3 written Flex app writing within the Flex framework. Following Moock's Actionscript 3.0: The Essential Guide examples, I have set up a simple 3 file project, all files in the same folder. The app attempts to draw a circle on the stage. See code and errors below: //Application MXML file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute applicationComplete=EntryClass.main() /mx:Application //EntryClass.as file package { import mx.controls.Button; import mx.core.Application; public class EntryClass { public static function main():void { var testSprite:TestSprite = new TestSprite(12, 100, 100); var mxmlApp:Application = Application(Application.application); mxmlApp.addChild(testSprite); } } } //TestSprite.as file package { import flash.display.Sprite; class TestSprite extends Sprite { private var _x:int; private var _y:int; private var _radii:int public function TestSprite(size:int, posx:int, posy:int) { x = posx; y = posy; _radii = size; graphics.lineStyle(1, 0xFFCC33); graphics.beginFill(0xCC3300, 1); graphics.drawCircle(0, 0, _radii); graphics.endFill(); } } } Before compiling, I get this error: 1084: class 'TestSprite' will be scoped to the default namespace: internal. It will not be visible outside of this package. After compiling, the debugger gives this error: TypeError: Error #1034: Type Coercion failed: cannot convert ::[EMAIL PROTECTED] to mx.core.IUIComponent. at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChi http://www.adobe.com/2006/flex/mx/internal::addingChi ld() What's happening here? Is there a better way to set this up? Thanks. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] Adding to an ArrayCollection
Is there a good way to add additional information into an array collection variable? If I start with this code to build an array collection with data public var someArrayCol:ArrayCollection = new ArrayCollection(); for each (var item:XML in someData){ var xyz:CustComponent = new CustComponent(); xyz.text = item..name; xyz.property1 = item..age; someArrayCol.addItem(xyz); } Then at a later time when more data is obtained, how can I add additional information to the ArrayCollection? for example, lets say I get an address back for each of the people orignially added, am I able to add this to the current array collection? for each (xyz2:CustComponent in someArrayCol){ ??? how to add in address like I did above, however, it is after I used addItem } Thanks for the guidance Don
[flexcoders] Modal Window that doesn't disable the whole flash player
Hi, I want to know if it's possible to have a modal window that doesn't disable the whole of the flash player. For instance, I have an application which hosts another application (a widget). When the widget is waiting for it's data I use the PopUpManager to display a canvas (in order to blur the application and disable the user interface). The trouble is, the PopUpManager appears to be shared across all applications in the flash player, so the popup isn't added relative to the widget, it's added relative to the application. Also, the whole of the application is disabled, not just the widget. Does anyone have any clever ways around this? Thanks, Mark
[flexcoders] How to get screen coordinate from child application
Hi, if I have an application within an application, how can I convert coordinates from the child app to the parent app? I need to display a popup window and if I use the x, y values from the child application, they are set to zero, but when loaded into a parent app, they are actually around 200, 200. |-| |Parent | | | | |--| | | | Child | | | |--| | | | | | |-| Both parent and child are flex apps. But the x,y values for child are {0,0}. I want to popup a dialog which completely covers the child application, from within the child app. Any ideas? Thanks, Mark
[flexcoders] Runtime Error 2048
I developed one simple file to get data from cfc and display in flex application. It's working fine in my development box, but it's blowing an error after i moved that application into my production server. Error: faultDetail:'Channel.Security.Error error Error#2048: Security sandbox violation: http://.. Any ideas about this error, i went through lot of forums and blogs but i couldn't find solution any where. Any help will be appreciated. Thanks ch
Re: [flexcoders] Adding to an ArrayCollection
Hi Don, You should be able to do: for each (xyz2:CustComponent in someArrayCol){ xyz2.address = Some address; } --Josh On 9/19/07, donvoltz [EMAIL PROTECTED] wrote: Is there a good way to add additional information into an array collection variable? If I start with this code to build an array collection with data public var someArrayCol:ArrayCollection = new ArrayCollection(); for each (var item:XML in someData){ var xyz:CustComponent = new CustComponent(); xyz.text = item..name; xyz.property1 = item..age; someArrayCol.addItem(xyz); } Then at a later time when more data is obtained, how can I add additional information to the ArrayCollection? for example, lets say I get an address back for each of the people orignially added, am I able to add this to the current array collection? for each (xyz2:CustComponent in someArrayCol){ ??? how to add in address like I did above, however, it is after I used addItem } Thanks for the guidance Don
[flexcoders] DataGrid editor/renderer MouseDownHandler error
I've been working on getting a datagrid to validate and I am close. However, whenever I click on a cell in the datagrid, I get a runtime error in the DataGrid.as file, because my itemEditorInstance is null. However, I am providing an extended TextInput to the datagrid column the itemEditor and the itemRenderer. I've tried setting the rendererIsEditor to both true and false, but nothing changes. Has anyone seen this? Or can tell me what I'm doing wrong? I'm trying to follow examples, but obviously I'm doing something wrong. Thanks, John
RE: [flexcoders] nulling primitive data types
Troy, Thanks for the additional comment but remember I am not the original poster.. someone asked a question for how people work with nullable primitives and I provided a response on how I particularly do it (which of course is only one of many possibilities). We've been using MIN_VALUE for several years in both .NET and Flex and have been extremely happy with the results. While someone may feel this is not correct from some theoretical standpoint, it works very well, is easy to understand, and doesn't require mucking with the API and making radical changes to support nullable primitives. Serialization of course depends on the mechanism for communication and in my case we're not converting to strings, we're not even doing our own custom conversion at all, we're using Flash Remoting. So having a scheme that works well with built in serialization made the choice that much easier. Again, my comments are only an example of how we do it and I'm happy with this methodology. I personally believe that adding extra reset and clear methods for every property just to provide some level of theoretical correctness is unnecessary, makes things run slower, and causes extra work. However, it is a valid point and suggestion and if you do this and it works for you, then great, always good to have more opinions and options. Best regards, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, September 19, 2007 1:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] nulling primitive data types Sam, I think that you're out of luck when it comes to Boolean. There is no undefined boolean value, and boolean can only ever be equal to true or false, nothing else. I'd second the recommendation in the case of number of using NaN to represent undefined values (and for that reason use Number in place of int/uint whenever I need undefined numeric values, though MIN_VALUE or MAX_VALUE sounds like equally good choices). I think the *correct* way of handling this will require a lot of model work, but it'll make it airtight in the end (and the API for the model will be clean even if the internals are dirty). What you're really talking about are two issues, one of serialization and one of Flex API. In regards to serialization, you'll more than likely be translating these values into strings to transmit to the server, in which case you simply just use a NULL string value (just like SQL) to indicate nulls and handle them appropriately on the server side. In regards to API of your Flex classes, this is the approach I've taken: in your model, create getters and setters for the various properties you want to be nullable. The getters and setters should return the correct static types. For each property you add an additional method named something like resetXXX or clearXXX that sets the property to the undefined value (since you can directly set the properties to undefined values). Internally to your model class, you store the private backing variables for the properties as plain old Objects, assigning them null is they're undefined. Your getters/setters will deal with all of the messy casting/boxing the types to and from the backing object. The one convention you need to establish is what happens when a client of the model attempt to get an undefined value. In most of my scenarios, an undefined value meant the value what either a default or an inherited value, so I always had a valid value to return even when the actual model instance's value was undefined (think prototypes). If getting an undefined value is a mistake, then you'll probably want to throw an exception *and* provide a method for the user to validate a property (isValidXXX, etc.) so that folks don't have to always try/catch around your exception for nulls. Yep, it does make the implementation of the model very messy (or busy, rather), but the API to the model remains clean and accurate to the application's design. Troy.