Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
V2 Window Component: Subclassing & Scrolling?

V2 Window Component: Subclassing & Scrolling?

2004-03-15       - By John Robinson

 Back
Reply:     1     2  

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)