width & height properties of components
I have been messing around making my own components but am stumped as to what is going on with their width & height properties. If you place an MX component (eg TextArea) on the stage in the authoring environment and change the width/height in the properties panels, the clip updates to the new size without distorting, ie stretching to the new size. This is also true when you export the movie.
However with my home-brewed components, whose classes extend the MovieClip class, the bounding box or 'masked' area of the compiled clip reacts to the changed dimensions (although the clips internal movieclip members do not), and then upon exporting, the clip's dimensions are distorted to the height/width.
I think this question is tied in to my earlier post about compiled clip's bounding boxes in the authoring environment and how to update them when an inspectable variable is changed. I will examine the UI components classes to see if I can work out what is going on, but just wondered if anyone has encountered these issues before.
Are there any decent books on creating MX2004 components out yet? I've read Colin Moock's O'Reilly AS2 book plus the Actionscript Bible, but they kind of gloss over the subject.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to change the width and height of an image loaded in a movieclip||kitsunegari||Flash CS3 / Flash 9||2||02-03-2008 03:17 AM|
|Embed %: height resizing to % of screen, not relative to width||Mike Reynolds||Newbies||0||08-12-2005 02:41 AM|
|set height and width of loaded external jpg||cybercampbell||Newbies||3||07-26-2004 07:20 PM|
|Dynamic x y axis and Height width||monad||Flash MX ActionScript||6||06-07-2003 08:32 AM|
|width and height of movie||damn||Flash 5 Actionscript||2||06-05-2001 07:43 PM|