<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi everyone,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I’ve developed a .swf which I wanna
use as a custom interface for xerte, it has a initialization function in the
first frame actionscript, which looks like:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>function loadMenu(lang:String,
aTemes:Array, t:Number, p:Number){<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </span>arrayTemes
= aTemes;<o:p></o:p></p>
<p class=MsoNormal> idioma
= lang;<o:p></o:p></p>
<p class=MsoNormal> tema
= t;<o:p></o:p></p>
<p class=MsoNormal> <span
lang=EN-US>pagina = p;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> numTemes
= aTemes.length;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> for(i=0;i<numTemes;i++){<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> this.attachMovie("MenuBg",
"menubg"+i, this.getNextHighestDepth(), {_x:30, _y:150+50*i});<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> this["menubg"+i].MenuBgText.text
= arrayTemes[i]["tema"];<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </span>}<o:p></o:p></p>
<p class=MsoNormal> marcaTema();<o:p></o:p></p>
<p class=MsoNormal> posicionaTemaPagina();<o:p></o:p></p>
<p class=MsoNormal> fw.debug(lang+"
"+t+" "+p);<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>}<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Now, in xerte I’ve set interface swf
to my swf, and visuals to 0, tested and its fine.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Then I’ve created a script page
inside the interface object, with this code:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>idi=new String("");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>var te:Number;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>var pa:Number;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>arrayT = new Array();<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>arrayT[0] = new Array();<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>arrayT[0]["tema"] = "tema
1";<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>arrayT[0]["pagines"] = 1;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>arrayT[0]["paginaReal"] = 1;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>te = 0;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>pa = 1;<o:p></o:p></span></p>
<p class=MsoNormal>interface.loadMenu(idi,arrayT,te,pa);<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>Function doesn’t seems to be called.
I also tried interface.clip.loadMenu… I’m quite new with both xerte
and flash, so be comprehensive </span><span lang=EN-US style='font-family:Wingdings'>J</span><span
lang=EN-US>.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thank you very much for your time,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Kind regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Marc<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>