Ask a Question related to Macromedia Flash, Design and Development.
-
James #1
detecting mouse movements within objects
Hi Guys,
I so need help with a movie I'm trying to make.
I have a button (a square) on frame 1, it reacts to
an on(RollOver) event which plays a loop of frames
2 to 10. The loop exits on an on(RollOut) event.
This is ok, except, I would like it to loop to activate
only when there are mouse movements on the button.
Please can anyone suggest how I might do this and
what essential code I would need?
thanks for reading,
James
James Guest
-
camera movements
i read through the director help and i understand that there is an orbit command, but it doesnt display how to use it. I want to orbit my camera... -
Mouse Drag W3D objects
Hi All, Im trying to add some mouse drag functionality to my shockwave 3D world, for picking up and moving W3D objects. I found a code snippet... -
Detecting two objects colliding
Hi hope someone can help with this. I have a cube and a sphere in the scene and the sphere can be moved by keyboard controls, but how can i code it... -
Camera to follow mouse movements
I want a user to be able to be able to walk through a scene like most first person shooter games, i.e. just move your mouse to the left and the... -
detecting Mouse movement
Hi Shane, You can store the mouseLoc in a variable upon entering the screen saver movie. Then set a conditional in a framescript that will detect... -
Der Zählmeister #2
Re: detecting mouse movements within objects
James wrote:
when on(RollOver), setInterval to some strobing> Hi Guys,
>
> I so need help with a movie I'm trying to make.
>
> I have a button (a square) on frame 1, it reacts to
> an on(RollOver) event which plays a loop of frames
> 2 to 10. The loop exits on an on(RollOut) event.
> This is ok, except, I would like it to loop to activate
> only when there are mouse movements on the button.
>
> Please can anyone suggest how I might do this and
> what essential code I would need?
>
>
> thanks for reading,
>
> James
function that is continuously run at say every
100 milliseconds.
in the strobing function, you would capture
the the mouse's position with _xmouse and _ymouse.
compare this with the old position (always save
a copy of the current mouse position). if
there is a change in any of the coordinates,
then you activate your loop.
on(RollOut) you would disable the strobe function
by setting a Boolean flag like bActive = false;
remember to set bActive = false; at the beginning
and to set bActive = true; on roll over. at the
start of the strobe function, put it code like
if (not bActive) { return; }
--
-----
The Count, Singapore
Learning Objects (e-Learning) Consultant
Der Zählmeister Guest
-
James #3
Re: detecting mouse movements within objects
Ahh! Your a genius! Works like a dream.
Thankyou kindly.
Please excuse my novice ability - I'll know I'll
look back and think how simple it is.
James
"Der Zählmeister" <the_count@mozilla.com.sg> wrote in message
news:d07ar2$4ob$1@mawar.singnet.com.sg...> James wrote:
>>> > Hi Guys,
> >
> > I so need help with a movie I'm trying to make.
> >
> > I have a button (a square) on frame 1, it reacts to
> > an on(RollOver) event which plays a loop of frames
> > 2 to 10. The loop exits on an on(RollOut) event.
> > This is ok, except, I would like it to loop to activate
> > only when there are mouse movements on the button.
> >
> > Please can anyone suggest how I might do this and
> > what essential code I would need?
> >
> >
> > thanks for reading,
> >
> > James
> when on(RollOver), setInterval to some strobing
> function that is continuously run at say every
> 100 milliseconds.
>
> in the strobing function, you would capture
> the the mouse's position with _xmouse and _ymouse.
> compare this with the old position (always save
> a copy of the current mouse position). if
> there is a change in any of the coordinates,
> then you activate your loop.
>
> on(RollOut) you would disable the strobe function
> by setting a Boolean flag like bActive = false;
> remember to set bActive = false; at the beginning
> and to set bActive = true; on roll over. at the
> start of the strobe function, put it code like
> if (not bActive) { return; }
>
> --
> -----
> The Count, Singapore
> Learning Objects (e-Learning) Consultant
James Guest



Reply With Quote

