<div>If you are using the same kind of technique to duplicate a protoItem several times, for example see the quiz page Wizard structure. Icons that do not have an id specified in the protoItem icon structure will get an id assigned to them when Xerte duplicates the icons. You can see it if you display the structure after it has been created. So normally you don't set the ids where you are going to duplicate (you can identify the item you are going to duplicate by name rather than ID) you let Xerte do it.<br>
</div><div><br></div><div>You may then be able to address the first page in the decision by decisionIconID.firstChild()</div><div><br></div><div>It may be that by assigning an ID before you duplicate you are creating problems for yourself.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><div><br></div><div class="gmail_quote">On 23 July 2010 18:56, Paul Swanson <span dir="ltr"><<a href="mailto:Paul.Swanson@harlandfs.com">Paul.Swanson@harlandfs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Drat. Just a WAG, not surprised it didn't work. Can't think of anything<br>
else to try, but Jules might have some suggestions when he gets online.<br>
<div class="im"><br>
> -----Original Message-----<br>
> From: <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-">xerte-</a><br>
> <a href="mailto:bounces@lists.nottingham.ac.uk">bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett<br>
</div><div><div class="h5">> Sent: Friday, July 23, 2010 10:45 AM<br>
> To: Xerte list<br>
> Subject: RE: [Xerte] setting id<br>
><br>
><br>
><br>
><br>
> No luck.<br>
><br>
> rootIcon.onRelease();<br>
> does nothing.<br>
><br>
><br>
> ----------------------------------------<br>
> > Subject: RE: [Xerte] setting id<br>
> > Date: Fri, 23 Jul 2010 10:38:38 -0700<br>
> > From: <a href="mailto:Paul.Swanson@harlandfs.com">Paul.Swanson@harlandfs.com</a><br>
> > To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
> ><br>
> > Maybe your event should be rootIcon.onRelease() ...<br>
> > myDecisionPageId.onRelease() might only fire if you are actually in<br>
> > myDecisionPageId. You will always be in rootIcon.<br>
> ><br>
> >> -----Original Message-----<br>
> >> From: <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-">xerte-</a><br>
> >> <a href="mailto:bounces@lists.nottingham.ac.uk">bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett<br>
> >> Sent: Friday, July 23, 2010 10:28 AM<br>
> >> To: Xerte list<br>
> >> Subject: RE: [Xerte] setting id<br>
> >><br>
> >><br>
> >><br>
> >> As an addendum:<br>
> >><br>
> >> I am debugging the ID's of the duplicates, running the set ID's<br>
> >> routine, then debugging again.<br>
> >><br>
> >> It sure looks like they are being set, but the onRelease call that<br>
> >> worked when they are all the same, does not work for the new ID's<br>
> >><br>
> >> ----------------------------------------<br>
> >>> Subject: RE: [Xerte] setting id<br>
> >>> Date: Fri, 23 Jul 2010 10:17:37 -0700<br>
> >>> From: <a href="mailto:Paul.Swanson@harlandfs.com">Paul.Swanson@harlandfs.com</a><br>
> >>> To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
> >>><br>
> >>> It should be possible to create unique IDs when duplicating. Would<br>
> >>> something like the following work if entered as the id property?<br>
> >>><br>
> >>> myId + iconParent.repCount<br>
> >>><br>
> >>> If my syntax is correct, you should end up with different IDs for<br>
> >> each<br>
> >>> page of the decision icon: myId1, myId2, etc.<br>
> >>><br>
> >>>> -----Original Message-----<br>
> >>>> From: <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-">xerte-</a><br>
> >>>> <a href="mailto:bounces@lists.nottingham.ac.uk">bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett<br>
> >>>> Sent: Friday, July 23, 2010 10:03 AM<br>
> >>>> To: Xerte list<br>
> >>>> Subject: RE: [Xerte] setting id<br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> Hmm, no mention of setProperty in the archives.<br>
> >>>> Maybe no one uses it. ;-)<br>
> >>>><br>
> >>>> OK, the underlying issue is this:<br>
> >>>><br>
> >>>> I duplicate 5x a page of objects along a decision icon, they all<br>
> > end<br>
> >>> up<br>
> >>>> with the same ID<br>
> >>>><br>
> >>>> Once that is set up I would like to trigger the first leg by<br>
code.<br>
> >>>><br>
> >>>> sameID.onRelease();<br>
> >>>> always triggers the last leg of the duped items.<br>
> >>>><br>
> >>>> Way round it?<br>
> >>>><br>
> >>>> Dave<br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> ________________________________<br>
> >>>>> From: <a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>
> >>>>> Date: Fri, 23 Jul 2010 11:59:30 -0400<br>
> >>>>> Subject: Re: [Xerte] setting id<br>
> >>>>> To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
> >>>>><br>
> >>>>> Here's the flash documentation for setProperty - a movie clip<br>
> >>>> function. Is this what you had in mind?<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> setProperty(target:Object,<br>
> >>>>> property:Object, expression:Object) : Void<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> Changes a property value of a movie clip as the movie clip<br>
plays.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> Availability: ActionScript 1.0; Flash Player 4<br>
> >>>>><br>
> >>>>><br>
> >>>>> Parameters<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> target:Object - The path to the instance<br>
> >>>>> name of the movie clip whose property is to be set.<br>
> >>>>><br>
> >>>>> property:Object - The property to be set.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> expression:Object - Either the new literal value<br>
> >>>>> of the property, or an equation that evaluates to the new value<br>
> of<br>
> >>>> the<br>
> >>>>> property.<br>
> >>>>><br>
> >>>>><br>
> >>>>> Example<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> The following ActionScript creates a new movie clip and loads an<br>
> >>>> image into<br>
> >>>>> it. The _xand<br>
> >>>>> _y<br>
> >>>>> coordinates are set for the clip using setProperty(). When you<br>
> >> click<br>
> >>>>> the button called right_btn, the _x coordinate of a movie clip<br>
> >>>>> named params_mc<br>
> >>>>> is incremented by 20 pixels.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> this.createEmptyMovieClip("params_mc", 999);<br>
> >>>>><br>
> >>>>><br>
> >>>><br>
> >>><br>
> >><br>
> ><br>
><br>
params_mc.loadMovie("<a href="http://www.helpexamples.com/flash/images/image1.jp" target="_blank">http://www.helpexamples.com/flash/images/image1.jp</a><br>
> >>>> g");<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> setProperty(this.params_mc, _y, 20);<br>
> >>>>><br>
> >>>>> setProperty(this.params_mc, _x, 20);<br>
> >>>>><br>
> >>>>> this.right_btn.onRelease = function() {<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> setProperty(params_mc, _x, getProperty(params_mc, _x)+20);<br>
> >>>>><br>
> >>>>> };<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> On Fri, Jul 23, 2010 at 11:25 AM, Dave Burnett> wrote:<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> I'm having another of my noticeably more frequent senior<br>
moments.<br>
> >>>>><br>
> >>>>> At least I'll get half-price at the buffet soon...<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> icon.previousSibling.clip().getProperty('id')<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> What's the syntax to set this same property?<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> Thnx.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> Dave<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
_________________________________________________________________<br>
> >>>>><br>
> >>>>> Hotmail is redefining busy with tools for the New Busy. Get more<br>
> >>> from<br>
> >>>> your inbox.<br>
> >>>>><br>
> >>>>><br>
> >>>><br>
> >>><br>
> >><br>
> ><br>
><br>
<a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL</a><br>
> >>>> :ON:WL:en-<br>
> >>>> US:WM_HMP:042010_2_______________________________________________<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> Xerte mailing list<br>
> >>>>><br>
> >>>>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> >>>>><br>
> >>>>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
> >>>>><br>
> >>>>><br>
> >>>><br>
> >>>> _________________________________________________________________<br>
> >>>> The New Busy is not the too busy. Combine all your e-mail<br>
accounts<br>
> >>> with<br>
> >>>> Hotmail.<br>
> >>>><br>
> >>><br>
> >><br>
> ><br>
><br>
<a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P" target="_blank">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P</a><br>
> >>>> ID28326::T:WLMTAGL:ON:WL:en-<br>
> >>>> US:WM_HMP:042010_4_______________________________________________<br>
> >>>> Xerte mailing list<br>
> >>>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> >>>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
> >>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> Xerte mailing list<br>
> >>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> >>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
> >><br>
> >> _________________________________________________________________<br>
> >> The New Busy is not the too busy. Combine all your e-mail accounts<br>
> > with<br>
> >> Hotmail.<br>
> >><br>
> ><br>
><br>
<a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P" target="_blank">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P</a><br>
> >> ID28326::T:WLMTAGL:ON:WL:en-<br>
> >> US:WM_HMP:042010_4_______________________________________________<br>
> >> Xerte mailing list<br>
> >> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> >> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Xerte mailing list<br>
> > <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> > <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
><br>
> _________________________________________________________________<br>
> The New Busy is not the too busy. Combine all your e-mail accounts<br>
with<br>
> Hotmail.<br>
><br>
<a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P" target="_blank">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=P</a><br>
> ID28326::T:WLMTAGL:ON:WL:en-<br>
> US:WM_HMP:042010_4_______________________________________________<br>
> Xerte mailing list<br>
> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
</div></div></blockquote></div><br>