<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>@font-face {
font-family: Cambria Math;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@page WordSection1 {margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
P.ecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
LI.ecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
DIV.ecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
P.ecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
LI.ecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
DIV.ecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
SPAN.ecxmsohyperlink {
}
SPAN.ecxmsohyperlinkfollowed {
}
SPAN.ecxemailstyle18 {
}
P.ecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
LI.ecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
DIV.ecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
SPAN.ecxmsohyperlink1 {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.ecxmsohyperlinkfollowed1 {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.ecxemailstyle181 {
FONT-WEIGHT: normal; COLOR: #1f497d; FONT-STYLE: normal; FONT-FAMILY: "Calibri","sans-serif"; TEXT-DECORATION: none
}
P.ecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
LI.ecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
DIV.ecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"
}
SPAN.EmailStyle28 {
FONT-WEIGHT: normal; COLOR: #1f497d; FONT-STYLE: normal; FONT-FAMILY: "Calibri","sans-serif"; TEXT-DECORATION: none
}
.MsoChpDefault {
FONT-SIZE: 10pt
}
DIV.WordSection1 {
}
</style>
<meta content="MSHTML 6.00.6000.17093" name="GENERATOR">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body lang="EN-US" vlink="purple" link="blue" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>myIconID.XMLElement.index()</div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF58365" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Paul Swanson [Paul.Swanson@harlandfs.com]<br>
<b>Sent:</b> 25 January 2011 22:40<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Get index using clip nomen - kind of urgent<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Add one more _parent to the statement and that should get you the parent of <PG>. _name will get the movie clip instance name, if that helps.</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">The list of properties for class MovieClip can be found here: http://flash-reference.icod.de/MovieClip.html</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">It’s for an older version of Flash, so there may be more properties available than listed.</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk]
<b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Tuesday, January 25, 2011 2:23 PM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Get index using clip nomen - kind of urgent</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Brilliant!<br>
<br>
Half-way.<br>
<br>
Now I have the reference to <PG><br>
Now how do I find out what index or child number it is? <br>
<br>
I need to get it's parent so I can then find out what the index() is.<br>
<br>
<DEC><br>
<PG> // need the index of this page<br>
<DIS> //can get this<br>
<br>
<br>
<br>
<br>
</span></p>
<div class="MsoNormal" style="TEXT-ALIGN: center" align="center"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
<hr id="stopSpelling" align="center" width="100%" size="2">
</span></div>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Date: Tue, 25 Jan 2011 13:57:17 -0800<br>
From: Paul.Swanson@harlandfs.com<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: [Xerte] Re: Get index using clip nomen - kind of urgent</span></p>
<div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">This help (from http://flash-reference.icod.de/)?</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">_parent Property</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">public _parent : MovieClip</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">Player version: Flash Player 5</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">A reference to the movie clip or object that contains the current movie clip or object. The current object is the object that references the _parent property.
Use the _parent property to specify a relative path to movie clips or objects that are above the current movie clip or object.</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">You can use _parent to move up multiple levels in the display list, as in the following code:</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">this._parent._parent._alpha = 20;</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">Example</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">The following example traces the reference to a movie clip and its parent timeline.The following example logs the reference to a movie clip and its relationship
to the main timeline. Create a movie clip with the instance name my_mc, and add it to the main timeline. Add the following ActionScript to your FLA or AS file:</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">my_mc.onRelease = function() {</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"> trace("You clicked the movie clip: "+this);</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"> trace("The parent of "+this._name+" is: "+this._parent);</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">}</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">When you click the movie clip, the following information appears in the Output panel:When you click the movie clip, the following information writes to the
log file:</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"> You clicked the movie clip: _level0.my_mc</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"> The parent of my_mc is: _level0</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'">See also</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Calibri','sans-serif'"> Button._parent, _root, targetPath(), TextField._parent</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk]
<b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Tuesday, January 25, 2011 1:38 PM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Get index using clip nomen - kind of urgent</span></p>
</div>
</div>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><br>
I can trap this:<br>
<br>
_level0.engine.IFC.PG_MC3.DEC_MC1.PG_MC2.DEC_MC3.PG_MC3.DIS_MC4<br>
<br>
I need to get it's parent so I can then find out what the index() is.<br>
<br>
<DEC><br>
<PG> // need the index of this page<br>
<DIS> //can get this<br>
<br>
Can't figure the syntax<br>
</span></p>
</div>
</div>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
monitored as permitted by UK legislation. <br>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</span></p>
</div>
</div>
</div>
</div>
</body>
</html>