beginGradientFill() > matrix

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

  1. #1

    Default beginGradientFill() > matrix

    Hi,

    I'm having some difficulty understanding the matrix properties for the
    beginGradientFill method. So far (I think) I have found out the following.

    matrix =
    {a:value,b:value,c:value,d:value,e:value,f:value,g :value,h:value,i:value}

    in which

    a=xSize

    b=vSkew

    c=??

    d=hSkew

    e=ySize

    f=??

    g=xPos

    h=yPos

    i=??

    Please enlighten me on what properties are controlled by the c, f and I
    parameter. The dictionary is of no help to me; did a search and found some
    things but nothing that could explain the above. And please correct me on
    the above if needed ;-)

    Thanks for any input.

    John


    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.COM Guest

  2. Similar Questions and Discussions

    1. beginGradientFill Question
      In the beginGradientFill method, what exactly does the transformation matrix control...... ? I mean the a:somevalue b:somevalue etc....I can't...
    2. beginGradientFill HELP
      lineTo (not lineto) moveTo (not moveto)
    3. Can't get beginGradientFill() to work, HELP please
      i don't know if you solved this yet or not, but it was posted in the online doc that they had some capitalization issues in the code lineTo and...
    4. beginGradientFill() NOT WORKING
      I pass the following function a hex color "00FF00" and a MovieClip name. the clip is on the stage and visible when the function is called. The clip...
    5. beginGradientFill?
      I cut and paste the sample code in the help files for beginGradientFill and nothing shows up. I found some example code of it online and tried...
  3. #2

    Default Re: beginGradientFill() > matrix

    Hello Laiverd,

    matrixType This value should always be "box".
    x The x coordinate of the bottom-left corner of the gradient.
    y The y coordinate of the bottom-left corner of the gradient.
    width The width of the gradient in pixels.
    height The height of the gradient in pixels.
    r The rotation of the gradient in radians (not degrees).

    -you can also use transformMatrix class which is included on the Flash
    CD-ROM under goodies\macromedia\othersamples\transformmatrix.as

    hth.

    ilti
    cites: flash cookbook.


    "Laiverd.COM" <share_your_knowledge@someserver.com> wrote in message
    news:c21u0p$23g$1@forums.macromedia.com...
    > Hi,
    >
    > I'm having some difficulty understanding the matrix properties for the
    > beginGradientFill method. So far (I think) I have found out the following.
    >
    > matrix =
    > {a:value,b:value,c:value,d:value,e:value,f:value,g :value,h:value,i:value}
    >
    > in which
    >
    > a=xSize
    >
    > b=vSkew
    >
    > c=??
    >
    > d=hSkew
    >
    > e=ySize
    >
    > f=??
    >
    > g=xPos
    >
    > h=yPos
    >
    > i=??
    >
    > Please enlighten me on what properties are controlled by the c, f and I
    > parameter. The dictionary is of no help to me; did a search and found some
    > things but nothing that could explain the above. And please correct me on
    > the above if needed ;-)
    >
    > Thanks for any input.
    >
    > John
    >
    >
    > --
    > --------------------------------------------------------------------------
    --
    > -----------
    > RESOURCES
    > [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    > --------------------------------------------------------------------------
    --
    > -----------
    > TUTORIALS at
    > [url]www.laiverd.com[/url]
    > Flash & PHP Emailform
    > Using textfiles in Flash
    > --------------------------------------------------------------------------
    --
    > -----------
    >
    >

    ilti Guest

  4. #3

    Default Re: beginGradientFill() > matrix

    Tnx for the info. The cookbook was the only thing I did not yet have a peek
    in, so that's a good one ;-) But about:
    <q>matrixType This value should always be "box".</q> I think there's two
    ways to define a matrix: with or without the matrixType defined. If omitted,
    you have to end up with those 9 properties of the matrix object, which allow
    for more control over the gradient. I'll have a look at the
    transformmatrix.as.

    Tnx again.

    John

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.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