<!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=555555807-21072008><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2>If people are already making their own buttons, we should
probably look at a way of being able to share them.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=555555807-21072008><FONT face=Arial
color=#0000ff size=2>J</FONT></SPAN></DIV><BR>
<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> 18 July 2008 16:18<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></BODY></HTML>