-
Syntax problem...
Hi,
This works:
Actionscript Code:
_level0.section_19_mc.editingPane2.spContentHolder.hold.cat0.e.label.text;
Now, the 0 (after cat) could also be 1, 2, 3 and so on. But when I try to pass [this.id] (so that could be 1,2,3 etc.) it doesn't work. I tried two ways:
Actionscript Code:
_level0.section_19_mc.editingPane2.spContentHolder.hold.cat[this.id].e.label.text;
and
Actionscript Code:
_level0["section_19_mc.editingPane2.spContentHolder.hold.cat"+[this.id]].e.label.text);
Both failed, do you know how to write the syntax correctly?
Many, many thanx!
-
AKA [ Paul Bainbridge]
code:
_level0.section_19_mc.editingPane2.spContentHolder .hold['cat'+this.id].e.label.text;
-
Thank you Paul, one can always rely on the Scottish !
-
AKA [ Paul Bainbridge]
Originally Posted by Schenkius
Thank you Paul, one can always rely on the Scottish !
Nice one
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|