[Xerte] AS beginner question - events
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Mar 29 09:31:41 BST 2010
Yes, that's right. This is AS3 code, Xerte runs something close to AS2
code,
J
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: Thursday, March 25, 2010 12:28 AM
To: knowledgeware at kccsoft.com; Xerte discussion list
Subject: RE: [Xerte] AS beginner question - events
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100329/abe6236c/attachment.html
More information about the Xerte
mailing list