ActionScripting Width, Height, X, and Y ?

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

  1. #1

    Default ActionScripting Width, Height, X, and Y ?

    ActionScripting Width, Height, X, and Y ?
    Anyone know what actionscript is involved in changing the width, height, x,
    and y data for a graphic symbol?

    In the end, I want to be able to click a button to resize and reposition a
    symbol on the stage - including easing!

    Can anyone help??

    Thanks!

    simsjr Guest

  2. Similar Questions and Discussions

    1. textArea height width autosize
      I'm trying to change the textArea's height I have instantiated in actionscript .. I've tried two methods. 1. Assign text to textArea,...
    2. how to get stream width and height?
      hello; is there a way to get a streams width and heigh so that I can dynamically change the size of the video object? thanks dsdsdsdsd Chicago
    3. Stage width & height
      Has anyone else noticed that stage.width and stage.height report incorrectly when yopu test your movie at 100% Does anyone have a good way round...
    4. Can't control height and width
      When I draw a rounded rectangle, i can no longer get a Height and Width measurement readout from the properties window. It gives me 64000 for the...
    5. Image Height and Width values
      After pulling an image from the data base and the Image.Height and Image.Width are not set to the ImageURL's attributes. 1) Is there a way to...
  3. #2

    Default Re: ActionScripting Width, Height, X, and Y ?

    object._x = 100;
    object._y = 50;
    object._width = 200;
    object._height = 300;
    object._xscale = 99; // percent
    object._yscale = 87 // percent

    But seriously, read the help! (Look in the actionscript reference under
    MovieClip)

    Pea Guest

  4. #3

    Default Re: ActionScripting Width, Height, X, and Y ?

    p.s. The object needs to be a movieClip object, not just a graphic object. If
    its a graphic object, first wrap it inside a movieClip object or convert it to
    a movieCLip object so that you can name it.

    Pea Guest

  5. #4

    Default Re: ActionScripting Width, Height, X, and Y ? Doing something wrong.

    I've got a similar question. I've loaded an external image into a movie
    clip. When i try to resize the image width and height using MC._width =
    100, and test the movie the movie clip is not visible. I test the width
    and height and I get both as 0, as if attempting the resize nulled the width
    and height.

    I looked at the documentation and it says that _width and _height are read
    only values. But i'm pretty sure that I've made changes to clips before
    using the same method as above. I have worked around the problem by using
    _xscale and _yscale. But I was wondering, for the pure sake of knowledge,
    if this has something to specifically with the MC containing the loaded
    image graphic.

    Anyone know?

    thanks,

    Ticean




    "Pea" <webforumsuser@macromedia.com> wrote in message
    news:c23uvm$t3c$1@forums.macromedia.com...
    > p.s. The object needs to be a movieClip object, not just a graphic object.
    If
    > its a graphic object, first wrap it inside a movieClip object or convert
    it to
    > a movieCLip object so that you can name it.
    >

    Ticean Bennett 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