<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>Hi all,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>Julian's away so expect a better answer
later.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>You've done everything I would have done, bar perhaps
looking at using one of the flex components that should be in the common folder
in the install.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>In the page templates.xtp there should be some example
of a scaling flex swf that contains pictures.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>The text graphics page would be the one I would use for
inspiration, it uses common/whitePanel.swf</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>Though looking at how this code works, it appears it
just uses two movie clips and scales them independently - so maybe this is a
work around?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=006351410-12022009>Pat</SPAN></FONT></DIV><FONT face=Verdana color=#0000ff
size=2></FONT><BR>
<BLOCKQUOTE 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>Peter
Huppertz<BR><B>Sent:</B> 12 February 2009 09:08<BR><B>To:</B>
xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Scaling graphic using
scale9grid<BR></FONT><BR></DIV>
<DIV></DIV><FONT face=sans-serif size=2>Dear list,</FONT> <BR><BR><FONT
face=sans-serif size=2>I created a background graphic with rounded corners in
Flash using a scale9grid and put it as instance "bg" on the stage. I want to
load the swf as graphic in Xerte and scale the bg instance to the w and h
parameter I set in Xerte. The problem is that Xerte scales the root of the
movie and thus the bg instance gets distorted. Is there a possibility (similar
to the scaling of buttons using the setSize function) to "redirect" the
scaling to the bg instance of the loaded swf? As workaround I use a script
which scales the swf back to it's original size and than scales the bg
instance to the required size, but this is not very elegant. I also tried to
use a component instead and put the w and h parameter in the initObject. But
components seem to support Flash 7 at the most and I think scale9grid was
introduced in Flash 8 ...</FONT> <BR><FONT face=sans-serif size=2>Thanks for
your help.</FONT> <BR><BR><FONT face=sans-serif
size=2>Peter</FONT></BLOCKQUOTE></BODY></HTML>