Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Dynamic Instance Names

Status
Not open for further replies.

overyde

Programmer
May 27, 2003
226
0
0
ZA
Hi,
What is the way to be able to target an instance dynamically.
I have a class that store static variables to which I can assign data.
My one class object: glo.bal.sectionname contains "ins_section1"

So what would be the right way to tell my movieclip to move 1 frame. I was sort of looking at:
Code:
glo.bal.sectionname.nextFrame();
Which I was hoping to basically get ins_section1.nextFrame(); but I obviously know it is trying to call the path of glo -> bal -> sectionname. Which is the right way to concat this together?

Reality is built on a foundation of dreams.
 
Figured it out:
Code:
root[glo.bal.sectionname]nextframe();
Cheers.

Reality is built on a foundation of dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top