[Flash8] Convert a read-only property to a number

Hi,

I know I am missing something very basic, but I don’t know what it is so perhaps this forum can put me on course…

I have an FLV player that provides a read-only property called myPlayer.timecode and it displays the time in seconds as a String (xx.xxx). I am trying to assign that value to a variable so I can convert it to a number to use in some calculations, comparisons, etc.

I can assign this property to a dynamic text box and display it on the screen, but I cannot assign it to a variable and have the variable value show correctly on the screen. What do I need to do?

Ex: myPlayer.timecode value is 10.000 and shows as 10.000 in the dynamic text box called myTime1. (I entered the property into the Var: input box).
Created a String variable called timePlayed, and assigned it to a dynamic text box called myTime2. However, I cannot find a way to assign the property myPlayer.timecode to this variable. I can only display a value of “undefined” or “NaN” in the text box myTime2.

Arrrgh! Help, please.