[Xerte] Button using swf flashes on screen

Dave Burnett d_b_burnett at hotmail.com
Wed Dec 16 11:18:42 GMT 2009


I'm assuming I can set state as the button .fla says the swf has 8 states, and up,over and down work without any code intervention. So there must be handlers in there?

So let's say I use disabled state as the hidden state.
I set a blank frame swf and set the state to that.
But you are saying that still won't help, as the button swf has not loaded yet.

In which case the way it is being done is the only way.
The loading MC has to load the button swf visible 0 in the first place. Close?



Subject: RE: [Xerte] Button using swf flashes on screen
Date: Wed, 16 Dec 2009 11:02:14 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk



















Not sure what you mean..? How are you setting state?

 

The button swf loads into a movieclip, so you can do things to
that movieclip whilst the swf loads: script immedietely below a perpetual
interaction will run after the button has been created, but before the swf
loads, if that’s any help?

 





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 10:58 AM

To: Xerte list

Subject: RE: [Xerte] Button using swf flashes on screen





 



Once more into the breach Julian. Thanks.



Thanks Johnathan.

I think our setups are a little different, as I am starting the interaction
with one button hidden.



Julian, re setting the state to get the same effect.

Wouldn't it be the same issue? The button would have to be on stage before I
could apply state to it?











Subject:
RE: [Xerte] Button using swf flashes on screen

Date: Wed, 16 Dec 2009 09:53:07 +0000

From: Julian.Tenney at nottingham.ac.uk

To: xerte at lists.nottingham.ac.uk



Try the attached – I’ve not
tested it. Previously the visibility was getting set after the button had
loaded – now it is set immedietely. 

 





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 9:49 AM

To: Xerte discussion list

Subject: RE: [Xerte] Button using swf flashes on screen





 

The buttons are identified using
their rs property.

Neither button has its visible
property defined in the property panel - its an optional property and I have
not included it.

 

I have attached a copy of the swf
I am using for the button (I found it in one of the Xerte example files),
just in case the swf might be contributing in some way, you could try swapping
this one in to see if the flicker persists.

 

In my very early days I tried
setting an id property for the children of interactions and this caused some
problems. I am guessing that you have not done this but just in case I thought
I'd mention it. If you have set an id value for your button you might want to
delete it.

 

Kind regards

 

Johnathan

 

 



 



Johnathan Kemp

ICT Development Coordinator

Connexions Staffordshire

www.cxstaffs.co.uk

01785
355714

 



 



 











From: Dave Burnett
[mailto:d_b_burnett at hotmail.com] 

Sent: 16 December 2009 09:40

To: Xerte list

Subject: RE: [Xerte] Button using swf flashes on screen

Do
either of the buttons have the initial state of visible 0 set in the properties
panel?















Subject:
RE: [Xerte] Button using swf flashes on screen

Date: Wed, 16 Dec 2009 09:13:17 +0000

From: johnathan.kemp at cxstaffs.co.uk

To: xerte at lists.nottingham.ac.uk

I have just completed a page with two buttons that display using
the same swf.

 

Initially the first button is displayed, when you click on this
button,

·         some text is displayed

·         the first button is made invisible

·         the second button is displayed

When you click the second button 

·         the second button is made invisible

·         the text is made invisible

·         an image is displayed

This is achieved without flicker

The interaction structure is as follows. The final script sets up
the initial visibility requirements for the page, the button scripts then
change visibilities as required.

 

Interaction (perpetual = 0)

  Button1

     Script (button2._visible = true;
text._visible = true; button1._visible = false;)

  Button 2

     Script (image._visible = true;
text._visible = false; button2._visible = false;)

  Script (image._visible = false; text._visible = false;
button2._visible = false;)

 

I don't know if this will help you resolve your problem

 

Kind regards

 

Johnathan

 

 

 

Johnathan Kemp

ICT Development Coordinator

Connexions Staffordshire

www.cxstaffs.co.uk

01785
355714



 



 



 











From: Dave Burnett
[mailto:d_b_burnett at hotmail.com] 

Sent: 15 December 2009 18:25

To: Xerte list

Subject: RE: [Xerte] Button using swf flashes on screen

Hi
Paul,



I did use the rs as a target to make the button visible again:



prev_button_rs._visible = 1;



Dave















Subject:
RE: [Xerte] Button using swf flashes on screen

Date: Tue, 15 Dec 2009 10:14:16 -0800

From: Paul.Swanson at harlandfs.com

To: xerte at lists.nottingham.ac.uk



When I want to hide a graphic
element, I use iconID.fade(‘out’,  .01);, then fade it in when I want to
reveal it: iconID.fade(‘in’, 1);

 

For a button, you’ll probably
need to use the rs property instead of the id property.

 







From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney

Sent: Tuesday, December 15, 2009 10:06 AM

To: Xerte discussion list

Subject: RE: [Xerte] Button using swf flashes on screen





 

I’m not sure what’s happening
here…?

 

You have a swf button, set to
be invisible? Not sure I’ve ever had a button set to invisible – I personally
don’t like to hide and show buttons, prefer to enable / disable them, but maybe
that’s just me…

 

But if its set to be
invisible it ought to be invisible – i.e. not flicker… probably a timing thiig
in the engine, as it probably waits for the button to load before setting the
visibility, hence the flicker. I’ll look tomorrow.

 

J

 





From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett

Sent: Tuesday, December 15, 2009 6:02 PM

To: Xerte list

Subject: [Xerte] Button using swf flashes on screen





 

I
have set the visible prop to 0 for that response, but I get a momentary
on-screen flash of the swf before it hides.

Expected behavior or I've sequenced something wrong?















Hotmail: Trusted email with powerful SPAM
protection. Sign up
now.





 











Hotmail: Free, trusted and rich email
service. Get it now.














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



 











Your E-mail and More On-the-Go. Get Windows
Live Hotmail Free. Sign
up now. 













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





 







Your E-mail and More On-the-Go. Get Windows
Live Hotmail Free. Sign up now.

 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091216/af70ca12/attachment.html


More information about the Xerte mailing list