Flasher Archive

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


Subject: FLASH: Two draggable MCs at the same time
From: Troy Swain
Date: Fri, 22 Sep 2000 14:11:50 +0100

Man, I hope you all can help me with these problems... and this is the
last one for the night... I promise.

In my movie, I have several draggable MCs.

However, in one scene, which loops between two frames and checks for the
x position of the mouse, the draggable buttons won't drag.

The problem is that I have a MC in that scene called "mouse" that has
two frames:
The first frame is empty and has the action:
Start Drag ("", lockcenter)
and the second frame has a dot and loops to the first.

I do this 'cause I want to get the property of ../mouse so that the
mouse's x position sets the frames of a bunch of other MCs.

All of this works like a charm.

However, I can't seem to get the other, basic, draggable MCs to work in
at the same time.

Is it because I'm not setting a target in the Start Drag function?



Again, if you're at all interested in seeing want I'm writing about, go
to www.mathiasbraschler.com and try to drag Contacts or Languages or
what-have-you around. It works if you leave the home page, but it
doesn't work on the home page.



More Info:

Here's what I'm doing (in part):

Comment: ### this here tells the movies with the mask to go to the
frame, detected by the mouse. ###
Begin Tell Target ("/btn1")
Set Variable: "set" = GetProperty ("../mouse",_x)
Set Variable: "set" = Int( set / 10 )
Go to and Stop (set)
End Tell Target
Begin Tell Target ("/proj2")
Set Variable: "set" = GetProperty ("../mouse",_x)
Set Variable: "set" = Int( set / 10 )
Go to and Stop (set)
End Tell Target
etc., etc...
Comment: ### set variables for the x-position of each movie, relative to
the first movie btn1 ###
Set Variable: "width_1" = GetProperty ("btn1/foot",_width)
Set Variable: "width_2" = GetProperty ("proj2/teeth",_width)
Set Variable: "width_3" = GetProperty ("/proj3/takako",_width)
Set Variable: "width_4" = GetProperty ("proj4/kid",_width)
Set Variable: "width_5" = GetProperty ("proj5/spread",_width)
etc., etc...
Comment: ### x - position is set ###
Set Property ("/proj2", X Position) = (xpos1 + width_1)
Set Property ("/proj3", X Position) = (xpos1 + (width_1 + width_2))
Set Property ("/proj4", X Position) = (xpos1 + (width_1 + width_2 +
width_3))
Set Property ("/proj5", X Position) = xpos1 + (width_1 + width_2 +
width_3 + width_4)
etc., etc...
Play



Troy Swain
-----------------------
F U N K Y A F R O
-----------------------
718.302.9067
troyswainatfunkyafro [dot] com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Two draggable MCs at the same, Till Steinmetz
  Re: FLASH: Two draggable MCs at the same, Randy Kato

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