『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
I'm trying to develop a feature where I can insert an image at a specific position in TextArea using Actionscript. I can get user's cursor position using selectionAnchorPosition property.I can create image using InlineGraphicElement that I can add to the TextArea's TextFlow's addChild method, but that adds the image at the end of the content.There is also addChildAt method that allows me to add paragraph with this image in TextFlow at a specific index. But for that, you need to know the index. How do I find the child index from the cursor location? Also, addChildAt allows adding a paragraph. How do I add this image within an existing paragraph? Please help... thanks!
When a rule complains about something,I would like to understand why that something is bad, and how I can do better. I have been looking around but I have not been able to find a page containing such descriptions.
I need to display complex text such as the following:I couldn't find any built-in / out-of-the-box ability in RichText / TextFlow to display such text. There are a few industry standards (LaTeX, MathML, troff/eqn, etc) to define such complex text. Is there any plan to support any of these Math construct standards in Spark text components? Thanks!
Cross Posted at: http://forums.adobe.com/message/3595873#3595873Robin I am using FTETextField, using rotation, and using cff embeded fonts which is verified by FlexGlobals.topLevelApplication.SystemManager.IsFontEmbeded(objFontFo rmat) - which returns true...However, the text looks like crap when rotated. We were able to solve this in our previous iterations via sharpness and thinkness on advanced Anti-Alias settings ( see:http://blog.flexexamples.com/2007/10/24/setting-a-fonts-anti-alias-typ e-sharpness-thickness-and-grid-fit-type-in-flex/), but now we are trying to make all our charting components multi-lingual (http://www.Dedoose.com) and thus using FTE.These options were on UITextFormat, but are no longer available in the FTE components as far as all the sleuthing I've done.I have a simple demo app with a mx label, spark label, and FTETextField. The mx label using a nonCFF embeded font, the spark and FTE using the same cff embeded font.The mx I can control the sharpness
Hi.QuestionWhat's the best way to detect that text typed by user (or added programmatically) exceeds available container space and find out where starts truncated part? Is there available some other (than described bellow) easy way to detect it or disallow set of controllers to receive more characters that can be displayed in given composition area?My partialy failed attempt (simplified)For example lets say that I've got an editable textflow with attached two instances of ContainerController.var flow:TextFlow = createSomeFlowFromGivenString(sampleText), firstController = new ContainerController(firstSprite, 100, 30), lastController = new ContainerController(secondSprite, 600, 30); flow.interactionManager = new EditManager(new UndoManager());flow.flowComposer.addController(firstController);flow.flowComposer.addController(lastController);flow.flowComposer.updateAllControllers();With enabled vertical scroll policy I can compare height of the composition
Below are the relevant software installations. FlexPMD is configured as defined in the documentation.When running FlexPMD, it appears to be churning away, however, there are no results that appear in the FlexPMD View window. Is this an issue only with Eclipse 3.6???** Software versions ***FlexPMD 1.0.0.v200912091712flex-pmd-all-in-one-bundle-1.2Eclipse 3.6FlashBuilder 4.0.1*** Eclipse Log File Entries ***!ENTRY org.eclipse.ui 2 0 2011-02-27 10:49:20.167!MESSAGE Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point!SUBENTRY 1 org.eclipse.ui 2 0 2011-02-27 10:49:20.167!MESSAGE Cannot bind to an undefined command: plug-in='com.adobe.ac.pmd.eclipse', id='com.adobe.ac.pmd.eclipse.flexpmd.runCommand.category'!ENTRY org.eclipse.ui 4 4 2011-02-27 10:49:20.707!MESSAGE Unable to create menu item "com.adobe.ac.pmd.eclipse.toolbar.runCommand", command "com.adobe.ac.pmd.eclipse.flexpmd.runCommand.category" not defined
Ref: http://opensource.adobe.com/svn/opensource/flex/sdk/tags/The Open Source of flex sdk 4.1.0.16076 is missing from the official archive.There is also no README explaining why it is missing.SB
I'm working on an editing application. I have a couple of questions about how breakOpportunity property is applied to spanElements.Say I have entered some text like this:"Which of the diagrams below shows a sketch of y = –3 – f(x)?"And the "y", "f" and "x" in the equation are italicized. So if I export the flow to XML, the relevant paragraphElement looks like this: <p> <span>Which of the diagrams below shows a sketch of </span> <span fontStyle="italic">y</span> <span> = –3 – </span> <span fontStyle ="italic">f</span> <span> (</span> <span fontStyle ="italic">x</span> <span>)?</span> </p>I want to avoid the equation from breaking over a line, so I app
Ok so I have just a few simple questions with the new text framework I need to know the answers of:1) in the old textField you could put an image and align it left so the text wraps around it. Is it somehow possible to achieve this with TLF because I've read align is not supported with the image tag?2) I wanted to set sharpness and thickness of the text so I can imitate the photoshops smooth sharp chrisp modes and it turns out I can't do that, anyone knows if that's going to happen?3) I've read about links and anchor tag that you can't set styles to it so on default it to be with no decoration and on roll over the link to go underlined for example, is that true ? Can I somehow in a simple way apply some styles or it's like what you see is what you get - static text and links with no hover and so on?I think these are the most simple html things a user would want in order to display some text with links and images...Please someone confirm me that I can't do these things or correct me if
Hello,I've got a simple problem but haven't been able to fix it jet so hope you people form TFL will help me. I'm seting up a RichTextEditor component inside a BorderContainer so I can display richText with all its features on a special tooltip that pops up when I pass the mouse over a component.The thing is that before I popUp the element with the popup manager I have to setup the richText in it, and then I have to setup the size of the BorderContainer so all the text gets displayed with no wrapping or clipping.I tried to use the measuring porperties of the RichTextEditor but this properties are set on the measuring pass that at the same time happens some frames later that the popupManager actually puts the element on screen so I don't get the right size.I haven been able to find a function to get a TextLineMetrics objecto or some other element for measuring ether, so wich is the right way to go here?thanksSebastian
How to invoke the Flex PMD in Flash Builder.Could you please provide the steps for this installation.Best RegardsSaravanakumar E
Hi,I've come across a bizarre bug when trying to use the TextConverter to import html text into a RichEditableText.richText.textFlow = TextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT);The problem happens when I set the text a second time with different html text. Some words from the first string get left behind.It put up an example illustrating this problem on my server (including view source code):http://keg.cs.uvic.ca/flexdevtips/flex4/htmltextbug/HtmlTextBug.htmlTo see the bug, click the "Change Text" button, and the RichEditableText will get partially updated. I also tested this in Burrito and it still has the same problem.Has anyone else seen this problem? Should I file a bug on it?Thanks,Chris
I need to highlight some words (search results) in TLF text editor. I am using RichEditableText.Please tell me how I can highlight more than one word at different places (in several paragraphs or spans).I tried to use selectRange() function in RichEditableText. but it highlights only one occurence.Thanks.
Basically this problem occurs when I use CreationComplete to init() my controller etc.I find myself digging around in Debug mode trying to find things like the stage.stageWidth which hasn't really fully be created and for all intesive purposes creation is not complete/!I'm thinking am I missed that it's creationCompleted with a "D" at the end is another place where it's really completed and not still completeing.It seems like an inhereit problem with the flash frame cycling, but alas we can't even have one frame wrong. I'm guessing people turn visibility false and launch a 10 micro second timer to call the real init so one frame later the MobileApplication spark View (in this observence) has actually completed the creation process.I suppose sometime this happens worse with my SplashScreen (initial view) in trying to find the screen size and otherthings.It really seems unknownable and possible near random that a particular thing may or may not be properly initialized when I need access
Flex Error #1001: Digest mismatch with RSL framework_3.0.189825.swf. Redeploy the matching RSL or relink your application with the matching library. Hello good people, I have tried fixing this according to the following URL's instructions: http://www.duzengqiang.com/blog/article.asp?id=681 but it's either not doing it or I keep scewing it up. I have also read: http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_07.html and it doesn't look like I'm screwing it up, but I could me missing something. The real issue is that I tried to show this at my customer's location and now no matter what I do, I can't seem to either get rid of the files that are in the browser cache or it just doesn't work. It only does it when deployed to the server. It never happens on my development machines. I don't have a computer here that it doesn't work on, even my wife's machine runs it just fine and she doesn't have a development environment, so I'm a little confused as to how to handle thi
Yup maybe it's when I'm scalled to fit different Mobile Devices or something but regardless of the width of an iconed button, when I click on the button and call popView via navigator in the MobileApplications, I see briefly the text in the button change from say "Button" to "But..." {dot dot dot} (aka trucncate) and there is no resizing or solution I can find to resolve (looks pretty bad & buggy really).I suspect at this point it's too tightly constrained in size internally and goes bold when clicked (via the default skin maybe) and that triggers this issue.Any work around? Well it's not obvious, other then obviously buggy...What else can I say, I haven't really explaored how easy this is to reproduce?I also just added a discussion thread about proper scalable distributed spacing in Groups and suspect this is related to that. If the text inside the button truly scaled to fit the button as it is resized there is no way the text could ever truncate, even when I set the button width
hey frnds,My textArea should contain text and images in it.I have 1 button which is clicked by users to insert image. And if he want he should clicked on image to select it and press delete keyborad key to delete.But finding difficulty to select image on click on it.Is any way thr or any good sample there to achieve all above?thx in advanced,
Sure this one's prbably me somehow it's hard to explain and reproduce I fear.Basically I'm resizing a text area inside a scroler with dynamically loaded text from an XML file.It's HTML with formating various font sizes and style stuff with/for hyper linking actions and stuff really awesome.Lately I've been trying to resize for multiple devices and potentially try and maintain ledgibility in text in the text areas.Okay well despite all that this still rings try for something buggy I'm pretty sure.I use the scroll knob or my own click drag methods and it stops short of the end...Then I roll my mouses scroller wheel and down it goes to the missing cut off remaining part of the srcoller which was clearly larger but the scroller didn't know about it yet scrolling the scroll wheel made it wake up to the fact that it wasn't at the bottom of the text area/content.Maybe I'll look for a way to update the scroller with a invalidatation call of some sort, that it normally does to some degree anywa
I'm looking at using the same code for all devices in MobileApplication development.I'm found some solutions for resizing and this app was never wanting to be oriented sideways.With the BlackBerry PlayBook it seems the res is 1024x600 which is a sideways orientation!?!Typically as I've mentioned before it seems even deeper in my inital SplashScreen View's creationComplete init function There still isn't a stage variable properly initialized yet (that seems very wrong).Still I'm not sure how it's best to programatically set this before initalizations. Really for that devide it's starts in a Sideways_Orientation (not declared.. thinking of a solution to understand when it's backwards?)...Anyway after some inital tests of doing something like this in a timer waiting for a stage to randomly appear... public function checkStageOrientation(te:TimerEvent = null):void { if(creator.stage
I'm usually invoking FlexPMD for a current file by right-clicking the editor and selecting FlexPMD > Run FlexPMD. I'd like to bind this command to a keyboard shortcut so I went to Preferences / Keys and found "Run FlexPMD on selected resource" command there. However, mapping it to a shortcut and executing it doesn't seem to do anything. Is this a bug or am I doing something wrong?Thanks,Borek
Hi,Please tell me how to add a Ruler to my TLF text editor.Thanks
I'm curious to if there is a reason that backgroundColor and backgroundAlpha are non-interiting. They are the only character formats that do not inherit.Thanks
assuming a View has these sett in mxml and the init meothd is there in a block. creationComplete="init()" destructionPolicy="none"my init is called repeatedly when the view is pushed with pushView I expected it to only call it once with desructionPolicy none and an activateview event instead on the second push.
Right if in Mobile Application developments and of course resizable windows in AIR we need to work with VGroups and HGroups to get things to scal properly.It seems as I'm use to withover systems (IB) you can say in a HGroup there is an item or another HGroup that aligns left and a second that aligns right (maybe through a spacer in the middle). You should be able to say set the width or the encapsulating HGroup and have one item of the left and the other on the right.In this it doesn't seem to do that?! you'd have to rewite Hroup to grow a spacer to the right length in between.Please explain how it's possible or add that functionality.I've noted justify as a means to scale all the buttons to the same size, but you seem to have missed a really important aspect in groups.Another example is a text area with buttons to one side. The bottons maybe in a VGroup should say right=0 maybe a width but shouldn't need it. The TextArea would have similarly left=0 and right=0 as the containing hgroup
Hi every body!I have some problems with Module lazy loading. I am using flex 3.5, Module-flex3-0.14, parsley 3.2.I can't get the LazyModuleLoadPolicy working correctly.In my main application (the one that loads the modules), my parsley context is the following: <cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ OpenViewMessage }" /> <cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }"/> <cairngorm:ParsleyModuleDescriptor objectId="test" url="TestModule.swf" applicationDomain="{ClassInfo.currentDomain}" />And to load my module:[Inject(id="test")] [Bindable] public var test:IModuleManager; <core:LazyModulePod id="moduleLoader"
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.