Re: [Flashcoders] Mask not defining mc width && height in, imported swf.

2006-02-10 Thread Matt Muller
solved...

private function centerThreeSixty():Void
{
var midX:Number = Stage.width/2;
var midY:Number = Stage.height/2;

if (originX == null && origMidX == null)
{
origMidX = midX;
origMidY = midY;

originX = targetThreeSixty._x;
originY = targetThreeSixty._y;
}

var diffX:Number = (midX - origMidX);
var diffY:Number = (midY - origMidY);

targetThreeSixty._x = originX + diffX;
targetThreeSixty._y = originY + diffY;
}

only works if the stage is bigger than the clip tho :|

MaTT

On 2/10/06, w03 <[EMAIL PROTECTED]> wrote:
>
> This can be more complicated than it seems... if, like I was, you are
> using the imported MC height and width to find center position.  These
> values change as the offstage mcs move around or march onto stage.
>
> If set the center position once, and import the mc there, it'll stay put.
> If call centering routine a lot, (say on a resize function), the mc will
> jump around depending on the current width,height.
>
> If you use origional centering data (i.e. save the position) and then use
> that in your resize function (calculate new mc position based on old mc
> position, not on mc width/height) then you may be able to stop the behavior.
>
> If you wrote the Q you may understand this answer, otherwise, don't
> bother!
>
> Wendy
>
>
> //Assign a mask from the main SWF on the receiving movieclip
>
> //mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's
> //demensions of an external SWF is visible inside the receiver SWF...
>
>
> //Matt Muller wrote:
>
>
> >>Im building a microsite, that is aligned to the center of the stage. I
> am
> >>loading in animations that are swfs that are meant to run in the
> viewable
> >>area in the microsite.
> >>The animation fla's are exported as swfs with a mask, and I am also
> trying
> >>to setMask in the shell, the animators tweens and shapes that are
> outside of
> >>the mask
> >>are affecting the size of my shell and when onResize() is called the
> site
> >>jumps all over the show.
> >>
> >>Does anyone have any ideas, bar going into the animations and cleaning
> up
> >>everything that is outside the mask to get a perfect rectangle bounding
> box,
> >>surely
> >>there must be a way to do this, I have draw regions on and can see
> >>everything going on outide the mask.
> >>
> >>Quick fixes?
> >>
> >>Thanks
> >>
> >>MaTT
> >>___
> >>
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> 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
>
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Mask not defining mc width && height in, imported swf.

2006-02-10 Thread w03

This can be more complicated than it seems... if, like I was, you are using the 
imported MC height and width to find center position.  These values change as 
the offstage mcs move around or march onto stage.

If set the center position once, and import the mc there, it'll stay put.
If call centering routine a lot, (say on a resize function), the mc will jump around depending on the current width,height.  


If you use origional centering data (i.e. save the position) and then use that 
in your resize function (calculate new mc position based on old mc position, 
not on mc width/height) then you may be able to stop the behavior.

If you wrote the Q you may understand this answer, otherwise, don't bother!

Wendy


//Assign a mask from the main SWF on the receiving movieclip

//mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's 
//demensions of an external SWF is visible inside the receiver SWF...



//Matt Muller wrote:



Im building a microsite, that is aligned to the center of the stage. I am
loading in animations that are swfs that are meant to run in the viewable
area in the microsite.
The animation fla's are exported as swfs with a mask, and I am also trying
to setMask in the shell, the animators tweens and shapes that are outside of
the mask
are affecting the size of my shell and when onResize() is called the site
jumps all over the show.

Does anyone have any ideas, bar going into the animations and cleaning up
everything that is outside the mask to get a perfect rectangle bounding box,
surely
there must be a way to do this, I have draw regions on and can see
everything going on outide the mask.

Quick fixes?

Thanks

MaTT
___




___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Mask not defining mc width && height in imported swf.

2006-02-10 Thread Matt Muller
I doubt it, I am just changin references, if the animation doesnt stick out
the mask, its perfect!

On 2/10/06, Cedric Muller <[EMAIL PROTECTED]> wrote:
>
> this is strange:
>
> animationMask = controlClip.createEmptyMovieClip("...
> animationMask = animationMask.attachMovie("mask", "animationMask"...)
>
> try naming your variables a different way ...
> like
> animationMask0 = controlClip.createEmptyMovieClip(".
> animationMask1 = animationMask0.attachMovie("mask",
> "animationMask", ...)
>
> I don't know if this will change something, but try ... as it could
> explain the messing up when onResize is called 
> hth,
> Cedric
>
>
>
> > I am, in fact Im tracing it to be say 900px, then im pushing all
> > the clips
> > into an array which loops and traces on resize, and the width
> > somehow jumps
> > to 1300px.
> >
> > var animClipTop :MovieClip;
> > var animClip  :MovieClip;
> > var animationMask:MovieClip;
> >
> > animClip = controlClip.animHoldClip.createEmptyMovieClip
> > ("anim_"+counter,
> > depth++);
> > animationMask = controlClip.createEmptyMovieClip
> > ("animationMaskClip"+counter,
> > depth++);
> > animationMask = animationMask.attachMovie("mask", "animationMask",
> > depth++,
> > {_x:-15.5, _y:-19});
> >
> > then once its loaded...
> >
> > animClip.setMask(animationMask);
> >
> > it also has a mask in the swf masking everything. I smell a bug.
> > This only
> > happens onResize.
> >
> > MaTT
> >
> >
> > On 2/10/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
> >>
> >> Assign a mask from the main SWF on the receiving movieclip
> >>
> >> mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's
> >> demensions of an external SWF is visible inside the receiver SWF...
> >>
> >>
> >> Matt Muller wrote:
> >>
> >>> Im building a microsite, that is aligned to the center of the
> >>> stage. I am
> >>> loading in animations that are swfs that are meant to run in the
> >>> viewable
> >>> area in the microsite.
> >>> The animation fla's are exported as swfs with a mask, and I am also
> >> trying
> >>> to setMask in the shell, the animators tweens and shapes that are
> >>> outside
> >> of
> >>> the mask
> >>> are affecting the size of my shell and when onResize() is called
> >>> the site
> >>> jumps all over the show.
> >>>
> >>> Does anyone have any ideas, bar going into the animations and
> >>> cleaning up
> >>> everything that is outside the mask to get a perfect rectangle
> >>> bounding
> >> box,
> >>> surely
> >>> there must be a way to do this, I have draw regions on and can see
> >>> everything going on outide the mask.
> >>>
> >>> Quick fixes?
> >>>
> >>> Thanks
> >>>
> >>> MaTT
> >>> ___
> >>> Flashcoders@chattyfig.figleaf.com
> >>> 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
> >>>
> >>>
> >>>
> >>
> >>
> >> --
> >> ===
> >>
> >> Éric Thibault
> >> Programmeur analyste
> >> Réseau de valorisation de l'enseignement
> >> Université Laval, pavillon Félix-Antoine Savard
> >> Québec, Canada
> >> Tel.: 656-2131 poste 18015
> >> Courriel : [EMAIL PROTECTED]
> >>
> >> ===
> >>
> >> Avis relatif à la confidentialité / Notice of Confidentiality /
> >> Advertencia de confidencialidad <
> >> http://www.rec.ulaval.ca/lce/securite/confidentialite.htm>
> >>
> >> ___
> >> Flashcoders@chattyfig.figleaf.com
> >> 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
> >>
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > 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
>
> ___
> Flashcoders@chattyfig.figleaf.com
> 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
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Sof

Re: [Flashcoders] Mask not defining mc width && height in imported swf.

2006-02-10 Thread Cedric Muller

this is strange:

animationMask = controlClip.createEmptyMovieClip("...
animationMask = animationMask.attachMovie("mask", "animationMask"...)

try naming your variables a different way ...
like
animationMask0 = controlClip.createEmptyMovieClip(".
animationMask1 = animationMask0.attachMovie("mask",  
"animationMask", ...)


I don't know if this will change something, but try ... as it could  
explain the messing up when onResize is called 

hth,
Cedric



I am, in fact Im tracing it to be say 900px, then im pushing all  
the clips
into an array which loops and traces on resize, and the width  
somehow jumps

to 1300px.

var animClipTop :MovieClip;
var animClip  :MovieClip;
var animationMask:MovieClip;

animClip = controlClip.animHoldClip.createEmptyMovieClip 
("anim_"+counter,

depth++);
animationMask = controlClip.createEmptyMovieClip 
("animationMaskClip"+counter,

depth++);
animationMask = animationMask.attachMovie("mask", "animationMask",  
depth++,

{_x:-15.5, _y:-19});

then once its loaded...

animClip.setMask(animationMask);

it also has a mask in the swf masking everything. I smell a bug.  
This only

happens onResize.

MaTT


On 2/10/06, Éric Thibault <[EMAIL PROTECTED]> wrote:


Assign a mask from the main SWF on the receiving movieclip

mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's
demensions of an external SWF is visible inside the receiver SWF...


Matt Muller wrote:

Im building a microsite, that is aligned to the center of the  
stage. I am
loading in animations that are swfs that are meant to run in the  
viewable

area in the microsite.
The animation fla's are exported as swfs with a mask, and I am also

trying
to setMask in the shell, the animators tweens and shapes that are  
outside

of

the mask
are affecting the size of my shell and when onResize() is called  
the site

jumps all over the show.

Does anyone have any ideas, bar going into the animations and  
cleaning up
everything that is outside the mask to get a perfect rectangle  
bounding

box,

surely
there must be a way to do this, I have draw regions on and can see
everything going on outide the mask.

Quick fixes?

Thanks

MaTT
___
Flashcoders@chattyfig.figleaf.com
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






--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality /
Advertencia de confidencialidad <
http://www.rec.ulaval.ca/lce/securite/confidentialite.htm>

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Mask not defining mc width && height in imported swf.

2006-02-10 Thread Matt Muller
I am, in fact Im tracing it to be say 900px, then im pushing all the clips
into an array which loops and traces on resize, and the width somehow jumps
to 1300px.

var animClipTop :MovieClip;
var animClip  :MovieClip;
var animationMask:MovieClip;

animClip = controlClip.animHoldClip.createEmptyMovieClip("anim_"+counter,
depth++);
animationMask = controlClip.createEmptyMovieClip("animationMaskClip"+counter,
depth++);
animationMask = animationMask.attachMovie("mask", "animationMask", depth++,
{_x:-15.5, _y:-19});

then once its loaded...

animClip.setMask(animationMask);

it also has a mask in the swf masking everything. I smell a bug. This only
happens onResize.

MaTT


On 2/10/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
>
> Assign a mask from the main SWF on the receiving movieclip
>
> mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's
> demensions of an external SWF is visible inside the receiver SWF...
>
>
> Matt Muller wrote:
>
> >Im building a microsite, that is aligned to the center of the stage. I am
> >loading in animations that are swfs that are meant to run in the viewable
> >area in the microsite.
> >The animation fla's are exported as swfs with a mask, and I am also
> trying
> >to setMask in the shell, the animators tweens and shapes that are outside
> of
> >the mask
> >are affecting the size of my shell and when onResize() is called the site
> >jumps all over the show.
> >
> >Does anyone have any ideas, bar going into the animations and cleaning up
> >everything that is outside the mask to get a perfect rectangle bounding
> box,
> >surely
> >there must be a way to do this, I have draw regions on and can see
> >everything going on outide the mask.
> >
> >Quick fixes?
> >
> >Thanks
> >
> >MaTT
> >___
> >Flashcoders@chattyfig.figleaf.com
> >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
> >
> >
> >
>
>
> --
> ===
>
> Éric Thibault
> Programmeur analyste
> Réseau de valorisation de l'enseignement
> Université Laval, pavillon Félix-Antoine Savard
> Québec, Canada
> Tel.: 656-2131 poste 18015
> Courriel : [EMAIL PROTECTED]
>
> ===
>
> Avis relatif à la confidentialité / Notice of Confidentiality /
> Advertencia de confidencialidad <
> http://www.rec.ulaval.ca/lce/securite/confidentialite.htm>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> 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
>
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Mask not defining mc width && height in imported swf.

2006-02-10 Thread Éric Thibault

Assign a mask from the main SWF on the receiving movieclip

mc_clip_loader.setMask(mc_Mask);//Everything outside the stage's 
demensions of an external SWF is visible inside the receiver SWF...



Matt Muller wrote:


Im building a microsite, that is aligned to the center of the stage. I am
loading in animations that are swfs that are meant to run in the viewable
area in the microsite.
The animation fla's are exported as swfs with a mask, and I am also trying
to setMask in the shell, the animators tweens and shapes that are outside of
the mask
are affecting the size of my shell and when onResize() is called the site
jumps all over the show.

Does anyone have any ideas, bar going into the animations and cleaning up
everything that is outside the mask to get a perfect rectangle bounding box,
surely
there must be a way to do this, I have draw regions on and can see
everything going on outide the mask.

Quick fixes?

Thanks

MaTT
___
Flashcoders@chattyfig.figleaf.com
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

 




--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad 

___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] Mask not defining mc width && height in imported swf.

2006-02-10 Thread Matt Muller
Im building a microsite, that is aligned to the center of the stage. I am
loading in animations that are swfs that are meant to run in the viewable
area in the microsite.
The animation fla's are exported as swfs with a mask, and I am also trying
to setMask in the shell, the animators tweens and shapes that are outside of
the mask
are affecting the size of my shell and when onResize() is called the site
jumps all over the show.

Does anyone have any ideas, bar going into the animations and cleaning up
everything that is outside the mask to get a perfect rectangle bounding box,
surely
there must be a way to do this, I have draw regions on and can see
everything going on outide the mask.

Quick fixes?

Thanks

MaTT
___
Flashcoders@chattyfig.figleaf.com
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