[Xerte] Stage size of embedded swf - Xerte 2 Desktop

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Aug 23 11:26:50 BST 2010


There is only one stage - the loaded .swf's dimensions are all you have.
If you can discover the name of the loaded's swf's mask, you can get the
dimensions from that..?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Mary Ann
Ahearn
Sent: 20 August 2010 19:07
To: Xerte discussion list
Subject: [Xerte] Stage size of embedded swf - Xerte 2 Desktop

 

Hi all,
I can't figure this one out, and can't find anything in the list
archives.  Anybody know if this is possible?

I'm trying to get at the stage width and height of a swf loaded onto a
page.  I'm using the Text Flash SWF page template with a swf that has
elements hanging off the sides of the stage that we don't see because of
a mask.

Graphic._width returns the width of everything including the elements we
don't see, so when the template places a panel behind it, it's too wide.
Not a big deal to fix by hand but it would be great if I could somehow
get at the swf stage width & height to size the panel automatically.

The stage for the swf is 440 x 158, but graphic._width returns 481.9
which includes the stuff we don't see.

Thanks!
ma









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


More information about the Xerte mailing list