[Xerte] Scaling graphic using scale9grid

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Thu Feb 12 10:19:52 GMT 2009


Hi all,
 
Julian's away so expect a better answer later.
 
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.
 
In the page templates.xtp there should be some example of a scaling flex
swf that contains pictures.
 
The text graphics page would be the one I would use for inspiration, it
uses common/whitePanel.swf
 
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?
 
Pat



________________________________

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
Huppertz
	Sent: 12 February 2009 09:08
	To: xerte at lists.nottingham.ac.uk
	Subject: [Xerte] Scaling graphic using scale9grid
	
	
	Dear list, 
	
	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 ... 
	Thanks for your help. 
	
	Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090212/80c7d0ea/attachment.html


More information about the Xerte mailing list