『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hello ForumI'm taking a first stab at TLF and TextFlow markup. All works fine so far, but I'm unable to create a paragraph with an offset to the left. I was looking at the "Text Layout Editor" Demo (http://labs.adobe.com/technologies/textlayout/demos/), and the Left Margin property is exactly what I'm after. It works in the Demo, but if I use leftMargin="20" in my Markup, it either doesn't work, or I get an Error during compile time, saying: Cannot resolve attribute 'marginLeft' for component type flashx.textLayout.elements.ParagraphElement.Can somebody give me a hint how I can achieve this? Did I miss something obvious?
For some reason I can't seem to get any embedded fonts to show up. Can anyone explain why the following doesn't work? Using the newest Flash Builder.Thanks!-Dave<?xml version="1.0" encoding="utf-8"?> <mx:Application initialize="init();" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" > <fx:Style> @11220649-face { src: url("assets/arial.ttf"); fontFamily: "Arial"; embedAsCFF: true; } </fx:St
I have found that when I use a TLFTextField in Flash CS5 I no longer have access to the FlashVars passed in from HTML.For example, when there is a TLFTextField on stage the following document class doesn't find any FlashVars ...(In this example I am using Arthropod to view the output -http://arthropod.stopp.se)package{ import flash.display.MovieClip; import flash.display.LoaderInfo; import com.carlcalderon.arthropod.Debug; public class TraceFlashVars extends MovieClip { public function TraceFlashVars():void { Debug.clear(); // Trace out all the FlashVars Debug.log("-- FLASHVARS ------
I want to embed a font for use with the new text framework in Flash CS4 just using ActionScript. Can anyone provide an example?
helloI'd like to use TextFlowTextLineFactory class for displaying texts with links. It renders hyperlink but interaction with them is immpossible. No roll over hand and no click response. Am I doing something wrong or just the class ... (Displaying the same text with FlowComposer ends up with correctly working hyperlinks)
Is it possible Adobe release table tag for TLF?
Hello,I need some help, I don't understand what th problem. I create a TextFlow in an flex Application. I declare an InteractionManager, but when I try to select my text, the player give me an error : Vellum: 470 (709639), Flex: 4.0.0.7219, Player: WIN 10,0,22,87 TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul. at flashx.textLayout.edit::SelectionManager$/computeSelectionIndexInContainer() at flashx.textLayout.edit::SelectionManager$/http://ns.adobe.com/textLayout/internal/2008::computeSelectionIndex() at flashx.textLayout.edit::SelectionManager/selectionPoint() at flashx.textLayout.edit::SelectionManager/setNewSelectionPoint() at flashx.textLayout.edit::SelectionManager/handleMouseEventForSelection() at flashx.textLayout.edit::SelectionManager/mo
HiI need to create a text that should not be editable. You can insert it, delete it, change styles but not edit the text in it.I've tried creating a new CustomElement inspired by the SpanElement.The inserts gets done OK, but when the I try to insert or modify the InsertTextOperation creates a new SpanElement and not my CustomElement type. That it calls replaceText that of course that throws an error.Any Ideeas how I can create My Custom element or prevent the modifcations to happen to that element?Thank you
Hi,I wonder if someone can explain the following questions regarding the "UnusedParameterRule":Why is it a blocker?I can imagine a developer gets a warning when he (or she) doesn't use the passed parameters - but I really don't understand why it is a blocker...(Maybe redundant) Where can I find more information about this (and other) rule(s) and the reasons for creating it/them?It is possible I used the wrong search terms, but I really did not find anything... except an example, and I understand the example as such, but not the why!And I know I can change the severity of the rule or ignore the rule entirely, but it is important to me to understand why I should or shouldn't...TIA,Mylène
Hi,I have an application where I would like to create a TextFlow with a heading and body text such as:Heading TitleLorem ipsum dolor sit amet, consectetur adipiscing elit. Cras posuere posuere sem...And I would like the body text to appear in multiple columns. I have created a single TextFlow in a single TextArea and added the columnWidth and columnGap parameters to a div containing the body text, but I only get a single column for the body text. If I set the columnWidth and columnGap on the entire TextFlow, I get multiple columns, but I don't want the title text to be in one column. I can create two TextArea controls in a VGroup and only set the column parameters on the control for the body, but this seems like it should be unncecessary.-Brian<?xml version="1.0" encoding="utf-8"?><s:Application name="RichEditableTextExample" xmlns:fx="http://ns.adobe.com/mxml/2009"  
I dont know what else to do. The video simply doesnt appear. Any help is welcomed.<?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="windowedapplication1_creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import flashx.textLayout.container.ContainerController; &nb
Background: I have used some HTML in high school. I have scripted in a 3D social chat environment called Second Life. I get the rough idea that you communicate through events, functions, variables, and if statements to communicate what you want a computer to do. I know nothing about Flex/Flash/AS3.0 other then the basic explanations that flash and flex are related and can makes applications that can be run in web browsers. The basic information that is repeated over and over, but still answers none of the “How” do you start.I ordered three Books: “Action Script for Multiplayer Games and Virtual Worlds” by Jobe Maker, “Foundation Game Design with Flash” by Rex van der spuy, and “Learning Action Script 3.0 for beginners guide” by Rich Shupe with Zevan Rosser.I have attempted to read each until I started to get lost and although I could follow each for the first chapters, I am completely lose when they ask me to try to make any code because the Flex SDK is a bunch of folders and some file
I read the posts about this, but still can not make it work. This is possible? If yes, how to can make it?Thanks in advance,Marcos
Hi,I have some software classes to run commands on any mxml file.These classes are wrapped in a SWC file. This SWC file is referenced by any sample mxml application (by adding as SWC file).My problem is that I want to test these software classes against my sample mxml file. That is, I should test methods run by software classes on the mxml file.How can I accomplish this?Thanks,Pradeep
Hi all - Is there any condition under which textFlow.flowComposer.getLineAt will not give you a correct value? For a particular text area, textFlow.flowComposer.numLines is coming as 2. I need a logic to compute gap between the 2 lines. when I check textFlow.flowComposer.getLineAt(1).y and textFlow.flowComposer.getLineAt(0).y .. both return the same value. I know its weird but am not able to figure out why is it not working correctly.Pls let me know what could I be doing wrong? Is there any other way to compute textgap between 2 lines? Pls let me know if you need more information. Its kind of urgent.Thanks & Regards,Magesh
Hi I am just new to flex world and pretty much excited with its rich look and behaviour.I got flex 4.0 SDK and trial version of flash builder but I just want to know is there any cost involved in running the flex application in the production?If yes then how much?Or we can create the run the application with free of cost?Please help me to find this.Thanks,Sandy
Here is what I am trying to do but all I see is the text in the second text container. Has anyone got a solution for this?<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="init()" horizontalAlign="left" backgroundColor="#ffffff"><mx:Script> <![CDATA[ import flashx.textLayout.conversion.TextConverter; import flashx.textLayout.container.ContainerController; import flashx.textLayout.compose.StandardFlowComposer; import flashx.textLayout.elements.TextFlow; private var _textFlow:TextFlow private var _defController:ContainerController; private var _textContainer:Sprite; private static const textInput1:XML = <TextFlow color="0x0" fontFamily="Times New Roman" fontSize="12" fontStyle="normal" fontWeight="normal" lineHeight="15" paragraphStartIndent="10" textAlign="left" textDecoration="none" textIndent="0" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"> <
Hi,I would like to overwrite text in a textFlow with new text, keeping the currently selected format. IEditManager(_textFlow.interactionManager).setSelection(0,_textFlow.textLength); IEditManager(_textFlow.interactionManager).overwriteText(txt);Sadly, however, the text gets inserted before the existing text, the "old" text is highlighted. Is there a different way? How can I replace the complete text of a textFlow?I am using the original November built.For any hint I'd be extremely greatful.
Hi, dearI am building the syntax highlight editor by using spark.components.textareamy app invokes setFormatOfRange to put colour on syntax. but I find this API is very very slow.I need wait more than 10s before the UI response meAnd if I comment the setFormatOfRange, it runs smoothly without delaySeems the TLF is very slow at this point, isn't it?Must I change back to use mx.controls.TextArea? is that faster?thank you
Hi Guys,Is there any way to show the image align vertically center to the text in the Layout component?It shouldn't overlap on the next line. I am facing this problem since a long time. We would like to align the text as the refrence image attached below.Any help will be highly appreciated.Regards,Faiz
Hi,I want to create colorful container TLF that seem to be as follows.- 1 character is 1 container- display 1 character in turn- use Linked Containers- SDK: Flex4.1(build 16076) + AIR2.0<?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" creationComplete="init()" minWidth="800" minHeight="600"> <s:layout> <s:HorizontalLayout/> </s:layout> <fx:Script> <![CDATA[ import flashx.textLayout.container.
Hi,I have a problem with adding textFlow element inside textFlow in a position which i want which is editor.selectionAnchorPositionI used simply addchild method but it add my new flow element at the end of the textflow, and addChildAt is not working as it suppose to work 😕😕var p:ParagraphElement = new ParagraphElement();var img:InlineGraphicElement = new InlineGraphicElement();img.source = "assets/images/Image1.png";img.height = 9;img.width = 9;p.addChild(img);editor.textFlow.addChild(p);is there any solution to insert flowElement in a place where selectionAnchorPosition is ?Message was edited by: Othil
After the last update the sample applications started to work - they now even show images.But the unit tests for Commands are reporting errors on my machine:TypeError: Error #1034: Type Coercion failed: cannot convert []@56443a9 to XMLList.at asmock.integration.flexunit::ASMockClassRunner/withBeforeClassesat org.flexunit.runners::ParentRunner/classBlock(ParentRunner.as:221)etc...As I am just starting to explore unit testing, I do not know how to debug it.Can someone help me?Thanks, Zdenek M
Hi Alex,Very good job and congratulations...Just a remark relative to the new implementation of the PopupManager's methods taking an extra argument of IFlexModuleFactory to be able in case of multi-modules application to set styles from the module for popups, I guess your code in PopupBase should look something like : //------------------------------- // moduleFactory //------------------------------- /** * IFlexModuleFactory to apply style from. */ [Bindable] public var moduleFactory : IFlexModuleFactory; /** * Whether or not the popup is open. Setting this property to true * triggers the opening of the popup. Setting it to false will close the * popup. If the popup child view dispatches an Event.CLOSE event, the * popup will also be closed and this property set back to false. */ private function openPopUp() : void { if ( !parent ) { parent = DisplayObject( FlexGlobals.topLevelApplication ); } child = getPopUp(); child.addEventListener( Event.CLOSE, onClose ); dispatchPop
Hi,I need images to be wrapped along text in the TLF. What should I use, an example code would be a great help.ThanksAnkur
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.