Why O Why O Why.. Reszing My Flash Movie When Browser Resizes..
Why does my Flash movie not resize when the browser resizes. I used DreamWeaver to export it, and I have no borders, or I set then to 0; It only center when viewed on 1280x1024 which is the size of the movie, but when view on a smaller screen u had to scroll to center it.. Trully bother some can anyone help me..
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-17-2005, 07:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Scrollbar That Resizes To Browser Window
Hi
Can anyone help me create a scrollbar in flash that would resize to the browser window. Below is part of the script I have. thanks
txt.setMask(mask)
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {
var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}
}
Reszing A Movie
Hi guys
I'm bringing in images from external files into a movie clip.
But i also want to add zoom in and out on the images and also drag the image around within the movie clip.
I'm a newbie and need a tutorial. Any one seen one for this.
I did a search but have not found what i needed...im crap at searching lol
Thanks guys
Browser Resizes Swf
Hi people,
When i create a flash file, i specify the canvas size in pixels.
E.g http://www.carltaylor.eu/ex.swf
On this one i set the size to 433 x 219 pixels, why has it increased?
Thanks,
Carl
SWF Resizes Itself To Fit Your Browser Window
How do they do it? Best example would be at http://www.thefwa.com/ - where the thumbnails get reorganized into additional columns if you expand your browser window. Is this a ticky thing to accomplish?
Thanks!
dk
Bar That Resizes To The Edge Of Browser.
How can i make a Bar that resizes to the edge of browser. For example, the following site has a bar at the bottom that streches and reisze to the edge of my browser. Also the dotted line that is behind the menu adjusts itself.
http://www.elan-yachting.com/macc.as...thid=&lang=eng
Thanks for any help !
Scroller Resize When Browser Resizes Please Help
Please does anyone know what I'm missing? I need when the browser resizes to resize the scroller bar and mask also, I have got it to that stage it works fine when you resize the swf but when its embedded in a browser like explorer and you resize the browser the swf and scroller will not resize.
What I'm trying to achieve is something like this:
http://www.createthe.com
My script is this:
Stage.align = "LT";
// prevent the Flash movie from resizing when the browser window changes size.
Stage.scaleMode = "noScale";
// create a listener object
stageListener = new Object();
// add a methods for it to do certain things when the Stage is resized by our user
stageListener.onResize = function() {
scroller_ex();
}
Stage.addListener(stageListener);
scroller_ex = function() {
_root.body_txt.theMask._height = Stage.height - _root.body_txt.theMask._y - 10;
}
Heres the page
http://www.invert.com.au/proto/invertmain.html
and fla
http://www.invert.com.au/proto/invertmain.fla
Any Ideas thanks guys and gals
Creating A File That Resizes With The Browser
I've been asked to create an effect similar to this: http://www.scottmorganstudio.com.
Note how the image in the background always fills the browser window and always stays in proper aspect ratio with cropping as necessary, but the text on top of it floats over the image depending on how big the window is and the size of the text does not change.
I've been able to manage most of this. I can get my image to resize in the browser window to always fill it completely and crop as necessary. But the type that I want to place over the image also resizes, which I don't want it to do. I've done this by creating a custom class, which I've attached, and then setting the size of the swf file on the page at 100%.
Any advice, help or suggestions as to how I can create a .swf file where ONLY the background expands but the rest of the content stays the same size would be greatly appreciated. Thank you very much.
Attach Code
package {
import flash.display.Stage;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
public class MyStage extends Sprite {
private var _mc:Sprite;
private var mcStage:Stage;
public function MyStage(_mc:Sprite){
trace("MyStage is working.");
this._mc = _mc;
mcStage = _mc.stage;
addStageListener();
}
public function addStageListener() {
mcStage.scaleMode = StageScaleMode.NO_BORDER;
mcStage.align = StageAlign.TOP_LEFT;
mcStage.addEventListener(Event.RESIZE, resizeHandler);
}
private function resizeHandler(event:Event):void {
trace("stageWidth: "+mcStage.stageWidth);
trace("stageHeight: "+mcStage.stageHeight);
_mc.x = mcStage.stageWidth/2;
_mc.y = mcStage.stageHeight/2;
_mc.scaleX = mcStage.stageWidth;
_mc.scaleY = mcStage.stageHeight;
}
}
}
Movieclip Resizes Outside Browser Boundaries...[AS2, FL8/9, CS3]
hello all,
the following code makes the box come up correctly, however when i resize the browser, it seems to calculate based on the previous stage size not the current one.
if you open the swf and make the browser very wide and not so tall, it runs off the top and bottom. can anyone mod the math/code to keep the proportions the same and always stay in the browser?
thanks for any help
-a
Code:
#include "mc_tween2.as"
Stage.align = "TL";
Stage.scaleMode = "noScale";
var sw:Number = Stage.width;
var sh:Number = Stage.height;
mcDvpane._width = sw-100;
mcDvpane._height = mcDvpane._width*.618;
mcDvpane._x = sw/2;
mcDvpane._y = sh/2;
var stageListner:Object = new Object();
stageListner.onResize = function() {
mcDvpane.tween("_width",Stage.width-100,0.75,"easeOutQuart");
mcDvpane.tween("_height",(Stage.width-100)*.618,0.75,"easeOutQuart");
mcDvpane.tween("_x",Stage.width/2,0.75,"easeOutQuart");
mcDvpane.tween("_y",Stage.height/2,0.75,"easeOutQuart");
};
Stage.addListener(stageListner);
Movieclip Resizes To Width/height Of Browser
Hello
I have a Fla with many movieclips arranged on it. I've figured out how to reposition them dynamically in AS 2 using a listener (i.e. nav stays at bottom, main content in center regardless of user changing window size, etc.).
Now I want to add another movieclip ("vid_bg" is the instance name) which always resizes to be the width and height of the browser. Think of it as a movieclip background under the other content that stretches to fill the browser.
Is there some code I can add to the function portion to make it resize just the one movieclip (but not the others) to 100% width and 100% height of browser. Thx for any help!
Here's what I'm using for the non resizing movieclips:
function itemsalign() {
container_bg._x = Stage.width / 2 - 1280;
container_bg._y = Stage.height / 2 - 402;
container_popwelcome._x = Stage.width / 2 - 360;
container_popwelcome._y = Stage.height / 2 - 280;
container_main._x = Stage.width / 2 - 450;
container_main._y = Stage.height / 2 - 225;
container_portfolio_bg._x = Stage.width / 2 - 450;
container_portfolio_bg._y = Stage.height / 2 - 225;
container_art._x = Stage.width / 2 - 450;
container_art._y = Stage.height / 2 - 225;
container_bottom._x = Stage.width / 2 - 450;
container_bottom._y = Stage.height-120;
container_top._x = Stage.width / 2 - 450;
container_top._y = "0";
}
itemsalign();
var stageListener1:Object = new Object();
stageListener1.onResize = function() {
itemsalign();
}
Stage.addListener(stageListener1);
Background Image Resizes To Browser Window
Basically I want the background to resize but not my content on the page.
As you resize your browser window the background image resize proportionally. The content on the page does not resize however, it stays fixed. Also when you reach a certian size the background stops adjusting and the browser give you scroll bars.
I've seen this done at
http://www.lessrain.com/
Now I would like to know how it is done. I'm pretty new to flash so the more help the better!
Thanks!
Button Hitstates Move When Browser Resizes
Hi,
I've built a site with container movie clip with buttons and empty movie clip that loads external swfs.
More importantly: the buttons are movie clips with invisible button-hitstates (pretty much like these: http://www.macromedia.com/cfusion/kn...fm?id=tn_12632)
The problem I have is that when the browser is resized or is not at its maximum size, the hitstates move upwards...Everythign else remains fine, and views normally, I've also included the [ fscommand("allowscale", "false"); ] in the first keyframe after the preloader...
Wondering if there is a way to fix this...
Thanks in advanced
Jo
Help, With Reszing
hey guys. ive searched the forums and google and ive learned about a code that can detect the size of the users monitor resolution and i was wonder is there nething i can code so that my swf will detect the users monitor resolution and resize everything to fit? i know aout the System. option but how would i make it resize to fit the screen.
and remember this is just a plain swf not a html page
thanks
Help, With Reszing
hey guys. ive searched the forums and google and ive learned about a code that can detect the size of the users monitor resolution and i was wonder is there nething i can code so that my swf will detect the users monitor resolution and resize everything to fit? i know aout the System. option but how would i make it resize to fit the screen.
and remember this is just a plain swf not a html page
thanks
Movie Resizes Itself...
My swf file resizes itself when I put it on the web and click a button that loads text from an external text file. I have absolutely no idea why this is happening either and I'm hoping some wise person will be able to help me out. This is the code I'm using on my button to load the text file.
Code:
about_hot.onRelease = function() {
if (selectedButton != 1) {
selectedButton = 1;
_parent.screenflicker_mc.gotoAndPlay("flicker");
_parent.sub_hold.attachMovie("about_sub", "about_in", 30);
loadVariables("about1.txt", _parent.sub_hold.about_in.textbox);
if (Number(test) == 1) {
test = 0;
} else {
test = 1;
}
}
};
The bold is the code i use for the text. I'm loading an MC into another MC, which works perfectly, except the movie gets resized from fitting the browser 100% to the actual size of the movie (955x600).
Any help would be GREATLY appreciated, this is really freaking me out!!
Help. Movie Resizes To Fit Everything.
The flash animation I'm making has basic text that flies in. While all this is happening, I have a background image. When I publish (or test movie), then it's like the whole movie gets resized to fit on the stage. This may be a very obvious problem, but has boggled me for a long time. If anyone could be of help that would be great. Thanks.
*Also, if you want to throw in the answer to this question: I've seen before people having 3d objects and an entire 3d scene in their movies, and was wondering how that is done? Plugin? If you want, you can give me the short version. Thanks.
Seeking Flash Image Gallery That Resizes Movie To Fit Image Dimensions
I am looking for a flash gallery that resizes the movie dimensions to fit the width and height of the image in real-time. Alternatively, the movie does not display a background color or border. I've used slideshowpro and it's feasible ...just looking for another suggestion. Prefer xml-based.
Change The Way A Movie Clip Resizes
I'm trying to write a script for a scrolling photo strip that increases the size of a picture, by 1.5 times on mouse over. Now, my resize code works and here is the code I wrote for a single image:
ActionScript Code:
colette1.addEventListener(MouseEvent.MOUSE_OVER, resizeColette1One);
function resizeColette1One(event:MouseEvent):void {
colette1.width = colette1.width * 1.5;
colette1.height = colette1.height * 1.5;
}
colette1.addEventListener(MouseEvent.MOUSE_OUT, resizeColette1Two);
function resizeColette1Two(event:MouseEvent):void {
colette1.width = colette1.width / 1.5;
colette1.height = colette1.height / 1.5;
}
The problem is, when the movie clip of the picture gets bigger, It expands downward. I want it to expand upward. How do I made it do this?
Thanks=)
Laoding Swf Into A Empty Movie Clip So It Resizes
I am creating a personal website in Flash MX 2004. I have a page to display animations I have created. I have buttons on one side, and a framed window on the other. I would like to load the swf files into the famed window movie clip on the other side when you click on the button. I would like the swf files to resize to the size of the movie clip. How can I set action scripting so that it checks and resizes as needed.
Thanks
[F8] External SWF Resizes Main Movie In HTML
Hi,
I have a working movie that uses an external swf; however, when the external swf is loaded and the html is set to width="100%" height="100%" the main movies resizes (gets smaller). Does anyone know how to get around this?
Thanks
Blingblaugh
Loaded Movie Resizes Stage, Urgent
I have a .swf which loads another .swf. In the second .swf there is code which expands it to the size of the stage. However, I want to put a wrapper around it so I don't want the second .swf to fill up the stage. I don't have access to the code in the second .swf. Is there any way I can set a width/height on the second .swf or resize the stage to make it bigger creating room? I have searched everywhere and so far nothing has worked. Any help would be greatly appreciated, thanks.
Text Resizes When MC Resizes?
I have a generic MC with a dynamic textfield in it. When I use 2 instances of this MC on the main stage and resize one of them to be longer, that MC's textfield also gets bigger. When I make the MC shorter the text field gets smaller.
Is there a way to make it so the textfield stays the same size no matter if I change the length of the MC?
Here's a file if it helps.
Flash Resizes Images Without Asking
I import images to the library. When I drag an image out or update the image with another image, the instances of the image in the scene are replaced and automatically re-sized to be smaller. I can go into the properties and change the image size. My problem is when it comes to templates that I buy online and try to change. The same problem exists. Because I don't know where to find the actual part of the movie where the picture sits, I just update each file through the library. Once I replace all the files though, the displayed image sizes on all the images in the Flash change. How can I prevent this?
You can see an example of this at: www.bellissimahairandskin.com and clicking "Home Page"
The images in the "Salon Gallery" section are what are giving me the problem.
Flash Site Automatically Resizes According To....
Hello all -
I was wondering if there is a way to have a flash mov detect a monitor's resolution/settings and automatically resize accordingly? Right now I have a site that is a little too large for some cpu's....I guess it is possible to add some javadcript to resize the .swf when prompted to, but is there anything out there that will do it automatically? Or is this just a really dumb question....
THanks!!
-Mark
Flash Banner Resizes On RollOver?
Hey everyone
I have seen on a couple of sites, that they have a little flash banner, and when you roll the mouse over it, it gets bigger, kind of floating over the normal html-site.
Other sites do kind of the same thing (like www.tdconline.dk - press the menu button on the top). When you press the menu button, a whole flash movie rolls out on the top of the screen without affecting the normal html.
How do they do this?
- Rune
Full Flash Site That Resizes
Hi there, would appreciate any help on the following. I've seen this before but, typically, can't remember where.
I've been designing websites for a while now but have never done one completely in flash with no html before. The site is going to have a big static image as a background that needs to fill the entire screen with a content area on top for the actual website.
The big background area needs to resize dynamically to fit any resolution but the content area needs to stay the same size. I sort of managed to get something similar by using fscommands (fullscreen and allowscale) but the problem is that once you embed that .swf into an html file to publish it, it can resize fine to bigger resolutions, but if the screen resolution is smaller than your specified .swf size (i used 1024 by 768 and tried it out on 800 by 600) then the scrollbars on all sides appear in the web browser...
I need a way for that flash file to not only be able to resize up to bigger resolutions... but down to smaller resolutions too.
Wow I hope that made sense ...
Anybody with any help would b greatly appreciated!
Flash 9 FLV Exporter Resizes Video
Can anyone offer any suggestions on how to resolve an issue exporting HDV video from Final Cut Pro to FLV?
The FLV exporter seems to be doing an non-square pixels to square pixels 'squish' every time. HDV source is at 1440x1080 and I'm using the video resize tab in the Flash 9 FLV exporter to export to 360x270 and 720x540 files respectively.
Windows Media exporter works perfectly at whatever resolution it is told to output.
Any ideas?
TIA
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
Flash Popup Window Which Popsup When The Page Loads And Then Resizes Itself And Fit..
Hi !
u are the only source of flash for me and i know this is a piece of cake for u guyz cos now adays every website is having this
flash popup window which popsup when the page loads amd then resizs itself and fit at a specified location on the webpage.
some site using this popups:
http://flipcorp.com/creatives/meBANK...ter/index.html
www.ctc-bahrain.com
www.rediff.com this one has the flsh popup resizing on the top left side (if u cant see please keep refreshing as it is random)
please help me out or i will never learn this
thanks
bye
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?
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Any Way To Activate Flash Fullscreen Mode When Flash Movie Loads In The Browser
Hi all,
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks.
I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
button.onRelease=function()
{
goFullScreen();
}
thanks in advance,
Vikas.
Any Way To Activate Flash Fullscreen Mode When Flash Movie Loads In The Browser
Hi all,
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks.
I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
button.onRelease=function()
{
goFullScreen();
}
thanks in advance,
Vikas.
Shaking The Browser While In Flash Movie
I have done the tutorial on shaking the browser and can make it shake by coding HTML. But what I REALLY need is to be able to shake it in a specific frame. The tutorial's command DOESN'T work........CAN ANYBODY TELL ME WHAT DOES???
(I will be EXTREMELY happy if you could help me out)
Cheers.
Flash Movie Dimensions From Browser?
Is there a way to get the dimensions of the flash movie from the browser? Eg. if i set the flash movie to appear as 100% by 100% in the browser can i get the dimensions that it actually shows up as in flash? I want to use these dimensions to movie stuff around based on the size of the window.
Thanks
Browser Free Flash Movie?
Hello,
I'm sorry if this question has been asked before, but Could someone direct me to a tutorial on how to open your site without the browser around it, like at http://www.biglime.com
I have searched the tutorials section, but I'm not exactly sure what this technique is even called..
thanks.
Flash Movie Won't Center In Browser.
Another fairly basic problem ... but I can't get my Flash site to center in the browser window.
My 'publishing settings' (in Flash) are set to define size by actual pixels; HTML alignment is set to "default" and Flash alignment is set to "centered," both horiztonally and vertically.
The dimensions are 700x400 and my monitor is 1024x768. I open the movie in my browser and it always appears in the upper lefthand corner.
I've tried playing with different settings, and I've even edited the html file in Dreamweaver to specify "absolute center" as the desired browser alignment. This has no effect.
What am I overlooking?
K
How Can I Center In My Flash Movie In The Browser?
How can I center in my flash movie in the browser? Similar to the way 2Advanced is setup.. is that using a table or maybe frames?
I am trying to use DreamWeaver to do this. Or is 2Advanced a popup? I dont want to do a popup.. because you have to have an intro page before the popup.
Any ideas?
thanks
.fe.
Flash Movie Not Right Size In Browser
Hi
Could someone please explain why my movie clip shows up almost 10x smaller in my browser than the size I actually created it in flash. I am embedding the movie into a table cell. I also need it centered on the page, its currently coming up on the far left.
I would also like the background of the movie to be transparent so that is does not cover the background image of my table. I found this code (below) on someone elses post - does it work, if so, where does it go?
<param name="wmode" value="transparent">
Could anyone help?
Thanks in advance
Fitting Flash Movie Into Browser
Does anyone know what the conversion table is for fitting a flash movie into the browser? I made a full flash website at 800x600 thinking it could stretch nicely to fit 800x600 or even 1024x768, but i forgot all about the IE/NS menu (forward button, refresh button etc), so my flash is now actually too big.
It's ok cuz it was just a test page, so i don't need to know how to make that one fit, but for future websites i'm guessing i should make it something like 800x550 to actually fit?
So to make a long story even longer:
Can anyone tell me how to make flash fit the browser with menu OR how to open it in a NEW window that doesn't have a menu? (i've seen that a few times but i don't know how hard that is to do for a n00b like me)
Thanx in advance for any help!
Allow Scale For My Flash Movie In Browser
I am using Flash 5
i have three options when publishing my movie for scaling, they are:
default (show all)
no borders
exact fit
which of these will scale my movie to fit in browser window. I dont seem to get it to work via any of these. I would like it so users viewing on laptops dont have to scroll to view entire movie, but users on large screens can see larger version.
thanks for your help
Cesca
Important question:
Can a movie be scaled down from its original size, or only up?
? PLEASE HELP :flash Movie In MacIntosh Browser
I've made a shockwave movie and published at this URL : "http://www.artisticlubtigi.it/private/index.html"
Why is not visible on the MacIntosh browsers, while it's perfectly working on the PC's browsers ?
The server where's been published is an "APACHE WEB SERVER"
Can u please give me an help ???
Thanks in advance
Eduardo
New Browser Window From Flash Movie
Can anyone tell me how to make a new browser window appear by pressing a button in a flash movie?
I'm doing a flash site for a photographer and the images are around 300px high. I'd like to have a larger version appear in a new browser window (presumably, one just large enough for the image) when the viewer clicks the 300px version.
I thank you for any help.
dixter
Movie And Browser Sizing In Flash MX
How do I create my movies to fit exactly into my browser window, i.e. if I create a movie with blue or imaged background how can I get rid of the white border around it? I'm a beginner so please excuse my ignorance.
Centering A Flash Movie In The Browser
Hi - can anyone tell me how I can set a flash movie to display in absolute centre in a web browser? I need to centre one both horizontally and vertically.
I have managed to centre one horizontally in dreamweaver, by using the centre paragraph button, but am unable to set it to complete centre on screen.
Any ideas?
Flash Movie Does Not Work In Browser
Hi,
I produced a flash .swf from a Keynote presentation. I installed this in my Dreamweaver page. I preview and it works fine!! But, once I upload the page (I have uploaded the html., the .swf, the java script and css, the flash movie will not start, or in any form show, just blank!
I have checked that the files are in the same directory, both on my computer and on my server.
Please please help!!!
thanks
|