I have a mc (_root.lists.submain), with a dynamic textfield inside, that I
scroll with this code:
startDrag("", true);
movieheight = 800;
w = getProperty("../lists/submain", _height);
speed = 100;
yPos = getProperty("", _y);
yPos = yPos-(movieheight/2);
setProperty("../lists/submain", _y, getProperty("../lists/submain",
_y)-(yPos/speed));
if (Number(getProperty("../lists/submain", _y))<Number(-(w/2))) {
setProperty("../lists/submain", _y, 0.01);
} else if (Number(getProperty("../lists/submain", _y))>0) {
setProperty("../lists/submain", _y, -w/2);
}
I have a mouse.listener that recover the x/y coord of mouse too, and that
activate or not the code above, so the scroll start when the mouse is over,
and end when the mouse is out.
The scroll work nonstop, with a fluid 're-start' when reach the end of
textfield.
The textfield is set to 'autosize=true'.
The problem is that, with one text dynamicalli loaded all works fine, but
with another, with a lenght about twice as much the previous, it scroll fine
almost well, but when the scroll reach the top of the textfield (the first
row of loaded text) it jump some rows (about 30) of text, and begin again
the scroll. This occur both scrolling up and scrolling down.
Any idea about the reason why?
Suggest and/or tips?...
* Enrico Tomaselli
* web designer
[EMAIL PROTECTED]
http://www.metatad.it
* Skype: MetaArt
RSS: http://www.metatad.it/mnfeeder.php
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com