{"id":29,"date":"2008-06-20T15:57:16","date_gmt":"2008-06-20T21:57:16","guid":{"rendered":"http:\/\/www.n8williams.com\/devblog\/?p=29"},"modified":"2010-01-05T13:44:52","modified_gmt":"2010-01-05T19:44:52","slug":"flex-error-1105-target-of-assignment-must-be-a-reference-value","status":"publish","type":"post","link":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value","title":{"rendered":"Flex error 1105: Target of assignment must be a reference value."},"content":{"rendered":"<p>From Adobe &#8220;You can assign a value to a variable, but you cannot assign a value to another value&#8221;. For me this happened when the ObjectProxy was not editable, but the object property on it was.<\/p>\n<p>What does this mean? What is the difference between a  value and a variable?<\/p>\n<p>So it is pretty intuitive that a variable is a dynamic property that can change. But a value &#8211; what is that? Apparently a value is something that CANNOT CHANGE. So a read-only property, or something. So this error happens when you try and say something equivalent to 2=3. <strong>Make sure the thing on the left side of your assignment is allowed to change.<\/strong><\/p>\n<p>See <a href=\"http:\/\/curtismorley.com\/2008\/02\/15\/flex-2-flash-cs3-actionscript-error-1105\/\" terget=\"_blank\">http:\/\/curtismorley.com\/2008\/02\/15\/flex-2-flash-cs3-actionscript-error-1105<\/a> for a good theoretical example. The problem is that this error is triggered in situations where it wouldn&#8217;t seem like things you are assigning values to are read-only or un-changeable. But I think the bottom line is, if you get an 1105 error, you can assume that the thing on the left side of your assignment DOESN&#8217;T allow you to change it.<\/p>\n<p>For me this happened because I wrapped an object in an object proxy, and then tried to set the value of the object proxy to the CreditVO (a custom Value Object based on a Remote class), instead of setting the object contained in the ObjectProxy (a variable) to the CreditVO. So the ObjectProxy itself was not editable, but the object property on it was.<\/p>\n<p>&#8220;1105\tTarget of assignment must be a reference value. Description &#8211; You can assign a value to a variable, but you cannot assign a value to another value.&#8221;<\/p>\n<div class=\"text-box\">\n<pre>\r\n<code markup=\"span\">\n\/\/Simplified\nmyObjectProxy = theCredit;\n\/\/Mine \nmodel.creditSearchResult.getItemAt(opener.creditSearchResultGrid.selectedIndex) = theCredit;\n<\/code>\r\n<\/pre>\n<\/div>\n<p>Should be:<\/p>\n<div class=\"text-box\">\n<pre>\r\n<code markup=\"span\">\n\/\/Simplified\nmyObjectProxy.&lt;span style=&quot;color:red&quot;&gt;object&lt;\/span&gt; = theCredit;\n\/\/Mine\nmodel.creditSearchResult.getItemAt(opener.creditSearchResultGrid.selectedIndex).&lt;span style=&quot;color:red&quot;&gt;object&lt;\/span&gt;= theCredit;\n<\/code>\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>From Adobe &#8220;You can assign a value to a variable, but you cannot assign a value to another value&#8221;. For me this happened when the ObjectProxy was not editable, but the object property on it was. What does this mean? What is the difference between a value and a variable? So it is pretty intuitive &hellip; <a href=\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Flex error 1105: Target of assignment must be a reference value.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flex error 1105: Target of assignment must be a reference value. - The Dev Pages<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flex error 1105: Target of assignment must be a reference value. - The Dev Pages\" \/>\n<meta property=\"og:description\" content=\"From Adobe &#8220;You can assign a value to a variable, but you cannot assign a value to another value&#8221;. For me this happened when the ObjectProxy was not editable, but the object property on it was. What does this mean? What is the difference between a value and a variable? So it is pretty intuitive &hellip; Continue reading &quot;Flex error 1105: Target of assignment must be a reference value.&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\" \/>\n<meta property=\"og:site_name\" content=\"The Dev Pages\" \/>\n<meta property=\"article:published_time\" content=\"2008-06-20T21:57:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-01-05T19:44:52+00:00\" \/>\n<meta name=\"author\" content=\"Nate Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@admin\" \/>\n<meta name=\"twitter:site\" content=\"@admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\"},\"author\":{\"name\":\"Nate Admin\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"headline\":\"Flex error 1105: Target of assignment must be a reference value.\",\"datePublished\":\"2008-06-20T21:57:16+00:00\",\"dateModified\":\"2010-01-05T19:44:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\"},\"wordCount\":284,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"articleSection\":[\"Flex\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\",\"url\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\",\"name\":\"Flex error 1105: Target of assignment must be a reference value. - The Dev Pages\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\"},\"datePublished\":\"2008-06-20T21:57:16+00:00\",\"dateModified\":\"2010-01-05T19:44:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8williams.com\/devblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flex error 1105: Target of assignment must be a reference value.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\",\"url\":\"https:\/\/n8williams.com\/devblog\/\",\"name\":\"The Dev Pages\",\"description\":\"A knowledge base for web applications development (and beyond)\",\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8williams.com\/devblog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\",\"name\":\"Nate Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"caption\":\"Nate Admin\"},\"logo\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/n8williams.com\",\"https:\/\/twitter.com\/admin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flex error 1105: Target of assignment must be a reference value. - The Dev Pages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value","og_locale":"en_US","og_type":"article","og_title":"Flex error 1105: Target of assignment must be a reference value. - The Dev Pages","og_description":"From Adobe &#8220;You can assign a value to a variable, but you cannot assign a value to another value&#8221;. For me this happened when the ObjectProxy was not editable, but the object property on it was. What does this mean? What is the difference between a value and a variable? So it is pretty intuitive &hellip; Continue reading \"Flex error 1105: Target of assignment must be a reference value.\"","og_url":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value","og_site_name":"The Dev Pages","article_published_time":"2008-06-20T21:57:16+00:00","article_modified_time":"2010-01-05T19:44:52+00:00","author":"Nate Admin","twitter_card":"summary_large_image","twitter_creator":"@admin","twitter_site":"@admin","twitter_misc":{"Written by":"Nate Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#article","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value"},"author":{"name":"Nate Admin","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"headline":"Flex error 1105: Target of assignment must be a reference value.","datePublished":"2008-06-20T21:57:16+00:00","dateModified":"2010-01-05T19:44:52+00:00","mainEntityOfPage":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value"},"wordCount":284,"commentCount":2,"publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"articleSection":["Flex"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#respond"]}]},{"@type":"WebPage","@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value","url":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value","name":"Flex error 1105: Target of assignment must be a reference value. - The Dev Pages","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/#website"},"datePublished":"2008-06-20T21:57:16+00:00","dateModified":"2010-01-05T19:44:52+00:00","breadcrumb":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8williams.com\/devblog\/flex\/flex-error-1105-target-of-assignment-must-be-a-reference-value#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8williams.com\/devblog\/"},{"@type":"ListItem","position":2,"name":"Flex error 1105: Target of assignment must be a reference value."}]},{"@type":"WebSite","@id":"https:\/\/n8williams.com\/devblog\/#website","url":"https:\/\/n8williams.com\/devblog\/","name":"The Dev Pages","description":"A knowledge base for web applications development (and beyond)","publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8williams.com\/devblog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757","name":"Nate Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","caption":"Nate Admin"},"logo":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/n8williams.com","https:\/\/twitter.com\/admin"]}]}},"_links":{"self":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":21,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/29\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}