I cross posted to the Fuse list and got an answer...

Unless you quote the value it should be absolute
not relative you are right. (btw you can use scale:90 to do both at
once)

AHH! well, that's probably it then, as these values are currently
coming from an XML doc! I tried the values hard coded into my class
and it worked flawlessly!

Which leads me to my next point. I have in my xml:

<region name="Europe" ref="EU" X="-1074" Y="-354" Width="2860"
Height="1680" Scale="90">

so my numbers are coming in as strings, and are therefore being
treated as relative values by Fuse, so I tried converting them to
numbers...

var intRegionX:Number   = objRegionXml.attributes.X;
var intRegionY:Number   = objRegionXml.attributes.Y;
var intRegionWidth:Number = objRegionXml.attributes.Width;
var intRegionHeight:Number = objRegionXml.attributes.Height;
var intRegionScale:Number = objRegionXml.attributes.Scale;

mcCountry.intRegionX = intRegionX;
mcCountry.intRegionY = intRegionY;
mcCountry.intRegionWidth = intRegionWidth;
mcCountry.intRegionHeight = intRegionHeight;
mcCountry.intRegionScale = intRegionScale;

but they're still being treated as Strings, any ideas how to do this?

thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to