[MX04] Vertical Align
Hi there
I have a text box which reads from an external file but i need the text to display in the middle of this box. at the minute the text displays at the top
Any ideas?
Thanks Al
FlashKit > Flash Help > Flash Newbies
Posted on: 10-16-2006, 07:51 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Align To Vertical/Horizontal
How come i cant align things to the Center Vertical/Horizontal in Flash MX 2004 Pro. I remember it worked perfectly fine in Flash MX. How come i cant and how to do it?
Vertical Align Middle?
Hi, this is a super easy question, more CSS/HTML than flash.
Using CSS (or not) how can you vertically center a flash movie. I have placed it in a div. thanks!
chris
Vertical Align Of Swf In Html?
Ok, this should be pretty easy, but somehow I can't figure out how to do it:
How do I vertically align a swf file in the center of an html page? Horizontally = <center> in html, but what's the code for vertical alignment? Cheers!
Vertical Align Text...
does Flash support the html valign tag in a dynamic text box or not?!
i'm getting syntax errors when i try to do this.
i need the text in a dynamic text box to vertically align.
the project is a centered, circular button with a dynamic text field for its title. the text changes in length and i need it to always be in the middle of the button. So actually i need centered and vertically align to middle.
Please help!
If anyone has a different suggestion as to how i could go about getting the same visual result, i will entertain all ideas...
TNKS
Vertical Align In Textarea (or Label)
I would like my text to always be at the bottom of the component it lives in. More specific a textarea or label. How could I acheive this? I have not found an easy way.
Dymatic Text: Is It Possible To Vertical Align?
ok, i have a dymatic text box. let's say i use the varibale "dytext".
in the author mode, you can align horizonally left, center, or right.
But what about vertical?
i only know i can vertically align the table using the html:
Code:
< table width="100%" height="100%" border="1">
< tr >
< td align="right" valign="bottom">mytext< /td >
< /tr >
< /table >
if i input this into the varible "dytext" and render it html, what if i still need to add some more text to the "mytext" ?
Is there any actionscript to configure the dymatic text to vertically align to the bottum?
btw: the actionscript "newline" could it be worked when i render it as html?
please help :(
Dymatic Text: Is It Possible To Vertical Align?
ok, i have a dymatic text box. let's say i use the varibale "dytext".
in the author mode, you can align horizonally left, center, or right.
But what about vertical?
i only know i can vertically align the table using the html:
Code:
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="467">
<tr>
<td width="800%" height="600" align="right" valign="bottom">test123</td>
</tr>
</table>
if i input this into the varible "dytext" and render it html, what if i still need to add some more text to the "test 123" ?
Is there any actionscript to configure the dymatic text to vertically align to the bottum?
btw: the actionscript "newline" could it be worked when i render it as html?
please help
Vertical Align Middle Dynamic Text
I have a flash file, which uses flashvars to define an image and some text that appears after the image. Here's the ActionScript I'm currently using to draw this dynamic info:
Code:
this.createTextField("product_title", 1, -8, 41, 580, 74);
product_title.html = true;
product_title.wordWrap = true;
product_title.multiline = true;
product_title.selectable = false;
product_title.htmlText = themessage;
Here's the code for the flashvars:
Code:
<embed src="preview.swf" quality="high" bgcolor="#ffffff" width="1024" height="717" name="preview" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="themessage=<img src='sample_logo.jpg' width='79' height='64'><b><font face='arial' size='25'>Some Text</font></b>"/>
<param name="flashvars" value="themessage=<img src='sample_logo.jpg' width='79' height='64'><b><font face='arial' size='25'>Some Text</font></b>" />
This works fine, however the text is drawn at the top, inline with the top of the image. I want the text to be centered vertically with the image. Any suggestions on how I might pull this off?
Thanks in advance!
How To Vertical-align TextInput Box Of Compiled Component Via GetStyle
Hello,
In Flash I use compiled components (from the standard components in the program files folder, lay-out wiht themes / skins) for a mailinglist field with button, TextArea & TextInput.
I gave Style to the TextArea and TextInput via GetStyle codes in actionscript in de main-timeline. For example: backgroundColor, Borderstyle, Color (for the text), etc.
However, even after searching a lot, it seems not possible to change vertical alignment into center for the TextInput component.
Textinput doesn't look nice now... Too small, but when I increase text height text bottum disappears...
Versions: Flash CS3 / Actionscript 2.0
Regards,
Johannes
Auto Align In Mx04
how the hell do you turn it off?
it gets really annoying after a while. at times, it can be helpful, but i wish i could turn it off because it really slows me down sometimes.
i'm referring to the lines that help you to align and appear by themselves. this is only in mx04, at least as far as i know.
please help me.
i didn't find anything searching for this one.
[MX04] All Content Stage Align Depending On Screen Resolution
Hoya
is there a way how to actionscript a width and height of a stage depending on screen resolution ?
I mean do I have to do multiple swfs with different widths and heights or can I adjust these things (complex thing...could not align just one mc)
by actionscript depending on resolution detected ?
Thanx
[MX04] Vertical And Horizontal Centering
Hey all,
Im working on this online version of a publication for a friend...and I have uploaded the shell of the book to
industrysi.com/testmag
so you can see the roblem im having...
Id like to have the book center both horz. and vert. in a number of browsers....the horz. center I had down pretty well, but swapped it out for the current div which I read might work (it didn't).
So now I have it in an uneven position thats very annoying...
Heres what the html file looks like:
<!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>magazine</title>
</head>
<style>
body {
background-image: url("cherrywood.jpg");
background-position: center top;
background-repeat: none;
margin: 0;
}
</style>
<body>
<div style="position: relative; width:150px; height:150px;">
<div style="position: absolute; width:100px; height:100px; left: 50%; top: 50%; margin-left: -50px; margin-top: -50px;">
<!--url's used in the movie-->
<!--text used in the movie-->
<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="1200" height="800" id="magazine" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="magazine.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="magazine.swf" quality="high" bgcolor="#ffffff" width="1200" height="800" name="magazine" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</div>
</object>
</body>
</html>
Any Help would be super appreciated...
thanks in advance...
Russ
Vertical Align Text In Dynamic Text Area
Have just created my first database driven dynamic text box and it works
Just one problem...
One of the dynamic text areas is multi-line and try as I might I can't seem to find any way to set the vertical alignment of the text to 'middle' vertically...
i.e. if the text is only a couple of words, it aligns to the top of the textarea and I'd like it to align to the middle of the text area vertically.
Any ideas???
Thanks
dominicall
[MX04] Vertical Ship Shooter Laser
Hi All
Firstly, Again being a noob at AS im having some trouble. All im trying to do is to get my space ship to shoot a laser up the screen.
Im wondering if any of you have know any basic scripts that i could use that would solve that.
Secondly, i want a breif code that will upgrade the laser to 2 lasers and so on and so when you collect a powerup.
Any help to the noob here would be appreciated.
Thanks
AceyLi
[MX04] Image Mask, Vertical Bars, Transparent? HELP
Hi guys,
brand new here and and dying to get my hands dirty with flash! i canme across a cool effect from johnfreda.com where there are a few images sliding in from the left with lots of vertical bars of varying transparency. how difficult is this to create. is there a quick work around, and any help would be greatly appreciated!! thanks!
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
[MX04] [MX04] Action Script To Stop A Movieclip Playing
Does anybody know of any actionscript to put on a flash button that will make a movie clip stop playing when rolled over (not an offstate in the clip) but separately on the main timeline? Kind of like a stopallsounds but for a specific movieclip? I have something that is making me crazy!!
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
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
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.
|