<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Julian and Patrick,<BR>
<BR>
Thanks so much for the input. One great reason to use open source software is the community support and quick replies to questions such as this.<BR>
<BR>
Have a great evening (or, maybe it's morning over their by now ;-)<BR>
Kent<BR><BR><BR>
<HR>
<BR>
Subject: RE: [Xerte] Text Icon Field with Fill<BR>Date: Mon, 8 Sep 2008 16:49:34 +0100<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<DIV id=EC_idOWAReplyText90132 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>If you know Flash, then it will be helpful to know that all icons become MovieClips at runtime. That means they can do all the usual things like beginFill(), hitTest() etc. There are some helpful drawing methods in the icon class that all icons inherit from, such as drawRect(). Check the help for others.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>So, give the icon an ID, then in a script icon you can do this to fill the label:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>myIconID.beginFill(0xFF000,100);</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>myIconID.lineStyle(1, 0x000000,100);</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>myIconID.drawRect(0,0,100,20); </FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>If you do Flash it will also be helpful to know that you can handle all the native MovieCLip events such as onPress, onRelease etc using event responses on an interaction icon.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>We plan to use Zinc 3.0 to build Xerte at some point, which will allow us to compile for Mac and Linux. Not sure when that's going to be at the moment.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>Have fun,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial>Julian</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Kent Chesnut<BR><B>Sent:</B> Mon 08/09/2008 13:20<BR><B>To:</B> xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Text Icon Field with Fill<BR></FONT><BR></DIV>
<DIV>Xerte users,<BR> <BR>I'm a Xerte newbie with a quick question.<BR> <BR>I'm using a text icon as a drag and drop element (I need to programmatically change the text based on the current screen - which I know how to do with the text icon). However, I've been unable to get the text field to show a solid fill (background). Is this possible?<BR> <BR>It may be better to use a draw icon for the drag and drop... but I don't see how I could change the text within the draw element. Is this possible?<BR> <BR>Any suggestions would be much appreciated.<BR> <BR>As an Authorware and Flash user, I find Xerte to be a great product. I plan on using it a lot in the future. Any plans for deployment on Linux or Mac?<BR> <BR>Thanks,<BR>Kent<BR><BR>
<HR>
Get more out of the Web. Learn 10 hidden secrets of Windows Live. <A href="http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008" target=_blank>Learn Now</A> </DIV><br /><hr />Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. <a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008' target='_new'>Learn Now</a></body>
</html>