<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Isn't that what simple.fla is using?<br><br>import flash.geom.Rectangle;<br>function setSize(w,h){<br>    this.button.scale9Grid = new Rectangle(10,10,90,10); //x,y,w,h of sclable region - other regions don't scale<br>    this.button._width = w;<br>    this.button._height = h;<br>}<br><br><br><br><br><br><br><br><br><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Mon, 28 Feb 2011 13:43:46 +0000<br>Subject: [Xerte] Re: hotspots - Flash folks<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass .ecxshape
{;}
</style><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsonormal, .ExternalClass li.ecxecxecxmsonormal, .ExternalClass div.ecxecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsochpdefault, .ExternalClass li.ecxecxecxmsochpdefault, .ExternalClass div.ecxecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsonormal1, .ExternalClass li.ecxecxecxmsonormal1, .ExternalClass div.ecxecxecxmsonormal1
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsochpdefault1, .ExternalClass li.ecxecxecxmsochpdefault1, .ExternalClass div.ecxecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxecxmsohyperlink1
{;}
.ExternalClass span.ecxecxecxmsohyperlinkfollowed1
{;}
.ExternalClass span.ecxecxecxemailstyle181
{;}
.ExternalClass span.ecxecxemailstyle28
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass p.ecxecxecxmsonormal2, .ExternalClass li.ecxecxecxmsonormal2, .ExternalClass div.ecxecxecxmsonormal2
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsochpdefault2, .ExternalClass li.ecxecxecxmsochpdefault2, .ExternalClass div.ecxecxecxmsochpdefault2
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxecxmsonormal11, .ExternalClass li.ecxecxecxmsonormal11, .ExternalClass div.ecxecxecxmsonormal11
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxecxmsohyperlink11
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxecxmsohyperlinkfollowed11
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxecxemailstyle1811
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxecxmsochpdefault11, .ExternalClass li.ecxecxecxmsochpdefault11, .ExternalClass div.ecxecxecxmsochpdefault11
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxemailstyle281
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxEmailStyle42
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">I’d draw the button with code. Never used that 9 scale slicing: not sure you can define it with code in AS2.0 – maybe in AS3.0 you can, unsure.</span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p><div><div style="border-right: medium none; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;"><p class="ecxMsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 28 February 2011 12:55<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: hotspots - Flash folks</span></p></div></div><p class="ecxMsoNormal" style="margin-left: 36pt;"> </p><p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>OK, I see what you mean with simple.fla.<br>I'm just not familiar enough with library symbols etc to figure out how to core out the scalable area and set it's alpha to 0<br>Like I don't seem to have a select rectangle tool.</span></p><div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><hr id="ecxstopSpelling" align="center" width="100%" size="2"></span></div><p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Mon, 28 Feb 2011 12:09:17 +0000<br>Subject: [Xerte] Re: hotspots - Flash folks</span></p><div><p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Have your code reach up to the xml for params, and then draw the button to suit, the button template should point the way?</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><div><div style="border-right: medium none; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;"><p class="ecxMsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 28 February 2011 11:50<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: hotspots - Flash folks</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p></div></div><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"> </span></p><p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>If it could be self-contained within the button, that would be handy.<br>I'm not very good with Flash itself.</span></p><div style="margin-left: 36pt;"><div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><hr align="center" width="100%" size="2"></span></div></div><p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Mon, 28 Feb 2011 11:40:36 +0000<br>Subject: [Xerte] Re: hotspots - Flash folks</span></p><div><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">9 slice scaling allows you define a movie clip with a central area that scales normally, and a border, that doesn’t.</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Don’t know how  / if you can do it in code.</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">I would have the button draw itself at the size required.</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p><div><div style="border-right: medium none; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;"><p class="ecxMsoNormal" style="margin-left: 108pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 27 February 2011 18:49<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: hotspots - Flash folks</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></p></div></div><p class="ecxMsoNormal" style="margin-left: 108pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"> </span></p><p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 108pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>Ok, if I fill the button with anything and set that alpha to 0, it acts just like a button.<br>(If I left the center unfilled, only the outer pixel frame was active)<br><br>So the real kicker is this:<br><br>The outer frame resizes (of course) when I change the button w,h in Xerte.<br>e.g. the frame that was 1 pixel thick is now 3 pixels or whatever thick.<br>Is there any trickery that will vector the button while leaving that outer frame the same thickness?<br><br>Dave<br><br><br><br>From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: RE: hotspots<br>Date: Sun, 27 Feb 2011 12:38:08 -0500<br><br><br>hey, a preliminary test indicates the transparent button thing might work.<br><br>Any of you Flash graphic wizzes out there that can whip up a transparent button with some sort of shadow around the outer pixels that won't blow up when resized?<br>Even a pixel or 2 black on bottom/right, white on top/left.<br>Just needs over and down states (and they can be identical actually.</span></p><div style="margin-left: 36pt;"><div style="margin-left: 36pt;"><div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><hr align="center" width="100%" size="2"></span></div></div></div><p class="ecxMsoNormal" style="margin-left: 108pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: hotspots<br>Date: Sun, 27 Feb 2011 10:58:45 -0500<br><br><br>Is there any sort of precedence I can set up that will allow overlapped HS to both function?<br>Or do I need another architecture?<br><br>Issue:<br><br>I have a graphic with multiple hotspots.</span></p><div><div><p class="ecxMsoNormal" style="margin-left: 108pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">The hs areas need to both react when they are rolled over, (draw a shadow effect to indicate user over hs) and when they are clicked (show  feedback).</span></p></div></div><p class="ecxMsoNormal" style="margin-left: 108pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">The feedback also needs to erase on rollout.<br>(This is a proto, so I can't use a button, unless it's transparent. Hmm there's a thought).  <br><br>If over a spot I lay 2 hotspots (1 click=0, another click=1) then no matter how I order them in the flow, the hs higher in the tree blocks anything below it from functioning.<br>Also, if I lay a catchall in there, it block everything else.<br><br>I suspect I'm using a hammer when I should be using a saw.<br>Is the transparent button feasible?<br>Maybe a transparent png hot object? (or do i run into the same precedence issue?)</span></p></div><p class="ecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. <br>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. <br><br>_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. </span></p></div><p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. </span></p></div><br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.                                         </body>
</html>