『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
hii installed Flash builder 4 in my system and eclipse plugin.this is my source codeAction script filepackage components{ import flashx.textLayout.container.DisplayObjectContainerController; import flashx.textLayout.conversion.TextFilter; import flashx.textLayout.elements.TextFlow; import mx.collections.ArrayCollection; import mx.controls.ComboBox; import mx.core.mx_internal; import mx.events.FlexEvent; import mx.events.ListEvent; use namespace mx_internal; public class CustomComboBox extends ComboBox { private var _textFlow:TextFlow; private var containerController:DisplayObjectContainerController; &
Hi,How can I get an array (or a reference) to the selected paragraphs? I tried a "ElementRange" that is updated every time the SelectionState changes, but it only has a reference to the first and last paragraphs.Any ideas?tks.
I'm trying to change the padding of a paragraph using this (doesn't work):var pf:TextLayoutFormat = new TextLayoutFormat(); pf.paddingRight = 50;IEditManager( textFlow.interactionManager ).applyParagraphFormat(pf);I have several paragraph, but only want to change the padding of one of them. If I do this, I can change the padding of all paragraphs (the container padding):var pf:TextLayoutFormat = new TextLayoutFormat(); pf.paddingRight = 50;IEditManager( textFlow.interactionManager ).applyContainerFormat(pf);Any ideas?
So I've read through the pdf a couple times, and while it's handy on getting started, where does more complete documentation live that I can read/print about the different styles that are supported by TLF markup? There's only a handfull of examples here, and there's no documetion with all the markup attributes that I can find. It's slightly frustrating since I want to:Use a DIV Layer, with paragraph formats ( I am trying to make something look like a blog and want to render convert dhtml to TextFlow)add IMG tags, i tried to use ones from my XHTML skills, no luck, images don't displayAdd a linefeed after all paragraphs,paddingTop doesn't seem to be applied to paragraphs, is there another way to do thishow to use the link tag and styleWhile the components are great, the documenation is lacking, why insn't this included in the ASDocs, there's a lot of information needed.better examples seems like the place for it. Examples, note neccessarily projects to download, for fast reading an
Hi folks...There is problem here:I have something like this in my RichEditableText's textFlow:str = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"+"<div><tab/>" + "<span fontFamily='tahoma' fontSize='12' color='0xc08057'>text specific word text</span></div>"+ "</TextFlow>";RichEditableText.textFlow=TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);I want to use replace() func, just like this:var myPattern:RegExp = new RegExp(TextInput.text,"gi")str = str.replace(myPattern,"<span backgroundColor='#c17e56' color='#dec59d'>"+TextInput.text+"</span>"); RichEditableText.textFlow= TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);But after doing this, my specific word that I had been written in my TextInput, would'nt be a
We are currently using a custom flow composer that extends FlowComposerBase and implements IFlowComposer. In doing so, we are bypassing StandardFlowComposer. In the BaseCompose class, the protected _flowComposer variable is typed as 'StandardFlowComposer', which makes it impossible to use a flow composer that does not descend from StandardFlowComposer.I had discussed this with Richard about this at MAX, and he indicated that it is something that should probably be fixed, so I just wanted to report it here.We compile the TLF sources locally in our project. To work around this issue, I changed the _flowComposer var in BaseCompose to typed as IFlowComposer. The getter for 'lines' and the 'addLine()' method are not currently part of the IFlowComposer interface, so in places where those are used in the ComposeState, I cast _flowComposer to FlowComposerBase.Seems like there would be a couple different options for fixing this issue. We could add the 'lines' gette
Hi all,My understanding is, that in Flash Player 9 and below TextField object was able to display any character from East Asian Languages via device fonts "_serif", "_sans" or "_typewriter".In new FTE that came with Flash Player 10 TextElement object seems to use device font "_serif" only for Latin1 or Cyrillic character sets.For example, FTE is using "Simsun" device (fallback) font to display Chinese language characters and for Thai language characters, FTE is using "Angsana New" device (fallback) font.My question is:Why TextElement from FTE does not use "_serif" device font to display characters for Thai or Chinese language like it did it older brother TextField from Flash Player 9 and below?The problem with "SimSun" or "Angsana New" fonts that they are not present at Windows XP OS (English) at default install configuration setup.
dissappear. No error is thrown, it seems to happen with several different images, some are pngs, jpgs. etc? Any ideas, no error is thrown, it just simply won't display anything.
Hello Friends,I have sucessfully implemented the localization in Flex 3. But the problem is only English, France languages are displayed well but Hindi Fonts are getting displayed as boxes.Can any one help me to come out of this issue? I had searched on google also but yet not able to find the problem.Waiting for quick response.
HiI'm finding that calling setFormatOfRange() on a RichEditableText causes the scroll position to reset. Is this the expected behaviour?If so, how do I prevent it?RegardsMarty
I hope the subject line says it all.First step - how can I determine if the TexFlow that needs to get rendered fits into the target area? Is there a boolean of some sort or do i have to check the overflow length?Once I've done that is there any easy method to get the content that did not fit?More complex - is there a way to force the flow to fit within a container by some means? Or is this too complicated of a situation requring iterating through all flows and resizing, adjusting leading/tracking, etc. until it fits?thanks for any advice!
I just wanted to post this link to the site I've just built using the TLF. After many hours of debugging and posting to this forum it is finally live and I just wanted to feedback to everyone who helped me along the way and say thanks.http://www.signthestripes.co.ukOne of the main problems I had with this project was threading all of the links together. One of the biggest performance issues we found with the TLF was that when you have a format on a link and more than 10 links in a paragraph it struggled to re-draw the paragraph and apply the format. This was a big issue and I hope it's something they fix in the next release.See this thread for more details on this problem : http://forums.adobe.com/thread/598789?tstart=0I solved this problem by detecting when a name in the flow started on a new line and then created a new paragraph. The result is that there are never more than 5 links in one paragraph which solved the performance hit : http://forums.adobe.com/thread/601833?tstart=0and t
Hello,I am trying to mimic the functionality of TextField's "getTextFormat()/setTextFormat()" in a class using TLF. These methods allow you to specify a beginIndex/endIndex and let you get all common styles to the specified range, or for the whole TextField if no range is specified. I have found that the SelectionManager/EditManager will allow you to get/set common formats, which I could then use to create a TextFormat class with the appropriate values. However, these methods only apply to a currently-selected range of text, rather than a programmatically-specified one. Is there any way to do what I'm attempting without, in the example of "getTextFormat()":1) caching a current selection2) caching the focusSelectionFormat/inactiveSelectionFormat3) changing the focusSelectionFormat/noFocusSelectionFormat properties to mimic the current inactiveSelectionFormat (so it doesn't look like I'm selecting them)4) doing a setSelection() on the specified range5) calling get
Hi,How can I implement cupy, cut and paste in actionscript. Basically, I have 3 buttons that I want to use to trigger those actions.Thanks in advance.
I'm trying to set the unfocusedSelectionFormat so that when the text flow container loses focus the text stays selected (the range alpha remains at 1).This works:textFlow = new TextFlow();Configuration(textFlow.configuration).unfocusedSelectionFormat = new SelectionFormat(0xffffff, 1, BlendMode.DIFFERENCE, 0xffffff, 0);This doesn't:var config:Configuration = Configuration(TextFlow.defaultConfiguration).clone();config.unfocusedSelectionFormat = new SelectionFormat(0xffffff, 1, BlendMode.DIFFERENCE, 0xffffff, 0);textFlow = new TextFlow(config);Am I missing something? It seems like the second way should work too.
Hi,How can I change the selection color. I don't want to use the default black. is that possible?Tks in advance!
Can i deploy the flext application and test cases on one machin, but run it from another machine?(the flex application is hosted on a web application)
Can i deploy the flext application and test cases on one machin, but run it on another machine?(the flex application is hosted on a web application)
I have a situation where we're trying to support a halo/mx theme and it seems that no matter what we try with font embedding it will not work. Seems as though it should, but apparently I have something wrong: http://pastebin.com/gL5UJuLAPlease advise.-George
Hi,My "canvas" is managed by a ContainerController in this way:var newPageController:ContainerController = new ContainerController( pageContainer, pageWidth, pageHeight );var controllerFormat:TextLayoutFormat = new TextLayoutFormat(); newPageController.format = controllerFormat;textFlow.flowComposer.addController( newPageController );where "pageContainer" is a Sprite. This is working just fineWhat I need to do now, is be able to remove a section of the "pageContainer" (Sprite) from the text flow. In other words, set another sprite over "pageContainer" and force the text to wrap it.Any ideas will be appreciated,
Revision: 15675Revision: 15675Author: klin@adobe.comDate: 2010-04-23 15:00:42 -0700 (Fri, 23 Apr 2010)Log Message:***********Merge from 4.x to trunk.Fix for http://bugs.adobe.com/jira/browse/SDK-26267. Embedded assets were depending on AdvancedLayoutFeatures and other framework classes. This caused a simple AS-only swf size to be quite large, and even fail to build in an AS-only project in FB. The fixes are:-Softlink FlexVersion using hasDefinition/getDefinition. This gets rid of the dependency on the ResourceManager, which fixes the compile error in FB.-Introduce a new interface, IAssetLayoutFeatures, which contains a subset of the API from AdvancedLayoutFeatures only used by the asset classes. AdvancedLayoutFeatures implements this interface. The interface also removes the API dependency on TransformOffsets.-We can then softlink AdvancedLayoutFeatures and MatrixUtil to remove that dependency.-Use the hardcoded string "ltr" instead of the constant LayoutDirection.LTR to remove t
Revision: 15674Revision: 15674Author: klin@adobe.comDate: 2010-04-23 14:33:18 -0700 (Fri, 23 Apr 2010)Log Message:***********Fix for http://bugs.adobe.com/jira/browse/SDK-26267. Embedded assets were depending on AdvancedLayoutFeatures and other framework classes. This caused a simple AS-only swf size to be quite large, and even fail to build in an AS-only project in FB. The fixes are:-Softlink FlexVersion using hasDefinition/getDefinition. This gets rid of the dependency on the ResourceManager, which fixes the compile error in FB.-Introduce a new interface, IAssetLayoutFeatures, which contains a subset of the API from AdvancedLayoutFeatures only used by the asset classes. AdvancedLayoutFeatures implements this interface. The interface also removes the API dependency on TransformOffsets.-We can then softlink AdvancedLayoutFeatures and MatrixUtil to remove that dependency.-Use the hardcoded string "ltr" instead of the constant LayoutDirection.LTR to remove the dependency on LayoutD
Hello,I'm new to FlexPMD. I have just generated my firsts reports. I have just notice that the attribute externalInfoUrl is always empty.<violation beginline="22" endline="22" begincolumn="0" endcolumn="27" rule="adobe.ac.pmd.rules.naming.TooShortVariable" ruleset="All Flex Rules" package="utils.align" class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="5">This variable name is too short (3 characters minimum, but 1 actually). Detects when a field, local, or parameter has a very short name</violation>I have 2 basics question :- How externalInfoUrl can be useful ? - How I can fill it ?Thanks !
How does the <example> element in the rulepack file, get populated in the pmd.xml file ?
This error is making me cry:TypeError: Error #1009: Cannot access a property or method of a null object reference. at flashx.textLayout.compose::ParcelList/getParcelAtIndex() at flashx.textLayout.compose::ParcelList/adjustForScroll() at flashx.textLayout.compose::ParcelList/beginCompose() at flashx.textLayout.compose::BaseCompose/initializeForComposer() at flashx.textLayout.compose::SimpleCompose/initializeForComposer() at flashx.textLayout.compose::BaseCompose/composeTextFlow() at flashx.textLayout.compose::SimpleCompose/composeTextFlow() at FactoryDisplayComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer() at flashx.textLayout.compose::StandardFlowComposer/internalCompose() at flashx.textLayout.compose::StandardFlowComposer/compose() at flashx.textLayout.factory::TextFl
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.