Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-21-2011, 02:25 PM   #1
alikim
Registered User
 
Join Date: Mar 2010
Posts: 29
Default problem with text wrapping

I have a textfield with autosize="left" and I move the textfield up and down to make a smooth vertical scroll.

The problem is that the word wrapping depends on the current vertical coordinate of the textfield, so when I scroll it the text jumps forth and back between two different wrapping options.

Does anyone know how to fix this?
alikim is offline   Reply With Quote
Old 12-21-2011, 04:52 PM   #2
LOLFlash
Senior Member
 
Join Date: May 2007
Location: Toronto,Canada
Posts: 530
Default

Quote:
Originally Posted by alikim View Post
word wrapping depends on the current vertical coordinate of the textfield
this part not clear because it shouldn't


http://board.flashkit.com/board/showthread.php?t=442282

Last edited by LOLFlash; 12-21-2011 at 05:15 PM.
LOLFlash is offline   Reply With Quote
Old 12-21-2011, 08:28 PM   #3
alikim
Registered User
 
Join Date: Mar 2010
Posts: 29
Default

Here is an example, after the text appears, press and hold the purple box at the right bottom.

It happens only for some combination of text and font used, so hopefully you will see what I mean.

The example was quickly carved out of a bigger program, the main idea is to make a smooth pixel-by-pixel scrolling of a text field.
Attached Files
File Type: zip scrollTest.zip (29.7 KB, 25 views)

Last edited by alikim; 12-21-2011 at 08:30 PM.
alikim is offline   Reply With Quote
Old 12-22-2011, 12:09 AM   #4
LOLFlash
Senior Member
 
Join Date: May 2007
Location: Toronto,Canada
Posts: 530
Default

I tried your example and after I did mine it jumps anyway

The best results I've got when set TextField Property use Device Fonts

Attaching my working simplified example
Attached Files
File Type: zip MyScroll.zip (11.6 KB, 31 views)

Last edited by LOLFlash; 12-22-2011 at 12:17 AM.
LOLFlash is offline   Reply With Quote
Old 12-22-2011, 12:38 PM   #5
alikim
Registered User
 
Join Date: Mar 2010
Posts: 29
Default

Quote:
Originally Posted by LOLFlash View Post
I tried your example and after I did mine it jumps anyway
So, do you know why does it happen or how to fix it?

Unfortunately, I can not use device fonts.
alikim is offline   Reply With Quote
Old 12-22-2011, 03:49 PM   #6
LOLFlash
Senior Member
 
Join Date: May 2007
Location: Toronto,Canada
Posts: 530
Default scroll

I did My own scroll using masking
LOLFlash is offline   Reply With Quote
Old 12-22-2011, 10:47 PM   #7
alikim
Registered User
 
Join Date: Mar 2010
Posts: 29
Default

Quote:
Originally Posted by LOLFlash View Post
I did My own scroll using masking
It's not the problem with scrollRect or any other way of masking, the text will jump around even when you just change its .y property;
alikim is offline   Reply With Quote
Old 12-23-2011, 01:02 AM   #8
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,332
Default

Use a BlitMask to scroll the text.
[afz]snickelfitz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.