In general when you give mouse control to a clip that holds other clips,
this will intercept all mouse activity and not allow events to trickle
down.
 
The way to work around this is to create a separate clip that is a
sibling to the clip you want to have mouse interaction, then you place
this clip as a 'handle' or 'drag bar' to control movement of the parent
which will bring along your first clip when dragged:
 
|--------------------------------|
|    parent shell mc             |
|                                |
|    |-----------------------|   |
|    | handle mc (drag init) |   |
|    |-----------------------|   |
|                                |
|  |--------------------------|  |
|  | original mc (mouse intact)|  |
|  |--------------------------|  |
|--------------------------------|
 
This way the handle mc doesn't overlay the original mc's mouse events.
When it comes time for dragging, you apply up one level to the parent
mc.

Darin Kohles, Application Developer
[EMAIL PROTECTED]
Digital Positions, Inc.
2289 Peachtree Road NE
Atlanta, GA 30309

404-351-8878 support phone
404-351-2366 main phone
404-351-4055 fax
http://www.d-p.com/ 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cupo
Sent: Monday, November 05, 2007 10:44 AM
To: [email protected]
Subject: [AFFUG Discuss] startdrag with animation in it


hello affug group, 

i am trying to create a softphone for a presentation in flash and need
to know how to create startdrag(); and stopdrag(); so it does not stop
the functionality of the movie clip.
i am using actionscript 1 pretty much.

the movieclip contains movieclips that contains the onpress goto and
stop frame 2 and then on frame two onrelease goto and stop frame 1. just
like a button.
i have also tried simple buttons in a movieclip for this.

for whatever reason, once you assign the main movieclip of the phone to
drag around the screen, all the buttons stop working in it.

thoughts? suggestions?

here's the fla file:



-------------------------------------------------------------

To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line



For more info, see http://www.affug.com

Archive @ http://www.mail-archive.com/discussion%40affug.com/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------

Reply via email to