『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
I want to be able to dynamically change the font in a TLFTextField to an embedded font (not a device font). I'm using Flash CS5.The only way I've found a TLFTextField will use an embedded font is if the on-stage TLFTextField has been set to use that font through the Flash UI. The example code I've found online (Font.registerFont etc) all works fine for a TextField, but not TLFTextField.Below is a very simple piece of code that I expected to work. I have a font (Earwig Factory) embedded in my library (as DF4, linkage "Earwig"), and the isFontCompatible trace call prints "true", but still it is using the device font - if I remove the system font from my machine (or view the SWF on another machine) it falls back to Times New Roman.Can anyone give a very simple example of a TLFTextField dynamically selecting an embedded font? Eventually I would like to store my fonts in a separate SWC / SWF, but for now just working out of the Library would be a good start.Thanks,Gr
Hi,For one of my project I need to do this : - read a field in a database table- make a remote call and compare returned value with the value returned by previous sql statement- if not equals, I need to download a new databse file and overwrite the old one.Using persistence lib I don't succed in doing this ! It seems that one or more connections are not closed, or maybe a db.begin() without rollback or commit. So I cannot delete the db file one I've make a first request... (file in use, or Error #3119: Database file is currently locked'.) Hope you understand my poor english.. Can you please tell me how to do that ? Thanks
I have Spark text area which contains the following text: "text1\ntext2\text3"Text above is showing as 3 words each on separate line.text1text2text3OkNow i want to stylize text and add background color:var tmp:String = textArea.text.replace("\n", '</span><br/><span backgroundColor="#B22300">'); textArea.textFlow = spark.utils.TextFlowUtil.importFromString('<span backgroundColor="#B22300">'+tmp+'</span>');result: it's not working.So my question is: what am i doing wrong ?
Say I have got three text containers (each has it's own containerController), and each text containers may have several inline images inside, now if I have got a handle of the inlineGraphicElement reference, could I find which text container this inlineGraphicElement belongs to ?or vice versa, is there a way find all inlineGraphicElements within one containerController ?thanks.
How to set source for openzoom multiscale imageI am giving the source to multiscale image as "dzc_output.xml"which is genereated through 'Deepzoom composer' but i am geeting the issueMultiScaleImage.mxml:<openzoom:MultiScaleImage id="image" left="0" right="0" top="0" bottom="0" source="../nature/dzc_output.xml"><openzoom:controllers><openzoom:KeyboardController/><openzoom:MouseController/></openzoom:controllers><openzoom:transformer><openzoom:TweenerTransformer/></openzoom:transformer><openzoom:constraint><openzoom:CompositeConstraint><openzoom:ZoomConstraint maxZoom="200" minZoom="0.5"/><openzoom:VisibilityConstraint visibilityRatio="0.5"/><openzoom:CenterConstraint/></openzoom:CompositeConstraint></openzoom:constraint></openzoom:MultiScaleImage>dzc_output.xml:<?xml version="1.0" encoding="utf-8"?><Collection MaxLevel="8" TileSize="256" Format="jpg"NextItemId="3" ServerFormat="Defa
So here's a weird problem I'm having. I'm basically working on an editor in Flash. I start out with one container and the user can write up text. Then, when the text height in that container reaches the last line, I create a new container. When the first container is full, it correctly jumps to the next container. The same goes for when a user deletes from the second container, it goes back to the first container. These containers represent pages. Now the problem lies with deleting lines from the 2nd container and jumping back to the first one. All works well IF there are characters on the last line of the 1st container. If, however, I have 5 empty lines (just line breaks on them) in the first container, and then I get to the first character in the 2nd container, pressing Backspace doesn't do anything. The flow composer correctly decreases the number of lines, but the cursor only goes in the 1st container when it meets a line that has characters on it. Hitting the Backspace 3 times for
I desperately want to add some custom properties to InlineGraphicElement but I'm crippled by the fact that it is marked as final. Is there a good reason for the class to be final? Final classes and private properties/methods makes it very hard to extend the TLF without branching the core code, which make it annoying to keep up to date with the core TLF.I get that the are potentially unexpected consequences if people extend some of these classes, but there are also valid and useful ways to extend them. I would much prefer a non-final class, and notes in the comments saying that it is potentially dangerous to extend.http://forums.adobe.com/thread/646563 <-- what he said
I have a Flex 3 application, where Burmese device fonts are rendering OK in Flex3 text controls, but not in FTE-based text controls.However, Chinese, Arabic and Thai fonts all failover correctly.Are there known issues or specific languages not supported for failover to system fomts? I'm currently testing with Player 10.3 on Mac in Safari/Chrome/FF.
Hello, I think I found an issue.Have any of you heard of a problem with ItemRender's view states.Primarily a itemrender custom view state.If you set the current state to a custom state, thenmove the mouse over the IR, the hover property sets, and thenthe state shifts to the first defined view state(assuming that the state you set is different)I have an example project that illustrates.
I have an embedded font with a unicode range targeted to the latin base set:unicodeRange = 'U+0020-U+00FF'When my string includes arabic on a mac or kanji/han (chinese) on windows, the failover fails, as in I get the rectangles instead of a replaced device glyph.It was my understanding that the FTE in player 10 swapped out failed glyphs for device glyphs per character. This appears to be working, but not for all cases.On my mac, chinese device glyphs get inserted just fine in the case of this string: "車 and あります Kanji Test"On windows this string fails by placing the rectangles in place of the chinese characters.Another example shows arabic on a mac with the rectangles instead of device arabic glyphs: "Arabic Test كيبورد للكتابة بال"Thanks in advance for any insight.NOTE:Using player 10,0,32,18 on a mac and 10.0.42.34 on windows.Using TLF version 4.0.0.10485
Hello,We need to be able to have a LinkElement that shows a pop up (TitleWindow) when clicked. Before Flex 4.5 came out, we were using our own modified TLF build, which added support for this (among other things) by doing the following:<our_name_space:a href="popup:some_popup_class">Foo</our_name_space:a>However, having our own TLF was causing more headaches than it was worth (mainly trying to cast things as ISWFContext when embeding fonts).Since the TLF version included in Flex 4.5 has most of what we need, we scraped our internalized version and just went with the stock build. However, I still need to be able to support the functionality described above.What would be the best way to implement this kind of functionality? Should we just create a new element type that provides the desired functionality? Can this be done without having to internalize the entire framework?Any advice or links to relevent reading material would be greatly appriciated.Thanks for your time!
I like the addition of the Search This Forum Only option but for the last month or so (maybe more) search hasn't worked for me.No matter what I search for it always returns no results.
Thibault Imbert blogged (http://www.bytearray.org/?p=2767) about the possibility of a new textfield API that's built into the player.Changing horses?
Hey, I just downloaded and am getting running with FlexMetrics. I'm running this from the ant taskdef. When I run it, I get what looks to be valid and fine XML reports generated, but I also get a bunch of warnings, each of which reads:[flex-metrics] Oct 25, 2010 11:54:00 AM de.bokelberg.flex.parser.AS3Scanner$XMLVerifier verify [flex-metrics] WARNING: The markup in the document preceding the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) [flex-metrics] com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) [flex-metrics] com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)The taskdef element is pretty standard:<taskdef name="flex-metrics" classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask" classpath="${flexpmd.libs}/flex-pmd-metrics-ant-task-${flexpmd.version}.jar"> 
Is this the latest and greatest Version 2 Specification? http://voxel.dl.sourceforge.net/project/tlf.adobe/docs/TLF_2.0_specification.pdfJust wondering if there is a version out there that has been updated with some changes that might have made it in to the final release.Thank you!
I have a RichEditabletext control and feed it with html text similar to the below text. <!-- <br/> <font size="13" color="#000066"> <b> <a name="b">B</a> </b> </font> <br/> --> In this case I got a space in front of the Character B. (" "B) They seems to show fine in browser, Any Idea why the TLF put extra space in it?Are we suppose to manually parse out all the extra "line feed"/"new line" before pass them to TLF control?It's interesting that it rip out all the extra line but
Hello.I'm using Flash Builder 4.5 to experiment with building a mobile app for my Android Nexus One. In order to keep the app in landscape mode, regardless of the orientation of the device, I've read that I need to set the following in the "AppName-app.xml" file:<aspectRatio>landscape</aspectRatio><autoOrients>false</autoOrients>And this does work fine in the debugger, however when I attempt to test it on my connected device it throws this error:Error occurred while packaging the application:D:\Projects\FlexMobile\AppName\bin-debug\AppName-app.xml(108): error 103: application.initialWindow.autoOrients is an unexpected element/attributeI know that I'm able to build and test apps on my device, as I've been through the Flex Test Drive for Mobile tutorial (http://www.adobe.com/devnet/flex/testdrivemobile.html) and was able to build and run that app with no issues and this app I'm currently working on does run on the device if I do not attempt to restrict the a
Hello there,This is a question to TLF team.Sometime ago Robin mentioned that eventually 'backgroundColor' for paragraph would be implemented.Any updates on that?Thanks,Igor Borodin
HiI notice a interesting issue when I tried to print a RichEditableText with a textflow that have image.If the control is already on the screen. Printing looks good.If we tried to use a custom print view(the print view get a deepcopy of the textflow that's already showing), the image seems to be missing. Further debugging show that the image status in the textflow is "loadpending" right before it print.Is there anyway to force the textflow to load in the image before it starts printing?Thanks for any idea
Greetings,I have a Flex app (browser based) that will be displaying formatted text in certain sections. Formatting will include (font color, font weight, lists, paragraph padding, italics). I would like the client to be able to update the content in these sections themselves as it will frequently change and may be in several languages.Am I right in understanding that TLF is the best way to go about this? If I use TLF to handle the formatting, what are the options for allowing the client to edit or generate the content? Do I need to build and provide them a subset of the functionality at http://labs.adobe.com/technologies/textlayout/demos/ ? Or is there something easier available?Thank you for any help you can provide.
Hey guysIs Arabic support available in Flex Mobile Projects or AS Mobile Projects? I know TLF supports Desktop and web apps but does it support mobile platforms?
Hello,The documentation is a bit sparse on what to do with binary sockets and the security model. Particularily what it means to 'return a cross domain policy file' ( See Section 1.4.3 and 1.5.6 of Cross Domain Policy File Documentation http://learn.adobe.com/wiki/download/attachments/64389123/CrossDomain_PolicyFile_Specification.pdf?version=1 )This is what my socket server code looks like in PHP:(PHP)if (strcmp( substr($input,0,22), "<policy-file-request/>") == 0 ){ socket_write($socket,"<?xml version=\"1.0\"?>\n<!DOCTYPE cross-domain-policy SYSTEM\n\"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">\n<cross-domain-policy>\n<allow-access-from domain=\"*\" to-ports=\"4041\"/>\n</cross-domain-policy>\n\n");}When I run my AS3 codevar socket:Socket = new Socket(); socket.endian = Endian.BIG_ENDIAN;
We just noticed that our application would hang (for 15s) with the following warning after upgrading to the release 4.5 SDK: Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.at flashx.textLayout.container::TextContainerManager/http://ns.adobe.com/textLayout/internal/2008::factoryUpdateContainerChildren()at flashx.textLayout.container::TextContainerManager/updateContainer()at HTMLHelper/composeHTMLText()at mx.core::FTETextField/validateNow()at mx.core::FTETextField/get textWidth()at mx.charts.chartClasses::DataTip/measure()at mx.core::UIComponent/measureSizes()at mx.core::UIComponent/validateSize()at mx.charts.chartClasses::ChartBase/positionDataTips()at mx.charts.chartClasses::ChartBase/updateDataTipToMatchHitSet()at mx.charts.chartClasses::ChartBase/processRollEvents()at mx.charts.chartClasses::ChartBase/mouseUpHandler() As the code snippet, we are clicking an item within a chart and the entire application would freeze up.Anybody seein
Hi AllI have a RichEditableText control that display HTML text that's readin from a multi-page html file.What's the best way to Print this text control? I try adding the control to the Flex print job, it will print but cut text at the end of page. I also like to have a page header and page count. Is there any way I can tell the TLF to break it into Multipage?Another idea is to launch an external browser with the html file in it and somehow tell that to print.Not sure how but it sounds a bit simpler.Any idea?Thanks
Dear,We are building an online tool to create presentations. Each presentation has default settings like default Header style, Body style etc (fontname, fontsize, color). The aim is to create a rich text editor which handles those default styles - the user can use multiple styles in the same textbox. The trick is that all the textboxes has to update itself when the default styles are updated by a global style editor.I have been looking for examples how to use the style property in TextFlow, FlowElement. I also checkted the hostFormat etc, but I found nothing in this topic how to use styles. I also checked something like CSSFormatResolver with no success.My target is to assign a TextLayoutFormat to an element like ParagraphElement, then let the element updates itself if the particular TextLayoutFormat is updated which happens by changing the default style. I would create three TextLayoutFormat for each style like Header, Body, etc.Is there any way to do that? Suggestions?Thanks,Benjamin
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.