Hebrew RTL (right to left) text on Flash - actionscript-3

I have to get a input TextField to work reversed to support hebrew text, which is a "right to left" language. I need something as google's translator on hebraic mode (go to translate.google.com and select hebraic as the input language)
I'm using Flash CS5 and AS3, exporting for Adobe AIR 2.0.
Is there some ready solution? I wouldn't like to reinvent the wheel.

Try going straight to the properties panel of a text field and changing it to TLF instead of classic. Then go to Edit > Preferences > Text and mark the "Shot right to left text options", then hit OK. Go back to the properties panel of the text field and look for the "right to left" option
Hope it helps, that is the best solution I could find.
Cheers!

Flash Player 10 supports right-to-left using the new classes in the flashx.textLayout package and subpackages.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/package-detail.html
I searched and couldn't find any example, either in the help or elsewhere.

Related

How to control the ios keyboard at the time of using the input tag of html

I am creating a learning Ipad app for the Japanese by using the objective-c.
The app downloads and views learning contents that has been made in HTML every time learning.
In English Learning contents of the application, There are input boxes to enter the English.
So, I want to control the ios keyboard to force the alphanumeric half size at the time of using the input box of html (or, to display the English keyboard by default),But I couldn't.
I tried using the type attribute specification of the input tag of html, but none could not be used.
I would like you to tell me if there is any good way.
You can't force-change the keyboard on the user, Apple doesn't allow that. If your UITextField requires a specific type of the standard keyboard, you can select that in Interface Builder or from code. If the user has selected a custom keyboard for themselves, you can't force them to change it to the one you want.

Move cursor across html tags in text editor

How can I move the cursor across HTML tags in a text editor like Sublime Text or anything else instead of pressing ctrl+arrow (not a direct move) keys so many times?
Is there any shortcut available?, if not, how can I create one for Sublime Text editor?
Here is how I want to move the cursor.
<html>
<p>
"a"
</p>
<div>
"b"
</div>
</html>
I want move the cursor from position a to b using a shortcut.
I'm not familiar with Sublime but I have heard that it's very similar to Textmate, it may actually be based on Textmate, I'm not sure.
I am familiar with Textmate 1.5 though, and it does have a feature like this which allows you to setup tab triggers and templates by using the built in Bundle Editor.
note: it's worth noting that there is a newer version of Textmate available. I believe the current version is 2.0 but I tried it and decided to stick with 1.5 because 2.0 implemented some major changes and I preferred to stick with what I was familiar and happy with.
A very basic example of how tab triggers can be used in Textmate would be..
<table border="0" cellpadding="$1" cellspacing="0"><tr><td height="$2"><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr></table></td></tr></table>
This is a simple table spacer that I use in emails rather than using transparent shims. By nesting a table within a table it will prevent it from collapsing and works as a cross-compatible alternative to transparent gif images for email layouts.
By setting this up in Textmate, all I have to do is type tspace followed by a Tab and this code automatically populates at the position of the cursor. Subsequent Tab's will jump the cursor to each $ notation, which is Textmate's own syntax.
So tspace + Tab generates the code, + Tab jumps to $1 where I then fill in the appropriate value, + Tab jumps to $2 where I fill in the appropriate value + Tab jumps to the end of the code block.
note: you can also set it up where any placeholder is repeated so if I notate $1 in more than one location, it will automatically populate everywhere that variable is, the first time I fill it in.
This is only the most basic of examples. There are other similar features in Textmate, and they are only limited by how complex you set them up to be.
Though, as I mentioned, I'm not familiar with Sublime, I did look into it briefly and found this article which outlines the exact same functionality that I've described and how it works within Sublime.

Flash CS6 dynamic text display not clear?

I am using dynamic text field to store score in it, I have embedded font that I am using and its only one.
But on run time while text changing one character at the left most becomes bogus/strange character, unable to figure out why its happening.
Finally I am using bitmap anti-alias for the dynamic field, it fixes the issue but text is not smooth.
If anyone had the same issue ?
You may have embedded the font, but have selected the correct character types to be embedded? i.e. if it's a score, then numerals needs to be selected like so:
(The dialog above may look slightly different in CS6, or may be somewhere else, I'm not sure; I don't use CS6)
Characters that are in the field when compiled will be embedded, and characters that aren't embedded won't render correctly.
Alternatively (instead of embedding), you can select "use device fonts" from the dropdown in the properties panel (if you have created the textfield from within Flash Pro rather than programatically), and that will fix it - literally just experienced this problem with an app I just completed and that was my fix.
If the above doesn't work, then I'm sure that it's something to do with the size of the textfield as mentioned above.
Use alternate fonts when prompted. Embed the fonts you chose, save and close your application and restart.
It solved my problem, its more likely that cs6 has this bug.
Changing CLASSIC TEXT to TLF TEXT solved the problem.

Adobe Air - Starling/Feathers - Text Input without OS level hooks (aka StageText)?

Long story short, I seem to always be running into unpredictable StageText functionality in Adobe AIR applications. I want to avoid triggering the OS native input fields and emulate that functionality in a Feathers/Actionscript component directly.
I've incorporated an on-screen keyboard purely in Feathers and implemented a Button subclass that acts like a basic text input. When the user clicks the button, the on-screen keyboard is displayed and hardware keyboard KEYUP's are intercepted and used to dynamically update the button label attribute.
That all works well enough, but of course I have no flashing cursor or text selectability in my current rudimentary widget. I can continue along my current path and manually implement the rest of what I need, but wanted to ask if anyone has seen or implemented a 'native acting' non-native text input widget in the Feathers/Starling/Actionscript tech stack? (Google seems to say no, but I'm hoping that's wrong. Surely I'm not the only one that thinks AIR's StageText is... troublesome... at best)
I changed my rudimentary widget from a Button subclass to a TextInput with editor factory returning a custom flash.text.TextField that has it's SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING being nixed via preventDefault().
I now have most of what I wanted from my basic text input functionality in that I now have a text widget I can click in and select text and have all the simple cursor functionality I was missing. This still prevents the flaky native-softkeyboard interaction so I think this might suffice.

AvalonDock mouse right click menu

How to disable at DockablePane(UI in AvalonDock.dll) mouse right click menu ?please help,i need that.because i want to provide my project with multi-language and it is only in English
I don't understand how disabling a popup menu could make your project multi-language?
Anyway:
AvalonDock supports localisation using the standard resource mechanism.
The binary download already contains English, Italian and German translations.
You can add your own.
I suggest you look into this and this.