actionscript 3 - Line 49, 52,55,58,61,64- 1119:Access of possibly undefined property text through a reference with static type String -
not sure doing wrong, removed text text box fields why still getting error ?
code below :
switch (day) { case "sun": day.text = "monday"; break; case "mom": day.text = "tuesday"; break; case "tue": day.text = "wednesday"; break; case "wed": day.text = "thursday"; break; case "thu": day.text = "friday"; break; case "fri": day.text = "saturday"; break; case "sat": day.text = "sunday"; break; } switch (codetoday) { case "0": case "3200": var weather00:weather00 = new weather00(); _weathertoday.addchild(weather00); _weathertoday.scalex = 10.85; _weathertoday.scaley = 158.75; break; case "1": case "3200": var weather01:weather01 = new weather01(); _weathertoday.addchild(weather01); _weathertoday.scalex = 10.85; _weathertoday.scaley = 158.75; break; }
i suppose 'day' string variable , have not text property - here -> string
components have text property like: textfield , textarea
Comments
Post a Comment