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

Mary Ann Ahearn maryann at moberg.com
Tue Aug 24 18:20:19 BST 2010


Great idea, Dave, but

debug('mask width is ' + graphic.clip().myMask._width);
debug('mask height is ' + graphic.clip().MyMask._height);

Gives the same goofy numbers.

On Tue, Aug 24, 2010 at 12:53 PM, Dave Burnett <d_b_burnett at hotmail.com>wrote:

>
> Maybe graphic.clip().myMask._width);
>
> graphic is the Xerte mc, your clip would be loaded into that.
> ??
>
>
>
>
> ------------------------------
> From: maryann at moberg.com
> Date: Tue, 24 Aug 2010 12:32:43 -0400
>
> Subject: Re: [Xerte] Stage size of embedded swf - Xerte 2 Desktop
> To: xerte at lists.nottingham.ac.uk
>
> Forgot to include this info:
>
>    - my monitor screen is set to 1680 x 1050
>    - my xerte LO size is 790 x 558
>    - the stage size within the swf and the dimensions of the mask are both
>    440 x 158
>
> Where in the world is the 1900 x 1200 coming from?
>
> Thanks again
> ma
>
> On Tue, Aug 24, 2010 at 12:22 PM, Mary Ann Ahearn <maryann at moberg.com>wrote:
>
> Thanks Julian,
> After changing the mask to a MC (defined as shown in the attached screen
> grab), I'm getting unexpected numbers for it's dimensions.
>
> My swf icon is called "graphic", and my onLoad script contains the
> following:
>
> debug('graphic is ' + graphic);
> debug('width is ' + graphic._width);
> debug('height is ' + graphic._height);
> debug('mask width is ' + graphic.myMask._width);
> debug('mask height is ' + graphic.myMask._height);
>
>  I can't figure out why my debug window is giving me the following:
>
> graphic is _level0.engine.IFC.PG_MC2.DIS_MC3
> width is 481.9
> height is 158
> mask width is 1900
> mask height is 1200
>
> Am I accessing the the swf correctly?
> Suspect I'm either making a really stupid mistake, or basically don't
> understand how to access a MC contained in a swf.
>
> Thanks!
> ma
>
>
>
> On Tue, Aug 24, 2010 at 3:43 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:
>
>  The movieclip must have a name – you must be able to address it somehow?
>
>
>
> _level0.IFC.blah.yourSWF.mask etc?
>
>
>
> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Mary Ann Ahearn
> *Sent:* 23 August 2010 17:34
> *To:* Xerte discussion list
> *Subject:* Re: [Xerte] Stage size of embedded swf - Xerte 2 Desktop
>
>
>
> Thanks, Julian & Peter.
>
> The mask does not have a name but I do have the source files and will give
> it one to test out the theory.
>
> Thanks!
> ma
>
> On Mon, Aug 23, 2010 at 6:26 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:
>
> 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
>
>
>
>
>
>
>
>
> 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.
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at 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.
>
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at 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.
>
>
>
>
>
> _______________________________________________ Xerte mailing list
> Xerte at 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.
>
> _______________________________________________
> Xerte mailing list
> Xerte at 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100824/11b0eef9/attachment.html


More information about the Xerte mailing list