What's wrong w/ this button script?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default What's wrong w/ this button script?

    on(press) {
    textField.scroll += 1;
    if (press = True) {
    textField.scroll ++;
    }

    }

    I have this on a down button that controls text in a dynamic text
    field. It only scrolls down one line at a time when you click it (as
    you can see) but I want it so that if the mouse button is held down it
    will automatically scroll more than just a single line. Any ideas?
    Thank you.

    eric@elcmedia.com Guest

  2. Similar Questions and Discussions

    1. What's wrong with that script
      Hello, I made a slide show of pictures... I made a button to go to the next picture, and another to the previous picture I made a little script...
    2. What is wrong with my script?
      <?php $lines = file('http://tibia.4players.de/statistics/?subtopic=whoisonline&world=Nova') ; $charname = $_POST; for ($i=0;...
    3. what is wrong in this script?...thanks
      I cant connect this script with my HTML-form. This is my first time im working with PERL. I have upload the script with 755 and in the form action...
    4. What's wrong with this script?
      Try saying: go to frame link take out the () "Frank_S" <webforumsuser@macromedia.com> wrote in message...
    5. what wrong with this PHP script ?
      Hi there I've created abd uploaded this basic PHP script: <html> <head> <title>PHP Test</title> </head> <body> <H1 align="center">
  3. #2

    Default Re: What's wrong w/ this button script?

    Well I have managed to get text on one MC to scroll when the mouse
    hovers over the "down" button (It's actually a MC). The problem is I
    have two movie clips, each with dynamic text fields, inside another
    movie clip. When I added the second MC with text it worked, but
    suddenly the first MC with text no longer worked! Agh!
    Here is my code for the MC that follows the mouse (mouseFollower):

    onClipEvent (load) {
    this.startDrag(true);
    this._visible = false;
    }

    And here is the code for the down MC (and similar for the up MC):

    onClipEvent (enterFrame) {
    if(hitTest(_parent.mouseFollower)){
    _parent.scrollText_txt.scroll +=1;
    }
    }

    The text fields in each MC are called scrollText_txt
    Any idea why adding another MC with dynamic text would make the first
    one stop working? I have tried changing the names of the text fields
    and the hover MC but so far nothing works.

    eric@elcmedia.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139