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
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
MC onPress within embedded MC onPress ?

MC onPress within embedded MC onPress ?

2005-10-11       - By exflux-6

 Back
Hey,
Now I've somehow done this before, but I can't remember how I did it.
I'll sudo-paste the code:

var ob = createEmptyMovieClip('ob', 1 );
with(ob) {
var sub = createEmptyMovieClip('sub', 2 );
sub.onPress = function() {
  trace( "Sub-clip pressed." );
}
}
ob.onPress = function() {
trace( "Main clip pressed, etc." );
}

The Idea here is to have the MC able to be clicked on and dragged, but
also so that when the clip within the main clip is also pressed, it
does something as well. And I forget how. Granted, the above is
sudo-code. There's more to it than that but 'tis the general idea.

How do I dooooooo this? :)

Thanks, hope the list isn't dead.

-Dial.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list:               mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive:   http://flash-list.com/
There's also a WebPro mailing list:     http://webdesign-list.com/
cutting-edge sounds for flash:            http://flash-sounds.com/

Earn $52 per hosting referral at Lunarpages.