<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>debug(rootIcon.clip.length());<br><br>Give me 9 for my dummy swf.<br><br>Try<br><br>rootIcon<span style="color: rgb(31, 73, 125);" lang="EN-US">.clip.loadMenu()</span><br><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:37:48 +0200<br><br>






<style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-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 span.EC_EstiloCorreo17
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass span.EC_EstiloCorreo18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EstiloCorreo19
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EstiloCorreo20
{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="color: rgb(31, 73, 125);" lang="EN-US">Ok, now the debug
shows correctly so the event is fired… but my function still seems not to
be called.</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">Interface name is
interficie, so the correct way should be interficie.clip.loadMenu(), right? Any
way to debug that? To see if my function is called? I tried to call this._parent.debug("a
veure?"); from the swf with no luck.</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">Sorry for all this
questions, and thank you for your help.</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">M</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</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';" lang="EN-US">De:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>En nombre </b></span><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">de </span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">Marc Torruella
Altadill<br>
<b>Enviado el:</b> miércoles, 22 de abril de 2009 13:40<br>
<b>Para:</b> 'Xerte discussion list'<br>
<b>Asunto:</b> RE: [Xerte] custom interface initialization</span></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">Thank you Julian,</span></p>

<p class="EC_MsoNormal"><span style="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></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">Then even using
default interface, no debug message is prompted…</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">I did that after
trying to call my function with no luck.</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">Marc</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</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>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></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</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"><span style="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&nbsp; script icon to the response that calls your function.</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">J</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);" lang="EN-GB">&nbsp;</span></p>

</div>

</div>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span lang="EN-US">Hi everyone,</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span lang="EN-US">I’ve
developed a <span style="color: rgb(31, 73, 125);">swf…</span></span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span lang="EN-US">&nbsp;</span></p>

</div><br /><hr />Windows Live™ SkyDrive™: Get 25 GB of free online storage.   <a href='http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009' target='_new'>Check it out.</a></body>
</html>