<HTML dir=ltr><HEAD><TITLE>RE: [Xerte] Re-using an icon to loadVars</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText17364 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Interseting - it sounds similar to the situation where loadMovie wipes out any members of the loading movieclip. Does the function still exist when you try to call it?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>debug(myIcon.loadVars); //whattya get?</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Mon 12/04/2010 15:57<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Re-using an icon to loadVars<BR></FONT><BR></DIV>
<DIV><BR><BR>
<P><FONT size=2>OK, something I should have checked earlier.<BR><BR>The onLoadVars event is not firing on the second call (or at least it is not being broadcast).<BR><BR>Almost like the function is not being called on the second attempt to the same icon.<BR><BR><BR>----------------------------------------<BR>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>> Date: Mon, 12 Apr 2010 15:14:24 +0100<BR>> From: Julian.Tenney@nottingham.ac.uk<BR>> To: xerte@lists.nottingham.ac.uk<BR>><BR>> delete this.icon.rawData;<BR>><BR>> alternatively set it to '' (it's a string isn't it?)<BR>><BR>><BR>> -----Original Message-----<BR>> From: xerte-bounces@lists.nottingham.ac.uk<BR>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave Burnett<BR>> Sent: Monday, April 12, 2010 3:14 PM<BR>> To: Xerte list<BR>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>><BR>><BR>><BR>> How to kill it is what I'm unsure of.<BR>> How to remove rawData from the icon object.<BR>> I've tried delete and remove but no luck.<BR>><BR>><BR>> ----------------------------------------<BR>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>> Date: Mon, 12 Apr 2010 15:05:29 +0100<BR>>> From: Julian.Tenney@nottingham.ac.uk<BR>>> To: xerte@lists.nottingham.ac.uk<BR>>><BR>>> I'd try:<BR>>><BR>>> If (this.icon.rawData != undefined){<BR>>> //we've been here before - do whatever it takes to kill it<BR>>><BR>>> }<BR>>><BR>>> //then carry on as before<BR>>><BR>>> //and check it's changed<BR>>> debug(this.icon.rawData);<BR>>><BR>>><BR>>> -----Original Message-----<BR>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave Burnett<BR>>> Sent: Monday, April 12, 2010 2:43 PM<BR>>> To: Xerte list<BR>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>><BR>>><BR>>><BR>>><BR>>> OK, I'm looking at:<BR>>><BR>>> this.icon.rawData = src;<BR>>><BR>>> Is that adding the rawData prop to the object?<BR>>> i.e. is it best to remove the prop and let it be re-added or clear it?<BR>>> rawData = null;<BR>>> rawData = '';<BR>>><BR>>> ??<BR>>><BR>>><BR>>><BR>>><BR>>><BR>>><BR>>> ----------------------------------------<BR>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>> Date: Mon, 12 Apr 2010 13:17:21 +0100<BR>>>> From: Julian.Tenney@nottingham.ac.uk<BR>>>> To: xerte@lists.nottingham.ac.uk<BR>>>><BR>>>> you can debug it yourself - in the engine, get in the<BR>>>> ICON.prototype.loadVars function and try clearing out the data when<BR>> the<BR>>>> function is called.<BR>>>><BR>>>> Any good?<BR>>>><BR>>>> -----Original Message-----<BR>>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>>>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave<BR>> Burnett<BR>>>> Sent: Monday, April 12, 2010 1:16 PM<BR>>>> To: Xerte list<BR>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>><BR>>>><BR>>>><BR>>>> Did you ever send me that NDA?<BR>>>><BR>>>> ----------------------------------------<BR>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>> Date: Mon, 12 Apr 2010 13:10:35 +0100<BR>>>>> From: Julian.Tenney@nottingham.ac.uk<BR>>>>> To: xerte@lists.nottingham.ac.uk<BR>>>>><BR>>>>> Oh you tease. Any chance of sending the file?<BR>>>>><BR>>>>> -----Original Message-----<BR>>>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>>>>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave<BR>>>> Burnett<BR>>>>> Sent: Monday, April 12, 2010 1:11 PM<BR>>>>> To: Xerte list<BR>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>><BR>>>>><BR>>>>> I just made a new file with 3 buttons:<BR>>>>><BR>>>>> Load gloss text<BR>>>>> main_page_id.loadVars('<A href="http://blah/common/gloss_content.txt');">http://blah/common/gloss_content.txt');</A><BR>>>>><BR>>>>> Load help text<BR>>>>> main_page_id.loadVars('<A href="http://blah/common/help_content.txt');">http://blah/common/help_content.txt');</A><BR>>>>><BR>>>>> Check content<BR>>>>> debug(main_page_id.rawData);<BR>>>>><BR>>>>> Whatever is loaded first persists.<BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>><BR>>>>> ----------------------------------------<BR>>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>>> Date: Mon, 12 Apr 2010 12:47:28 +0100<BR>>>>>> From: Julian.Tenney@nottingham.ac.uk<BR>>>>>> To: xerte@lists.nottingham.ac.uk<BR>>>>>><BR>>>>>> Dunno. I just exected that if you call the function again, things<BR>>>>> would<BR>>>>>> repeat,<BR>>>>>><BR>>>>>> -----Original Message-----<BR>>>>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>>>>>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave<BR>>>>> Burnett<BR>>>>>> Sent: Monday, April 12, 2010 12:08 PM<BR>>>>>> To: Xerte list<BR>>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>>><BR>>>>>><BR>>>>>><BR>>>>>> Tried setting to null, Deleting, Removing.<BR>>>>>> Couldn't seem to get rid of it.<BR>>>>>> Bad syntax?<BR>>>>>><BR>>>>>><BR>>>>>> ----------------------------------------<BR>>>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>>>> Date: Mon, 12 Apr 2010 12:04:12 +0100<BR>>>>>>> From: Julian.Tenney@nottingham.ac.uk<BR>>>>>>> To: xerte@lists.nottingham.ac.uk<BR>>>>>>><BR>>>>>>> rawText? rawData?<BR>>>>>>><BR>>>>>>> What happens if you delete it before making the second call?<BR>>>>>>><BR>>>>>>> -----Original Message-----<BR>>>>>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>>>>>>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave<BR>>>>>> Burnett<BR>>>>>>> Sent: Monday, April 12, 2010 12:03 PM<BR>>>>>>> To: Xerte list<BR>>>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>>>><BR>>>>>>><BR>>>>>>><BR>>>>>>><BR>>>>>>> The previous data persists in the rawText property.<BR>>>>>>> I got around it by using a loadVars call and a readFile call on<BR>> the<BR>>>>>> same<BR>>>>>>> icon, but I found it strange I couldn't just reload the loadVars<BR>>>>>> object<BR>>>>>>> with new data.<BR>>>>>>><BR>>>>>>> ----------------------------------------<BR>>>>>>>> Subject: RE: [Xerte] Re-using an icon to loadVars<BR>>>>>>>> Date: Mon, 12 Apr 2010 09:53:19 +0100<BR>>>>>>>> From: Julian.Tenney@nottingham.ac.uk<BR>>>>>>>> To: xerte@lists.nottingham.ac.uk<BR>>>>>>>><BR>>>>>>>> What happens when you just call myIcon.loadVars(url);<BR>>>>>>>><BR>>>>>>>> ??<BR>>>>>>>><BR>>>>>>>> -----Original Message-----<BR>>>>>>>> From: xerte-bounces@lists.nottingham.ac.uk<BR>>>>>>>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Dave<BR>>>>>>> Burnett<BR>>>>>>>> Sent: Friday, April 02, 2010 5:52 PM<BR>>>>>>>> To: Xerte list<BR>>>>>>>> Subject: [Xerte] Re-using an icon to loadVars<BR>>>>>>>><BR>>>>>>>><BR>>>>>>>> Any trick to re-using a page for multiple loading of vars?<BR>>>>>>>> i.e. do I have to kill the rawData object?<BR>>>>>>>><BR>>>>>>>> I have it loading once and I parse out what I need, but I can't<BR>>>>>> figure<BR>>>>>>>> out how to use the same object (and event) to have it load a new<BR>>>>>> file.<BR>>>>>>>><BR>>>>>>>> Have a good weekend all.<BR>>>>>>>><BR>>>>>>>> Dave<BR>>>>>>>><BR>>>>>>>> _________________________________________________________________<BR>>>>>>>> Hotmail has tools for the New Busy. Search, chat and e-mail from<BR>>>>> your<BR>>>>>>>> inbox.<BR>>>>>>>><BR>>>>>>><BR>>>>>><BR>>>>><BR>>>><BR>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>>>>>>>><BR>>>>>>><BR>>>>>><BR>>>>><BR>>>><BR>> ON:WL:en-US:WM_HMP:042010_1_____________________________________________<BR>>>>>>>> __<BR>>>>>>>> Xerte mailing list<BR>>>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>>>>>> _______________________________________________<BR>>>>>>>> Xerte mailing list<BR>>>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><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>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>>>>>>><BR>>>>>><BR>>>>><BR>>>><BR>> ON:WL:en-US:WM_HMP:042010_2_____________________________________________<BR>>>>>>> __<BR>>>>>>> Xerte mailing list<BR>>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>>>>> _______________________________________________<BR>>>>>>> Xerte mailing list<BR>>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">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=PI">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PI</A><BR>>>>>><BR>>>>><BR>>>><BR>> D28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4___________________________<BR>>>>>> ____________________<BR>>>>>> Xerte mailing list<BR>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>>>> _______________________________________________<BR>>>>>> Xerte mailing list<BR>>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>>><BR>>>>> _________________________________________________________________<BR>>>>> The New Busy is not the old busy. Search, chat and e-mail from your<BR>>>>> inbox.<BR>>>>><BR>>>><BR>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>>>>><BR>>>><BR>> ON:WL:en-US:WM_HMP:042010_3_____________________________________________<BR>>>>> __<BR>>>>> Xerte mailing list<BR>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>>> _______________________________________________<BR>>>>> Xerte mailing list<BR>>>>> Xerte@lists.nottingham.ac.uk<BR>>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>><BR>>>> _________________________________________________________________<BR>>>> Hotmail is redefining busy with tools for the New Busy. Get more from<BR>>>> your inbox.<BR>>>><BR>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>>>><BR>> ON:WL:en-US:WM_HMP:042010_2_____________________________________________<BR>>>> __<BR>>>> Xerte mailing list<BR>>>> Xerte@lists.nottingham.ac.uk<BR>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>>> _______________________________________________<BR>>>> Xerte mailing list<BR>>>> Xerte@lists.nottingham.ac.uk<BR>>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>><BR>>> _________________________________________________________________<BR>>> Hotmail is redefining busy with tools for the New Busy. Get more from<BR>> your inbox.<BR>>><BR>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>> ON:WL:en-US:WM_HMP:042010_2_____________________________________________<BR>> __<BR>>> Xerte mailing list<BR>>> Xerte@lists.nottingham.ac.uk<BR>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>>> _______________________________________________<BR>>> Xerte mailing list<BR>>> Xerte@lists.nottingham.ac.uk<BR>>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>><BR>> _________________________________________________________________<BR>> The New Busy is not the old busy. Search, chat and e-mail from your<BR>> inbox.<BR>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:<BR>> ON:WL:en-US:WM_HMP:042010_3_____________________________________________<BR>> __<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>> _______________________________________________<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">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 with Hotmail.<BR><A href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4_______________________________________________">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4_______________________________________________</A><BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></FONT></P></DIV></BODY></HTML>