ActionScript 3.0 :: Possible To Use The Uiscrollbar To Scroll A TextFlow?
Apr 3, 2011
I need to add a scroll bar to a textFlow and I was wondering if it's possible to use the UIscrollbar component to do this.Here is my code:
Code:
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.elements.ParagraphElement;
[code].....
View 1 Replies
Similar Posts:
Apr 2, 2011
I need to add a scroll bar to a textFlow and I was wondering if it's possible to use the UIscrollbar component to do this.
Here is my code:
Code:
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.elements.ParagraphElement;
import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.LinkElement;
[Code].....
View 1 Replies
Dec 14, 2010
i have done a project and i found out that i could'nt see the top part of my project as it is too long. So i was thinking of using UIScrollBar to enable me to scroll to the top. But the problem is how do i use UIScrollBar?
View 4 Replies
May 2, 2008
In as2 we had :
scrollbar._visible = (textfield.maxscroll > 1);
textfield.onChanged = function() {
scrollbar._visible = (this.maxscroll > 1);
};
know of a similar way to do this in as 3?
View 3 Replies
Sep 22, 2008
I have a small-ish text field with a decent amount oftext in it which must be scrolled through to view it all. I'veadded a UIScrollBar component (using AS3), and it shows up fine andscrolls the text fine, but it doesn't scroll all the way down tothe bottom of the text, just a little ways into it. If I use mymouse wheel and scroll the text that way, then scroll bar positionindicator suddenly shrinks and then I can use the scroll bar clearto the end of the text. But if I don't use the mouse wheel to dothis, I can't use the scroll bar to get to the end of the text.I've tried using the update() method of the scroll bar afterfilling the text field with it's content and attaching theUIScrollBar component to it. What am I missing here so that I canuse the scroll bar to scroll all the way down through the textinstead of just a little ways?
View 3 Replies
Oct 4, 2009
i got a prom about TextFlow inside a txtArea. that's my code var t2:TextFormat = new TextFormat();
t2.font = "Arial";t2.size = "14";t2.leading = "2";t2.leftMargin = "0";for (var i:int = 0; i <10; ++i){ this.h1.setStyle("textFormat", t2); h1.htmlText += "<img src='h1.jpg' align='left' vspace='0' hspace='2'>Hi, How're u doin?</img>";}
U can see the output on the pic. It just uses the TextFormat for the last line and why are the spaces to the first pics big and get lower and lower to the followin ones?
[Code]...
View 2 Replies
Jun 18, 2010
Basically we want to be able to open up a docx file in as3 or Flex 4 and convert it to a text flow while preserving formatting, embedded images, tables, columns, etc. I know theorectically it's possible as the new Text Layout Framework is powerful enough to pull it off, but I haven't been able to find any case where someone has achieved anything along these lines except for Adobe's BuzzWord web app which does just this. Ideally the solution would be for RTF documents as conversions to RTF from anything are pretty familiar.
View 1 Replies
Oct 17, 2011
How can HTML entities be made to work with TextFlow (specifically TEXT_LAYOUT_FORMAT)? Example: ' is not converted into a single quote.
View 1 Replies
Mar 30, 2012
I want the ability to select some text in a textarea and then replace the selected text with a SpanElement. I cannot use a TextLayoutFormat because it doesn't have an "id" property.
How do I insert a span in a specific position in a textarea?
View 1 Replies
May 16, 2010
I used TextConverter to convert a TextFlow in Flex to String to store it in my Database. How to convert that string back to TextFlow in order to display in Rich Text format
View 1 Replies
Jan 5, 2011
I am working as a developer on a Flex/Air application and we are using the buggy Flex RTE (RichTextEditor) to let the user manage his notes. At the moment I am trying to evaluate how costly it would be for us to build a new text component using the TLF (Text Layout Framework).Really important is the question if we can import the HTML text, produced by the RTE straight away. I know that there are some limitations regarding lists with TLF 1.1, but does it work in general?
I have just tried to grab some HTML formatted text from RTE like:
[Code]...
View 1 Replies
Jan 26, 2011
How can I get the cursor position of flex textLayoutformat/textFlow.
View 1 Replies
May 27, 2011
[code]I want a specific toolTip for "icon". I have read about using HTML and rollOver and rollOut but I'm building this as part of a larger text block; it's difficult to switch from incremental objects to HTML in the middle.If I cannot set an event on the icon, can I create an HTML bit in ActionScript as part (but not all) of a paragraph ?
View 3 Replies
Oct 17, 2011
i'm trying to add whitespaces in front of my text, but flex removes all but one whitespace from the text. So i can't format the text.
Here is the specified line:
<s:p> - Lorem</s:p>
<s:p> ipsulum</s:p>
Here its shown correctly but when running the swf it reduces the whitespaces of the second line. Of course i tried to use CDATA but this didn't work too.
View 2 Replies
Feb 10, 2012
Is there an easy way to compare two TextFlow objects with each other? I have two text flow objects that are created with TextConverter.importToFlow() and want to check if they are equal or not. Only way I found so far is to use TextConverter.export() to export them to a string then compare which seems bit convoluted...
View 1 Replies
Apr 4, 2011
I need to use TLF textFlow to change the format of my text, I have links, italics, bold, paragraphs, etc. Is there a way to PUT the textFlow inside a textField so I can scroll the text inside the textField?
View 0 Replies
Apr 4, 2011
I need to use TLF textFlow to change the format of my text, I have links, italics, bold, paragraphs, etc. Is there a way to PUT the textFlow inside a textField so I can scroll the text inside the textField?
View 1 Replies
Aug 21, 2010
The link elements I'm talking about are single words, so they are not wrapped inside the container, which means that they should have a single bounding rectangle. But how do I go about finding this rectangle? I'm familiar with Flex3 but don't know enough about the new Text Layout Engine in Flex4.
View 1 Replies
Jan 27, 2011
I have embedded a Font in my flex app. That works on any components without problems.
@font-face {
src:url("../assets/fonts/wedtxtn.ttf");
fontFamily: "CSSFont";
cff: true;
}
However, when I try to apply the font to my TextFlow object, it is not working. However, it does work when I use the FTE and do it my self. I debugged through the TLF and the looks like the correct FontDescription is created.
Here is the code I use to create text (Full Source @ Pastbin)
var element:SpriteVisualElement = new SpriteVisualElement;
element.verticalCenter = 0;
element.horizontalCenter = 0;
// Create Text using TLF
var span:SpanElement = new SpanElement();
[Code] .....
View 1 Replies
Jul 8, 2011
i have textflow with name mytextflow and after i wrote text i want to replace the text with another in array i use these code it's go write but replace the line with the second element in array line 1 with array2 and so
for ( var ii:int = start_index ; ii <= end_index ; ii++)
{
add_kashida(ii);
}
[code]....
View 1 Replies
Apr 13, 2011
How can I use an Embedded font from my library in a TextFlow object?I tried to use formattt.fontFamily = 'ArialNarrow'; where "ArialNarrow" is the Class name of the embedded font,but it didn't work.[code]...
View 1 Replies
Jun 22, 2011
I would like to know how possible it is to undo/redo the resize of the the textflow container through an EditManager?.For example I manually reset the size of the textflow through ContainerController.setCompositionSize(w, h), and then I would like to undo the resize?
View 0 Replies
Aug 16, 2010
after reading [URL]..flashx.textLayout.edit.TextScrap should have a public [read-only] property textFlow
but it is protected in flex_sdk_4.1.0.16076...
does anybody know how to access a pasted TextFlow?
Clipboard.generalClipboard.getData("TEXT_LAYOUT_MARKUP") returns only a XML - not the objects...
View 1 Replies
Aug 23, 2010
I have a Spark TextArea:
<s:TextArea id="editor">
<s:textFlow>
<s:TextFlow id="_tf" >
<s:p>Lorem ipsum etc.</s:p>
[code]...
But still no joy in inserting into the middle. Also, the above code wouldn't replace highlighted text, but that's not the real concern here.Based on Eugene's link the key to this is EditManager.The following code represents the working updated function:
protected function imageBtn_clickHandler(evt:MouseEvent):void {
var em:EditManager = editor.textFlow.interactionManager as EditManager;
em.selectRange(editor.selectionAnchorPosition, editor.selectionActivePosition);
[code]...
View 1 Replies
Nov 23, 2010
i am trying this:
open google docs, new document, and type in: hello world (world bolded)
then download it as html(zipped)
i unzip the html file, and save it to the assets folder in src folder of my Flex app
i have a Spark:TextArea instance and i want to do:
var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_FIELD_HTML_FORMAT);
myTextArea.textFlow = importer.importToFlow(htmlSource);
where htmlSource should point to the saved html file somehow
how do i do this? i tryed embedding, converting to ByteArrayAsset and to String, but i always get the source of the html file and not it's rendered rich text (ie "hello world).
[Code]....
View 1 Replies
Jul 11, 2011
Given the following:private var errorHtml:String = "<TextFlow xmlns="http://ns.adobe.com/textLayout/2008"><p>Existing account, please <a click="clickHandler(event);">click here</a>.</p></TextFlow>";
View 1 Replies
Jun 3, 2009
I have a dynamic text field that I create and populate with code, and a UIScrollBar that goes along with it.works correctly, the scroll-bar appears no problem.The issue comes in when I load the SWF into another project.I have a SWF interface that loads other pages (SWF, FLV, etc) When the SWF with the scrollbar is loaded into the interface, the scrollbar does not display at all.Here is the code for the scrollbar SWF, if:
import fl.controls.UIScrollBar;
var myTxt:TextField = new TextField();
myTxt.border = false;
[code].....
View 4 Replies
Jul 6, 2011
I am using text layout framework textflow in Flex 3 to get embedded images. In the edit field for the application the user can apply formatting. This all works fine except if the user deletes all the text they have entered and then starts typing again then the formatting is lost.[code]To setup the initial formatting then similar code to apply the formatting when the user changes it.So how can I stop the user from 'deleting' the formatting if they delete all the text?
View 1 Replies
Mar 11, 2010
Is it possible to change the look on the UIScrollBar in flash cs4 using AS2 ?? ive tried almost everything now without success,.
View 1 Replies
Dec 10, 2009
I have a TextArea for a Chat. When I write a lot, the UIScrollBar remains on the top of my TextArea.I'd like my UIScrollBar is located at the bottom of TextArea..
View 7 Replies