[Xerte] AS beginner question - events

Dave Burnett d_b_burnett at hotmail.com
Thu Mar 25 11:59:36 GMT 2010



I sent Ron a small ex. file with an event/function combo.

Dave
________________________________
> Subject: RE: [Xerte] AS beginner question - events
> Date: Thu, 25 Mar 2010 00:28:15 +0000
> From: Patrick.Lockley at nottingham.ac.uk
> To: knowledgeware at kccsoft.com; xerte at lists.nottingham.ac.uk
> CC:
>
>
>
> i think it's because it's a function and no functions?
>
> ________________________________
> From: xerte-bounces at lists.nottingham.ac.uk on behalf of ron at kccsoft.com
> Sent: Thu 25/03/2010 00:24
> To: 'Xerte discussion list'
> Subject: [Xerte] AS beginner question - events
>
>
> Hello All:
>
>
>
> I’m taking baby steps in AS and trying to setup an event listener on a button (button id = ‘eventid’) in an entry frame at the top of the flowline. The code is pasted below. Later in the flowline I’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.
>
> What am I doing wrong?
>
>
>
> eventid.addEventListener(MouseEvent.MOUSE_OVER, onOvereventid);
>
>
>
> function onOvereventid(e:MouseEvent):void
>
> {
>
> eventid.alpha=.3;
>
> eventid.x=(eventid.x-50);
>
> }
>
>
>
> TIA RonM2
>
>
 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3


More information about the Xerte mailing list