IDE :: Control The Spacing Between The Rows?
Feb 22, 2010I import XML text in a textfield in my flash project.How can I control the spacing between the rows? Make it smaller or larger...
View 2 RepliesI import XML text in a textfield in my flash project.How can I control the spacing between the rows? Make it smaller or larger...
View 2 RepliesI'm using an external CSS to format a textField that has some HTML text in it, let's say something similar to this:
myTextField.htmlText = "<p>paragraph one</p><p>paragraph two</p>";
How can I control the spacing between paragraphs when there is no support for margin-top or margin-bottom? I don't want to add empty <p> or <br /> elements to my text since they don't allow exact control and insert too much space.
I'm looking for a DataGrid with expandable rows implementation in Flex. I don't want to use Advanced DataGrid control because it's too slow and too complex.The desired behavior is like this: when you click a row, a panel opens between the rows with some details and the rest of the rows are moved down, and when you click again the panel is closed and the rows are back to normal. If you click the other row, the one that was expanded collapses and the row you clicked is expanded.
View 3 RepliesI am currently designing a countdown clock and I would like to add some spacing between the text. But every time I add the spacing it does not work. I just want the days to show and I need them to go over boxes that require the numbers to be spaced out.
View 2 RepliesIn AS3, we can format textfield to a newline by using . And now I'm trying to find out how do I use tab spacing in AS3? I want to format my textfield to look like this:
[Code]...
I've got a Grid whose GridItems contain another DataGrids. (The DataGrid are nested in the Grid). Now I changed the Grid's horizontalGap-StyleProperty to zero. But because there are several DataGrids in one GridItem, there is still about 5-10px spacing in between those DataGrids. How to get rid of these spacings ?
View 5 RepliesI have at some point imported photoshop graphics into flash where some textfield have had quite a large linespacing.Now, when I create a new textfield it will inherit this linespacing and the properties box have no setting for cahnging itHow can I get rid of this!?Edit:Nevermind, I just copied around some other textfields without linespacing and it dissapeared. A bit strange though that there's no setting for it.
View 2 RepliesI'm trying to figure out a way to center dynamic text fields vertically after the text has been input. For instance, in some instances I would have a dynamic field with two lines, and I would want to center it between two other dynamic fields- but only after the text has been populated. Maybe a better way of explaining it would be changing the spacing of elements on a page so they're always equidistant from one another.
View 1 RepliesI created a simple TLF text field for read only. It is similar to this
Very
Simple
Text
The text is centered and say Arial black and font size = 40 pts.
The problem is there is to much spacing between each line.
How do I "scootch" it up so it looks like this
Very
Simple
Text
how can I make the text to have 150% line space when it is HTML enabled? Currently I'm having <br><br> but that's a bit too much. I want it to be 150%.
View 3 RepliesHow can I reduce the space between my linkButtons and inside each linkButton ?
I've set padding to 0 but it was already 0.I've been able to only change the height of the LinkButtons, but I cannot do that with the width because the text is dynamic.[code]...
I have some dynamic text styled with a css stylesheet. I want to be able to control the amount of space between each paragraph. I would do this with a "padding-bottom" tag for a normal web page, but this does not seem to be supported within Flash text styling.
View 3 RepliesI'm having a little trouble figuring out how to vertically center dynamic text fields once they're loaded. For instance, some of my text fields are one line while others are 3 lines, and I'm having a hard time figuring out how to space them between other text fields equally.
View 0 RepliesWay to Check double spacing.I following code does not work[code]...
View 4 RepliesI am trying to fix an interesting issue with a site. I have xml docs loading text into a site however the text is double spaced and not single. I believe i have all the settings correct in the doc to be single spaced but i cant upload the doc at the moment.
View 1 RepliesIs there a way of actually controlling the spacing of the tiles I tried imagePadding, but it just pads the image within the tiles. But the tiles still stay next to each other. You can see this when you do a mouse over.
View 3 RepliesI have a dynamic data being pulled in from a database using flash remoting. I am pulling these variables:
newsID, newstxt and newstitle
newsID
newstitle is a single line dynamic textbox
newstxt is a multiline dynamic textbox
I want to pull all the data from the news table and display it. This is what I am trying to do.
ID =1
Newstitle
Newstxt
*Need to set ID = 2 a certain amount of space from where newstxt textbox ends
ID =2
NewsTitle
Newstxt
Here is the code I have now.
getTitles_Result = function(rs){
cant = rs.getLength()
for(var i=0; i<cant; i++){
News.duplicateMovieClip("newslist", "newslist"+i, i)
[Code] .....
That the is just spacing a certain number. How do I change the code above to get what I need.
Im still relativly new to bringing in xml to flash, but i have read some tutorials and other pages on it. Everything is working fine except for the fact that all the text that isnt an attribute as lots of extra spacing infront of it. I made sure my i set ignoreWhite to true but it still is cuaseing those spaces.
View 3 RepliesOk so options is the array there can be many or one outside swf. we go through the array creating empty movieClip and populating each with an outside swf. Once loaded i want to use these newly created movieClips as buttons.
1. can i declare the onPress in a for loop?
2. how do i centre and space them no matter how many they are the will be linear.
Code:
for (var i:Number = 1 ; i<options.length; i++){
//create a holder
_root.createEmptyMovieClip("optionD"+i,4+i);
[Code]....
I found a bit of code out there that creates a mac style dock but what i cant figure out is where to set the spacing of the icons in the dock
[Code]...
I'm having an annoying issue... I have some simple static text in a simple swf, but when I test the movie, the line spacing becomes much less than it looks like it should be on the stage. Here's a screenshot - the left one is the stage, the right one is the compiled swf:
View 2 RepliesI like to place lets say 4 movieclips on the stage with a random x-axis, but with no overlap, and if possible also not outside the borders of the stage. Performing the hit test would be not to hard, but then perfomring it again untill it is true, that is the tricky part (for me).
On the other hand I just want to place them visually random on stage, but infact they need to be more or less evenly distributed over the stage width, so maybe another solution is easier?
part of the code:
Code:
else if((i > spacery) && (i <= spacery*2)) {
container.x = Math.floor(Math.random()*800);
if (if (container.hitTestObject(container)){
[code]....
Im trying to build an rss reader, i've managed to parse the xml and get the content scrolling. I have 2 textfields inside a single movieclip for each news item, but what id like to do is position the movieclips on the y-axis releative to the height and y position of the preceding movieclip.
Code:
for (var i:uint=0; i<il.length(); i++) {
var holders_mc:MovieClip = new MovieClip();
[code].....
I am new to the forum, I have used Flash MX 2004 for quite a while and had never had this problem, recently I gave my site a "facelift" in CS4 and I got it exactly how I wanted it, I exported the swf file and saved the flash file. That was a few days ago, Today I wanted to add a new piece to my portfolio so I opened the same exact file today and everything had shifted! SOOOO FRUSTRATING as I felt I had finally achieved what I wanted to. This is the one I was really happy with:
[Code]...
I'm trying to space the numbers of my slideshow but i can't align exactly.
Looks how it displays: 1 2 3 4 5 6 7 8 9 10111213.
I need to get the exact textifield width and calculate when there are two numbers inside it.
Here comes the code
Code:
.
var btn:MovieClip = new MovieClip();
var txt:TextField = new TextField();
var txtFormat:TextFormat = new TextFormat();
[code]....
How Do I detect if there are two numbers inside the textfield?
I have a dynamic data being pulled in from a database using flash remoting. I am pulling these variables:
[Code]....
That the is just spacing a certain number. How do I change the code above to get what I need.
I am trying to apply letter spacing to a dynamic textfieldI set it in the properties panel.I know that this does not work for newly added text.I searched the web and nothing I found works.when I try setNewTextFormat I get the errorWarning Migration issue The method setNewTextFormat is no longer supported. Use the TextField.defaultTextFormat property insteadhow do I use that defaultTextFormat, I tried this
PHP Code:
import typewriter;
var fmt:TextFormat = outputTextBox.getTextFormat()
[code]......
Have I lost my mind, or is Flash CS4 incapable of handling line spacing? Some of my text boxes are unaffected, but as soon as I apply multiple line spacing values within one box, Flash reverts to just one of the values. How can that be? Isn't this a professional design application?
View 5 RepliesI've just switched over to Mac OS 10.6 and found that the line spacing has changed in my files. Basically it seems to have increased the line spacing so the static text fields take up more space. I've updated Flash and I'm now on 10.6.1 but the problem remains. It doesn't do this on 10.5.8 or in InDesign and SL (but it does do a similar thing in Quark 7.5). It doesn't seem to matter what font it is either. Does anyone have any suggestions?
View 3 RepliesIs it possible to adjust the frame spacing for all layers?For example, I have my stuff (graphics, text, etc..) spaced at 24 frames. Is there a way to globally adjust everything to 48 frame spacing? or 12 frame spacing?
View 4 Replies