[Xerte] Can I change the alpha property of button.swf?

Tenney Julian Julian.Tenney at nottingham.ac.uk
Mon Jul 21 09:02:41 BST 2008


Best thing is probably to make your own button, based on the
buttonTemplate.fla. I don't think you can change that alpha with code,
as I think it was drawn that way.
 
Those flex style components are not true flex components - they are just
the graphics from the flex skin fla wrapped up in a Xerte friendly way.
I took the skin fla from the flex sdk and used the graphics from there
in conjunction with buttonTemplate.fla to make the controls.
 
If people are already making their own buttons, we should probably look
at a way of being able to share them.
 
J

________________________________

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Lockley
Patrick
Sent: 18 July 2008 16:18
To: Xerte discussion list
Subject: RE: [Xerte] Can I change the alpha property of button.swf?


Hi Paul,
 
Can't see anything obvious in the help to relate directly to the flash,
and there is mention of an event handler to monitor alpha changes but
the word alpha doesn't highlight in the script window.
 
As for the button.swf - do you mean the flex component?
 
Sorry I can't be more help
 
Pat


________________________________

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
	Sent: 17 July 2008 18:39
	To: xerte at lists.nottingham.ac.uk
	Subject: [Xerte] Can I change the alpha property of button.swf?
	
	

	I'm using button.swf for my Table of Contents button, which is
displayed over the status bar area. When using a framework, the color of
the framework navigation area shows through the button, so it must have
an alpha of less than 100. I want to force it to be fully opaque.

	My button interaction has an id of tocButton, and an rs property
of tocButtonRs. The button interaction is perpetual, with a script icon
for the code below the interaction icon on the tree (not within the
interaction). I've tried the following statements to change the alpha
property, but without success.

	tocButtonRs._alpha = 100; 
	tocButtonRs.alpha = 100; 
	tocButton._alpha = 100; 
	tocButton.alpha = 100; 

	What would be the correct syntax for changing the alpha? The
ActionScript 1 reference indicates the syntax should be movieClip._alpha
= 100;

	_____________________________ 

	 Paul Swanson 
	 Instructional Designer 
	 Harland Financial Solutions 
	_____________________________ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080721/b3a667fd/attachment.html


More information about the Xerte mailing list