<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Maybe graphic.clip().myMask._width);<br><br>graphic is the Xerte mc, your clip would be loaded into that.<br>?? <br><br><br><br><br><hr id="stopSpelling">From: maryann@moberg.com<br>Date: Tue, 24 Aug 2010 12:32:43 -0400<br>Subject: Re: [Xerte] Stage size of embedded swf - Xerte 2 Desktop<br>To: xerte@lists.nottingham.ac.uk<br><br>Forgot to include this info:<br><ul><li>my monitor screen is set to 1680 x 1050</li><li>my xerte LO size is 790 x 558</li><li>the stage size within the swf and the dimensions of the mask are both 440 x 158</li></ul>Where in the world is the 1900 x 1200 coming from?<br>
<br>Thanks again<br>ma<br><br><div class="ecxgmail_quote">On Tue, Aug 24, 2010 at 12:22 PM, Mary Ann Ahearn <span dir="ltr"><<a href="mailto:maryann@moberg.com">maryann@moberg.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
Thanks Julian, <br>After changing the mask to a MC (defined as shown in the
attached screen grab), I'm getting unexpected numbers for it's dimensions.<br><br>My swf icon is called "graphic", and my onLoad script contains the following:<br>
<br>
<div style="margin-left: 40px;">debug('graphic is ' + graphic);<br>
debug('width is ' + graphic._width);<br>
debug('height is ' + graphic._height);<br>
debug('mask width is ' + graphic.myMask._width);<br>
debug('mask height is ' + graphic.myMask._height);<br>
<br>
</div>
I can't figure out why my debug window is giving me the following:<br>
<br>
<div style="margin-left: 40px;">graphic is _level0.engine.IFC.PG_MC2.DIS_MC3<br>
width is 481.9<br>
height is 158<br>
mask width is 1900<br>
mask height is 1200<br>
</div>
<br>
Am I accessing the the swf correctly? <br>Suspect I'm either making a really stupid mistake, or basically don't understand how to access a MC contained in a swf.<br>
<br>Thanks!<br><font color="#888888">ma</font><div><div></div><div class="h5"><br><br><br><div class="ecxgmail_quote">On Tue, Aug 24, 2010 at 3:43 AM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div lang="EN-GB">
<div>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The movieclip must have a name – you must be able to address it
somehow?</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">_level0.IFC.blah.yourSWF.mask etc?</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="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;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann
Ahearn<br>
<b>Sent:</b> 23 August 2010 17:34<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Re: [Xerte] Stage size of embedded swf - Xerte 2 Desktop</span></p>
</div><div><div></div><div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"> </p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">Thanks, Julian & Peter.<br>
<br>
The mask does not have a name but I do have the source files and will give it
one to test out the theory. <br>
<br>
Thanks!<br>
ma</p>
<div>
<p class="ecxMsoNormal" style="margin-left: 36pt;">On Mon, Aug 23, 2010 at 6:26 AM,
Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div>
<div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">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..?</span></p>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="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;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 20 August 2010 19:07<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Stage size of embedded swf - Xerte 2 Desktop</span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal" style="margin-left: 72pt;"> </p>
<p class="ecxMsoNormal" style="margin-bottom: 12pt; margin-left: 72pt;">Hi all,<br>
I can't figure this one out, and can't find anything in the list
archives. Anybody know if this is possible?<br>
<br>
I'm trying to get at the <u>stage</u> 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.<br>
<br>
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.<br>
<br>
The stage for the swf is 440 x 158, but graphic._width returns 481.9 which
includes the stuff we don't see.<br>
<br>
Thanks!<br>
ma<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
</div>
</div>
</div>
<div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"> </p>
<p style="margin-left: 36pt;">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. </p>
<p style="margin-left: 36pt;">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. </p>
</div>
</div>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<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>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
</p>
</div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"> </p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<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>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
</div></div></blockquote></div><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.                                            </body>
</html>