{"id":279,"date":"2013-11-11T13:33:05","date_gmt":"2013-11-11T17:33:05","guid":{"rendered":"http:\/\/www.joebillman.com\/blog\/?p=279"},"modified":"2013-11-11T13:33:05","modified_gmt":"2013-11-11T17:33:05","slug":"typeerror-error-1007-instantiation-attempted-on-a-non-constructor","status":"publish","type":"post","link":"https:\/\/www.joebillman.com\/blog\/?p=279","title":{"rendered":"TypeError: Error #1007: Instantiation attempted on a non-constructor"},"content":{"rendered":"<p>So I know that many people are jumping ship when it comes to Flash and Flex when it comes to web applications but if you are one of the ones like me that is still doing this type of development you might run in to this sometime. The app that I am working on is a Flex app that uses the 4.6 sdk. The is a central module that loads other modules. The problem I ran into was on one of the modules that was using an <strong>AdvancedDataGrid<\/strong>. I kept getting the Error #1007: Instantiation attempted on a non-constructor. The solution ending up being something very simple. The main application just needs to have an instance of the AdvancedDataGrid. I simply added <em>AdvancedDataGrid;<\/em> that along with the import and you should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I know that many people are jumping ship when it comes to Flash and Flex when it comes to web applications but if you are one of the ones like me that is still doing this type of development you might run in to this sometime. The app that I am working on is &hellip; <a href=\"https:\/\/www.joebillman.com\/blog\/?p=279\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;TypeError: Error #1007: Instantiation attempted on a non-constructor&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,11,26,27],"tags":[46],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-actionscript","category-flex","category-problem-solved","category-programming","tag-advanceddatagrid"],"_links":{"self":[{"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279"}],"version-history":[{"count":0,"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joebillman.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}