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




Centering My Flash Document?



Hi! I'm just wondering how to keep my Flash page centered in the window it opens in. I have my publish settings set to "center" for both the horizontal and vertical settings, yet my Flash document still aligns to the top left of the screen when I publish it to the internet. It's weird too, because when I just test my movie inside of flash, it centers like it's supposed to. Any ideas why this is happening? I'm almost done my site...just a few more problems in my way. Any help is greatly appreciated!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-12-2007, 06:44 PM


View Complete Forum Thread with Replies

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

Changing Document Size, Centering Logo
Hello fine folks!
I just changed the document size of my Flash file and I need to recenter my animated logo which is in layers. When I attempt to do this, the animated items do not move in conjunction with the other elements. Do I need to recreate the key frames? I sure hope not!
Thank you for your help, I greatly appreciate it!
Take care,
Greg

Document Size For 1024 X 768 And Centering It In Browser?
If i want to creat a site for a standard display of 1024 x 768, what is a good size for my flash document? How do i get a site to load in the centre of the browser? what can i change in my puplish settings?

[F8] Importing Flash A Flash Document To A New Flash Document And Linking The Two
Hi, I have two sets of flash documents that im wishing to import in to each other. What im wanting to do is on one of the documents to have a button called "map" and then linking it to the document called "map" (and then vice-versa). I've tried importing .swf file in to one of the flash documents but i dont think that's the correct way in which to do it. The two documents are saved in two folders on my desktop called "map" and "treasure hunt".

Is it possible to use something like an ".import" command on the button to import the flash document?

im working on a rather frustrating project at the moment, and it's starting to get to me

Importing Flash A Flash Document To A New Flash Document
Hi, I have two sets of flash documents that im wishing to import in to each other. What im wanting to do is on one of the documents to have a button called "map" and then linking it to the document called "map" (and then vice-versa). I've tried importing .swf file in to one of the flash documents but i dont think that's the correct way in which to do it. The two documents are saved in two folders on my desktop called "map" and "treasure hunt".

Is it possible to use something like an ".import" command on the button to import the flash document?

im working on a rather frustrating project at the moment, and it's starting to get to me :D





























Edited: 07/29/2007 at 11:19:54 AM by derbys1

Getting The Document Or Setting The Document Boundaries?
Why can I find no information on this?

How do I findout how big my document is in real time or set the size of it?

Centering My Flash.
Ok, i was curious if there is a way to center a flash screen
on the browser depending on what resolution they are using. all i have now is html code that align's the flash to the top left hand corner. Looks good for me but others can see funny things.. any clues??

Centering Flash
I created a background image to border my flash but after adding everything in an html page the flash was pushed to the left about 100 pixels. I used a table and had exact measurements for it, I not only centered the table but aligned the <td> as well but still it came up wrong. How do I center my flash exactly inside the background?

Centering A Flash Mov.
Is there a way to use a "postion;absolute" code to center a flash movie when actually applying it the site??

Centering Flash
What should I do to make my Flash site open in the center of the browser. I went to Publish Settings and done the HTML alignment, but it didn't worked... Any suggestions?

Centering A Flash .exe
Pretty simple querry really! How do I center a flash .exe!? I've read it's not possible to do within flash itself, i have a page that when you maximize the .exe window it stretches the page, i want it to remain the same size but just stay in the centre of the screen.

Anyone know any good tutorials?

Centering In Flash?
Is there a way to center a movieclip in the movie? I have my SWF resizing to 100% wide but not height in the html document. Is there a way, maybe with actionscript, that you can cetner the movieclip?

Remember I'm a big noob so details are good.

Thanks!

Centering In Flash?
Is there a way to have certain movieclips or graphics center within the movie? I have a SWF that resizes in the HTML document 100% width but not height. I need some items to center. Can I do this?

Centering In Flash
Last edited by Darkniss : 2008-09-25 at 07:58.
























good afternoon to every one

i got 1 small problem(ad least i think its a small one)
i have bin messing around with the stage.width and the stage.height, to center pictures
i have loaded in a empty movieclip.

now i have come up with this code:

Code:
_root.pic1._x = Stage.width/3.5-_root.pic1._width/303;
_root.pic1._y = Stage.height/479-_root.pic1._height/479;
wich works perfect if the images are the same sides.
however i got some pictures in them that dont have the same width like the rest.

so i thought i made this code in the hope to solve it:

Code:
if(pic1.width < 400){
_root.pic1._x = Stage.width/3.5-_root.pic1._width/303;
_root.pic1._y = Stage.height/479-_root.pic1._height/479;
}else{
_root.pic1._x = Stage.width/30-_root.pic1._width/455;
_root.pic1._y = Stage.height/479-_root.pic1._height/479;
}
wich should work technicly, but (and here comes my question) my movieclip ignores the first line and jumps strait on the else part.

does any one know why it ignores the first part is there something i have mist?
i have bin trying to fix it all afternoon and its driving me crasy

i wanne thank all in advance that can help me with my problem(either small or big)

Centering Flash Movies
Hey I need my flash page to center in (and preferably size to) all browser windows.

i.e. http://www.wdpelon.com/raceb/

Centering Flash Page
Could someone tell me what I have to do to center a Flash web page. I have designed the page using a 800 x 600 canvas. I was just wondering how you would make that page be in the center of your web browser when you start it. To be more specific, I am using dreamweaver, so I guess the real question what code do I use to make a center and resize itself according to the screen resolution? I'm sorry this is not totally a flash question, but I really need some help, so whatever you can offer would be greatly appreciated. Thanks.

-Chun

Centering My Flash Button
I have edited a Flash button i found here in the flashkit.com site. and its a .fla and i was editing it. i got down the color and the text. the problem is when i file > preview publish and choose default html, html, or flash and do not see my button. i just see the white background.

and in macromedia dreamweaver when i insert the flash into the page it gets becomes a huge square. like around 500 x 470 (somewhere around there) but when the button is like 75 x 50. so how do i edit that also?

i tried viewing the button in my page but all it shows is the white part. and i see no button

i hope someone can help me

THANKS TO WHOEVER HELPS ME

Centering Flash In Window
Okay..this is prolly easy, but i have no idea how to center flash in the browser, as in the vertical center. Its obvious to just put a center tag to center the .swf horizontally...but I can't figure out how to center it vertically. okay, i mean centering it like this site: fantasy_interfaces

Centering My Flash Webpage
Hi everyone,

My problem is I have no clue on how I center my web page so its shows up in the middle of a web browser. Right now its in the upper left hand corner and looks awful like that. I know I need to change it in HTML code but I dont know what to put in or where, can someone PLEASE? help me

Thanks so much

Centering Flash In Html
I know this is simple, but could someone fill me in on how to get a 750 x 400 movie centered on the web

Centering A Flash Movie.
Hello all. I'm making a movie right now that is 750x500 pixels in order to be displayed correctly on an 800x600 screen. The size of this site is similar to mine: http://www.choppingblock.com . It is just one big flash movie and somehow the actual content is always centered. Can someone tell me how to do this?

Centering Flash In HTML
Really silly question here I know. Ive searched and found JS on how to resize the browser/window itself but I wondered if there was some way of centering my flash file on my HTML page other than in a web editor.

Centering The Flash Movie
is there a way to use actionscripting or javascripting to keep the flash movie centered (vertically and horizontally) on the screen and make it so that it will shift shape to fit the window no matter what resolution its in?

Frankie B

ps im using flash mx pro 2004

Centering A Flash Movie
is there a way to use actionscripting or javascripting to keep the flash movie centered (vertically and horizontally) on the screen and/or make it so that it will shift shape to fit the window no matter what resolution its in?

Frankie B

ps im using flash mx pro 2004

Centering Flash On A Page?
How do you center a flash on a page? Not just centered where ever, I mean like centered in the middle of the page...does anyone get what I'm saying?

Centering Flash Movie
For some reason I'm having trouble centering my flash movie on my html page. First of all, I'm using Flash MX. In order to center the movie I thought I was supposed to go to the publish setting window, click the html tab, and then select 'center' for horizontal alignment and 'center' for vertical alignment. Yet when I open up the page in Internet Explorer the movie is always in the top left hand corner. By the way, the movie in question is fairly small so it should fit in the IE window easily. Anybody know what I'm doing wrong? I'll check this post later tonight, as I'm at lunch right now.

Centering Flash Site
take a look at this site i just did:
www.reliablecontainer.com

if you notice its always in the upper left corner. can anyone help me with the actionscript that will make the flash site center vertically and horizontally so that its right smack in the middle of the window?
i also want to put a light color border around the page thats similar to this site here:
http://www.axiodesign.com/

please help... i've searched through this site and havent had any luck yet.

thanks!!!

Centering A Flash Movie In A CD
Hi:

I'm working on an autorun CD. The flash moive is 550px X 400px.

My question is: how can I get the movie to center on the screen when the CD loads?

Right now, the movie displays off-center.

Is there an actionscript code that can be inserted into the movie to make it automatically center vertically and horizontally?

Thanks for your help!

SP

Centering A Flash Movie
Hello,

In my Flash Publish settings, I choose horizontal=center and vertical=center. I also choose "noscale." My movie is 800px by 600px.

When I view my movie at 1024px by 800px, it is aligned to the top left corner. How can I make my movie align to the center?

here's the site(it's just a place holder right now): http://www.caillouette.com/cambreSite2/

thanks

Flash Centering Help Pplz
hey im building a photogaphy website and I need some help on getting the flash file to center directly in the middle of the website and not to the left like it does when you publish the file. Right now in the html code it says "center" but it diffently isnt center. if u want to see what im talking about view www.kheningerphotography.com/home.html (big file at the moment didnt resize the pics yet) see how its too the left and not in the middle? I need to use a html file and not a .swf because i need to keep the swf file sized corrrectly on the page and not have it stretch for different browser sizes thanks!

Centering Flash Websites?
Hi people,

I've designed a website in flash but I don't know how to center it horizontally as well as vertically. I know that if I ad a <center> tag, that centers it horizontally only. Does anyone know how to center it so that when you re-scale your browser, the website remains centered bang right in the middle? (I've posted the same question in other forums but no one seems to want to help me :-( )


The code at the moment is this:

<title>main</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<center>
<object classid="clsid:d28cdb6e-ae6d-12cf-97b7-444772540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="910" height="500" id="main" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="main.swf" quality="high" bgcolor="#ffffff" width="910" height="500" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</center>
</body>
</html>


For an example to see what I mean look at http://www.louisvuitton.com

Your help would be greatly appreciated,
Thanks

Flash Zoom Centering
hi,

I've got a problem i'm wondering about for days now, and I hope you guys might help me.

I have a Movieclip I want to zoom in and out while holding the mousebutton. That's not that big of a deal, but the problem is keeping the point where the mouse was at the same place (alternatively the center).
So onPress I add a mouslistener and a global var with the initial mouse position, and onmousemove change the x and y scales according to the difference. I just can't fricken find out how much I have to move my Movieclip so it stays (mouse-)centered.

thanks in advance

Centering A Flash Movie
Hi Everyone,

I'm on brink of tearing out my hair and slitting my throat. Using Flash was manageable but putting it into a webpage rips the charm of Flash away.

How on earth do I center a flash movie both horizontally and vertically on webpage in a resolution independent and cross browser compatible way.

I've posted on dozens of forums and got a lot of bulls*** in return from people who had no clue of what they were saying.

Someone help me out of this mess and I'll buy you a beer - the finest available! :-D

Centering Problem With Flash Cs3
I have one flash document that has the publish settings of 100% for the stage, no scale, set to center. This works fine, however, many poeple with all of their google search bar and browser additions canīt see the bottom part of the document. BUT, when I set the stage properties to pixels matching the movie, everything can be seen by anyone however I canīt seem to center the movie in the browser. It seems to stay defaulted to the top left despite whatever center setting I give it. And I canīt seem to use tables to center it since it is loaded in with javascript. At least not horizontally AND vertically. Is there any way around this? Thanks!

Centering A Popup From Within Flash
I have gallery which consists of a bunch of thumbnail buttons that when pressed, load an external swf into an emptyMC and it is displayed overtop of the already loaded flash page. You can see an example here:

http://www.intrinsia.net/testing/gallery.html

This works great except for the fact that I need the flash popup to be center in the browser. Currently the external swf is using the positioning of the emptyMC as reference for where it should position itself. So as you can see if you scroll down to the bottom row of buttons and press one of them, it still loads the swf at the top of the page so you have to scroll back up in order to see it.

Is there anyway to load this 'testing' swf and have it be centered based on the browser you are using?

Many thanks in advance.


joel

Help With Centering Flash Movie
Hey guys and gals,

I'm having a hard time setting up my website page to center (vertical and horizontal) my flash movie in a browser. I was finally able to get it to fit screen no matter what resolution, but it looks more to me like it's aligning itself top/left.

Here is what I have:


Code:
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu</title>
</head>

<body bgcolor="#ffffff" leftmargin="no" topmargin="no" marginwidth="0" marginheight="0">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fb.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="fb.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>
</html>
Any suggestions what would be preventing my movie from centering?

Thanks!

Centering A Flash Site
I would like to center my whole flash site.

What is the easiest way of doing this?

Placing the whole flash movie in DreamWeaver and center page there?

Do I have to place my Flash site in DreamWeaver, when this is the only thing I need to do there?

Can't I just publish my Flash site as it is straight onto the web?

Do I have to go through ex. DreamWeaver?

Please help!

Thanks,
/Sarah

Centering A Flash Movie
Here's my problem:

I've created a Flash movie I've saved on a CD as a .exe projector file. The .exe file will automatically open once the CD is placed in the computer's CD drive. When the movie is opened, I want it to play in the center of the computer monitor. Thus far I've not been able to figure out how to configure Flash so the centering on the monitor will occur. I know in Director, you have an option you can choose to make the centering occur. Is there a way in Flash to have the centering take place. Even if it means performing some Actionscripting.

An additional Note: I know I could use an FS Command to make it so the movie will place full scrren no matter the scrren monitor size. But since my Flash movie contains Bitmapped images whose resolution quality depends on having a stable monitor size, I can't use the FS Command because my bitmapped images get distorted.

Any help in this matter will be appreciated.

Centering Flash Content
I'm a real novice with Flash so my question is probably a little basic but here it is.
When I upload my site (all flash) to my server and then look at it in a browser - the body of the page is flush left and not centered. So even when I expand my window it stays flush left. How do I change that so that it is centered?

Centering A Flash Website
how do I ensure that my flash website always appears in the centre of a browser?
is it possible to make this happen in flash or do I need to edit the html?
thanks
Jonny

Problem With Flash Centering
Hello, I am somewhat new to Flash. I have a reference book that doesn't detail what to do if the SWF and HTML file is not centered in the middle of the screen. It only gives me the option of top, bottom,left, or right. Is there a way to center the viewing area? Or should I make my work area a different size? Right now it is 900x540 pixels to accomodate smaller monitors.

Help please!

Centering Flash Website
Hi, i'm trying to center this site with all browsers, can't seem to get internet explorer to work.. also some of the graphics come out funky is that because they're png's?

d2abatement.com

Centering Flash Website
Hi, i'm trying to center this site with all browsers, can't seem to get internet explorer to work.. also some of the graphics come out funky is that because they're png's?

d2abatement.com





























Edited: 10/29/2007 at 01:13:03 PM by rapahelrjr

Centering A Flash Movie?
Dear members,

How can I programatically (if possible) center my Flash Movie (home page)?

Thanks

Automatic Centering, But With Flash
I never really got a straight answer the last time i asked, and i cant find any other info on this, but how can I load an externall swf and automatically center it?

I think www.tdcollins.com has it.

Thanks for helping me out

*Centering A Flash Site*
Ok, I would very much appreciate some help here...

I've built this site (my first one), http://www.trade-markcentral.com , and I have no clue how to center the site!
I am assuming that I would have to use Dreamweaver to accomplish this.
I am a total Dreamweaver noob.
Please Please someone help me! I'm developing a freakin aneurysm here!

Thank you in advance!
Chris

Centering Flash Movie With CSS
OKAY first off I DID use the search function and found nothing that told me exactly how to do it in laymans terms. I know this has been addressed many times.

I have a flash movie I want centered in the browser.

I don't want tables please.

I want to add the CSS into the published HTML.

Obviously I'm a newbie and comments like "just do it with a div" will be of little help.

I have done google searches and tried a few things but none of them worked.

Thanks in advance.

Centering Flash MX In Browser
Can anyone tell me how to centre my Flash website in the browser window.

I have specified that it should be centred in the publishing bit but it still shows up in the top left corner of my browser. Am i doing something wrong in Flash or do I need to take it into dreamweaver?

I'd appreciate any help. Thanks

Centering A Flash Movie?
Dear members,

How can I programatically (if possible) center my Flash Movie (home page)?

Thanks

Automatic Centering, But With Flash
I never really got a straight answer the last time i asked, and i cant find any other info on this, but how can I load an externall swf and automatically center it?

I think www.tdcollins.com has it.

Thanks for helping me out

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