making a castmember move x,y

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

  1. #1

    Default making a castmember move x,y

    I want to run a function to move a castmember, I work in Flash and aren't so clued up in Director,
    What I want to do is have a button on a menu, which is sunken down, and when you click it it slides
    up into view.

    Can I use functions in Lingo??
    Can I refer to a cast-member's x and y coords like in Flash?

    like: MyMember._x += 5; or does it work with V and H?

    Thanks for any help



    ShaolinWood webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Making layers move within a template
      I am creating a template which contains (from top to bottom) an uneditable layer for the logo, an editable layer for the content, and an uneditable...
    2. making shapes move
      I am trying to make a bee and want to make the wings look like they are flying. Anyone have any suggestions for me? I am new to flash and thought I...
    3. How to animate a castmember with lingo?
      Hi, this is what I am trying to do: When I click on my button y want my castmember to animate off the stage. i want to be able to do this with...
    4. making movieclip move away from mouse
      Anyone care to explain to me how to make a movieclip move away from my mouse or know any tutorials on the web on how to do this? When the...
    5. How do I delete a castmember in Lingo?
      Hi Group It's easy to create new castmembers into a specific castlib with Lingo, but how can I delete them again with Lingo. I guess there is...
  3. #2

    Default Never mind

    OK, that's quite simple.
    But how do you define a variable?
    like if you want to state: worldDomination = true;

    And then later on have some code:

    if world domination = true then quit
    end if

    or some like that...



    ShaolinWood webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Never mind

    That's exactly how you do it. You'll have to declare the property
    though. if you only ever reference it from the one script then at the
    top of that script, outwith any of the handlers, add:

    property worldDomination

    if you want to use it between several scripts just add the following
    to each script that will reference it (again outwith any of the
    handlers):

    global worldDomination


    hope that helps,

    richie


    On Fri, 5 Dec 2003 11:12:19 +0000 (UTC), "ShaolinWood"
    [email]webforumsuser@macromedia.com[/email] wrote:
    >OK, that's quite simple.
    >But how do you define a variable?
    >like if you want to state: worldDomination = true;
    >
    >And then later on have some code:
    >
    >if world domination = true then quit
    >end if
    >
    >or some like that...
    >
    >
    Richie Bisset Guest

  5. #4

    Default Thanks man

    That will definitely help.
    thanks for the reply
    Njoy


    ShaolinWood webforumsuser@macromedia.com Guest

  6. #5

    Default Re: making a castmember move x,y

    A cast member is the original asset and resides in the cast. Any
    instance of a member on the stage is a sprite. It's the sprite that you
    want to animate.

    Yes, Director has functions. The verticle component of a sprite's
    location, it's loc, is the locV property.

    All of this information, as well as many other interesting facts about
    Director, are conveniently located in the Director Help section of the
    Help Menu. You might also want to wander through some of the tutorials.
    You may also find some useful information there.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  7. #6

    Default Re: making a castmember move x,y

    > All of this information, as well as many other interesting facts about
    > Director, are conveniently located in the Director Help section of the
    > Help Menu. You might also want to wander through some of the tutorials.
    > You may also find some useful information there.
    >
    > --
    > Rob
    Sometimes I really wonder how people can want to achieve anything using
    Director without even having one single look at the manual or _at least_ at
    the online help?! If you are a somehow experienced programmer, you can go
    ahead and try things out in Director, but if you don't even know how a
    variable is declared, then that's the best time to read about the
    fundamentals of your new programming environment... (let's call Director a
    programming environment, in this case ;-) )

    L.S.


    Loren Schwarz 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