  | |  | 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.
|
|
 |