Automatic adjustment of the text box under the text

  • Sorry for my english :( How do I make the text field will automatically change the size of the size of the text? To leave large empty fields in the text field.

    Code
    <layer name="infopistols" keep="true" zorder="100" url="%CURRENTXML%/graphics/textfield.png" align="center" x="0" width="50%" height="prop" scale9grid="6|6|268|188" visible="false" >
    <!-- the scrolling text --><layer name="textmask" type="container" align="lefttop" x="5" y="5" width="-30" height="-10" maskchildren="true" > <layer name="textscroller" url="%CURRENTXML%/plugins/scrollarea.swf" onhover_autoscrolling="true" alturl="%SWFPATH%/plugins/scrollarea.js" direction="v" overscroll="0" align="lefttop" width="100%" height="100%" onscroll="if(hoverflow GT 0, div(yp,toverflow,hoverflow);Math.min(yp,1);Math.max(yp,0); copy(th,layer[scrollbar].pixelheight);sub(th,layer[scrollup].pixelheight);sub(th,layer[scrolldown].pixelheight);sub(th,layer[scrollslider].pixelheight); mul(yp,th);add(yp,layer[scrollup].pixelheight); copy(layer[scrollslider].y,yp); );" > <layer name="text" parent="infopistols" visible="true" url="%CURRENTXML%/plugins/textfield.swf" align="lefttop" x="0" y="0" width="100%" autoheight="true" background="false" border="false" selectable="false" onautosized="copy(layer[textscroller].height, height);" padding="10 15" html=" " css="color:#000000; list-style-type: decimal; font-size:16px; line-height:2; moz-user-select: none; webkit-user-select: none; ms-user-select: none;o-user-select: none; user-select: none;" > </layer> </layer> </layer>
    <!-- the scrollbar --> <layer name="scrollbar" visible="false" type="container" bgcolor="0x000000" bgalpha="0.25" align="righttop" x="5" y="5" width="19" height="-10" > <layer name="scrollup" url="%CURRENTXML%/graphics/dirbutton.png" align="righttop" x="19" rotate="-90" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="asyncloop(pressed, layer[textscroller].scrollby(0,+1));" /> <layer name="scrolldown" url="%CURRENTXML%/graphics/dirbutton.png" align="rightbottom" x="19" rotate="+90" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="asyncloop(pressed, layer[textscroller].scrollby(0,-1));" /> <layer name="scrollslider" url="%CURRENTXML%/graphics/sliderbutton.png" align="righttop" x="0" y="19" crop="0|0|19|19" onovercrop="0|19|19|19" ondowncrop="0|38|19|19" ondown="if(layer[textscroller].hoverflow GT 0, copy(cy,y);copy(sy,mouse.stagey);dragging(); );" dragging="if(pressed, sub(dy,mouse.stagey,sy);add(ny,cy,dy);Math.max(ny,layer[scrollup].pixelheight); copy(th,layer[scrollbar].pixelheight);sub(th,layer[scrolldown].pixelheight);sub(th,layer[scrollslider].pixelheight);Math.min(ny,th); copy(y,ny); sub(ny,layer[scrollup].pixelheight);sub(th,layer[scrollslider].pixelheight);div(ny,th); copy(fh,layer[textscroller].hoverflow); mul(fh,-1); mul(ny,fh); layer[textscroller].stopscrolling(); copy(layer[textscroller].y,ny); delayedcall(0,dragging()); );" /> </layer> </layer>
    <plugin name="close1" keep="true" parent="infopistols" style="skin_close" align="righttop" x="-8%" y="-8%" width="12%" height="prop" onhover="showtext(Закрыть);" onclick="set(layer[infopistols].visible, false); tween(plugin[close1].alpha, 0,1);"/>

    http://i68.tinypic.com/2u7371t.jpg


    P.S. Why does my code is displayed so bad?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!