<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18385" name=GENERATOR>
<STYLE>
<!--
                       
 font-face
        {font-family:Calibri;}
font-face
        {font-family:Tahoma;}
font-face
        {font-family:Verdana;}
                        
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {
        font-family:"Verdana","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.BalloonTextChar
        {
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {}

div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV id=idOWAReplyText95861 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>i think it's because it's a function and no functions?</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 ron@kccsoft.com<BR><B>Sent:</B> Thu 25/03/2010 00:24<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> [Xerte] AS beginner question - events<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">Hello All:</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">I&#8217;m taking baby steps in AS and trying to setup an event listener on a button (button id = &#8216;eventid&#8217;) in an entry frame at the top of the flowline. The code is pasted below. Later in the flowline I&#8217;m expecting to have the button change color and move 50 pixels left when I roll over it. This seems to work in Flash, but in xerte it just freezes the program.</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"><BR>What am I doing wrong?</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">eventid.addEventListener(MouseEvent.MOUSE_OVER, onOvereventid);</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">function onOvereventid(e:MouseEvent):void</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">{</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eventid.alpha=.3;</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eventid.x=(eventid.x-50);</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">}</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'">TIA&nbsp; RonM2</SPAN></P>
<P class=MsoNormal>&nbsp;</P></DIV></DIV></BODY></HTML>