Flasher Archive

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


Subject: Re: FLASH: valueOf problem; or is it !
From: Helen Triolo
Date: Wed, 1 Nov 2000 19:47:17 GMT

I agree with you that "for" is a good way to act on many movieclips at
once, but you don't need that targetPath and valueOf stuff to do it,
afaict. Eg, to set the x position of 7 movieclips menu1-menu7, you can
just do:

var totalMenus = 7;
for (i=1; i <= totalMenus; i++) {
_root["menu"+i]._x = 30;
}

or something like (in same loop):
_root["menu"+i]._x = mcTracking._x + offset;

if you're setting them all to follow some other mc.

Is that what you need, or have I simplified the problem and you really
do need valueOf?

Regards,
Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist

kevin dowd wrote:
>
> They are 7 unique MC's.
>
> I will set the _x of each MC and then move them in unison. A "for"
> loop seems to be a good way to act on many MC's at once.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


Replies
  Re: FLASH: dragging part two, Ramesh CT
  Re: FLASH: dragging part two, Jim Curry
  FLASH: valueOf problem; or is it !, kevin dowd
  Re: FLASH: valueOf problem; or is it !, Helen Triolo
  Re: FLASH: valueOf problem; or is it !, kevin dowd

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