[Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Mike Boutin
I am working on a fullscreen flash project.  Can anyone tell me why this 
code acts like a loop rather than just happening once?  I am trying to 
position an object at the bottom of the browser window no matter what 
the window size.  I am using this code to set it right off the start.  
This all works and positions it at the bottom except when I resize the 
window the object moves around to repositions itself again, when I only 
want it to happen once. It is no in a onEnterFrame or setInterval and it 
is not in a onResize listener either.  Can anyone tell me why this 
happens and how to get around it?


siteLogo._x = Stage.width / 2;
siteLogo._y = Stage.height - 70;

Cheers!





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Ian Thomas
Mike,
  Where is this code? Just on the root timeline? Are you sure the
repositioning you're getting isn't a result of the normal Flash
resizing/scaling and that this code _is_ being called twice?

Cheers,
  Ian

On 1/16/06, Mike Boutin [EMAIL PROTECTED] wrote:

 I am working on a fullscreen flash project.  Can anyone tell me why this
 code acts like a loop rather than just happening once?  I am trying to
 position an object at the bottom of the browser window no matter what
 the window size.  I am using this code to set it right off the start.
 This all works and positions it at the bottom except when I resize the
 window the object moves around to repositions itself again, when I only
 want it to happen once. It is no in a onEnterFrame or setInterval and it
 is not in a onResize listener either.  Can anyone tell me why this
 happens and how to get around it?

 siteLogo._x = Stage.width / 2;
 siteLogo._y = Stage.height - 70;

 Cheers!





 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Marc Hoffman
not sure why, but try putting Stage properties in a new variable that 
doesn't get reset when repositioning the object:


theWidth=Stage.width/2;
theHeight=Stage.height-70;

siteLogo._x = theWidth;
siteLogo._y = theHeight;

- Marc

At 10:34 AM 1/16/2006, you wrote:

I am working on a fullscreen flash project.  Can anyone tell me why 
this code acts like a loop rather than just happening once?  I am 
trying to position an object at the bottom of the browser window no 
matter what the window size.  I am using this code to set it right 
off the start.
This all works and positions it at the bottom except when I resize 
the window the object moves around to repositions itself again, when 
I only want it to happen once. It is no in a onEnterFrame or 
setInterval and it is not in a onResize listener either.  Can anyone 
tell me why this happens and how to get around it?


siteLogo._x = Stage.width / 2;
siteLogo._y = Stage.height - 70;

Cheers!



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Mike Boutin
Yes thanks this seems to work.  Still not sure why it was doing what it 
was, either way thanks for the help!


Marc Hoffman wrote:

not sure why, but try putting Stage properties in a new variable that 
doesn't get reset when repositioning the object:


theWidth=Stage.width/2;
theHeight=Stage.height-70;

siteLogo._x = theWidth;
siteLogo._y = theHeight;

- Marc

At 10:34 AM 1/16/2006, you wrote:

I am working on a fullscreen flash project.  Can anyone tell me why 
this code acts like a loop rather than just happening once?  I am 
trying to position an object at the bottom of the browser window no 
matter what the window size.  I am using this code to set it right 
off the start.
This all works and positions it at the bottom except when I resize 
the window the object moves around to repositions itself again, when 
I only want it to happen once. It is no in a onEnterFrame or 
setInterval and it is not in a onResize listener either.  Can anyone 
tell me why this happens and how to get around it?


siteLogo._x = Stage.width / 2;
siteLogo._y = Stage.height - 70;

Cheers!




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders