<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Can I change the alpha property of button.swf?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>Yes, it's the flex component button. I see the flex
button class includes a fillAlphas style. The Flex 2 reference describes it
thusly:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV><SPAN
class=071104815-18072008><TD class=summaryTableSignatureCol>
<DIV class=summarySignature dir=ltr align=left><SPAN
class=signatureLink>fillAlphas</SPAN> </DIV>
<DIV dir=ltr align=left></TD><TD class=summaryTableDescription><SPAN
class=label>Type: </SPAN><A
onclick="loadClassListFrame('../../class-list.html')"
href="http://livedocs.adobe.com/flex/2/langref/Array.html">Array</A>
<SPAN class=label>CSS Inheritance: </SPAN>no<BR>Alphas used for the background
fill of controls. Use [1, 1] to make the control background opaque. The default
value is <CODE>[ 0.6, 0.4 ]</CODE>.</DIV>
<DIV dir=ltr align=left> </DIV>
<DIV dir=ltr align=left></TD></SPAN><SPAN class=071104815-18072008><FONT
face=Verdana color=#0000ff size=2>I've tried:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>tocButtonRs.style.fillAlphas="[1,1]";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>tocButtonRs.style.fillAlphas=[1,1];</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>tocButtonRs.fillAlphas="[1,1]";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>tocButtonRs.fillAlphas=[1,1];</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071104815-18072008><FONT face=Verdana
color=#0000ff size=2>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. </FONT></SPAN></DIV></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Lockley
Patrick<BR><B>Sent:</B> Friday, July 18, 2008 8:18 AM<BR><B>To:</B> Xerte
discussion list<BR><B>Subject:</B> RE: [Xerte] Can I change the alpha property
of button.swf?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2>Hi Paul,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2>As for the button.swf - do you mean the flex
component?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2>Sorry I can't be more help</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=020590315-18072008><FONT face=Verdana
color=#0000ff size=2>Pat</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul
Swanson<BR><B>Sent:</B> 17 July 2008 18:39<BR><B>To:</B>
xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Can I change the
alpha property of button.swf?<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Verdana size=2>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.</FONT></P>
<P><FONT face=Verdana size=2>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.</FONT></P>
<P><FONT face=Verdana size=2>tocButtonRs._alpha = 100;</FONT> <BR><FONT
face=Verdana size=2>tocButtonRs.alpha = 100;</FONT> <BR><FONT face=Verdana
size=2>tocButton._alpha = 100;</FONT> <BR><FONT face=Verdana
size=2>tocButton.alpha = 100;</FONT> </P>
<P><FONT face=Verdana size=2>What would be the correct syntax for changing
the alpha? The ActionScript 1 reference indicates the syntax should be
movieClip._alpha = 100;</FONT></P>
<P><FONT face="Courier New" color=#808080
size=2>_____________________________</FONT> </P>
<P><FONT face="Courier New" color=#808080 size=2> Paul Swanson</FONT>
<BR><FONT face="Courier New" color=#808080 size=2> Instructional
Designer</FONT> <BR><FONT face="Courier New" color=#808080
size=2> Harland Financial Solutions</FONT> <BR><FONT face="Courier New"
color=#808080 size=2>_____________________________</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>