Re: [flexcoders] Re: Code behind- do you use it?
Hi, everybody. Interesting thing that just recently we had discussion at our team about code-behind and why should we use it or use not. The point we are at the moment is: we've used code-behind more like legacy related thing from Flex 1.5 (FlexBuilder) and now we've got a lot of classes which simply copy several properties. Definitely it's not very object-oriented. And now the idea is NOT to use code-behind where possible. The discussion continues so it's very interesting to hear different opinion. As far as I understand while developing components trying make them atomic and not overweight Script block looks not so bad. R. On 1/17/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 17 January 2007 09:49, Danko Kozar wrote: Why doesn't Flex Builder allow to name the .mxml and .as page using the same name? Does this happen only with files in subdirectories (?). Because it builds down the MXML to an AS class. Guess how it picks the name for that class :-) There is a 'keep classes' compiler option if you are curious. -- Tom Chiverton Helping to continually pursue exceptional e-services 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] Re: Code behind- do you use it?
I use code-behind on pages with lot of code, since I don't want a mess: On index.mxml I have the script block containing th epath to the actionscript file (not as class): mx:Script source=index.as / My question is: Why doesn't Flex Builder allow to name the .mxml and .as page using the same name? Does this happen only with files in subdirectories (?). Because the index.mxml -- index.as (in root) works ok, but some other files cause me problems, so I have to add some extra characters in it's name, e.g.: MainView.mxml -- MainView_.as Thanks.. Danko --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I am undecided as to whether or not I want to use the code behind method for my MXML files and figured I would see what others are doing. I am currently just using Script blocks at the top of my files to do event handling, initialization, etc but some of them are getting pretty big. So what are others doing? No AS in your MXML files, no code behind, a mixture of the two? Thanks, Ben
[flexcoders] Re: Code behind- do you use it?
Using the ARP framework @ http://osflash.org/ARP Once you get past a simple application a GUI framework is critical for maintainability. Takes a bit more to get going, but you end up reusing a lot of code.
RE: [flexcoders] Re: Code behind- do you use it?
The .mxml files get translated into .as files of the same name. So basically you then have 2 index.as files... which obviously is going to give you problems. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danko Kozar Sent: Wednesday, January 17, 2007 4:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Code behind- do you use it? I use code-behind on pages with lot of code, since I don't want a mess: On index.mxml I have the script block containing th epath to the actionscript file (not as class): mx:Script source=index.as / My question is: Why doesn't Flex Builder allow to name the .mxml and .as page using the same name? Does this happen only with files in subdirectories (?). Because the index.mxml -- index.as (in root) works ok, but some other files cause me problems, so I have to add some extra characters in it's name, e.g.: MainView.mxml -- MainView_.as Thanks.. Danko --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: I am undecided as to whether or not I want to use the code behind method for my MXML files and figured I would see what others are doing. I am currently just using Script blocks at the top of my files to do event handling, initialization, etc but some of them are getting pretty big. So what are others doing? No AS in your MXML files, no code behind, a mixture of the two? Thanks, Ben
Re: [flexcoders] Re: Code behind- do you use it?
I used to use code behind when I first started with the alpha of Flex 2 but then switched to using helper classes instead. I found code behind simply added to the huge number of properties and methods that are already available in a UI component, plus it meant I could introduce an interface for the UI that I pass to the helper class - then I could reengineer the look without playing (too much) with the helper class. Having said that, since Cairngorm came out for Flex 2 I've not used code behind or dedicated helper classes much at all. That's my take. Oliver Tupman On 17/01/07, Robert Chyko [EMAIL PROTECTED] wrote: The .mxml files get translated into .as files of the same name. So basically you then have 2 index.as files... which obviously is going to give you problems. -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Danko Kozar *Sent:* Wednesday, January 17, 2007 4:50 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Code behind- do you use it? I use code-behind on pages with lot of code, since I don't want a mess: On index.mxml I have the script block containing th epath to the actionscript file (not as class): mx:Script source=index.as / My question is: Why doesn't Flex Builder allow to name the .mxml and .as page using the same name? Does this happen only with files in subdirectories (?). Because the index.mxml -- index.as (in root) works ok, but some other files cause me problems, so I have to add some extra characters in it's name, e.g.: MainView.mxml -- MainView_.as Thanks.. Danko --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I am undecided as to whether or not I want to use the code behind method for my MXML files and figured I would see what others are doing. I am currently just using Script blocks at the top of my files to do event handling, initialization, etc but some of them are getting pretty big. So what are others doing? No AS in your MXML files, no code behind, a mixture of the two? Thanks, Ben
Re: [flexcoders] Re: Code behind- do you use it?
On Wednesday 17 January 2007 09:49, Danko Kozar wrote: Why doesn't Flex Builder allow to name the .mxml and .as page using the same name? Does this happen only with files in subdirectories (?). Because it builds down the MXML to an AS class. Guess how it picks the name for that class :-) There is a 'keep classes' compiler option if you are curious. -- Tom Chiverton Helping to continually pursue exceptional e-services 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/