Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Full Browser Movie, But Use Browser Scrollbar When Needed



Is there any way to make a full browser swf that, at a certain point, stops scaling to the stage and allows the browser to use it's native scrollbars? For example, say my flash site has a top bar (it's y is always 0) and a bottom bar (it's y might be stageHeight - 15). Is there any way to tell the movie to stop scaling if the bottom bar's y is less than say 300, and from that point have the browser display it's scrollbars allowing you to scroll the content?



KirupaForum > Flash > ActionScript 3.0
Posted on: 08-05-2007, 02:10 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Full Browser Flash, Vertical Scrollbar Just Like Browser?
In short:
http://www.subdisc.com/
Look at the right scrollbar, how do I accomplish this?

The height of my site site is bigger than the Stage.height.
I could use a browser scrollbar via Java, but since I want to be free in design of every component I would rather use a flash scrollbar.
But how?

Full Browser Flash With Vertical Scrollbar
hello,

i have my stage size 900x2000. now i want to have it in my browser with full flash and a vertical scrollbar. is that possible ?

Quick Tips Needed : Full Browser Image
-------
As topic say:
-------
What is the best way for a full browser image.

Size format:
The biggest?
The smallest?

Load/Attach, as in
Type: swf/jpg/png

I am using the onResize listener.

But i do got some Questions as in above.
If you choose for example the smallest user resolution wich is 800x600.
The pict looks neat enough for that user.
If you choose for example the 2048*1838 the picture looks neat for that user.

If the picture enlarge in a higher resolution, you got quality loose.
If the picture is large enough, and you reduce your picture size for the smaller resolution user you got a weird look too

Somebody with some good tips?

Or is the best solution for this. A real browser resolution check. and than go further.
Or an if and else on the user System.capabilities.screenResolutionX and Y ?

Thnx in advanced
Greetz://

Can I Limit The Browser Scrollbar If The Extra Length Isnt Needed?
I have a movie that is 2000px in height and some objects are duplicating vertically adding up by 100px. Say I have 5 objects so there is only 500px of content, is there anyway to use javascript from flash to limit the scrollbar to 500px instead of the full 2000?

Heres an example. Change the width and watch the column narrow and the scroll bar expand http://www.defunker.com/

Full Browser Flash Detecting Browser Size Help.
http://akmphoto.net/akmdesign_new.html

Anyone know the AS to make it automatically check the size of the browser for the listeners.... _notice when you resize the browser it works perfectly...but not when it first loads up...any ideas?

Code:
// ***Stage aligned top left
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";
stop ();
// initiate postitions and scaling values for objects
fluid._x = (Stage.width + 200)/2
fluid._y = Stage.height/2
bottomstretch._height = Stage.height;
rightstretch._height = Stage.height;
topstretch._width = Stage.width;
rightstretch._x=201;
tutoriobutton._x = Stage.width - tutoriobutton._width

bottomo._x = (Stage.width + 200)/2
// end initial position setting


//create a listner that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
// change movieclip properties when the window is resized.
topstretch._width = Stage.width;
fluid._y = Stage.height/3;
fluid._x = (Stage.width + 200)/3;
bottomstretch._height = Stage.height;
rightstretch._height = Stage.height;
//*note* 200 is the width of the left column
tutoriobutton._x = Stage.width - tutoriobutton._width
bottomo._y = Stage.height/1;
bottomo._x = (Stage.width + 200)/2;
};
Stage.addListener(sizeListener);

Preloading My Full Browser Swf Movie Please Help
Ok. I used Lee's full browser flash tutorial and it works. But it won't load properly. I think it's because the bitmapDataClass and the tile bitmap are exported to the first frame. But I only have one frame because it's just the movie clip that get's centered and that movie clip holds the site... The background loads and the whole site loads too, and then the preloader apears really quick fully loaded and proceeds through to the site... Any ideas?? Thanks in advance,
Christian

Flash Movie Height & Browser Scrollbar
I have an image gallery with a bunch of thumbnails displayed on the page in a grid-like layout. Currently, the swf sits in a HTML page set at 100% width and height. There's a resize listener that adjusts the layout so that the thumbnails all fit on the page at once. So, as the browser window gets narrower, the columns decrease and rows increase as the thumbnails get pushed down the page.

The problem is, once the thumbnails get pushed far down far enough to go past the bottom of the browser, the overflow is hidden and the thumbs "below the fold" are not accessible.

Is there a way to pass the dynamic height of the SWF, so that the browser detects whether or not it should display the side scroll bar?

How Do I Make The Movie Fit In A Full Screen Browser Window?
By default, my movie is 778x400. What I want is for the movie to fit into the viewer's web browser no matter what their screen resolution is. A perfect example is http://www.eye4u.com. How is this accomplished??

Thanks!

Movie Clip Positioning (full Browser Flash)
I am trying to figure out how to attack the positioning of a few of my movie clips in a full browser flash setting.

Here is the gist...

I have 5 movie clips.
1 is positioned x=0 and y=0 (upper left corner)
I need to have another positioned the same way, but upper right corner. How would i do this? Below is my code so far. As you will see right now, all but 1 are positioned in the center of the stage. It doesn't seem like i should try using x and y values to put 1 of these clips in the upper right hand corner..... but i could be wrong.

Code:

var butterfly:Fly = new Fly();
butterfly.x = stage.stageWidth /2;
butterfly.y = stage.stageHeight /2;
addChild(butterfly);

var logotext:Text = new Text();
logotext.x = stage.stageWidth /2;
logotext.y = stage.stageHeight /2;
addChild(logotext);

var logoblue:Blue = new Blue();
logoblue.x = 0;
logoblue.y = 0;
addChild(logoblue);

var plants:Green = new Green();
plants.x = stage.stageWidth /2;
plants.y = stage.stageHeight /2;
addChild(plants);

var tagline:Tag = new Tag();
tagline.x = stage.stageWidth /2;
tagline.y = stage.stageHeight /2;
addChild(tagline);


thanks in advance!
Lance

Full Browser Flash / Load Movie Problem
I have the code form Full Browser Flash Part 2 and I have some problems with loading my external swf's because they are not centered after they are loading in my main swf

This is my code:
Code:

import mx.transitions.Tween;
import mx.transitions.easing.*;

Stage.scaleMode = "noScale";
Stage.align = "TL";


holder._x = Math.round(Stage.width / 2);
holder._y = Math.round(Stage.height / 2);
bg._width = Stage.width;
bg._height = Stage.height;

var resizeListener:Object = new Object();
resizeListener.onResize = function(){
   bg._width = Stage.width;
   bg._height = Stage.height;
   mover(holder,holder._x,holder._y,Math.round(Stage.width/2),Math.round(Stage.height/2));
}

Stage.addListener(resizeListener);

//This is where if you want it to go faster or slower, change these numbers
function mover(obj:MovieClip,startX:Number,startY:Number,endX:Number,endY:Number){
   var tweenX:Tween = new Tween(obj,"_x",Elastic.easeOut,startX, endX,1,true);
   var tweenY:Tween = new Tween(obj,"_y",Elastic.easeOut,startY, endY,1,true);
}

//button functions
mcl.loadClip("home.swf",holder);
home.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("home.swf",holder);
}

b1.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("blog.swf",holder);
}
b2.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("cv.swf",holder);
}
b3.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("projects.swf",holder);
}
b4.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("photos.swf",holder);
}
b5.onRelease = function(){
   loader._visible = true;
   mcl.loadClip("contact.swf",holder);
}

I know I should do something similar to:
Code:

var centerX:Number = holder._width / 2;
   var centerY:Number = holder._height / 2;
   holder._x = (Stage.width / 2) - centerX;
   holder._y = (Stage.height / 2) - centerY;
..but I don't really know how to make this work with this code :?

Manipulate The Html Browser Scrollbar From Within A Flash Movie
Guys,

Is there any way to manipulate the html browser scrollbar position from within a flash movie?

5leander5

Opening A Full Screen Browser Window From A Flash Movie.
How can I do this? I need the new window to be full screen and have scrollbars and a toolbar.

I'd prefer a way of doing this without java script if possible but any suggestions would be great.

Using A Scrollbar For A Dynamic Text Field And Having The Movie Load In The Browser T
Hi all,

I'm a newbie and have 2 questions.
1. How do I use an actial scrollbar (not scrolling text buttons) in a dynamic text field area? I know it's in the "UI components" under scrollpane in the action panel, but can't figure out how to use it!AND......
2.How do I publish my movie to fit each and every browser so you don't have scroll bars vertical and horizontaly? I've tried publsihing all 3 ways and pixels seems to be the best, but still there are those scrollbars! By the way the move is sized 800x600.
Thanks to who ever can help!
Fadaka

Regular Browser ScrollBar To Appear/disappear When The Movie Height Is Changed.
Hi guys,


I’m currently working on a full dynamic flash website and I want it to look and behave like a good old HTML/CSS page. Meaning that i want a regular browser scrollBar to appear/disappear when the movie height is changed.

So my new killer app simply demands a width of 1000 pixels, but can be any height, and I want people to see the vertical scrollBar on their browser.

I changed the "100%" for the width to a fixed number like "1000", and keep the height parameters at 100%. I thought that will do the job, But NOT I’ve googled and found some interesting stuff, but nothing really I can use (javascript solutions).

Is there not an other way to solve this problem ? with php or html ?


Greets

Full Bleed (full Size) Swf In The Browser Window
Hello and thanks in advance for any advice you may have.

I'm working on a small flash site and I want the swf file to have "bleed" or to go to the very end of the window so that the swf isn't just ploped over top of a background. here is a site which does what i'm talking about

http://www.510madison.com/

Full Browser
Okay, I have one question:
I'm currently creating a website for a company so this is something I really need to know!!!
If I publish my Flash (MX) movie to a HTML-file, it doesn't use the whole browser. How can I make it fit? (but still have it fit at 800x600 and 1024x768)
Greets,
Maarten de Groot

Full Browser
I am making a Cd-rom with a swf file on when the file opens I want it to open to a full browser window..Is this possibleor should I just set the stage to something like 1280/800?
really would like to know if this is possoble
Cheers

Full Browser.....help
Anyone knowns how to loading external images in full browser window like www.letstakepictures.fr ??? I'm going mad to do this.....
(uh,sorry for my bad english.....)
thanks to everyone!!!!!

Full Browser MC..
hello,
i'm struggling with this and wondered if someone out there could please help me out.

I'm trying to target my Movieclip BG_MC to fill the entire browser,

This is the script i'm currently utilising to no success from http://www.tutorio.com/tutorial/liquid-flash-layout


Code:
Stage.scaleMode = "noScale";

BG_MC._width = Stage.width;
BG_MC._height = Stage.height;

sizeListener = new Object();
sizeListener.onResize = function() {
BG_MC._x = Stage.width
BG_MC._y = Stage.height
BG_MC._width = Stage.width
};
Stage.addListener(sizeListener);
this is the outcome http://www.oconnellconstruction.co.n...hyde/main.html
visit portfolio and its catagories and resize your browser to get a idea of my dilemma.

Thank you

Full Browser
Hello,

please take a look at :
http://www.ildw.com/web/aikido/default.htm

I want to do the "full browser" set up. It looks like full browser in my screen resolution but when I change to 1280 x 1024 the full browser effect is not there.

the flash animation looks small and it doesn't full the browser. Why? am I doing something wrong? I used the swfobject2.1 and the css height:100% and so on.

Please tell me where to go from here I feel very disappointed.

Thanks.

Mauricio

Full Browser... Again.
I know this topic has probably been touched on many times, buit this is the first time I am trying it, and a search on the forums, did not really yield any results. Check out my attached file. The full browser part work when previewed in HTML, but it throws the registration of my movie clip totally off.

Full Browser ...
i wanted to add a fullscreen background picture, and then i wanted to be able to change the bitmap by pressing a button (to change the "mood" of the site)...

any help... or tutorials ...

Full Browser Mc
I know here are a million thread about "fullscreen slash"

But this is not the regular question.

I have to do a background swf that is loaded into another SWF (imagevuex.com). I want a MC in this background SWF to addapt the the browser size/resize .

Upto here is the regular
var newX = Math.floor((Stage.width - mc._width) / 2);
var newY = Math.floor((Stage.height - mc._height) / 2);


I've tried several script i found in different threads but they all make the main movie to behave crazy, they seem to be inteferring with the movies AS (lots of it).

It seem I cant use Stage.addListener({onResize:reposition}); because that's what moving the main movie.

Is there a simple
setProperty(_with,Stage.width);
or something like this?

Thanks in advance

Full Browser
Hello all. So i recently viewed a great tutorial at www.gotoandlearn.com on how to make a full browser flash movie.. I have a an AS question though that it didnt get into. This script makes a GIF tile fullscreen and makes an MC (instance named "cover") remain centered regardless of internet browser scaling.

import flash.display.BitmapData;

cover._x = Stage.width / 2;
cover._y = Stage.height / 2;

var tile:BitmapData = BitmapData.loadBitmap("tile");

function fillBG() {
this.beginBitmapFill(tile);
this.moveTo(0,0);
this.lineTo(Stage.width,0);
this.lineTo(Stage.width,Stage.height);
this.lineTo(0,Stage.height);
this.lineTo(0,0);
this.endFill();
}

fillBG();

var stageL:Object = new Object();
stageL.onResize = function() {
fillBG();
cover._x = Stage.width / 2;
cover._y = Stage.height / 2;
}

Stage.addListener(stageL);



Now I want to make a site using this full browser feature but when I start to build it and publish it..the website is always located at the top left corner of the screen. I cannot edit the publish settings b/c they are edited to make sure the full browser feature works.. ANyone have any ideas on how to make whatever I builld centered?

Help With Full Browser
Last edited by Stipd : 2005-06-24 at 16:44.
























Thanks for your help!

Full Browser Flv
i know people are getting sick of these questions, but i searched through past posts and didn't see anything like this.

i want a flv to fill the browser (using a similar method to lee's full browser flash tutorial, which i have watched). i am using this code:

Code:

Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
var timeline:MovieClip = this;
var _minW:Number = 320;
var _minH:Number = 240;

var video_container:MovieClip = timeline.attachMovie ('video_container', 'video_container', timeline.getNextHighestDepth ());

function onResize ()
{
    var scaleY:Number = Math.round (100 * (Stage.height) / _minH);
    var scaleX:Number = Math.round (100 * (Stage.width) / _minW);
   
    var scaleFactor:Number = Math.min (scaleY, scaleX);

    if (scaleFactor> 100) video_container._xscale = video_container._yscale = scaleFactor;

    video_container._x = Math.round ((Stage.width / 2) - (video_container._width / 2));
    video_container._y = Math.round ((Stage.height / 2) - (video_container._height / 2));
}

var connection_nc:NetConnection = new NetConnection ();
connection_nc.connect (null);
var stream_ns:NetStream = new NetStream (connection_nc);
video_container.my_video.attachVideo (stream_ns);
video_container.my_video.smoothing = true;
stream_ns.play ("haircut.flv");
stream_ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
     stream_ns.seek(0);
     stream_ns.play();
}
}


Stage.addListener (this);

onResize ();

it works perfectly as written. it scale the movie on resize perfectly and retains the proportions of the video. it doesnt fill the browser completely though when the proportions arent correct(leaving bars or the background color on the sides or top and bottom). i want it to scale proportionately, but fill the browser, so effectively some of the movie will be cut off. tons of people are doing this, and i just cant work it out. some help would be appreciated.

Full Browser
So I watched the "Full Browser Flash" tutorial but I have a different type of situation... What if I am wanting to use a unique background that isn't a pattern. I made a background for my flash movie but i'm not sure how to make it work to fit all the way across the browser no matter how big or small the browser is. Anyone have any ideas?

Thanks in advance!

-michro

Full Browser
Really basic question but I would like to know what the simplest way for a browser to maximise on entering a flash website..

Thanks

Jan

Flash Scrollbar Instead Of Browser Scrollbar
Hi all,

What I want to do is replace the browser scrollbar with a flash one when the flash movie is larger than the browser, and I'm using 100% sizes.

I've seen this done, and even when you manually resize the window, the scrollbar adjusts. Any ideas on this? Any tuts? Thanks.

Browser Scrollbar
Hi there

Im trying to find some scrollbar code that will scrollthe entire flash content within the browser window. Ive seen it on various websites lately. It basically acts like a normal browser scrollbar. There are loads of cool scrollbar FLAs on the site here but none seem to behave like Ive described

heres a link of what I mean - http://www.orange-project.com/#fashion_072

thanks very much for your help!

Help With Browser Scrollbar
I mean to do a scroll bar like in this Site

I have a flash movie set to 100% per 100%. It looks great on 1600 per 1200. at a 768 width ressolution it still works but i nee a scroll bar for the lengh.

Any tutorials on this matter?

Thanks

Browser Display Size Of Flash Movie / Need To Have Browser Match Movie Size
Hello,

I am having a problem getting my flash movies to come up in the broswer w/out any extra space around the movie. I have published all 3 ways out of flash, and even made may changes to the Dreamwever file with no luck.

Is it possible to have my movie pop up and the browser be 600x440 w/out extra background?

Please send help!

Thanks,

xcaliber_1

Full Screen Browser
Hi all plz is there anywah that i can creat a button
in flash & when ever anyone click on it
a new window will appear with Full Screen
that mean No menu bar & status bar
( there is nothing exapte ) the file that i add

Full Browser Size
Hello everyone!
I was just wondering how you make your flash movie on an html page become full browser size? Help would be much appreciated. Thank you all, and God Bless.
-Alessandra

Full Browser Window
I am about finished with my new Flash site, and I need help with inserting the Flash movie into a full screen browser window.

What I need help with is the code I insert onto the "Enter" button at the start page of the site. This button will need the code so it will take the user to a full screen browser window. No browser buttons or dividers on the sides of the browser. Completly full screen browser window so to speak.

Anyone have the code needed in order to make this happen? Any help is greatly appreciated!

Full Screen In Browser
Is there a way the get the width and heigt of an .swf in a web browser so that I can make mc scaleable with the web browser?

thaks in advance.

Full Browser Width
What do I have to do to get a flash movie to scale to whatever size the users web browser is set to edge to edge with absolutely no borders?

Please go to http://www.best-tkd.com and click the logo to enter the next page that opens it the problem child. Note how there is a thick white border on the South/East sides of the browser.

Full Screen/Browser Help
I know how to run a flash movie full screen, but is there a way so it just fills up the browser window, not the whole screen?
Thanks

Full Screen/Browser Help
How do you get a Flash movie to run full-screen in Flash MX?
Thanks

Full Browser Window
Silly question!! I've tried all the obvious ways, but can't seem to fill the whole browser window with my Flash movies. There always seesm to be a border (yes I've tried the 'No Borders' selection) but it doesn't seem to work.

How can I do it? - does anybody know?

Thanking you in advance - hopefully I can get this sorted once and for all.

Full Screen Browser?
Hi,

Anyone know if there's some actionscript that will make your swf file play full screen ina browser. I know you can do the fscommand for those people with the swplayer but can it be done with a browser (or is there a sneaky way round!!!

Cheers,

Full Screen Browser
does anyone know how to get your website to open up in full screen using flash mx like www.scantymusic.com ?

Full Window In Browser
hi,
i had upload my flash file on my server with full browser command, my problam is when i m going on my website it is open in small window not in full window. plz tell me

how i open swf file in full browser window?

Regards

Full Screen Using Browser..
Hello,
I want to make my swf full screen just like using flash player..
It's quiet difficult for me, make it full screen using browser..
how to do that?? it is possibe??

Full Browser In IE Vs Firefox
I have (finally) created my first full browser site...the strange thing is that it works fine in IE but in Firefox only the top third of the site can be seen...has anyone had the same problem???

The code on a frame of the main movie is:


Code:
Stage.scaleMode = "noScale";
Stage.addListener(stageListener);
stageListener.onResize = function() {
var stageXCenter = Stage.width*.5;
var stageYCenter = Stage.height*.5;
stageXCenter = stageXCenter-(myClip._width*.5);
stageYCenter = stageYCenter-(myClip._height*.5);
// place the clip with the offset
myClip._x = stageXCenter;
myClip._y = stageYCenter;
};
and on another frame I call an external swf:


Code:
loadMovieNum("scale3.swf", 1);
Can anyone explain this? Is there something extra I'm forgetting?

Thanks for any input!

Full Browser Function
I am currently making a interactive CD-Rom which I would like when loaded to pop up in full screen mode Can anyone boday give me any ideas to how I can do this?
Thanks

Full Browser Problems
I have made a swf with a stage object so that is is scaled to full browser. However, there is still a small "frame" around the swf, between the edge of the swf and the browser frame. Is there any way to get rid of this?

You can view it here:

http://dev.mcatsolutions.com/dmi

Thanks!

Full Browser Flash?
I know how to make a background stretch to 100% but how do you make movies stretch to 100%? If you take a look here:

http://73.ufc.com/

How do they get that bar along the botton to stretch all the way across regardless of your browser size?

Full Browser Flash With AS3?
I don't seem to be able to crack how to do this with action script 3 - Adobe/Macromedia semm to have changed how "Stage" works?

So how do you do full browser sites with AS 3?

Copyright © 2005-08 www.BigResource.com, All rights reserved