Flasher Archive

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


Subject: FLASH: valueOf problem; or is it !
From: kevin dowd
Date: Wed, 1 Nov 2000 14:26:45 GMT

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 ?

--






++++++++++++++++++++++++++++++++++++++
Kevin Dowd, Senior Interactive Developer
0207 749 5421
I-D Media London 020 7749 5400
kevin [dot] dowdati-dmedia [dot] com
++++++++++++++++++++++++++++++++++++++

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 !, Helen Triolo

Replies
  Re: FLASH: dragging part two, Ramesh CT
  Re: FLASH: dragging part two, Jim Curry

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