dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Text scroll ?

Hybrid View

  1. #1
    Senior Member
    Join Date
    Feb 2005
    Posts
    172

    Text scroll ?

    can I get a very basic example of scroll up and scroll down buttons ? They'll automaticcaly be visible if the text is longer than the text space.

    thank you.

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    172
    :bumps

    still no reply ? is it really that hard ?

  3. #3
    Senior Member
    Join Date
    Apr 2006
    Posts
    129
    try this:
    PHP Code:
    if (myTextField.maxScrollV 1) {
        
    btns.visible true;


  4. #4
    Senior Member
    Join Date
    Feb 2005
    Posts
    172
    whats that MAXSCROLLV ?
    :S:S


    btw, thx.

  5. #5
    Senior Member
    Join Date
    Feb 2005
    Posts
    172
    what I'm trying to build is --- buttons.. Not the visibility thing at first..
    I dont have the buttons (right now) to hide or show (set visible).

  6. #6
    Senior Member
    Join Date
    Apr 2006
    Posts
    129
    You can build up your own buttons or use UIScrollBar
    PHP Code:
    var infoText:TextField = new TextField();
    ...

    if (
    infoText.maxScrollV 1) {
        var 
    infoScroller:UIScrollBar = new UIScrollBar();
        
    infoScroller.infoText.infoText.width 10;
        
    infoScroller.height infoText.height;
        
    infoScroller.scrollTarget infoText;
        
    addChild(infoScroller);


  7. #7
    WohOoooooo zompo's Avatar
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    138
    Here is a link to the livedocs about maxscroll and textfields


    Try out my game http://alpha.bombwar.com - Alphakey: fkaplha

  8. #8
    Member
    Join Date
    Jul 2005
    Location
    SLC
    Posts
    31
    I just posted my own scroll bar class. If you want to get down and dirty you can pour through my code.

    http://board.flashkit.com/board/showthread.php?p=4109603#post4109603
    _______
    What happens to your lap when you stand up?
    My Site - HexLuv.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center