Question
problem with .rect - problem with move
Hello,
I can't move the x1 coordinate of the text2 field - the field won't change. The console does not display anything. Thanks for the advice
// getField("text1").rect = [0, 500, 200, 450] — field already exist
// getField("text2").rect = [0, 450, 200, 400] — field already exist
// 1. case — DOESN'T WORKS
var text1 = getField("text1").rect;
getField("text2").rect[0] = text1[0]+100;
// END of 1. case
// OR
//2. case - DOESN'T WORKS
getField("text2").rect = [ text1[0]+100, text1[0], text1[0], text1[0] ]; // 2. CASE — DOESN'T WORK
// END of 2. case