Skip to main content
Known Participant
January 13, 2011
Question

moving components according to screen / stage size

  • January 13, 2011
  • 1 reply
  • 298 views

Can anybody give me a head start on how i would make a flash website that moves components according to screen size? for example the text on the introduction page of this site has the effect i am looking or: http://jta.co.uk/

cheers in advance

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 13, 2011

use the onResize method of a stage listener:

var lo:Object={};

lo.onResize=function(){

//do whatever

}

Stage.addListener(lo);

dannyb89Author
Known Participant
January 13, 2011

Im not actually trying to resize movieclips. just wanted the movieclip to move position when i widen the screen. hard to explain sorry. thankyou for this though, it will come in handy too.

kglad
Community Expert
Community Expert
January 14, 2011

the code does what you asked.  it does not resize movieclips.