Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Drag Movie Problem - PLEASE, PLEASE HELP!
From: Paul Willoughby
Date: Wed, 22 Nov 2000 16:15:59 GMT

James Cutts wrote on 22 November 2000:

> Ive been struggling with this problem for a few
> days now and STILL cant figure out a way round it.

Oh dear...but I still don't understand the problem...

> I have a 'drag movie clip' action in the first frame of my movie.
> In order to create the desired effect i need to have the drag action
> constrained to a rectangle and the mouse locked to centre.
> On the top layer I have a set of buttons spread around the movie area.

What? The buttons are around the edge of the rectangle the mouse is
constrained to? Or just all over the stage?

> Because the drag movie is constrained to a rectangle the
> mouse point which
> is locked to centre only moves in a straight horizontal line
> and is missing
> all the buttons on rollover.

What do you mean 'missing'? Is it possible to actually roll the mouse
over the buttons, but the rollovers don't work? Or is it physically
unable to hit the buttons because you can't get the mouse out of the
constrain area?

> However 'on release' still seems
> to trigger the
> 'on mouse over' event.

You mean clicking down causes the buttons to go to their rollover state?
I can't believe that's possible...

> I tried changing the hit area of the buttons so they intersect the
> horizontal plane that the drag movie is constrained to but
> this just means
> that when the mouse point passes anywhere along the vertical
> plane of a
> button it triggers it. This is bad.

Clearly.

> I need the drag clip to be locked but the actual mouse point to be
> specifically controllable in which buttons it triggers.
> Hope that makes sense.

No, not really. If the mouse is locked to centre, it's locked. You can
only 'unlock' it by stopping the drag. Here's a wild stab in the dark
though - instead of constraining the clip to a rectangle, why don't you
set up a little subroutine MC that constantly checks the location of the
mouse and start/stop the drag according to that. So if you had a 100 by
100 stage with a 50 by 50 centred constrain area you could test with (in
pseudo code) if mouseX > 25 and mousex< 75 and mouseY > 25 and mouseY <
75, start drag, else Stop drag.

> If anyone really thinks they can help I can sent them the .FLA

If it's Flash 4 I'll have a look, just because I'm curious what the hell
would be worth all this grief for ;-)

hth

paul

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]