03-31-2011 09:16 PM
So I have run into this error, and I just can't seem to figure out why I am getting it.
The following code:
trace(object1["labelText"])
Gives me the error:
ReferenceError: Error #1069: Property labelText not found on CascadingList.Data.BusinessActivity and there is no default value.
I understand what the error means, but its false. (Note - object1 is a BusinessActivity object which is a non-dynamic class I have made). What I can't figure out is that why FlashBuilder says that the labelText property is not found. Specifically, when the code breaks (pauses execution) at the line because of the error:
Anyone have any ideas?
P.S. - I do actually need to get the value for object1["labelText"], not merely to print a trace statement.
Solved! Go to Solution.
03-31-2011 10:01 PM
Solution: the property "labelText" was private. ![]()
03-31-2011 10:04 PM
EraserX wrote:
Solution: the property "labelText" was private.
Kudos for comming back to update. I thought it might be something like that but I thought "no he would have checked that". (I do stuff like that all the time.) ![]()
04-01-2011 12:18 AM
EraserX wrote:Solution: the property "labelText" was private.
I stared at my code for 45 minutes the other night after doing the same thing. Glad you figured it out!
04-01-2011 12:52 AM