Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Return a string of a variable name???? - code check |
From: | Muzak |
Date: | Wed, 10 Jan 2001 09:00:54 GMT |
You have to evaluate the 'instanceFieldName'.
The way you have it now, Flash thinks it's an MC instance name, instead of a variable value, so this will probably work:
instanceFieldName = "matterNumsField";
_root[varN2+i][instanceFieldName]=_root.loadVariablesM.pVarName;
hth,
Muzak
----- Original Message -----
From: <jmerrillelftech [dot] com>
To: <flasherchinwag [dot] com>
Sent: Tuesday, January 09, 2001 10:45 PM
Subject: FLASH: Return a string of a variable name???? - code check
>
> Adding to Musak's helpful post and others, let me add to my second question
> again a different way, getting at the heart of the problem.
>
> Why does the following work:
>
> _root[varN2+i].matterNumsField=_root.loadVariablesM.pVarName;
>
> but this doesn't:
>
> instanceFieldName = "matterNumsField";
> _root[varN2+i].instanceFieldName=_root.loadVariablesM.pVarName;
>
> (where "instanceFieldName" is the name of the dynamic text field in MC
> instance varN2+i)
>
> ???
>
> Jason Merrill
> Multimedia/Courseware Developer @ ELF, Issaquah, WA
> 425.369.5214
> SerengetiUS.com - "Where Law Does Business"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
Replies
FLASH: Return a string of a variable nam, jmerrill
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]