How To Keep Swf Remain In Middle When Window Resize
Hi
I am totally new to flash & dreamweaver.
Now I created a swf file and insert it into dreamweaver and publish it to my website. How can I keep the swf in the middle of screen no matter what the window size is?
Thanks for your help.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 09-24-2007, 10:40 PM
View Complete Forum Thread with Replies
Sponsored Links:
How To Position My Flash In The Middle Of The Window?
Hi, could you please teach me how to position my flash movie right in the middle of the window (vertically and horizontally centered) please?
I inserted this under the <body> tag
<table width="100%" height="100%" align="center" valign="middle" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="100%" align="center" valign="middle">
It is now horizontallly centered, but not vertically.
Thank you in advance for helping me out.
Regards,
Hedi
View Replies !
View Related
Window Resize
I'm going mad here! - I know this is probably really simple but i have a flash movie and i want the links to pop up in a new window of a defined size - i also want to turn off resize and get rid of the toolbar and scrollbar.
If anyone can help me Id be really grateful! :-)
Thanks - Dan (dan@introspection.f2s.com
View Replies !
View Related
Window Resize?
hi!
I need a script who attached to a button can open a window for me with the specified dimensions, no command bars, and at a specific position on screen.. any ideeas?
THNX!
View Replies !
View Related
Resize The Window
does anyone know how to do that java effect where it resizes the window while its open. What I was hoping to do was add on an extra 50 pixels to the right side of the screen. But I don't mean instantly get bigger. I mean in a sliding motion.
View Replies !
View Related
Window Resize
i'm opening a new window for a flash button >on butt>on (release) {
getURL("javascript:NewWindow('site.htm','::::::::: :HEYDEN INTERIEUR::::::::::','700','400','no')");
}
in the new window ><SCRIPT LANGUAGE="JavaScript">
<!--
function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +',scrollbars='+scroll+',resizable';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
// -->
</SCRIPT>
so far so good BUT...
when that new window is opened it is still posible te resize(maximize) that window >>IWANT TO MAKE IT IMPOSSIBLE TO RESIZE (MAXIMIZE) THAT WINDOW!!!!
can somebody help me with the scripting??
r3sp3ct
3nvoy
View Replies !
View Related
Resize My Window Please
Hi everyone, Im not sure weither this is actionscript-question, so please exuse me if it isn't; I have made a flash file, exported it and now i want it to show up on a webpage. (is there any other sulution than integrating it into a html page?) Well when I place the flash movie inside dreamweaver, it's fixed to the site, but what I want is the effect that I got when I tested the movie inside of flash; a borderless window that you can resize but that will NOT stretch the grafic itself.. Again if this is not an flash question I apologize, but I don't know any other forums yet, and im quite lost with this one.. Thanx alot in advance, JR
(using flash mx 2004 by the way )
View Replies !
View Related
Help To Resize A Window
Hi people! i have a question from Spain, i want to open a new URL
from a flash movie but with a fix size (x=500, y=500)and i donīt know how the script should be. Can i do it just from flash or should i rewrite the code in the new URl too?
Can someone help me???
Thanks!
Ciao
View Replies !
View Related
Hi, Why Does My Pic Get So Big And Resize With The Window?
Hi, im ney here this is my first post and i plan to be pretty active in these forums but im having a problem. when i make anything in flash everything apears to b fine... but when i make a window bigger like the square on the top right of each window the image or animation resizes with it and i dont want that
for example
http://i14.photobucket.com/albums/a3...232/adsads.swf
any one know why its doing this and how i can make it stay one size the real size of this should be 500x286
thanks
View Replies !
View Related
Window Resize Help...
Ok so I am working on this site ( http://www.nearly.net ) I've gotta set up a sub window that opens up for street team info link at the bottom and I do and it works. The only problem is now that it works the way the java script does it's thing causes my flash security settings to go off reading www.nearly.net is trying to read from nearly.net and that is kinda killing me because I can't see why it differetiates even though the files live in the same folder. I've found a section on macromedia's site for setting up permissions to allow the communication through an xml doc, but I'm not really getting it totally. Can anyone show me a way to have a window come up and have a code that resizes the window that is native to the page so that I don't have to deal with the sub window link and the security issue?
View Replies !
View Related
Resize Window
I'm trying to link a button on my site that opens another window above the current page. I'm trying to make the new window smaller, so you can still view the page you were on. I know how to make the button, I'm just having trouble with the action. can anyone help? thanks!
View Replies !
View Related
Window Resize
Hi
in flash how do i open a link with the window being re-sized to the content.
i.e in dreamweaver i would usually use behaviours - open page - size etc...
help is much appreciated
si
View Replies !
View Related
Resize Window
okay, i'm adding a contact form on my flash site, using brave net, because i'm to poor to pay for service that supports php.
so, what i have is a contact button on m flash site, that opens a new window with the form on it,
what i want to do is resize the window, so its not a full window,
how can i do it with java script?
there is no html for the page that has the contact button, so i don't know how to resize the new window,
anyone know what to do?
View Replies !
View Related
Resize Window
okay, i'm adding a contact form on my flash site, using brave net, because i'm to poor to pay for service that supports php.
so, what i have is a contact button on m flash site, that opens a new window with the form on it,
what i want to do is resize the window, so its not a full window,
how can i do it with java script?
there is no html for the page that has the contact button, so i don't know how to resize the new window,
anyone know what to do?
View Replies !
View Related
Resize Window
i am not sure if this the right forum or what forum to use. if it doesn'r belong say so and i will post it anywhere else
here goes;
is there a way to connect the size of a flash to the html window so that if the html is resized the flash resizes with it. and if so is there a way to constrain the proportions. so that something that is 3:2 stays in that proportions.:
View Replies !
View Related
Window Resize Between Movies?
I was watching a flash movie the other day..then all of a sudden....
the window STRETCHED (it didnt just appear...the window actually stretched out to accomodate the larger movie)
it went from a 400x600 to a 700 by 5xx
what the hell?!
and I just realized...the into to my webpage is 400x600 and my actual webpage is 720x520...help me!!!!
how do I do this marvelous thingy?!
View Replies !
View Related
+-- Resize Window On The Spot ---+
Hey... anybody seen DevLab's resizing window on the spot functionality? Instead of bringing up a new window with a different size, they have it so the windows resize in front of you. This is Swift 3d devlab.
Does anybody know how to do this?
Thanx.
Nasi
View Replies !
View Related
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!
View Replies !
View Related
Window Resize Script
Flash 5
I'm looking for a relatively easy way to auto resize the browser window right from the index page - not from a link.
I've used the resize window action within GoLive
but it dosnt work well, even with the lastest generation of ie. That is becuase you need to insert a delay to fool ie. I was unable to do this.
I've tried cutting and pasting from sites like 2advanced but theres always to much other crap to separate from the code I need.
Could somebody help or refer me to a place where I can
get this code?
Thanks
View Replies !
View Related
Auto Resize Window To Max
i'm trying to get my main page which contains a flash movie on it to resize to max. size depending on resolution of the screen. now i have a behavior to open a new window with no border and no scroll off of my splash screen(welcome) that opens(RT332) window.
i cann't seem to figure out if you need to attach it to the behavior on the splash screen. or attach it to the mainpage html.
could some one fill the blank in for me.
thank you in advanced
View Replies !
View Related
REsize Window Button
I am working on an online seminar project, and it breaks down like this:
Basically it is a slideshow seminar that is timed with a voice narration. Now my boss wants me to place a button that will allow the flash to resize to a larger window. I have the link to the movie set up on a webpage, and there is a javascript in there to make the flash fill a pop-up html page. Can anyone tell me how to make a button double the size of the window the swf is displayed in?
Thanks all
View Replies !
View Related
Launch New Window W No Resize Or Nav
Hi,
Anybody out there know how to have a button launch a new window at a fixed size with no resize and no web browser navigation bar up the top?
I just can't figure this one out.
Can it be done entirely in flash or is there some html to insert?
please help!
View Replies !
View Related
Window Resize Question?
Hi All,
Can anyone tell me if this is possible? I know that you can control a pop up window (size, position) from flash. Is it possible to control the dimensions of a window that the swf is actually playing in.
For example if I had a movie playing in a window and it starts off square, but at some point in the movie I need the window to change to a landscape rectangle (without just reloading the movie/window) how can I do it?
Does anyone know or has anyone actually done this?
Diggz
View Replies !
View Related
RESIZE Screen To Fit Window?
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.
Aaron
View Replies !
View Related
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
View Replies !
View Related
Resize Window Question
I am wondering if there is a way to have the flash window resize after I have a new html page popup. Basically, I would like the window to snap to say, 800 x 200, after i tell it to open a new page, and have the new page open and align under the newly resized window. It this even possible?
View Replies !
View Related
Window Resize Problem
Hi, This is my problem:
I have a flash movie with a document size of 100 * 130
I need to resize to 100*70, but if I do that in the properties-window, only the upper part of the movie is kept.
The fact is that I need the lower part, and can't find a way to get it.
Please help me.
Thanks
View Replies !
View Related
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.
View Replies !
View Related
ReSize 'getURL' Window
Hi All.
I'm linking a flash movie to external browser window - that's easy - via 'get URL' with a _blank window.
Here's my challenge:
How would I specifiy a specific external browswer window size??? Say 300 x300px window???
Thanks in advance.
View Replies !
View Related
Window Resize.. Through Flash?
Hi,
when I want to open a Flash file with a specific size, I use some javascript in a html file.. like this :
PHP Code:
<script language="JavaScript">
function NewWindow(){
newWin=window.open('http://www.mylink.com', 'link_mc', 'width='+screen.availWidth+',height='+screen.availHeight+', left=0,top=0, scrollbars=no, menubar=no, toolbar=no, status=no');
}
</script>
But this is through a html file...
In my Flash movie, I have given a link to another movie : I need this one to open to a specific size too. How can I indicate that in Flash ?
Thanks,
Manojo
View Replies !
View Related
Window Auto Resize
Hope someone here can help me becuase I have been spending hours and hours of wasted time with trying to get my html and dhtml links to open a new window at a certain size. The problem I am running into is the newer browsers or what ever pop-up window programs that run on people's machines prevent my site's new sized window from popping up.
So I thought I could link to a regular blank new html page and have code in that page that would redirect you right away to my terms.htm page centering, sized, and with no tool bar.
Is this possible?
thanks
View Replies !
View Related
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
View Replies !
View Related
Help With A Resize Window Script...
I'm new to Flash 8 (on a Mac Pro), and I purchased a Flash template. I was able to learn how to change the necessary jpg's, learn a little about layers, the timeline, etc...
My question is, I converted a text box to a Symbol so that I can write scripts in the Actions page.
What I want to do it change the size of a window so that when you click on the text, it'll open another window smaller than the index page.
Here's the info in the Action page:
on (release) {
getURL("http://www.abbeylanerecords.com/video/its_about.mov","_blank");
}
Where do I enter the script to resize a window and how is it written?
Your help would be appreciated.
Thank you
Dean
View Replies !
View Related
Resize Window On Open
I don't know if this is the place to ask this question, but here it goes: does anyone know how can I start a page with no toolbar, no scrollbar, no menu, and resized to my width and height?
Not when I press a button, or a link, but when the page starts. When the viewer first enters the site.
Thanx.
View Replies !
View Related
Resize Swf With Browser Window
I have a swf with a background that resizes when I resize the browser window. Everything works fine.
Then I have a second swf which I load into layer 5 and it does NOT resize with the rest of the content.
How can I change this?
Also, How can I make sure that the second swf will not be in an odd proportion when it is being resized. I dont want it to be scrunched.
You can see what Ihave now at
http://joshuataylordesign.com/fullscreen.html
and the code attached below
Attach Code
import flash.display.*;
Stage.scaleMode = "noScale";// no resize of the swf
Stage.align = "TL";// align top left.
image = "image.jpg";// url of your image
// movieclip loader and smoothing image
var receveur_mc:MovieClip = this.createEmptyMovieClip("receveur_mc", 1);
receveur_mc.createEmptyMovieClip("container", 1);
receveur_mc.createEmptyMovieClip("bitmap_mc", 2);
receveur_mc._visible = false;
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._visible = false;
var bitmap:BitmapData = new BitmapData(target_mc._width, target_mc._height, true);
receveur_mc.bitmap_mc.attachBitmap(bitmap, receveur_mc.bitmap_mc.getNextHighestDepth(), "auto", true);
bitmap.draw(target_mc);
receveur_mc._visible = true;
bouge();
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(image, receveur_mc.container);
//-------------------------------------
// resizing functions
var ecout:Object = new Object();
ecout.onResize = function() {
bouge();
};
Stage.addListener(ecout);
bouge = function () {
var rapp:Number = receveur_mc._width/receveur_mc._height;
receveur_mc._x = 0;
receveur_mc._y = 0;
receveur_mc._width = Stage.width;
receveur_mc._height = Stage.width/rapp;
if (receveur_mc._height<Stage.height) {
receveur_mc._height = Stage.height;
receveur_mc._width = Stage.height*rapp;
}
};
// ----------------<MCL>--------------------------\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myLisntener);
// ----------------</MCL>--------------------------\
var myListener:Object = new Object();
myListener.onLoadInit = function(mc:MovieClip):Void {
mc._x = 0;
}
myMCL.addListener(myListener);
myMCL.loadClip("menu.swf", 5);
View Replies !
View Related
Auto Resize Of Window Help
I went to this site, have to find it again, lost the url, still looking,
but
a window opened up in the center of the monitor,
small, about 400 by 350... a flash movie played,
then it loaded another movie, and the screen, like, wiggled, and expanded horizontally, then vertically to accomidate the size of the new movie, it was way awesome,
Has anyone seen that or know how to do it?
I will find the link again, been looking for about an hour.
sorry.
View Replies !
View Related
Resize Window For Pictures
Hi, Iīve searched on this subjcet but didnīt find anything.
This is the deal.
The user chooses a pictures froma menu, and that picture is loaded on the main movie, on a "square", like a photo frame, but since the images are not all the same size, Iīd like to make the square behind them to adjust itself to the size of the pictures as they are loaded.
Thanks
View Replies !
View Related
Flash Window Resize
you know those sites where the Flash fills up the entire browser window (not necessarily full screen(it took me a several seconds to spell "necessarily", lol)), and when the user resizes his browser, the Flash resizes accordingly to fit the window.. how is that done?
View Replies !
View Related
Window Resize With Placed Scroller
Hi all,
I've come up against an issue with a site I'm building, and wondered if anyone could tell me why its happening? And even better fix it!!!
What I've got is a fla with some window resize code in it, and another fla that is linked to from the window resize fla, so basically when the window is resized the loaded swf eases back to the center. This works fine if all the content of the loaded swf stays within the boundries of the swf... BUT... if I place a scroller in the loaded swf then when the window is resized the loaded swf moves upwards and to the right (Not in the center!!).
The fla for the window resize fla is here
The fla for the loaded swf with scroller is here
Apologies if I aint explained myself very well!! I'll try and explain my issue better if needed?
I hope someone could help me as I'm close to sacking it off!!!
Thanks
Steve
View Replies !
View Related
Resize Image To Fit Window
hi there
is there any way to open up pop up window containing jpeg image from flash dynamically? which means i got a lot of jpeg images but in different sizes so my pop up window must be exact fit.
can the flash detect the size for the image and then send it to the new window and centered it?
I have tried but unable to make it as i can only centered the window but the image cannot be exact fit.
anyone help me?
View Replies !
View Related
Pop Up Window Center Or Resize.
Umm can some one help me on this one? I was wonder how i could resize a window in flash (MX) ? I have some script here
ActionScript Code:
on (release) {
getURL ("javascript:24-7studios=window.open('http://www.24-7studios.net/main.html','+++24-7STUDIOS+++','width=550,height=450,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 24-7studios.focus(); void(0);");
}
That is for a pop up center. Iv tried it in flash mx but it didnt work. I know it will in flash 5. Can some one help me with this? I only have mx (i might have it at my moms ) but i doubt it. Can some one help me out? This is going to be for my splash page. I have 2 ideas, 1st ( I just open the main page in a pop up window) or 2nd (Resize the main one (index.html) to the size of the main page once clicked on.) I also have the script for the resize.
ActionScript Code:
on (release) {
getURL ("javascript:24-7studios=window.open('http://www.24-7studios.net/main.html','+++24-7STUDIOS+++','width=550,height=450,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 24-7studios.focus(); setTimeout('24-7studios.resizeTo(500,500)',1000); void(0);");
}
If any one can tell me whats wrong or if i need to use flash 5 it would be greatly helpfull. Also if their a nother way to do it in flash (MX) that would be help full to.
View Replies !
View Related
No Window Resize - Exe Projection
Can anyone please tell me how I can go about making it so the exe outputted from flash does not allow for resizing, I know of one or two expensive projectors that can do it, but they seem to break something else whenever I test them out. I have used some free exe modifiers such as exeBat and ResHack in order to change the icon, and title bar text, however I am unsure if these applications can do this last thing that I require.
Now I have tried the
fscommand("allowscale",false);
and it doesn't work. If anyone knows of any other free / cheap apps that can do this last thing that I require that would be great, or if there is code that works that will not allow for resizing the exe that would be great too. Any help will be greatly appreciated, thanks.
View Replies !
View Related
|