『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hi there,Just wondering if there's an error in what the EditManager.applylink method is returning. If I select a text area with paragraphs (carriage returns) and use the applyLink method, it will spilt the text up and make several link elements, one inside each paragraph. Ie. if the user selects more than one line of text and formats it as a link the applylink method will spilt the text up in several link elements. The applyLink method will however only return the first of these link elements. I need to get hold of all the link elements made by the applyLinks method. Would it not make more sense to return an Array with all link elements created? Or even better, place all paragraps inside one linkElement, and return this?
Hi, I need to use Hover on column headings of the report using AdvancedDataGridColumn.I'm a beginner in Flex and bit confused what to use to achieve this.Can i use itemRenderer ? and how do i use it?Please help!Thanks in advance!Richa
HelloI'm on the verge of developing a Desktop AIR application for a particular purpose. Now this application has the facility to develop multiple projects. What I would like to do is to save each of this project in a separate file in a specified location. And moreover when I double click this project file, the AIR application should load with the specific project. My main purpose is to port project file of user's choice from one PC to another and open the same (assuming AIR application is installed in that machine) on double clicking it.So if a user has created 5 projects inside the application and wants to share only one of the project, he/she should be able to do that.A application that works the same way is MarketSamurai.I hope I have explained it clearly my requirement, kindly please provide me suggestions.Thanks
1. I dump the compiler options using -dump-config=config.xml2. I then load those options using -load-config+=config.xml3. I can no longer right-click and 'Execute FlexUnit Test'The error says: unable to open c'onfig.xml'However, if I clean and build the project, it's just fine.
Hello,What is the reasoning behind the "MoreThanOneEntryPointInMxml" violation?Its description says:"There are more than 1 public variable in this MXML component"Why .as files are ok to have more than one public variable but .mxml files are not?Why does the Flex FW itself provide a lot of UI components which have multiple public vars but FlexPMD considers such components as not well designed ones?Thanks,Smirnoff
<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" > <s:Scroller width="400" height="400" verticalScrollPolicy="on"> <s:RichEditableText> <s:textFlow> <s:TextFlow> <s:p><s:span>Text</s:span></s:p> <s:p><s:img width="100" height="100" source="http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg" /></s:p> <s:p><s:span>Text</s:span></s:p> <s:p><s:img width="100" height="100" source="http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg" /></s:p> <s:p><s:span>Text</s:span></s:p> <s:p><s:img width="100" height="100" source="http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg" /></s:p
Is there any way with TLF 2.0 to have an Image appear on its own line? Such that the text above it pushes it down as normal but the text above it fills it own line (as normal aka dont break in the middle of a word just because thats where the user ahd their cursor in insert), then the image with no text on either side of it and then the text continues on the next line. Maybe an example would help.1the quick brown fox2jumped over the lazy3dog the quick brownthe user inserts graphic at the V in overand the result is1the quick brown fox [ ]2jumped over the lazy3dog the quick brownSo that when I add some text on line 1 I get 1NEW the quick brown [ ]2fox jumped over the3lazy dog the quick4brownBut when I add a lot of text on line 1 I get 1NEW NEW NEW2the quick brown fox &nb
I'm not seeing any examples that use/work with the Flex 3.2 components, like a TextInput. For example, if I want to use a TextInput to support right-to-left text with Hebrew, can I do that with the TLF? Thanks.
Hi,It looks like after recent updates to NavigationParsley library Navigation's [Enter] handlers are executed before Parsley's [Init] handlers.Is it an intended behaviour now?
HiI've met a strange problem using the function; this is a simple code that works well:package { import flash.display.Sprite; import flash.events.MouseEvent; import fl.text.TLFTextField; import flash.text.TextFieldType; import flash.geom.Rectangle; import flashx.textLayout.elements.Configuration; import flashx.textLayout.elements.TextFlow; import flashx.textLayout.conversion.TextConverter; import flashx.textLayout.conversion.ConversionType; public class scrollV extends Sprite { private var tlf:TLFTextField = new TLFTextField; private var str:String = "Click in this text field. Compare the "+ &nbs
Hi all, New here and new to flex, so please be gentle, and ifI'm in the wrong place, I apologise:o)I've inherited a project that was build under Flex 3.2 and needs to be kept building under that SDK. I've got a license for Flash Builder 4 Premium.The project uses the data visualisation classes, which now appear with a 'Trial' watermark - a bad thing.I understand that under SDK 4 the DVC are now open source so tried extracting the DVC pagage from there and dropping it into \Flex sdk 3.2\frameworks\projects\datavisualization but still see the watermark.Is there a way to get around this?RegardsChris
hi all,I have been working on a project for a Hebrew language class which uses video and captioning. I used the FLVPlayback captioning component which loads a timed text XML file into a text box. Works great on the Mac and mostly on the PC where I have issues with punctuation.I have thus tried changing the text box from a classic to an TLF Text box (since it fully supports RTL) and use this as the target for the FLVPlayback captioning component, but alas, nothing works after I do this (no video or captions).I have pasted some static Hebrew in the TLF text box and taken out the FLVPlayback captioning thing and it works fine. The problem is when it's trying to send the timed text to the TLF box that things don't work.just wondering if anyone out there has any ideas on this, or knows if it's impossible...thanks in advance.Emmanuel
I have a TextArea where user can enter text and modify part of it to superscript, subscript, etc. To make my point / explain my question, I have a simplistic situation where the same text is displayed in RichText. The issue I'm facing is that, as soon as you change some text to superscript, subscript, etc, they become separate span-element and when you do any xml processing on the updated text, the whitespace within span-elements get stripped away. That means, you cannot have any spaces after a superscript or a subscript! So, when I type "H2SO4 is for sulfuric acid" in TextArea and then convert '2' and '4' to subscript, in the RichText, space between the chemical formula and 'is' goes away.This happen as I convert string back to XML using the following:var xmlData:XML = new XML(stringData); I've played with XML.ignoreWhitespace = false but that doesn't solve the issue. Any idea how I can preserve whitespaces within span-
I have this program that runs fcsh.exe and I am running in a problem with files embedded as binary data, e.g.:[Embed(source='bla.dat', mimeType='application/octet-stream')]private const Bla:Class;Randomly after compiling, the file remains locked, i.e. fcsh.exe still holds the write lock on the file bla.dat.The random part had me think this is probably due to the open file object in java not being closed before becoming unreferenced, and so the file remains locked until garbage collection occurs.After digging in, I found this piece of code in DataTranscoder.java which seems to be missing a .close() call: public static void loadData(TranscodingResults asset) throws TranscoderException { DefineBinaryData defineBinaryData = new DefineBinaryData(); try {
Here is what I noticed when I pasted a text in Adobe's text layout demo site for a sample Syriac text. The text is not rendered correctly (what you see is the isolated forms of each character):The corrected form should look like this (as pasted from MS WORD):The fonts used are TTF with opentype layout features. Syriac characters, like Arabic, change their shape depending on their contextual position.what does it take to support Syriac in TLF?
I'm stumped.Can anyone help me to flow text into multiple RichEditableText contianers with different styles applied to each container? When I use the following code, it works for flowing text between the containers but it does not adopt the styles of the RichEditableText objects that I attach.var textFlow:TextFlow;textFlow = TextConverter.importToFlow("one two three four five six seven eight nine ten eleven twelve thirteen", TextConverter.PLAIN_TEXT_FORMAT);textFlow.flowComposer.addController(new ContainerController(richTextEditor1, richTextEditor1.width, richTextEditor1.height));textFlow.flowComposer.addController(new ContainerController(richTextEditor2, richTextEditor2.width, richTextEditor2.height));textFlow.flowComposer.updateAllControllers();I have tried to apply styles directly to the ContainerControllers with no success. I can apply a style to the TextFlow but it uses that style for the all containers where the te
If I want to add image at cursor location in TextArea, I need to use EditManager's insertInlineGraphic. But , insertInlineGraphic doesn't offer any parameters for controlling how an image is placed in the text, such as baselineShift. Whereas InlineGraphicElement allows me fine control over how added image is placed within text via properties such as baselineShift but then there is no way to add this newly created InlineGraphicElement object as cursor location in TextArea! So, how do you overcome this limitation? How do I add an image in Text in TextArea at cursor location via Actionscript and control its baseline?Message was edited by: DilipShah
I want to 'embed' images in my text and so I started experimenting with RichText, TextFlow, etc. To my frustration, I cannot display images in RichText in the way I would like to create TextFlow object (the way 'string' data would come from database, that is converted to TextFlow by the 'view'). Here is a very simple application to put this point across:============<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="1000" creationComplete="application1_initializeHandler(event)" > <s:RichText id="richTxt" width="100%" textFlow="{textFlow}" horizont
i am trying to type text in iclone4 through psc3. it uploads to psc3 with picture but the background layer is locked. when i create a new layer through background it is still locked. unable to type text needed for iclone4. any suggestions. i have the preference xml editor and texture as psc3.
After executed "mvn site", the page "target/flexpmd.html" shows content correctly, while the page "target/site/flexpmd.html" shows nothing! Any body could help me ? Thanks !Here is my pom.xml :================================================================== <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>4.0-pre-alpha-1</version> <extensions>true</extensions> </plugin> <plugin> &
Hi,I'm new at the Text Layout Framework.And I need multiple textflows without losing the abilities of the tlf editor.To be more precise:I have an XML with multiple paragraphs that must be edited and i will split each paragraph into a separate textflow. Finally I want to display each paragraph in it's own container and make it all editable with one tlf editor. (I don't need to flow between the containers)So the question is:Is it possible to have multiple containers/textflows and just one tlf editor that controls the selected container/textflow? (And updating the values when I select an other textcontainer?)Is there someone who can point me to the right direction to control the communication between the containers and the editor?Thanks in advance.Glen
If the cursor is 'inside' a link, editManager.applyLink(null, null, true) does not remove the link. If, instead, you have a small selection that includes a subset of the link, it works as expected. Is this the intended behavior?My current workaround is attached, but it has the sideeffect of causing the cursor's position to be lost. Is there a way around that problem? Edit: I was incorrect about losing the cursor position. The process of removing the link was shifting the focus, and a simple setFocus call fixed that problem. Is this workaround otherwise reasonable?var edit:EditManager = textFlow.interactionManager as EditManager;if(edit.isRangeSelection()) { edit.applyLink(null, null, true); } else { edit.beginCompositeOperation(); var position:int = edit.absoluteStart; edit.selectRange(position, position+1); edit.applyLink(null, null
Hello,First of all thanks for the great tool! It was really something we all missed.I have a question related to the "AlertShow" violation. I got several such violations and the description says"Do not call Alert.show directly.. You should not Alert.show() directly. If an error occurred in the system, you should probably use an ErrorManager to have a consistent way to manage those errors".What exactly was meant by this violation? Could you, please provide more details why this violation pops up and how it is expected to be fixed.Thank you!
Hello experts,I am facing an issue with width of DataGrid columns. We are using Flex 3.2.I am setting the widths for columns in creationComplete handler of DataGrid. When the browser window is resized, say restore down and then maximize,the column widths are changing. Please find the code below:<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="100%" width="100%"><mx:Script> <![CDATA[ import mx.core.ScrollPolicy; [Bindable] private var isVisible:Boolean = true; private function creationCompleteHandler():void{ dataGrid.horizontalScrollPolicy = ScrollPolicy.ON; artis
Hi all!I'm currently developing an application using Parsley 2.3.2 and Cairngorm 3 libraries. My main application view has nested viewstacks and I use Cairngorm navigation library to navigate between the views. The navigation to the nested views works fine, and deferred views are being instantiated properly. However as soon as I add the Enter/Exit handlers to my presentation models, the navigation to my nested views stops working. It always redirects me to the first child of the ViewStack containing the target view. Though the Enter/Exit handlers for my nested view are executed. After I remove Enter/Exit methods, everything works fine again.Is it a bug or expected behaviour?Thanks in advance.
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.