Skip to main content
markerline
Inspiring
November 30, 2010
Question

Error 1119: Access of possibly undefined property text through a reference with static type String

  • November 30, 2010
  • 1 reply
  • 563 views

I have the following code:

var myPercStr = myStr.text;

myPercStr= myPercStr.toString();

var myPerc = Number(myPercStr);

---------

I am trying to get the value of a text field which is created by the user pushing a pin-pad.  This text field is a string which is joined() from an Array of the sequence of pin-pad entries.  Now my problem is that Flash will not convert the .text text field into a string with which I can use the value to convert to a Number and perform math on it.

Can someone help me with my code?

Sincerely,

markerline

This topic has been closed for replies.

1 reply

markerline
Inspiring
December 1, 2010

I solved it.  myStr doesn't have a text property which is why this won't work.  I have to call myStr by itself.  It is already referencing the string of an Array from a previous function that returned its variable/value.

Participant
February 4, 2020

how to call mystr by itself