  | | | V2 Window Component: Subclassing & Scrolling? | V2 Window Component: Subclassing & Scrolling? 2004-03-15 - By John Robinson
Back Hey All -
I'm just getting started with 2004/AS2.0. I'm trying to subclass the Window component to recreate a component I did in as1. It's basically a window that has a little corner button that the user drags to resize the window. I've managed to subclass the Window class easily enough, but I'm stuck on 2 things:
1. How/where do I attach my "CornerDragger" symbol? I tried simply using attachMovie, which while attaching my clip, drew a white box around my clip and over most of my content clip (external swf). I'm playing with createChild, createClassObject, etc but don't really know how/if I'm supposed to be using those.
1a. I'd prefer that my CornerDragger stay a simple mc since all it needs are onPress and onRelease handlers. Should I be subclassing something like "SimpleButton" instead?
2. The Window.as file implies that Window extends ScrollView. I'm assuming this means that if my content is bigger than the size of my window, that scrollbars will appear, thus treating my window like a ScrollPane? Unfortunately this doesn't seem to be the case. Do I have to explicitly write my own scrolling code?
Thanks! John
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107039 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |