ActionScript Error 1050: Cannot assign to a non-reference value.
ActionScript Error 1050 Description:
This Error is rather simple and you will find the solution to AS3 Error #1050 quick and easy. This Flash/Flex error occurs because you have tried (unintentionally I’m sure) to assign something that cannot be referenced later to another value. In other words you could have tried to assign a string in a trace statement to a value. Once the trace statement occurs that value is obliterated and therefore can never be referenced again. I’m sure that made a lot of sense… if not see the examples below. 🙂
Flex / Flash Error #1050 Fix:
Move the equal sign ( = ) inside of the quotes.
Bad Code 1:
var word:String = “Wrong place for equal sign”;
trace(“AS3 Error 1050” =+ word);
Good Code 1:
var word:String = “Wrong place for equal sign”;
trace(“AS3 Error 1050 = “+ word);
Related Errors:
Flash ActionScript Error 1067 – Implicit coercion of a value of type void to an unrelated type Function. (AS3 Error 1067 is when you try to assign a String to a Number etc…) The above code will give you Flex error 1067 also.
This should help you resolve Flex / Flash Error #1050
Thanks and as always Happy Flashing
Curtis J. Morley