<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I have the swf loading into interface.<br>I added a page to the interface.<br>I added an interaction to the page.<br>I added an event to that interaction<br><br>Event is onLoad and rootIcon.<br><br>Script under the event is: <br><br>debug("root hit");<br>debug(rootIcon.clip.length());<br><br><br> <br><br><br><hr id="stopSpelling">From: mtorruella@viguera.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: RE: [Xerte] custom interface initialization<br>Date: Wed, 22 Apr 2009 14:53:46 +0200<br><br>
<style>
.ExternalClass .EC_shape
{;}
</style>
<style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.EC_ecmsonormal, .ExternalClass li.EC_ecmsonormal, .ExternalClass div.EC_ecmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.EC_ecmsochpdefault, .ExternalClass li.EC_ecmsochpdefault, .ExternalClass div.EC_ecmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.EC_ecmsohyperlink
{;}
.ExternalClass span.EC_ecmsohyperlinkfollowed
{;}
.ExternalClass span.EC_ecestilocorreo17
{;}
.ExternalClass span.EC_ecestilocorreo18
{;}
.ExternalClass span.EC_ecestilocorreo19
{;}
.ExternalClass p.EC_ecmsonormal1, .ExternalClass li.EC_ecmsonormal1, .ExternalClass div.EC_ecmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass span.EC_ecmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.EC_ecmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.EC_ecestilocorreo171
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass span.EC_ecestilocorreo181
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_ecestilocorreo191
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.EC_ecmsochpdefault1, .ExternalClass li.EC_ecmsochpdefault1, .ExternalClass div.EC_ecmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.EC_EstiloCorreo32
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.EC_Section1
{page:Section1;}
</style>
<div class="EC_Section1">
<p class="EC_MsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">None work for me</span></p>
<p class="EC_MsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">De:</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>En nombre de </b>Dave Burnett<br>
<b>Enviado el:</b> miércoles, 22 de abril de 2009 14:24<br>
<b>Para:</b> Xerte list<br>
<b>Asunto:</b> RE: [Xerte] custom interface initialization</span></p>
</div>
</div>
<p class="EC_MsoNormal"> </p>
<p class="EC_MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Should the event be onLoad or onInit?<br>
<br>
Dave </span></p>
<div class="EC_MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr id="EC_stopSpelling" size="2" width="100%" align="center">
</span></div>
<p class="EC_MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">From: mtorruella@viguera.com<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: RE: [Xerte] custom interface initialization<br>
Date: Wed, 22 Apr 2009 13:40:02 +0200</span></p>
<div>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">Thank you Julian,</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">I tried, but it seems i dont know how to use events correctly. I
added an interaction icon as a child right under interface icon, then a event
icon int it with name and eventName set to “onLoad” and icon set to “rootIcon”.
Then added a script icon as a child to the event icon, with the name “load” and
on the script I just wrote debug(“hi”);</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">Then even using default interface, no debug message is prompted…</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">I did that after trying to call my function with no luck.</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">Marc</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">De:</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>En nombre de </b>Julian Tenney<br>
<b>Enviado el:</b> miércoles, 22 de abril de 2009 12:56<br>
<b>Para:</b> Xerte discussion list<br>
<b>Asunto:</b> RE: [Xerte] custom interface initialization</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
</div>
</div>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-GB">I think that when you try and call the function, the swf file
hasn’t loaded yet. The interface icon (rootIcon) will fire onLoad when it does
load and is ready to have it’s functions called. You need to add an interaction
with an event response. On the event respoinse set the icon to rootIcon, the
event to onLoad and then add a script icon to the response that calls
your function.</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-GB"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-GB">J</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-GB"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);" lang="EN-GB"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
</div>
</div>
<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';" lang="EN-US">Hi everyone,</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';" lang="EN-US">I’ve developed a <span style="color: rgb(31, 73, 125);">swf…</span></span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
</div>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<div class="EC_MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr size="2" width="100%" align="center">
</span></div>
<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Rediscover
Hotmail®: Get e-mail storage that grows with you. <a href="http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009">Check it out.</a></span></p>
</div><br /><hr />Rediscover Hotmail®: Get e-mail storage that grows with you. <a href='http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009' target='_new'>Check it out.</a></body>
</html>