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




Align



Sometimes when I use align to line up several instances, or destribute them evenly, I get a very random result, with the instances scattered everywhere!!

Monkey



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 04-28-2004, 09:37 AM


View Complete Forum Thread with Replies

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

How Do People Middle Align Their Flash Sites Now Since V-align Code Doesn't Work?
Before, I was able to use the code v-align middle on my html page and my flash swf would align middle. Now that code does not work and it only works if I do not put doc info at the top of my html page, like xthml, etc.

How are people enabling their Flash site to always align center and middle.

Anyone have any codes that work or samples I could use.

Thanks!

Fullscreen / Align / Stage.align
Need help over here...

I got a fullscreen document.
The menu must always be aligned to the top left on every screen and
resolution size. So the following code

-->// Stage.align = "LT";
Stage.scaleMode = "noScale";

Now i want to align a MC always in centre on every screen and resolution size. I tried this code....

-->// this.attachMovie("backgrounMC", "backgrounMC", 1000000);
titleClip.onResize = function() {
this._x = Stage.width-(this._width+10);
this._y = -1;
};
Stage.addListener(backgrounMC);
this.backgrounMC.onResize();


Above code is not the right solution.....
Because of the Stage.align = "TL" it is hard to align my backgroundMC always to the centre on every screen and resolution size.

Does somebody knows a solution.....?
My menu must always be aligned to the top left, and my backgroundMC
must always be aligned to the centre no matter what resolution size or screen size.

Thanx in advance....

karlein

Align
Hi all,
I was wondering How do I align my flash project in the center of a browser, and fill the whole page at the same time.
Thanks for help?

Align
hot to align button so that it remains on the right hand corner in all the different scenes

Align
Hello, I have a "big" problem.I have a price list made in excel(.xls) and I want to present it on my all-flash site, the problem is how?..I made a dynamic text field with 2 scroll bars but when I paste the text from the excel the prices that are in the other colon get near the products I can't align them ..It looks like hell.Can anyone give me another way to do this?

Align Mc
Hi,

anyone know if there is a way to align a mc to the bottom of the stage, and have it stay there when the browser window is resized?

cheers,
G

Align - Please Help
hi,
I have fullscreen flash presentation, with allowscale = false (dont want my movie to scale).
I want one small text to be positioned always LEFT BOTTOM, no matter the screen/monitor size.
tnx

Align Help
ok here is my code and yes i am a total tard when it comes to this. my question is why when i change the align to center or bottom or anything for that matter it never changes where the file loads on the page? i have it set on right but it still loads kind of at the top middle. i want it to load in the very center if you can jelp me please do. the site www.7standing.com if you want to look. thanks

<body>
<table width="100%" height="100%" border="0">
<tr>
<th scope="col"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100" align="right">
<param name="movie" value="http://www.7standing.com/7.swf" />
<param name="quality" value="high" />
<embed src="http://www.7standing.com/7.swf" width="100" height="100" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></th>
</tr>
</table>
</body>

Align MCs
Hola!

sorry i couldnt find this anywhere in the forums or it was taking too long;
how do you align to movie clips on the stage one to center on the other?

thanks!

Can't Align SWF Right In IE
Help Needed!

Can someone please tell me how to align an embedded SWF right in IE 6? Check http://www.2cdigitaldreams.com/MTL20...emplate_04.htm

The flash animation on the right aligns both in Netscape and Opera, but in IE it just won't go!

Complete code for the banner is

<table width="100%" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="337" height="175" align="left" valign="top" background="images/T05_topSpacer.jpg"><div align="left"><img src="images/T05_logo.jpg" width="336" height="175"></div></td>
<td height="175" valign="top" background="images/T05_topSpacer.jpg"></td>
<td width="401" height="175" align="right" valign="top" background="images/T05_topSpacer.jpg">
<div align="right">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="401" height="175" hspace="0" align="right">
<param name="movie" value="images/animation.swf">
<param name="quality" value="high">
<embed src="images/animation.swf" width="401" height="175" hspace="0" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed></object>
</div></td>
</tr>
</table>

Any help would be greatly appreciated.

Align Two MCs?
Hi, how can align two MCs (centered; x and y), if I´m using Scaling Functions like :

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

when the browser/movie change size MC2 keeps align to MC1, my problem is that I can put a position but when the stage scale an it should keep align with another mc which is in the center of stage.

any help?
Thanks

Align
hi,
i just got Adobe Flash CS3 Professional, and the aligning tools (Align Vertical Centre & ALign Horizontal Centre) are not working.
The keyboard shortcuts for them (Ctrl+Alt+2 & Ctrl+Alt+5) don't work, and neither do clicking on them in the align tab up the top.

If someone knows why they are not working, please help me out, and i will be grateful.
Thanks...

EDIT: sorry peeps, i found a soluton, can a mod please close this topic
sry again...





























Edited: 08/23/2007 at 03:25:22 AM by flash_thegame

Align It For Me.
Know the Dynamic text you scroll, is not Aligned properly i mean its not 'justfied' aligned. is there a way to do that?

How To Align This Mc
i want to align my "img" mc to stage but i can not get it work
here is the code

Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
stop();
import com.McPan;
var clip:MovieClip = img;
var easing:Number = .9;
var sliderXpos:Number = 40;
var sliderYpos:Number = 40;
var aperatureWidth:Number = 800;
var aperatureHeight:Number = 300;
var imgXpos:Number = ((clip._width - aperatureWidth)/2);
var imgYpos:Number = ((clip._height - aperatureHeight)/2);
var nMC:McPan = new McPan(clip, easing, sliderXpos, sliderYpos, aperatureWidth, aperatureHeight, imgXpos, imgYpos, true);
img.b1.onRelease = function() {
nMC.slideToPoint(40,40);
}

img.b2.onRelease = function() {
nMC.slideToPoint(-40,50);
}

img.b3.onRelease = function() {
nMC.slideToPoint(100,150);
}
but the

Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
is not doing anything . here is the screenshot

Align MCs?
I have a flash file with three MCs. I want one to align center/center, one to align left/center, and one to align right/center. So far i have managed to get ther entire SWF to align center and fill the screen without scaling using CSS. Any tips on what code I need to use to get the other two MCs to align within the SWF? Keep in mind that it must not scale.

Thanks,
TR

Script To Align MC
Hi,
is there a function :

align.MovieClip ("MC_to _Align", "MC_as_AlignRef", "Alignment");

MC_to _Align : The movie clip we want to align
MC_as_AlignRef : According to this MC, "MC_to _Align" will be aligned
Alignment : top,bottom,left,right...


or any function that behave similar?

Thanks in advance,
Maya.

Re-align Images On The Fly
I've got a banner that is 5 images wide, my client wants to beable to change the images still using 5 images, but the widths may change. For example, the space is 600 px wide (the height is constant) so the images might be 120,200,85,155,40 then he wants to load 5 new images dynamically so now they are 80,120,150,50,200, what I need to happen is when he replaces the images (knowing they have to be 600 pixels total length) that the edges re-align themselves. Any ideas? Thanks

Align Text
can i align a dynamic text with actionscript in flash 5?

thanks

Align Flash MC In IE
Is there a any way to position the flash movie object to the top left corner of IE. When I use there templates it always has a white border on the left and top.

P-Align, What´s Wrong?
Hi, folks,

I have a typo problem:

some typos I used for some buttons won´t appear in navigator. I get them in xplorer.
In navigator I get texts like this instead: P ALIGN="LEFT"xFONT FACE="M

What did I do wrong??? And how can I use special typo????



Please help me out, thx a lot!!!!!!!!

Phat.

How Can You Align Frames?
check out www.sci-guy.com/beta6/index.htm

using 800x600 and 1024 x 748
and the body frame is not align
is there a way to align them?
thanks

How Do I Align An Embed Tag
Hello I am rackin my brain here trying to figure out how to align an embed tag in an html document. I need a flash movie to appear at a exact postion on a page!!! There are two tags "Embed" and "Object" do I need to tell both of them where I want them to be??? Please help me.

How Do I Align An Embed Tag?
Hello I am rackin my brain here trying to figure out how to align an embed tag in an html document. I need a flash movie to appear at a exact postion on a page!!! There are two tags "Embed" and "Object" do I need to tell both of them where I want them to be??? Please help me.

Need To Align Pictures...
In the frames of my site, I need the bottom of a picture to align with the bottom of a frame. And the frame changes size with the resolution of the veiwer. Is there a way to align backgrounds? What method should I use to place something at the bottom of a frame that changes in height?

Text Align
the wierdest thing is happening. I have a static text box and placed my text in it. i spaced it out how i want it and stuff. when i preview it all the text is aligned to the left. it has worked before but it just randomly started going to the left. anyone?

Align Bottom?
I have a dynamic text box for multiple questions in a text. We would like to get the text box to align bottom (so the text is always at the bottom of the box no matter how much text is in the varriable). Is there a way to do this?

HtmlText Align
how do i align with htmlText? Im using MX.

i have:
code: _root.textMC.htmlText = "<b>Hello World</b>";

how do i align it? centre right etc.

Align Not Working
hi i just reinstalled my flash MX 2004 and my align does'nt work! i cant align MC's at all. I cant even fit to stage. Please help!

How To Align Obj Inside Mc ?
how to align ( to center for example) the circle object inside the square movie clip - using align panle - ???

and why the orientation always change inside the MC ???????

Movieclip Align
Hello,

I want to align a movieclip at the bottum of the stage with actionscript.
www.stelpstra.com/gerdy
It's about this site. The firts photo must be aligned at the buttom of the stage. It does now align when you resize the browser, but it must align directly.

Does someone have a solution?

Settings Align Using AS
I need to know how to set an movieclips alignment to the stage using AS. I want to align my movieclip to sit on the bottom of the stage. I need however to do this using AS.

Thankyou for any help.
JAK

Help - Can't Align Swf Flush To Top
ive tried every possible code to try and get the swf fitted flush to page top and aligned in centre
please check code for
http://www.thebrightgolfcompany.co.uk/index.html
and please let me know what im doing wrong!!
I guess its a conflict between the flash settings and the html code that are working against each other
urgent help will be appreciated
basically Id like the site aligned to the centre of every browser but with no top and bottom borders
thanks!

Align To Top Of Browser
Is it possible to align a mc to the top of the browser window? so even if the page is scrolled down the mc sticks to the top of the window...


tnx

[F8] Align Right Problem
How to align flash movie to have text wrap around like an image? Have tried this in many browsers. Safari doesn't do this, it just keeps it on left side.
align="right". Even placed this in <embed> tag, which many people say is correct. Can this just work in a table?

Code:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="126" height="121" align="right">
<param name="movie" value="../media/become_aninstructor.swf" />
<param name="quality" value="high" />
<embed src="../media/become_aninstructor.swf" width="126" height="121" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>

Center Align In CS3 ?
This may be a stupid question, but I haven't been able to get it figured out so...
I want to center align my flash site, but no matter what I do it shows as Left aligned when published.
I'm in CS3 and here's the only piece of code refering to alignment at all:
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0',
'width', '550',
'height', '400',
'src', 'Untitled-1',
'quality', 'best',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'top',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Untitled-1',
'bgcolor', '#ffffff',
'name', 'Untitled-1',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'Untitled-1',
'salign', 't'
);

Any thoughts would be greatly appreciated!

[F8] Center Align
i have created 10 empty movieClips dynamically and 10 different images load into it. But its all NOT getting CENTER aligned. its verrrry irritating. How can i center align all my images inside the empty MC

Align To Top With 100%w And Scrollers
Hi all please excuse if this is a dumb question but i can't find an answer anywhere else.

I wish to have a long swf site that you have to scroll down using the browser scroller. It must fill the screen ie be 100% width and be say 4000pxls high and have no scale. The top of the swf must also be alined to the top of the browser.

I tryed placing the swf in a table, centering horizon and aligning vert to the top this works for the scrolling but the swf will not display the width at 100% and if i try and set the movie to display at 100% width, it scales it and it looks awful -

so i imagine what im looking for is a html script that will align the swf to the top but set to 4000pxls to show all the content (i know flash can't export this size my actual doc dimentions are 800x600) and then has the width set to 100% with scale set to false.

I hope this make sense.

Please any help

J

[CS3] Align To Stage
I am trying to align a text frame to the stage but it alway aligns off centered right beneath a cross hair. Is there a way to repositon the cross hair so that it is in the center spot?

Textformat.align
hello

this works except the alignment is still left

any good idea?


Code:
var myTF:TextFormat = new TextFormat();
myTF.font = "Arial";
myTF.size = 10;
myTF.color = 0x99CC00;
myTF.align = "right";
myTF.bold = true;


tf_meno = this.createTextField("text_meno", this.getNextHighestDepth(), -250, -18, 235, 17.4);
tf_meno.setNewTextFormat(myTF);

Stage Align
Is anyone aware of code that keeps the stage centered until the browser window is resized to smaller than the stage size at which point the stage is aligned to the top left?!

I guess this is the best example of what I'm trying to achieve:

http://www.gibsonclothing.com.au/

Thanks

Align MC To Path
Hello. Is there a way to align or assign a MC to a path? Imagine you had a little square MC, on mouse over a tween makes it move a random distance along x. Is there a way to make it move along a path (like an S for example) instead of along x?

Take care, A.

Align HtmlText?
hi all
is it possible to align html text? if it is so could you tell me how?
thanks...

Stage.align
I was checking out some of the previous programmers work and I found he used

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

In actionscript reference there is nothing about "LT" align property?
So has the programmer mistyped or this is just undocumented property?

Align Images
I'm loading external images to a movie clip. The movie clip is 120 x120. the images can be 120x100, 120x80, 70x120, 95x120.... one side always will be 120 and the other one can be any size.

How can I load and center this pictures using actionscript???

Thanks in advance.

Stage Align
Hi,

I wanted to be able to align the stage to the center when I have a flash swf that is wider than the browser width. I have set the stage to NOSCALE but flash just left aligns the content. I found a way to do this in AS2 but can't figure it out in AS3. Any Ideas? Thanks.

Align Buttons
Hey

If i have a set of 4 Buttons. And i want them perfectly aligned.
How is that done?

Simon

Text Align
I want to be able to click a button and have the *text* in a dynamic text box change alignment (center, left justify, right justify).. similar to any word processor.

see examples and source here:
http://www.pinn.net/~psanders/align.html
http://www.pinn.net/~psanders/align.swf
http://www.pinn.net/~psanders/align.fla

Thank you!

Text Align
I want to be able to click a button and have the *text* in a dynamic text box change alignment (center, left justify, right justify).. similar to any word processor.

see examples and source here:
http://www.pinn.net/~psanders/align.html
http://www.pinn.net/~psanders/align.fla

Thank you!

Align Html Txt Right
Hi there,

Anyone can tell me how I can get my html txt file to align to the right?:s

Big thx in advance

Grtz,

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