ok so i made a post yesterday reguarding an issue with an item centering. How would i center this?
this.attachMovie('Nav', 'menu_mc', 1, NavTemplate);
right now i have....
this.menu_mc._x = Stage.width/2;
but its not staying centered when i PUBLISH the page. It's all fine and good when i just test movie...I'm stuck please help
this.menu_mc._x = (Stage.width/2)-(this.menu_mc._width/2);
this is what i mean...i can't get BOTH to center
EDIT
I may not have explained it fully. The dock is being loaded into a main swf. This is what i get
"so just use that for everything else."
i wish it were that easy
oh trust me I have made sites where the first 100-200 lines of code were dedicated solely to positioning
nevermind...
Stage.align = "TL";
:)
I need a drink Flash Actionscript - attachmovie zurps my preload script to 512K :: 18 posts - Last post: Jul 27, 2005Ask your questions on the forums, that will not only help you but also other but I need to deal with the attachmovie/preloader issue, http://www.flashdevils.com/showthread.php?postid=181758HOME | ok i gotcha....i didn't know you had other things goin' on there. Now the positions of everything is relative to 0,0 or the Top left. So all the elements that need to be centered must be inside movie clips and told to align center..which is what joshua's code was for...so just use that for everything else. hwg-graphics archive: Re: Flash ActionScript problem by Valerie L :: Sep 26, 2001 this is for a class assignment for an advanced Flash 5 class i'm taking, and i'm really stuck. the .fla file in question is at http://archives.hwg.org/hwg-graphics/l0313030cb7d7dedc9da0@[63.197.15.187]HOME | Go-Ped General Talk! [Archive] - Page 22 - GopedNation Community:: ADA Bigfoot front SUSPENSION Fork · need help looking for a california motorized scooter law · Gas tank lines questionplease help · peek proformance http://www.gopednation.com/forum/archive/index.php/f-3-p-22.htmlHOME |
any_mc._x = (Stage.width/2)-(any_mc._width/2);
ok here is the file...you'll see in there that it works fine when testing movie, but when you publish it for FBF (100%/noscale) it offsets...
http://www.mww-media.com/center.zip
that looks fine, doesn't work for some reason even in test movie. What a pain. I've been plugging different code in for days now. the code posted works fine when movie is tested(that actual swf) but when put into a browser its jacked.
lol you need a bottle of whiskey if you missed that .. i only said it like 50 times haha well glad u got it solved it was starting to freak me out too...now i need a drink ;)
try placing
Stage.scaleMode = "noScale";
Stage.align = "TL";
at the top of your code in the timeline (and use joshua's code too because it's correct...but i don't think it works unless you do this)
"so just use that for everything else."
i wish it were that easy
ok new issue. now the dock lines up great, but that Stage.align = "TL"; is telling the main swf that the dock is loaded into to align left. So now i have a centered dock, but left aligned page!:puzzle:
BRB...gone to the liquor store
doesn't work for me! WTF! Man this is frustrating...Here's what i get
Firefox 2
1680x1050
resolution shouldn't matter in this case...
well for one u didn't put what I said at the top...with the Stage.align = "TL";
I published it and it came out perfectly centered. make sure in your publish settings the flash version is 8 and the alignment is set to center/center for vertical and horizontal.
mines messed up. here's my settings
thats all correct...under the 'flash' tab make sure its set to version 8...i had it on 7 and it wasn't centered
i dont understand what u mean by "left aligned page". it's fullscreen
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|