Hi,
1, could you set your parallelogram up so that it is big enough to
accommodate the 9-slice guides: like this:
_ ----------------------------------
\ \
\ \
\ \
\ \
_ \ \
----------------------------------
| |
(Top is line height from the top, bottom line height above bottom.
Left & Right create 2 right angled triangles.)
2. Failing this, could you start with a rectangle / square and
skew the matrix property of the MovieClip's transform object depending
on your "angle"?
AS2
Matrix & Skewing:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001843.html
<http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001843.html>
Transform:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001843.html
<http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001843.html>
AS3:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Matrix.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Transform.html
HTH
Glen
Matt S. wrote:
So I have a parallelogram (
http://thesaurus.maths.org/mmkb/media/png/AreaofParallelogram.png )
which I need to scaleX up from 1 to 50, while maintaining the angles
of the sides . The problem of course is that just increasing scaleX
will cause the angles to distort. I cant use scale9 because the
parallelogram needs to start as a 5 pixel sliver, which means the
angled parts would overlap at the smallest state. I'm thinking I might
need to dynamically draw it on enterFrame, deleting and redrawing each
time, but perhaps someone has a better suggestion? Imagine a
parallelogram that starts out at 5 pixels wide and height=stageHeight,
and expands horizontally to a width of stageWidth, without losing the
angles on the sides. Any suggestions much appreciated.
tia,
.m
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders