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




Browser Resize And Object Positioning



I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNGI'm using BulkLoader for all my loading needs. My dilemma is this:The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?
Code:
package port {import flash.display.*;import flash.events.*;import flash.media.*;import flash.net.*;import br.com.stimuli.loading.*;import caurina.transitions.*;public class Portfolio extends MovieClip {var loader : BulkLoader = new BulkLoader("main-site");var bgVideo : Video = new Video(737, 600);var rememberIcon : Bitmap = new Bitmap();public function Portfolio() {stage.align = StageAlign.TOP_LEFT;stage.scaleMode = StageScaleMode.NO_SCALE;this.stage.addEventListener(Event.RESIZE, resizeHandler);loader.add("background.flv", {type:"video", pausedAtStart:true});loader.add("iconRemember.png", {id:"remember"});loader.addEventListener(BulkLoader.COMPLETE, allLoaded);loader.start();}public function allLoaded(e:Event):void {bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);var bgNS:NetStream = loader.getNetStream("background.flv");bgVideo.attachNetStream(bgNS);bgVideo.smoothing = true;addChild(bgVideo);bgNS.resume(); var rememberIcon : Bitmap = loader.getBitmap("remember")rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);addChild(rememberIcon);}public function resizeHandler(event:Event):void { bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);}}}



FlashKit > Flash Help > Actionscript 3.0
Posted on: 05-14-2008, 03:34 PM


View Complete Forum Thread with Replies

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

Browser Resize And Object Positioning
I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNG

I'm using BulkLoader for all my loading needs. My dilemma is this:

The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?

Code:

package port {
   import flash.display.*;
   import flash.events.*;
   import flash.media.*;
   import flash.net.*;
   import br.com.stimuli.loading.*;
   import caurina.transitions.*;
   
   public class Portfolio extends MovieClip {
      
      var loader : BulkLoader = new BulkLoader("main-site");
      var bgVideo  : Video = new Video(737, 600);
      var rememberIcon : Bitmap = new Bitmap();
      
      public function Portfolio() {
         stage.align = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
         this.stage.addEventListener(Event.RESIZE, resizeHandler);
         
         loader.add("background.flv", {type:"video", pausedAtStart:true});
         loader.add("iconRemember.png", {id:"remember"});
         loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
         loader.start();
      }
      
      public function allLoaded(e:Event):void {
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         var bgNS:NetStream = loader.getNetStream("background.flv");
         bgVideo.attachNetStream(bgNS);
         bgVideo.smoothing = true;
         addChild(bgVideo);
         bgNS.resume();
         
         var rememberIcon : Bitmap = loader.getBitmap("remember")
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
         addChild(rememberIcon);
      }
      
      public function resizeHandler(event:Event):void {     
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
      }
   }
}

Mc Keeping Relative Positioning Depending On Browser Window Size/resize
hi, i'm redesigning my personal website and i'm trying to figure out how to keep certain objects (btns, mc, gfx) in a certain spot on the browser window and how to "animate" them moving to those positions when the window is resized. the best example i can find is this website (www.superfad.com). when the window is resized, objects move accordingly with sort of an smooth animation. also, how can i get one that doesn't animate (also on the same website with the smoke). i've looked a lot of different websites and forums and can't really find (maybe since i don't know how to ask the question in a search box). if someone can help me on this, it'll be greatly appreciated. thanks.

Object Movment On Browser Resize
Hello,

I was looking at the below site, and I noticed that when I resize the browser, objects in the SWF move around. I looked at the HTML code, and the embed tags have the hight and width of the SWF at 100%. Here is the site:

http://www.funktion12.com/

Does anyone know how this is done? Thanks!

SWF Resize On Browser Resize Causes Nav Buttons To No Longer Work.
Hello. I have a full browser width/height resizing swf. I can't figure out why, but the navigation rollover states no longer work after resizing the browser. My rollovers are handled by a button class linked to each nav button movie clip within the library. Other things of note. I am using the 3 frame AS3 preloading technique which holds all my assets in its own movie clip on frame 3.

My document class only really handles preloading. And a class for all my assets, acting as the "real" doc class is linked to that MC on frame 3.

Here is the URL to the problem:

http://spiritservices.mindgrabmedia.com/stmary/

Thanks in advance.

Resize Bg On Browser Resize While Maintaining Image Proporti
im using the following code to resize background images on browser resize:

Code:

var listener:Object = new Object()

bg_mc.width = Stage.width;
bg_mc.height = Stage.height;

listener.onResize = function(){

bg_mc.width = Stage.width;
bg_mc.height = Stage.height;

}
Stage.addListener(listener);


the problem i'm having is that my background image does not maintain proportion on resize. so, when i resize my browser to a width of 100px, the entire width of my background image is compressed into the 100px area.

is there some additional code i can add to the snippet above to maintain the proportions of my background image on resize?

thanks,
brandon

Positioning After Stage Resize
Hey there,
this might be a trivial question, but anyway: whatīs the best way to get all my elements correctly positioned again after changing the stageīs size? Iīd like to avoid having to reset each and every keyframe to its new x/y values manually if possible...
Thanks,
Toby

On Stage Resize, Resize Multiple Copies Of An Object Help
Hey everyone, I'm having some troubles figuring out the code for this. I have 12 button objects that are being created evenly across the stage, and I would like to have them resize on a stage resize event.

Here is my code so far:


Code:

//--------------------------------------
// CONSTRUCTOR
//--------------------------------------
public function BasicFullScreen(){

initVideo();
createButtons();
stage.addEventListener(Event.RESIZE, resizeHandler);

}


//Create Buttons
private function createButtons():void{

for(i==0;i<12;i++){
//trace(i);
button = new MovieClip();
button.graphics.beginFill(000000);
button.graphics.drawRect(0,0,(stage.stageWidth/30),(stage.stageHeight));
button.graphics.endFill();
button.x = (stage.stageWidth/12)*i+(stage.stageWidth/40);
button.y = 0;
button.alpha = .5;
addChild(button);

}

}

private function resizeHandler(event:Event):void {
//What to put in here?
}
I'm not sure what to put in the resizeHandler function to resize all the button objects.

Thanks for any help,

Matt

Flash Stage Resize And Positioning
I have a flash app located at

http://www.triniscene.com/tsv7/galleries/?page=flash

now I want the flash dimensions to set to any reasonable size dimension in the HTML...while the movie adapts to the Stage dimensions. The problem I am having seems to be a browser issue. While in IE the movie takes the upper left hand side...it doesn't in FF...

I have the stage set to Stage.scaleMode = 'noScale'; and then set the _x and _y to 0...

what is the issue with FF here and is there any work around?

Help With Positioning A Browser Pop-up Window
Not sure if this can be solved within flash itself but here's the question:

I'm housing my flash movie within a page created in dreamweaver. Before you get to this page there is another page created with dreamweaver just making sure they have the flash 6 player. anyway, how can i make the pop-up window position itself within the centre of the monitor/screen?

Any help will be appreciated greatly.

Image Positioning Different When Run Through Web Browser...
Hi,

www.bossmodels.com.au/main_full.html

When this loads .. it brings up a What's On screen with an image and a prev/next button to browse the images .. the images are rescaled and repositioned dynamically.

When I test the swf from flash, it positions them perfectly, when I run it through IE locally, it positions them perfecly..

If i run it through IE hosted on the server, it positions them *way* off! It's like the _x and _y of the image holder mc is suddenly changed completely when accessed through the server ..

Any ideas or suggestions??

Cheers,
Ben Lowry

Wierd Movie Positioning In Browser
Could someone please shed some light on this problem. I've created a
page with a flash gallery, and when I first visit the page, the
gallery displays fine. However when I refresh the page, (usually just
once, sometimes more), the gallery appears to the right hand side,
rather than in the middle where it should be, cutting off half of it. I've also seen this happen to a few more of my flash files.

http://www.northumbriahearingservices.co.uk/picu/i_events_zonzo.asp

What the hell is going on?


Thanks,


Chris.





























Edited: 06/19/2007 at 04:05:59 PM by buckerschris

Positioning A Movie Clip Within The Browser?
Is it possible with flash, to position a movie clip within the browser so that it is always in view? An example of what I'd like to learn would be on blockbuster.com, the MyQ box is always in view and initially the it starts in the middle of the page. As you scroll down, rather than the MyQ box being static, it starts scrolling down with the window so that is always in view. Is it possible to do this with flash and if so how is it done?

Xy Positioning Of Mc's With Reference To Browser Window
Hi all!

I have a big problem that I have researched and researched and cannot seem to find any comprehensive tutorials on it: Fullscreen x positioning of mc's.

I don't require a great deal of complexity (I assume) for what I am trying to achieve; so hopefully one of you heroes will be able to help me.

Basically all I want to do is position a mc 100px from the left edge of the screen regardless of browser window size, so that it doesn't matter whether or not you have your bookmarks open or what resolution your screen is: the mc is always at

x_ = 100

Equally I want to position a second mc 100px from the right hand side of the screen regardless

Please help I have run out of ideas for what to serch for on google and I am getting nothing!

Cheers

Tree73

Positioning _mc Relative To Browser Size
Hi hope you can help me?

I have a sliding dock utilizing a caurina tweener class however am having problems aligning it on the x y scale. I want it to be able to maintain it's respective position relative to the changing size of the screen. It seems like the x y variable here

var baseX:Number = 200;
var baseY:Number = 200;

keeps it static & I tried to place this code below to keep it's position relative to browser size but it only centers it. I tried playing around with the x y values but it only works bettween 1 & 2. Is there a way to align it to the bottom right of the screen that will adjust accordingly to browser size?


Code:

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

myListenerload = new Object ();
myListenerload.onResize = function () {

slidingdock_mc._x = Stage.width / 1;
slidingdock_mc._y = Stage.height / 1.5;

};
Stage.addListener (myListenerload);
myListenerload.onResize ();

As you can see I'm a newbie at all this so If I'm doing something worng here can someone point me in the right direction?


Thanks.

Positioning A Movie Clip In A Browser
Hi,

Is there any way of positioning a movieclip in relation to the internet browser that is playing it rather than the swf.

ie I would like an mc to be positioned in the far left of the browser rather that the swf (I am trying to use a full screen technique that I have found)

Like in this website: http://www.dnaadvertising.co.uk

The Lightbulb in the far top left is positioned in the same place no matter what the resolution of the screen is.

Thanks
J_Mo

Full Browser Flash Help With Positioning MC
So I've looked at Lee's tutorial and I can that working good but now I'm stuck. How do you place you movie clips in certain spots in the flash? (Someone else was asking the same question in theflashblog.com post)

For example how do I get a MC to be 100px from the top right and left? Or I want a MC to always be on the bottom and scale the width of the browser? (One of the example site I've seen is http://www.soleilnoir.net/ that people are in awww of)

I seen a lot of people asking similar questions so sorry if it's a repost. Thanks in advanced for the help :D

Positioning LoadMovieNum Object
Hi..

I have this problem where I should place the loaded video to a flash movie to a particular place. I have the line

loadMovieNum ("AnalogClock_4.swf", 1); and it works but it's located in the top-left corner.

How can I set the coordinates to that swf object?

thx

HELP Full Browser Flash - Dynamic Positioning
HELP!
I Want to do something like this:

http://www.easybit.it/flash2005/main.php?language=eng

or like

http://www.converse.com/index.asp?bhcp=1

I canīt do it , one bar always on top, another on bottom, and a movie always in the midle.
When browser resizes, everythings moves to place, how do they do it? ANYONE?
Can anyone help? Post FLA or explain the code, please. :'(
Thanks so much.

HELP Full Browser Flash - Dynamic Positioning
HELP!
I Want to do something like this:

http://www.easybit.it/flash2005/main.php?language=eng

or like

http://www.converse.com/index.asp?bhcp=1

I canīt do it , one bar always on top, another on bottom, and a movie always in the midle.
When browser resizes, everythings moves to place, how do they do it? ANYONE?
Can anyone help? Post a FLA or code please.
Thanks so much.

Ralative Positioning A Flash Object
Hi there.
I'm having a problem with positioning a flash object in my site.
The flash object is sitting inside a div element with a relative position. The problem is the flash object is sometimes placed inside the div and sometimes align to the left end of the browser. I think it gut something to do with the swf file loading duration (maybe loaded after the page is already displayed.
You can see an example here:
http://ledesign.co.il/?q=he/node/36
comparing to this
http://ledesign.co.il/?q=en/node/33
Have someone experience this kind of troubles before ? Any ideas how to fix that issue ?

Choosing The Point For Object Positioning?
Hello

In the property of each object, I can set the X and Y position.
This coordinate seems to be for the upper_left corner of the object.
Is it possible to apply the X and Y position to the bottom right corner (for example) ?

Thanks

gz

Intervals Using Relative Object Positioning?
Hey guys check this code out:


ActionScript Code:
function moveClip() {  if (myClip_mc._x < 400) {    // the _x value is less than 400, so increase _x by 1px,    // and let setInterval execute this function again    myClip_mc._x += 1; // move the clip 1 px to the right  } else {    // the _x value is greater than 400,     // so stop the setInterval from executing anymore    clearInterval(myInterval);  } // end "if myClip_mc._x < 400"  } // end moveClip()// do this when "myButton_btn" is clickedmyButton_btn.onPress = function() {  // execute the "moveClip" function every 10 milliseconds  myInterval = setInterval(moveClip, 5);} // end myButton_btn.onPress()  


I was wondering, is there a way to change if (myClip_mc._x < 400) { to a relative position of myClip_mc.
I mean, i want myClip_mc to move 100px from it's current position everytime the button is clicked. Instead of only moving it
if it's x position is less than 400.
So it needs to somehow check it's current position everytime the button is clicked and then make it shift from that position.

I know this is a long winded way of doing it but i want it this way so i can use it for something different.

Any ideas?

Absolute Positioning Flash Object
Can a flash object be absolutely or relatively positioned in html page? Can I use z-index with it?

Positioning & Function Issue With Full Browser Flash
Hi everyone, I'm having an issue with getting external .swf's to load and position properly in my full browser flash site. I used a template I created for an XML slideshow which worked perfectly, but now the positioning and stage listener doesn't seem to work properly.

Here is the AS in frame one of the stage. Content is to be externally loaded into an MC called "container". The problem is, the container is not showing up initially until I resize the browser or .swf window, and when it does show up, the registration point is all wrong. I put the loadMovie script on a button since it was not loading at all with a simple loadMovie script on a keyframe. This seems to load the movie properly, but once it's loaded, not only is it positioned to the bottom right of the screen, it doesn't move at all when I resize the browser!

Any help is much appreciated.

Thanks!


ActionScript Code:
/////////////// Full Browser Control//no scalestop();Stage.scaleMode = "noScale";Stage.align = "LT";//white background centeredwhiteBackground_mc._y = Stage.height/2;whiteBackground_mc._x = Stage.width/2;//bottom nav centeredbottomBar_mc._y = Math.floor(Stage.height); bottomBar_mc._x = 0;//container centeredcontainer._x= Math.round(Stage.width/2 - this._width/2);container._y= Math.round(Stage.height/2 - this._height/2);//EM logo top leftbadge_mc._x= 0;badge_mc._y= 0;//counter bottom rightcounter._x= Math.floor(Stage.width);counter._y= Math.floor(Stage.height);whiteBackground_mc.onResize = function() {// white background is always centeredthis._y = Stage.height/2;this._x = Stage.width/2;};Stage.addListener(whiteBackground_mc);//container.onResize = function() {// main content is always centeredthis._y = Math.round(Stage.height/2 - this._height/2);this._x = Math.round(Stage.width/2 - this._width/2);};Stage.addListener(container);bottomBar_mc.onResize = function() {this._y = Math.floor(Stage.height); this._x = 0;};Stage.addListener(bottomBar_mc);badge_mc.onResize = function() {this._y = 0; this._x = 0;};Stage.addListener(badge_mc);counter.onResize = function() {this._y = Math.floor(Stage.height); this._x = Math.floor(Stage.width);};Stage.addListener(counter);


AS for a button to load for testing purposes.


ActionScript Code:
on (release) {        _root.container.loadMovie("mockup.swf");}

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

Stage Object Movie Positioning In Corner
hello,

does anyone have any advice on this. I am trying to make it so that when a fullscreen movie loads a movie clip is positioned in the top left corner of the full screen flash site.
This code is on the first frame of my flash movie.

It works when i resize the window but not when the movie loads for the first time in an existing window. meaning some poeple cannot see the menu bar .
does this code work on all browsers?

ActionScript Code:
fscommand("allowscale", "false");
Stage.scaleMode = "showALL";
Stage.originalWidth = Stage.Width;
Stage.originalHeight = Stage.Height;
Stage.scaleMode = "noScale";
Stage.getLeft = function() {
    return -1*(this.width-this.originalWidth)/2;
};
Stage.getTop = function() {
    return -1*(this.height-this.originalHeight)/2;
};
Stage.addListener(titleblocknav);
Stage.addListener(preloader);
titleblocknav.onResize = function() {
    this._x = Stage.getLeft()+50;
    this._y = Stage.getTop()+25;
};
preloader.onResize = function() {
    this._x = Stage.getLeft()+330;
    this._y = Stage.getTop()+48;
};

can anyone spot any mistakes?

Thanks

Michael

Positioning Objects, And Object Registration Coordinates.
Thanks for taking the time to read my query.

Here's my problem...

I import png's to my library, and align everything in place where I desire it to be on the mainstage. Next, I distribute each object to it's own respective layer - each object maintaining it's respective X and Y coordinates. I then create a new movie clip, cutting the objects and from the main-stage area, pasting them into the new movie clip. Once I setup my tweening, alpha level etc, I have a perfectly working movie clip that I then place in a single frame of the timeline on the mainstage area.

However, when I preview the animation, the movie clip inside the single frame of the main timeline is not positioned in the center of the stage, but elsewhere resulting in the movie being clipped.

Logically, it would make sense that the original alignment established in setting up the main stage would remain consistent when cut and pasted "in place" to a new movieclip, sadly that's not the case. Instead of the boundaries of the main stage remaining visible when editing a movie, they disappear and the positional coordinates of the content become subjective (or so it appears).

I really have no idea how to fully explain it, but it seems like flash wasn't designed to have things done in a logical manner, but adheres to a system that has become familiar over time, which requires the users to learn to adapt to that system. There seems to be virtually no documentation that I've been able to find that explains the details of "registration" in a clear and concise manner.

Any helps would be great appreciated.

Thanks.

Resize To Browser
How do you have a movie created in Swish2 resize as the browser window changes sizes? I saw this last night but I did not save the url. Thanks.

Resize Browser
Hi.

I just need source on how to make flash send a function to java in the browser.
Say I press a button in flash it will make the browser change in size....


Ive done this before but lost my source files... can anyone help me??

Resize Browser
hello...
how do you make the content resize in flash depending on the size of the window browser???

thanks for your help

SWF Resize In Browser
Is there a way to resize your swf so it stretches full screen horizontally but not vertically?

Browser Resize
Hi,
i'm trying to have this effect take place on my site:
http://www.hairheroes.com/
The site resizes to fit the users screen size exactly.
Any suggestion on how to do this? Javascript?
Thanks!

Resize To Fit Browser
Hello,

is there a way to make Flash movie "fit to any browser window"? If possible i would like the whole movie to fit the window. But Primerily i would like to know how to keep my navation which is at the bottom stay at the bottom.

Any ideas? Is this possible?

HUGE THANKS in advance!


Matt

Resize Browser To SWF?
Does anyone know how to do this??

I'm working on a site that I want the browser to "hug" around the flash swf as one of the images bleeds off to the right. (I don't want to use as a pop up).

Make any sense...?

Here is my site

Any help with this would be great!

Thanks,

Jayjavascript:smilie('')

Resize Swf When Browser Is Resized
can i resize the contents of framset when browser is resized??


im not sure this can be done....i have 3 frames in .html and in left frame i have this swf
can i make it resize when browser is resized by user or frames have a fixed width??

Resize Movie To Fit Browser
How can I make my flash movie resize itself to fit a browser window? You know, some use 1024 x 768 and some use 800 x 600, Is there a way to do this automatic so I don't have to make the same movie twice and it can be viewed in its largest form for everyone?

Resize Browser Window
Please Help

i want to resize a browser window how do i do that??

Pop-up Browser Window And Resize
I'm using flash mx-

There are plenty of ways to resize a pop-up window using javascript. I'm looking for a way to call or input the script in flash mx...

Here's what I'm wanting to do....

on this page- www.integritypoolstx.com (gallery page)

I want the user to be able to click on the thumbnails for a larger image. I want the larger image (440x295) to come up in a window that is 440x295. No adress bar, status bar, scroll,... nothing- just a window for ther picture... and resize

can any one help me with this prob. I know it has got to be simple!!

Thank in advance!

Allowing SWF To Resize In Browser
Hello,
When I publish a SWF with the properties of Width="100% Height="100%" it scales within the browser by itself, however when I try to take the SWF and place it within a TABLE <TD> with a Width="100%" and a Height="100%" the SWF does not appear.

The page I am try to create is fluid depending on the user's browser resolution and I was hoping to keep the Flash fluid so it gets bigger and smaller with the user's browser.

My current SWF is 400x300 4:3 Ratio...

Thanks!

Resize To Fit Browser Window? 'elp
Hello Flash Munkees

I'm sure this must be very simple and I'm missing something but can someone give me a hand please

I have put up a site for a friend and he's happy with it but unfortunately he's viewing it on a 17" monitor and say's it doesn't all fit on. I produced it on a 19".

Is there an action script that I can use in the first frame to resize automatically to the viewers screen????

Many thanks for any replies in advance.

A

Resize Browser Window
I have a link in my flash movie that would open another movie. I was loading it into another movieclip, but that was causing problems, so now I want to open it in an entirely new browser window that is sized to match the swf

I was using:

on (release) {
getURL ("java script:NewWindow=window.open('http://page. htm','newWin','width=500,height=400,left=0,top=0,t
oolbar=No,location=No,scrollbars=Yes,status=No,res
izable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

but on both ie and mozilla firefox the window wasnt resized and the swf wasnt playing. I would apreciate if some one could point out my stupidity, and give me a hand.

Stage, Browser Resize?
Hi i've set up a web page to display what i want to do...
http://www.designbykrust.com/asd.html

basically. i'm using the following script... it does everything i want it to do except allow the menu object to move with the browser window (it does move, but it just jumps after each time i resize the window). i also need it to stop when it gets to a certain point but i dont know how to script this. can you help?

Stage.align = "TL";
Stage.scaleMode = "noscale";
//
Menu.onEnterFrame = function() {
this._x = Math.round(Stage.width-400);
this._y = 25;
};
Stage.addListener(Menu);



cheers.
krustafarian@hotmail.com

Resize Browser Window
So I've gotten my browser window to resize after it loads, but how can I have it open the same size with no scroll bars, regardless of whose machine or browser the user is operating?

www.twotimesdaily.com

- Mike

Getting Swf To Auto Resize In Browser
I am building a website with MX. I was told that swf files would automatically
resize themselves to fit within the browser
This is apparently not the case.
Dose anyone know how to make the swf files do this? is there a way to embed this behavior before the swf is published? Colud teh problem be on my index page? That page is an HTML file. ther rest of the site are swf.
thanks.

www.mosleystuff.com here is the site so you can see what I am mean.

Text Box Browser Resize?
Hi there

I have created a dynamic text field in flash,(which is nice)... but when i preview the text field in a web browser and resize the browser the text filed does not scale with it?? This may not be possible?!? but if it is can you help me and tell me how i do it please?

thanks

Stage Resize On Browser
I have built my site to 800 x 600, which looks pretty good on monitors set at 1024 x 768 or better. There's still a few people out there with lower settings though. My goal is to have the site resize smaller if the browser window is smaller, but not increase in scale above the dimensions of the original size of 800 x 600.

I got a new book with my purchase of Flash 8. Gave me code to do just this. But as simple as it is, I can't get it to work. Thinking there's something I need to include in the html file maybe? I dunno, but here's what I'm working with in a test movie with a stage size of 550 x 400:

var Bozo:Object = new Object();

Bozo.onResize = function(){
if (Stage.height < 399 || Stage.width < 549){
Stage.align = "C";
_root._xscale = Math.min(Stage.width, Stage.height) / 550 * 100;
_root._yscale = Math.min(Stage.width, Stage.height) / 400 * 100;
}
};

Stage.addListener(Bozo);


any help on the matter would be greatly appreciated

Resize Browser From Flash?
Hė u all,
I really would like to change/resize the browser dimentions from flash when a object for example is bouncing on it, the problem is that I have no idea how this could work, and what to search...
please help!!!

salta

Browser Auto Resize Itself
how a browser automatically resize itself, once visitors type in the link ? and no rescale allowed.
i know the way to open a fixed size pop up window, but i haven't seen any tutorial about auto-resize browser ?

Browser Auto Resize Itself
how a browser automatically resize itself, once visitors type in the link ? and no rescale allowed.
i know the way to open a fixed size pop up window, but i haven't seen any tutorial about auto-resize browser ?

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