Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
onScroller + MouseWheel problem: not precise

onScroller + MouseWheel problem: not precise

2004-02-25       - By arzach

 Back
Reply:     1     2  

i've done this for test:

-- ---- ---- ---- ---- ---- ---- ---- ---- --
createTextField("txtContent",1,0,0,120,100);
txtContent.wordWrap = true;
txtContent.onScroller = function() {
   trace(this.scroll);
}

// fill the textField
txtContent.text = "BEGIN \n"
for (var i=2; i<=20; i++) {
   txtContent.text += i+"\n";
}
txtContent.text += "END"
-- ---- ---- ---- ---- ---- ---- ---- ---- --


then i scroll it with the mousewheel and find that if i move the wheel
slowly the textfield update right and the trace(scroll) show me the
right fisrt line in the field.
but if I rotate the wheel fast the trace show me not the fisrt line i'm
seeing. For example, the textField scroll to the top but the last trace
action doesn't show "1", but "4".
this means that the onScroller event is fired but it's not precise?

how can i fix this??

thank you,
giorgio


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105247
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




Earn $52 per hosting referral at Lunarpages.