[Xerte] Can I change the alpha property of button.swf?
Paul Swanson
Paul.Swanson at harlandfs.com
Fri Jul 18 17:26:57 BST 2008
Yes, it's the flex component button. I see the flex button class
includes a fillAlphas style. The Flex 2 reference describes it thusly:
fillAlphas
Type: Array <http://livedocs.adobe.com/flex/2/langref/Array.html> CSS
Inheritance: no
Alphas used for the background fill of controls. Use [1, 1] to make the
control background opaque. The default value is [ 0.6, 0.4 ].
I've tried:
tocButtonRs.style.fillAlphas="[1,1]";
tocButtonRs.style.fillAlphas=[1,1];
tocButtonRs.fillAlphas="[1,1]";
tocButtonRs.fillAlphas=[1,1];
I'm not sure of the proper syntax for setting the style of a flex
component. Everything I've found online use mxml syntax. Maybe you can't
control it.
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Lockley
Patrick
Sent: Friday, July 18, 2008 8:18 AM
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/20080718/26704228/attachment.html
More information about the Xerte
mailing list