Hi Support,
I am getting an error for the script given below. (The aim is to change the xlocation of the source object by 2)
Error Message:
exception: FlexScript exception: Label property location retrieved on /Source1. Label does not exist. at /0 c: /testlink_instance i: /testlink_associated
- treenode src = model().find("Source1");
- src.location.x += 2;
Instead of the script lines
- treenode src = model().find("Source1");
- Object srcAsObject = src;
- src.as(Object).location.x += 2;
Conceptually both are same right ? Or location can be used only with the object class?
Please correct me, if I had made a wrong question.
But the script given below is working.
- treenode src = model().find("Source1");
- Object srcAsObject = src;
- srcAsObject.location.x += 2;
Regards,
Arun KR