# Textfield holding playheadTime

**URL:** https://forum.kirupa.com/t/textfield-holding-playheadtime/304098
**Category:** flash
**Created:** [February 1, 2010, 6:43pm UTC](https://forum.kirupa.com/t/textfield-holding-playheadtime/304098 "2010-02-01T18:43:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bugsby84](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@Bugsby84](https://forum.kirupa.com/u/Bugsby84)
#### Post date: [February 1, 2010, 6:43pm UTC](https://forum.kirupa.com/t/textfield-holding-playheadtime/304098/1 "2010-02-01T18:43:08Z")

</div>

Hi,

I’ve created a textfield which I want to hold the time that is left of a flv being played. I also created a timer which will see to it that it gets updated.

Here is the code:  
"import flash.utils.Timer;  
import flash.events.TimerEvent;

var myTimer:Timer = new Timer(1000);  
myTimer.addEventListener(TimerEvent.TIMER,updateCountdown);  
myTimer.start();  
function updateCountdown(event:TimerEvent) {  
cdText.text = myVideo.totalTime - myVideo.playheadTime;  
}"

However, when i try to compile i get this error message:  
"1067: Implicit coercion of a value of type Number to an unrelated type String.
