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 14:53:09 GMT

Kevin,

Where did the 7 mc's come from? Are they duplicated copies of a main mc
in the library, or 7 unique mc's? Are menu1, menu2, etc their instance
names or library names? What are you trying to do in the loop -- get
the instance name of each mc, get its path, something else? Need more
background info on setup and what you're trying to accomplish.

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

kevin dowd wrote:
>
> Hello,
>
> I have 7 movie clips on named menu1, menu2....
>
> The following code
>
> var totalMenus = 7;
>
> for (myCounter = 1; myCounter <= totalMenus; myCounter++) {
> var temp = ("menu" + myCounter);
> var theClip = valueOf(temp);
> trace(temp + " = " + targetPath (theClip));
>
> }
>
> }
>
> returns
>
> menu1 = _level0.instance1
> menu2 = _level0.instance1
> menu3 = _level0.instance1
> menu4 = _level0.instance1
> menu5 = _level0.instance1
> menu6 = _level0.instance1
> menu7 = _level0.instance1
>
> I would expect the instance name to be different on each iteration of
> the "for" loop.
>
> Anybody tell me what's going on ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: valueOf problem; or is it !, kevin dowd

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

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