ActionScript 3.0 :: Importing HTML Text Spacing
Jun 30, 2009I'm importing some html text into a Dynamic Text Field(services_txt). Here's the code:
[Code]...
I'm importing some html text into a Dynamic Text Field(services_txt). Here's the code:
[Code]...
Is there any way to control the space between the bullet and the text in an HTML text field? When I use the <li></li> tags it causes the text to be about 40px from the bullet like:
�____bullet 1
�____bullet 2
but I want it to look like:
�_bullet 1
�_bullet 2
(ignore the underscorE)
I tried messing with indent, leftMargin and others but with no luck. I'm publishing for Flash 8.
I'm importing html with <strong> tags and using CSS to style my text however everything it runs into a closing </strong> tag it adds a line break for some odd reason and i was wondering if anyone knows a way to fix this?
View 1 RepliesI'm trying to enclose an html site with a flash header and footer, the only way I know to do this is with an iframe. The issue I'm experiencing is a MASSIVE amount of excess space. look at [URL] to see what I'm talking about? This mega space was there before I put the iframe in however....how do I get that bottom menu to appear without having to scroll down to see it, whether there's an iframe there or not? Meaning, MUCH closer to the top of the screen. Here's my code so far:
[Code]....
I am looking for some sample fla files in AS2 where i can see a running example of dynamic text curve (bend) and spacing in between the text through their respective sliders.
View 0 RepliesI just upgraded to flash player 10.1 and there's an issue with a program that I've been working on. I'm copying text from a mysql table that is formatted with spaces and newlines (including spaces and newlines at the beginning of the text) into a textArea in Flex 3.5. Before the update,it worked fine. Now when AS retrieves the text from the table, it does not include the spaces and newlines at the beginning of the text.I'm using xml to retrieve the text.
View 2 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 Replieshow 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 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 RepliesIm 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 RepliesI 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]...
So if I want to imitate a link in as3, when I set
myFormat.underline = true;
the underline is directly underneath my text. Is there any way I can set the spacing of that underland?
I have a dynamic text box, displaying the text from XML file, which is created dynamically.My issue is that the text is shown in double spacing, instead of single spacing.I've been researching this for hours, and one website discussing this issue as "when a user insert value from windows platform, flash translates line brake as double space." So, when I look at the XML file, there is only one
Code:
<br />
tag, but displays as if there is 2
[code].....
character spacing on dynamic text is greyed out, is there any way to fix this with AS or is there any other workaround?
View 4 RepliesSo I have a project where there are 5 dynamic text fields, and I thought it would be quite simple. Create a dynamic text field, and then load in the .xml content, and I had it complete. However, it turns out that spacing is quite important, so my method will not work, and I'm kind of stumped how to proceed.So the things highlighted in red represent the .xml nodes, and as the width (character count) of TEAM1 and TEAM2 change, the spacing needs to remain consistant, and the static elements (the "vs." and "|" need to move accordingly, and the TEAMLOCATIONS need to stay lined up as well..Does anyone have a good idea how to handle this, or a good tutorial they could point out? I'm trying to build my own array structure, and calculate the width of "TEAM1", but it's slow going..
View 9 RepliesI would like to apply letter spacing on a dynamic text box, but it seems once I export the swf, the letter spacing defaults back to 0. How can this be done?
View 4 Repliesi have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
how do you set the line height or line spacing in Flash using as3?example: myFormat.linespacing = 19;
View 1 RepliesI'm building a dynamic menu and am struggling to give the same distance to the text fields with different widths. When I turn on the "autoSize TextFieldAutoSize.LEFT" some text fields are overlapped, and, aligned when I turn off, but, they all get the same size (100px by default - dont know why), which makes the distance between them unequal.
Here is the code:
Actionscript Code:
// main timeline objectvar index:Object=this;// New Xml Objectvar fileXml:XML;// check how many menu items we have.var totalMenuItems:Number;// Main Menu Propertiesvar spacing:int=5;var menuItem_txt:TextField;// New URL Requestvar xmlLoader:URLLoader=new URLLoader(new
[Code]....
in my Flash movie (CS3) I want all text to be selectable. When I select 'static' and 'selectable', I have the following issues: Some of the text does not fit into the available (scrolling required to see the end of text) This is larger than when in Flash.
[Code]...
I am working with classic (non-TLF) dynamic text in AS3. My problem is that there is spacing issues between the individual letters. Has anyone else ran into this? I'm using an embedded font with Arabic support
View 1 RepliesI've got a dynamic html text field in flash which pulls content from an XML file, which is being generated by a CMS using CK Editor. I'm not sure if that has anything to do with it, but flash represents a <br/> tag with a space that seems more fitting for a <p> tag, and a <p> tag renders with about double that amount. How do I control this? I've tried specifying margins in the flash css file, but it has no effect. Is there something I can declare in the actual actionscript code?
View 3 RepliesI have a multi-line dynamic text on the stage. When a large amount of text content (e.g 200 words) appear in the dynamic text (with newline/paragraph spacing), the space between the paragraphs are too large. How do I lessen the paragraph spacing?
View 0 Repliesi cant seem to control the spacing in this dynamic text field using leading.[code]
View 1 RepliesI'm building a dynamic menu and am struggling to give the same distance to the text fields with different widths. When I turn on the "autoSize TextFieldAutoSize.LEFT" some text fields are overlapped, and, aligned when I turn off, but, they all get the same size (100px by default - dont know why), which makes the distance between them unequal.
Here is the code:
ActionScript Code:
// main timeline object
var index:Object=this;
// New Xml Object
[Code].....
Using the tutorial for the Digital Clock I have created my own date viewer.However, because the text boxes are dynamic, I cannot edit the horizontal spacing of the font.I wish my date to look like the image below but as I cannot edit the horizonatal spacing, I cannot squeeze the letters together.
View 11 Repliesis there a way to space dynamic text?through actionscript?the letters of my dynamic text are to dense and i would like to change this.
View 14 RepliesUsing the tutorial for the Digital Clock I have created my own date viewer.However, because the text boxes are dynamic, I cannot edit the horizontal spacing of the font.I wish my date to look like the image below but as I cannot edit the horizonatal spacing, I cannot squeeze the letters together.
View 11 RepliesLooking for info on available options for embedding flv in html using a player swf but without actually importing the flv into the swf, so that you can embed any number of flvs in any number of html pages without creating multiple swfs.I've found solutions online using various player swfs hosted around the Internet, but I'm hoping for a better solution. I'd like to host the player swf on my own servers, not someone else's. And I'd like to not have to deal with, e.g., external branding.Sample <object> code that references a player swf hosted at
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=6,0, 40,0" width="480" height="360"> <param name="flashvars" value="file=your-
[code].....
This component requires that you use Dynamic text, the Multiline behavior, and embed all fonts. There are 5 lines of copy on the banner. I need to make two of the lines of copy a larger font and also adjust line spacing on two of the lines. I can accomplish this using Static Text but cannot seem to get it to work in Dynamic Text. If I change the font size on selected text it changes ALL of the font sizes for everything within that text box.
View 4 Replies