『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hi guys,I'm working on a chat application running on RED5 / AS3 and I'm struggling to get my client "UI" working perfectly.My problem is related to the TL Framework, on every version available.Basicly, I want to display a picture ( for user messages ) and icons ( for notifications ) on the left side of my lines, like this :So, I'v been messing around with "float=start", "float=left" and such, but i'm always encountering weird behaviors whenever I scroll or resize my containerController. It's quite easy to reproduce with the following code :public class Main extends Sprite { private var controller:ContainerController; public function Main():void { if (stage) init(); &nb
Hi all,I have a perplexing problem that probably has a very simple solution. We have a workflow in which a TextFlow is edited by the user, possibly introducing new spans with different formatting (e.g. bold). At the end of the edit operation, the TextFlow is exported to XML and stored, possibly in a file. So far, so good. Then later on the file is read back in, and the TextFlow regenerated by importing the XML string. The problem is that the imported TextFlow loses leading and trailing spaces on spans. I have put together a toy example below with two TextFlows. The first just tries to import an XML with leading and trailing spaces on one of the spans.The second imports a single span, and then attaches an edit manager which responds to the CTRL key by putting the selected span in bold, however I have mimiced our workflow in this operation, so the TextFlow is exported, converted to a string, converted back to XML and imported to a new TextFlow. You can see that any leading or trail
I feel like an idiot asking this, but is there really no official way to put a ProgressBar component on a Flex Mobile project, even up to version 4.5.1? The documents seem to indicate as such, as Spark still has no ProgressBar equivalent, and mobile is Spark-only. Maybe there is a 3rd party progress bar out there somewhere?I'm currently trying to hack the Flash Pro CS5.5 fl.controls.ProgressBar into my Flash Builder project through an SWC, which is just plain dirty, since Adobe seems to have purposely made the Flex-side interfaces incompatible between Pro and Builder (eg, fl.controls instead of mx.controls).What gives? It can't seriously be this involved to put a progress bar on a mobile Flex project... I feel like I'm in Bizarro-world...
I have an app in Flex 4 that is usinf MX and Spark - but with the HALO theme.When it was in Flex 3, I styled things using CSS and swf skins.In my CSS it had rules such as:RadioButton{ disabledIcon: Embed(source="skins_new.swf", symbol="RadioButton_disabledIcon"); upIcon: Embed(source="skins_new.swf", symbol="RadioButton_upIcon"); downIcon: Embed(source="skins_new.swf", symbol="RadioButton_downIcon")}1) How can I use this same swf and it's symbol to stylize a s|RadioButton (spark radio button) in the exact same way?I have tried this by putting an s| in front of RadioButton in my CSS and it does not work.I am having a very hard time styling all the same components from my Flex 3 app to look exactly the same as Spark components.Even basic ones... like Button, RadioButton, TitleWindow, etc.2) Where can I find all the style properties that spark uses with its spark components?I have looked here: http://help.adobe.com/en_US/FlashPlatform/
I'm looking for a working TLF 2.0 demo of http://labs.adobe.com/technologies/textlayout/demos/. That one appears to be 1.1.I would also like the source, so I can create an Eclipse project. Does that exist as well?Thanks!
Hi,I am working with a custom framework. We replaced Loader with SafeLoader, and it works fine.We need to work with TLFTextField, because the project is multilingual and one of the languages used is oriental (right-to-left), and we need to share fonts.Things work well if all is coded, ie, var tf:TLFTextField = new TLF, addChild(tf), and so on.But when we work with TLFTextFields from the Stage, the component works well in stand-alone, but fails when called by its parent.I mean, if in the component code I trace : this._label=this._instance.getChildByName("label") as TLFTextField; trace("yo",this._instance.getChildByName("label"),(this._instance.getChildByName("label") as TLFTextField),this._label);When I compile the component I get : yo [object TLFTextField] [object TLFTextField] [object TLFTextField]but in its parent I get : yo [object MovieClip] null nullT
i want to write text in this spritei use thes method but not work when i add textfield to sprite the rect become very smallfunction drawRect():Sprite { var redRect:Sprite = new Sprite(); redRect.graphics.beginFill(0xff0000); // red redRect.graphics.drawRect(0,0,30, 30); redRect.graphics.endFill(); var number:TextField =new TextField(); number.text = "1";
i want a way to send content of textflow to ms word with same formati think withClipboard.generalClipboard.setData and RICH_TEXT_FORMAT withe codewhich p.getText() is text of paragraph (p)Clipboard.generalClipboard.setData(ClipboardFormats.HTML_FORMAT,p.getText() );but i get errorhow can i solve this problemthanks in advance
when i insert InlineGraphicElement it insert at the end of linehow to insert in start of line
Hi,I am using BlazeDS in my project to connect to a Tomcat server. I have configured my services in the services-config.xml file and passed the location of the file as an argument to the compiler in Flash Builder.I have a few unit tests that make asynchronous server calls. When I run these tests from within Flash Builder, the tests run fine. But when I run the tests via the flexunit ant task, these tests alone time out while the other tests pass. Also, it does seem like the server is not contacted at all as my log messeges in my server side code are not visible.I tried passing the path to the services-config.xml file and the context root of the application in the mxmlc ant task that compiles my TestRunner.mxml file:<mxmlc file="${main.src.loc}/flexUnitTests/TestRunner.mxml" output="${bin.loc}/TestRunner.swf"> <library-path dir="${lib.loc}" append="true"> <include name="*.swc" /> </library-path> <source-path path-element="${basedir}/src" /> <source-path
I'm reading in TLF markup from a .xml file and displaying it using TextConverter.importToFlow. I also apply a flash.text.StyleSheet like in the CSSFormatterResolver examples (http://blogs.adobe.com/tlf/2011/01/tlf-2-0-changes-subparagraphgroupelements-and-typename-applied-to-textfieldhtmlimporter-and-cssformatresolver.html). I'm trying to get 'marginLeft' and 'marginRight' to work on my 'p' tags that I'm reading in, but they don't seem to be honored.TLF markup looks like this:<p styleName="note"><span styleName="generatedNote">Note: </span>This is dummy content, so nothing here is going to be really that good. Test content, test content.</p>Stylesheet styles are:.note { marginLeft: 10; textIndent: 0; paddingLeft: 10; paddingRight: 10;}.generatedNote { fontWeight: bold;}My goal is trying to get all of the cont
Hi,I checked out cairngorm from SVN and try to build it using Maven 3.0.3. But I encounter these problems:1, mvn complaints that "external" scope is not recognized. (see attachment 1)2, maybe because item 1 above, the build cannot resolve dependencies and failed (see attachement 2)3, in the libraries/pom.xml, the flex sdk version is still 4.1. How can I make it work with flexsdk 4.5.1?Can you help me to figure out how to compile the cairngorm3 correctly?Thanks!York
In the latest pagination example, found here, http://sourceforge.net/projects/tlf.adobe/files/2.0/current/samples.zip/download, the pages 2 and on do not continue where the previous pages left off. They seem to skip a paragraph or more between pages.
When I insert an image in textflow using InlineGraphicElement it works, but when I copy the line with the image to MS Word it copies only the text (not the image).How can i copy the image to MS Word?
Just wondering if the DIVELEMENT always renders a line break after the ending </div> tag. That is not what HTML does so I'm just wondering if its a bug or the way DIVELEMENT is supposed to render. I can't find it documented anywhere so I thought I would run it by folks on the forum.Here is an example:<TextFlow xmlns="http://ns.adobe.com/textLayout/2008" version="2.0.0" locale="en"><div>Concept topic Number 1</div><div>This is some dummy content for flex that has topic type of: concept.</div><div>Note: This is dummy content, so nothing here is going to be really thought provoking or, shall we say, deep.</div></TextFlow>and it renders like this, where the div's are seperated by line breaks:Concept topic Number 1This is some dummy content for flex that has topic type of: concept.Note: This is DAVID's dummy content, so nothing here is going to be really thought provoking or, shall we say,
Hi, I have this issue when the active cursor is at the last position of a flowLeafElement, I can't find a way to force to switch to the beginning of the next FlowLeafElement so it gets the next object formatting.Imagine the text hello world having the current definition as <span id="firstId">hello </span><span id="secondId">world</span>, if I have the cursor a position 6 the cursor gets placed here <span id="someId">hello |</span><span>world</span> but what I really want to achieve is to force the cursor here <span id="someId">hello </span><span>|world</span> so when the user starts typing, it will append text to the beginning of "secondId" SpanElement.Is there a way to achieve this?
Hi,I have been experimenting with bulleted lists, in particular to placing the bullets. This is what I have discovered so far:With "outside" lists, using paragraphEndIndent in ListMarkerFormat, the right most I can put the bullet is with the right edge of the bullet line up with the left edge of the listAutoPadding line. For example:<list listStylePosition='outside' listStyleType='disc' listAutoPadding="40"><listMarkerFormat><ListMarkerFormat paragraphEndIndent="0"/></listMarkerFormat>...With "inside" lists, with empty beforeContent, the left most I can put the bullet is with the left edge of the bullet line up with the right side of the listAutoPadding line. For example:<list listStylePosition='inside' listStyleType='disc' listAutoPadding="40"><listMarkerFormat><ListMarkerFormat beforeContent=""/></listMarkerFormat>...However, there is a "gap" between these two, and that is the bullet sitting right on the listAutoPadding line itself. For
Any advice on the best way of retrieving the absoluteStart and the textLength on a column?So if I have a controller that has two columns, I want to find the character that ends the first column and starts the second one.Thanks,Joel
With the last weekly build, we needed to switch from: var textScrap:TextScrap = textFlow.interactionManager.createTextScrap(); var sTxt:String = String(TextFilter.export(textScrap.textFlow, TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE));to: var textScrap:TextScrap = TextScrap.createTextScrap( textFlow.interactionManager.getSelectionState() ); var newTextFlow:TextFlow = new TextFlow(); newTextFlow.interactionManager = new EditManager(); EditManager(newTextFlow.interactionManager).pasteTextScrap( textScrap , new SelectionState(newTextFlow,0,0) ); var sTxt:String = String(TextFilter.export( newTextFlow, TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE));However, now my formatting is missing (fontFamily, textAlign, etc.). What is the best way to populate the formatting from the selection to the Te
Hi,Im trying to set the editable property and renderer is editable property for a datagrid column to false on the creation complete event of the datagrid.But It does not work.While visible property works.why doesnt the editable property work.The particular column has a renderer which is a text box.and the editable property is set to false initially.Any Suggestions or ideas on how to achieve this will be of great help.
Hi,I am new to the Text Layout Framework and one thing I would like to know is if there is support for getting text outlines or shadows. It would be best if it can support things that are specified in the TTML or DFXP specification. (specifically, tts:textoutline, where a color and thickness of the outline for the text is specified)As I searched online it seemed to me that in the old days in order to support this in Flash we would have to use a glow filter and apply that over which is kind of hacky. Is there a better way to do this now using Text Layout Frameworkand where may I obtain the new functionality/documents to proceed?Thanks for any pointersRyan
I am trying to add rules to the FlexPMD ruleset. I have checked out the code and initially it packaged and compiled correctly, however after adding a new rule and compiling it, the mvn package command fails.I have never used maven before, so I am at a loss as to how to fix it. It has to do with the testing I do know. If I run the command “mvn –Dmaven.test.skip=true package” then I am able to get passed the fail and run FlexPMD with my new rule just fine. When I run just mvn package, here is part of the build including my error:[INFO] ------------------------------------------------------------------------[INFO] Building Adobe Flex PMD RuleSet API 1.2[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-dependency-plugin:2.0:unpack-dependencies (unpack-test-resources) @ flex-pmd-ruleset-api ---[INFO] Unpacking C:\AndrewPMDSource\flex-pmd-test-resources\target\flex-pmd-test-resources-1.2-resources.zipto C:\AndrewPMDSource\flex-pmd-ruleset-a
hi there,i hope this is the right forum, since i'm only talking about the FTE rather than the TLF atm. i work with the FTE to create text from html. in my application, the font can be set dynamically, so i don't always know, if the requested styles like bold/italic are available, but i always want the text to appear like it is formatted with html tags like <em>,<strong>.i check the availablity with FontDescription.isFontCompatible() - this is where the journey begins. what should i do if the requested style isn't available?e.g. i use tahoma and have regular and bold embedded, but there's no italic nor bold-italic style available. i can of course force using _sans, but this really gives crappy results.is there an easy and natively available way to fake bold/italic, or do i have to stretch/skew the text on my own to fake the styles?thanks in advance!best regards, daniel
There seems to be a problem for the Lists Markup and Lists Examples PDF's on the TLF Blog for this topic: http://blogs.adobe.com/tlf/2010/07/tlf-20-lists-markup.htmlLists Markup points to here: http://blogs.adobe.com/tlf/files/tlf/ListsMarkup.pdfand Lists Examples points to here: http://blogs.adobe.com/tlf/files/tlf/Lists.pdfNeither seem to bring up the PDF for me. I tried IE 8 and FF 4.
I am having trouble getting a textflow markup string out of a textarea component. Using a simple spark textarea and the following code I get the following markup string.typ is the spark text area that houses the flow that I need converted and tlfText is a box to view the markup.tlfTest.text = TextConverter.export(typ.textFlow, TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE).toString();This code seems to work in the example below:http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/I have essentially copied the conversion part of the example and am getting markup that looks like this:<TextFlow whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p><span></span></p></TextFlow>This is for a blank window, but even when there is text with formatting it doesn't markup all the formatting. The paragraph and span elements always seem to be fine. However the higher l
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.