Flasher Archive

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

Subject: FLASH: setting a variable from the location of an instance
From: Ben Houghton
Date: Thu, 31 Aug 2000 12:04:42 +0100

Hi flash crafters

I'm currently wrestling with a moving menu system and it's got me in a
Double Nelson at the moment!

I've set up a draggable movie clip called mouse_pos, instance name; movie
which follows the mouse around the screen. I have to do this in order to
retrieve the mouse coordinates. Fine. But now I want to set another
movieclip to move with it/towards it (eventually).

So I made a movie clip (called; moving_base instancename; base) in a lower
layer and tried to make a frame script to set the coordinates of this new
clip to track those of the mouse_pos instance, something like this;

Set Variable "loc_y" = GetProperty (mouse_pos,_y) // see note below
Set Property ("/menu_base/base", Y Position) = loc_y

Note: I think my problem is here in the usage/targeting of the Set
function. I've tried a few things including level0/mousepos and
mousepos/movie and also setting the Property directly from the GetProperty
command but no joy ;-(

Thanks to Greg Caines for help so far - I think I'm almost there!

Ben Houghton
Production Manager

NudeGuru.com is proud to sponsor the Flasher list
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

  Re: FLASH: setting a variable from the l, Helen Triolo
  Re: FLASH: setting a variable from the l, Gabriel Mulzer

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