[Xerte] Button using swf flashes on screen
Johnathan Kemp
johnathan.kemp at cxstaffs.co.uk
Wed Dec 16 15:16:38 GMT 2009
Trust me to do something I'm not supposed to do !
For completeness I have just tested the following (legitimate) version
Interaction (perpetual = 1)
button1
script (button2._visible = true; button1._visible = false;)
button2
script
script (button2._visible = false;)
In this version the script to hide button 2 is a sibling of the
interaction, not a child.
The perpetual nature of the interaction allows it to be run, so it hides
button 2
If the interaction's perpetual property is set to 0 then button 2 does
not get hidden.
Merry Christmas :-)
Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/>
01785 355714
________________________________
From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk]
Sent: 16 December 2009 14:57
To: Xerte discussion list
Subject: RE: [Xerte] Button using swf flashes on screen
Ahh. You're not really supposed to be able to put one there, but the
parser (obviously) still finds it and it executes...
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Wednesday, December 16, 2009 2:56 PM
To: Xerte list
Subject: RE: [Xerte] Button using swf flashes on screen
In an rs script attached as last response on int.
________________________________
Subject: RE: [Xerte] Button using swf flashes on screen
Date: Wed, 16 Dec 2009 14:51:08 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
I'm getting lost. Sorry. Given this (and this alone?)
Interaction
button1
script (button2._visible = true; button1._visible = false;)
button2
script
script (button2._visible = false;)
the second button is not visible? How is it being set to invisible?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: Wednesday, December 16, 2009 2:49 PM
To: Xerte discussion list
Subject: RE: [Xerte] Button using swf flashes on screen
Hello Julian,
I have just tested the working example I uploaded a couple of messages
ago and it appears that setting the interactions' perpetual value is not
making any difference. Button 2 is always invisible. The version of
Xerte I am using was downloaded on 2nd November 2009.
The interaction structure is
Interaction
button1
script (button2._visible = true; button1._visible = false;)
button2
script
script (button2._visible = false;)
Kind regards
Johnathan
Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/>
01785 355714
________________________________
From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk]
Sent: 16 December 2009 14:10
To: Xerte discussion list
Subject: RE: [Xerte] Button using swf flashes on screen
Hang on, what's happening?
Any script below an interaction that is not perpetual should not execute
until that interaction exits, entry frame or not.
Is this not the case?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Wednesday, December 16, 2009 2:08 PM
To: Xerte list
Subject: RE: [Xerte] Button using swf flashes on screen
And if I move your code into a framework entry to replicate my setup, it
acts correctly, the script executes.
Argh.
________________________________
From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] Button using swf flashes on screen
Date: Wed, 16 Dec 2009 08:55:06 -0500
Thanks.
Interesting.
It is not the swf, I get the same behavior with aquaButton using the
visible icon property.
I had added the script below the int previously and had no change. But I
added a debug and unlike your script, mine is not being executed unless
I set the int to perpetual.
The only difference I can see is that my int is within a framework entry
pane.
This is where I still get weirded out on the execution order.
________________________________
Subject: RE: [Xerte] Button using swf flashes on screen
Date: Wed, 16 Dec 2009 13:05:01 +0000
From: johnathan.kemp at cxstaffs.co.uk
To: xerte at lists.nottingham.ac.uk
Dave,
The example I provided was just my text description of part of the page.
I have extracted the critical bits and created an example rlo which is
attached as a zip file.
Unzip it and open the rlo in xerte for a working example.
I hope this helps.
Kind regards
Johnathan
Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/>
01785 355714
________________________________
From: Dave Burnett [mailto:d_b_burnett at hotmail.com]
Sent: 16 December 2009 12:51
To: Xerte list
Subject: RE: [Xerte] Button using swf flashes on screen
Sorry Johnathan, I didn't get the example .rlo you mentioned.
I had tried adding a script after the interaction, perhaps I have it in
the wrong place.
________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <http://clk.atdmt.com/GBL/go/171222985/direct/01/>
________________________________
Hotmail: Trusted email with powerful SPAM protection. Sign up now.
<http://clk.atdmt.com/GBL/go/177141665/direct/01/>
________________________________
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
________________________________
Hotmail: Free, trusted and rich email service. Get it now.
<http://clk.atdmt.com/GBL/go/171222984/direct/01/>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091216/09e91446/attachment.html
More information about the Xerte
mailing list