Forum Moderators: open

Message Too Old, No Replies

Full browser flash

         

Richard_N

11:04 pm on Jan 3, 2006 (gmt 0)



OK I have seen it done, I know it can be done, I know it can work in all browsers but....

I googled it, searched macromedia, flash forums, etc in search of my holy grail but with no definitive solution, and I am not bad at flash scripting!

What I am trying to achieve is a scaleable base movie to fill the screen, with a non scaling movie sat in the centre. I have tried 100% noscale etc, got it working in IE but failing in Firefox.

Can someone point me in the right direction please!

hoang0501

1:09 am on Jan 5, 2006 (gmt 0)



Do you mean that u want to navigate the webpage inside flash or flash browser? I am also interested in it
I found a flash web browser but I forgot the name

Richard_N

8:04 am on Jan 5, 2006 (gmt 0)



I mean that I want flash to open 100% inside the browser window, no matter what size that window is (ie scaleable) however inside that scaleable background there sits another movie which is non scaleable and centred.

This is usually done in conjunction with javascript and a chromeless window.

<Sorry, no example URLs.
See Forum Charter [webmasterworld.com]>

[edited by: tedster at 2:39 am (utc) on Jan. 14, 2006]

Keola

1:18 am on Jan 14, 2006 (gmt 0)

10+ Year Member



Do you know about the fscommand?

Richard_N

8:22 am on Jan 14, 2006 (gmt 0)



Thankyou for the fs link will have a look

[edited by: tedster at 6:51 pm (utc) on Jan. 14, 2006]

Benek

5:38 pm on Jan 22, 2006 (gmt 0)

10+ Year Member



Simply set the width and height of the flash movie to 100% in your html. Make sure to do it in object and embed.

Then put:

Stage.scaleMode = "noScale";

..on the first frame of your movie.

It's never failed for me.

To center your non-scaliing movie do something like this:


this.onEnterFrame = function() {
center();
}

stageListen = new Object();
stageListen.onResize = function() {
center();
}
Stage.addListener(stageListen);
//functions
center = function() {
_root.center_mc._y = (Stage.height/2);
_root.center_mc._x = (Stage.width/2);

center_mc is the instance name of the movie you want to be centered within the background movie. This way if the user resizes the window it moves to stay centered.

Richard_N

11:10 pm on Jan 23, 2006 (gmt 0)



tried it, it did not work, its fine if you want to just fill the background with the plain flash stage but the aim is to put a scaleable clip under a non scaling and centred clip...

I also tried


function stageResize() {
scale_mc._width= Stage.width;
scale_mc._height= Stage.width;
}
Stage.scaleMode = "noScale";
myListener = newObject();
myListener.onResize = function() {
stageResize();
};
Stage.addListener(myListener);

Where scale_mc is the supposed scaling clip, (it doesn't)

Richard_N

11:55 pm on Jan 23, 2006 (gmt 0)



Ok got it

function stageResize() {
scale_mc._width = Stage.width;
scale_mc._height = Stage.height;
}
function center() {
noscale_mc._y = Stage.height/2;
noscale_mc._x = Stage.width/2;
}

Stage.scaleMode = "noScale";

myListener = new Object();
myListener.onResize = function() {
stageResize();
center();
};
Stage.addListener(myListener);

Benek

12:47 am on Jan 24, 2006 (gmt 0)

10+ Year Member



Ah...didn't realize exactly what you wanted, but looks like you got it figured out. Nice.