TLFTextField vertical scroll - scrollV not working?


hi. i'm using flash cs6 on mac osx 10.7 , trying use tlftextfield , animations depending on vertical scroll. have example here:

 

http://ecstweb.comuv.com/temp/forum/anim2.html

 

the text field intance named txt01 , text field shows value of txt01's scrollv property named txt_scroll.

 

my code is:

 

import flash.events.*;

import fl.text.tlftextfield;

 

txt01.addeventlistener(event.scroll, itscrolled);

 

function itscrolled (e:event) {

    var s:int = e.target.scrollv;

    txt_scroll.text = string(s);

}

 

when scroll down, scrollv 0. if reach bottom of text, when scroll scrollv displayed correctly, although when it's on empty lines displays 0 again, makes no sense me. doing wrong? how can correct scrollv value?

 

thanks.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account