{"id":161,"date":"2009-09-18T13:20:11","date_gmt":"2009-09-18T11:20:11","guid":{"rendered":"http:\/\/blog.ansuz.nl\/?p=161"},"modified":"2009-09-18T13:20:11","modified_gmt":"2009-09-18T11:20:11","slug":"mxml-and-code-behind","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2009\/09\/18\/mxml-and-code-behind\/","title":{"rendered":"MXML and code behind"},"content":{"rendered":"<p>I&#8217;m a big fan of keeping MXML files clean by not having any code and style information in them. You can get rid of the style information by using a style sheet. A nice way to get all of your code out of the MXML is by using the code-behind method.<\/p>\n<blockquote><p>Code-behind encourages developers to build applications with <a title=\"Separation of presentation and content\" href=\"http:\/\/en.wikipedia.org\/wiki\/Separation_of_presentation_and_content\">separation of presentation and content<\/a> in mind. In theory, this would allow a web designer, for example, to focus on the design markup with less potential for disturbing the programming code that drives it.<\/p><\/blockquote>\n<p>There is a good article by Aral Balkan at the Adobe Devnet on using the code-behind method with Flex.<\/p>\n<p>Links:<\/p>\n<ul>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/ASP.NET#Code-behind_model\" target=\"_blank\">Wikipedia on asp.net code-behind<\/a><\/li>\n<li><a href=\"http:\/\/www.adobe.com\/devnet\/flex\/quickstart\/building_components_using_code_behind\/\" target=\"_blank\">Building components by using code behind at Adobe Devnet<\/a><\/li>\n<\/ul>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of keeping MXML files clean by not having any code and style information in them. You can get rid of the style information by using a style sheet. A nice way to get all of your &hellip; <a href=\"http:\/\/blog.ansuz.nl\/index.php\/2009\/09\/18\/mxml-and-code-behind\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-flex"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":2,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":163,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions\/163"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}