PDA

View Full Version : background / foreground scaling and positioning


k_os
01-06-2005, 07:24 PM
how is this achieved?

http://www.blind.com/base.php

the background image stretches to fit the browser (i'm guessing because of the width and height set to 100% in the <object> tag?). but how is the foreground flash not stretching and always staying centered vertically and horizaontally?

Tink
01-07-2005, 02:44 PM
http://www.flashgroup.net/forum/showthread.php?t=2112&highlight=firefox

should sort you out

some stuff there for tiling the bg in flash as well if you need to (firefox don't like transparent flash movies) http://www.flashgroup.net/forum/showthread.php?t=2818

k_os
01-08-2005, 09:57 PM
actually, i'm using firefox 1.0 and i have no problems with transparency... the only browser i've found that does is opera.

at any rate, i think i found some code to do what i'm looking for:

Stage.scaleMode -- allows contents to not scale when window is resized
Stage.onResize() -- if it is resized, do something here (like resize a background image)

would i be right in assuming this?

Tink
01-08-2005, 10:03 PM
i'm using firefox 1.0 and i have no problems with transparencyfirefox has problems with click and dragging buttons (scrollbars etc)at any rate, i think i found some code to do what i'm looking for:did u look at the link?????
it does exactly what ou wanted and theres an example file there??

k_os
01-09-2005, 07:58 PM
clicking and dragging buttons? what are you talking about?

and yes i looked at those links, that's where i got the code to which i was referring earlier.

Tink
01-09-2005, 08:07 PM
clicking and dragging buttons? what are you talking about?

SCROLLBARS, or anything else u click on and want to drag. i.e. a button, that you click on, and then drag somewhere on the screen, this causes a problem with transparent movies in firefox

(see this thread :) http://www.actionscript.org/forums/showthread.php3?t=56343&page=2&pp=15&highlight=edge)