Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default Redraw Help

    Hi,

    I'm pretty new to this and I have to make a uni project. I have a repeat while loop, which works correctly but I want the screen to redraw so the item moves accross the screen in a series of jumps instaed of one big jump? Animating accross the screen gradually would be better but I understand that this maybe very difficult.

    Many Thanks

    NeilT


    NeilT31 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. TileList redraw bug?
      Hi folks, Is there any known bug with the TileList component? Basically, I display thumbnails in the TileList component with custom itemRenderer...
    2. another slow redraw
      I think for everyone person that says they do not have this problem, there is one that does. I do.
    3. redraw problem
      Hi I am having strange screen redraw problem in Flash MX, after filling background in Action Script beginFill(somecolor, 100) moveTo(x,y)...
    4. Redraw Help
      "NeilT31" <webforumsuser@macromedia.com> wrote in message news:bvnrb5$qrr$1@forums.macromedia.com... while loop, which works correctly but I want...
    5. Refresh/Redraw enhancements in IE/ASP.NET
      In many of the presentations I've seen about ASP.NET there was talk about how on postbacks only the data that has changed gets redrawn in the...
  3. #2

    Default Re: Redraw Help

    No - it is not hard. You have to create a behavior and attach it to the sprite you want to move. The actual movement will only occur in the on exitframe handler.

    Something like this. Check the syntax... this is just off the top of my head, not tested, etc...:

    --------------
    property moving, my

    on beginsprite me
    my=sprite(the spritenum of me)
    moving=true
    end

    on exitframe
    if moving=true then
    my.locH=my.locH+1
    my.locV=my.locV+2
    end if
    end

    on mouseup
    if moving=false then
    moving=true
    else
    moving=false
    end if
    end







    Andrew Quested
    [url]http://www.quested.com.au[/url]
    Questy webforumsuser@macromedia.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