[Xerte] Can a button respond to both onRelease and onRollOver?

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Mon Aug 17 15:12:10 BST 2009


Bit past what I know but try an onRollOver and an onClick event for the
"button"

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: 17 August 2009 15:13
To: Xerte discussion list
Subject: [Xerte] Can a button respond to both onRelease and onRollOver?

I have a page with space for a text icon to be displayed and a number of
buttons.

The idea is that if you mouse over the button the text object specific
to that button will be displayed and if you click on the button then you
will be taken to a new page - the one that relates to that button.

I am using a swf borrowed from one of your examples for the button
(aquaBtn.swf)

If I include the button in an interaction on the page, and add a script
to the button then the button animates its pressed image when clicked
and the script fires.

If I add an event to the interaction, to detect the onRollOver event for
the button, I have to add an RS value to the button and set the event to
use the button's rs value. The button will now fire an onRollOver event,
triggering the script attached to the event. However the button now
ceases to act as a button. The animation no longer shows when it is
clicked and the script attached to the button no longer fires.

If I now add an ID to the button, the button operates as a button once
more, animating when clicked and firing the attached script, but the
onRollOver event is no longer detected, even if the ID and RS values for
the button are the same.

If I leave the button as a button (remove the RS value) and try placing
a hotspot over it, the hotspot triggers the onRollOver event, but
effectively masks the button, so again no animation and no reaction to
being clicked.

Is it possible to have a button that behaves like a button but also to
have the onRollOver event trapped so that it fires a script?

Kind regards

Johnathan

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk
01785 355714


This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted.



This communication represents the originator's personal views and
opinions, which do not necessarily reflect those of Connexions
Staffordshire. If you are not the original recipient or the person
responsible for delivering the email to the intended recipient, be
advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk





Connexions Staffordshire Limited is registered in England No.4355170

Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list