Flash CS6 dynamic text display not clear? - actionscript-3

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.

Related

how to fast convert bootstrap button into png image file?

that I would like to say, there is a good (or maybe not) bootstrap framework that can generate buttons with simple code.
I really like how these buttons look, and I want to use them in another software, but for this I need them in PNG format.
Why is not satisfied with the option "manually" - the buttons need a lot and not always needed, but when needed - they need fast, do not really want to spend a lot of time creating buttons ...
Current process:
Open page (for example https://www.tutorialrepublic.com/twitter-bootstrap-button-generator.hhp) to set the necessary parameters (button name, size, type, color, icon ...)
Copy the whole screen to the buffer
Insert a screenshot from the buffer into an image editor
Make necessary cropping of this picture, leave only the image of the button itself
Save the result in png format
Use the image in your application.
That I would like to receive:
Open (no difference - internet page, any software, etc...)
Specify the required parameters (button text, size, color, icon)
Press the button - save to PNG, without loss of quality.
Use the image in your application
Maybe someone already solved a similar problem and translated it into a semi-automatic mode, share the implementation.
I use Win10 at workstation
The easiest way would be to manually crop them by Snipping Tool. This works great if you have just a few buttons.
But if you want to take them automatically, I think you can use an python/opencv script to idendify buttons, crop and save them.
Ok, solution found - ShareX (https://getsharex.com/) software with 1 hotkey (ctrl + printscreen) - open crop dialog with zoom, after crop - makes the png-file automatic

Setting A Textfield's .text Attribute Is Clearing Everything

I have a Flash CS6 AS3 project that up until yesterday was displaying text correctly. I have embedded the font Trajan Pro Bold with all of it's symbols and have text fields on my stage using that font.
One text field which has been there for a while is working correctly and changing text as it should. Other text fields are only displaying certain letters. This seems like an embedding problem but I have tried deleting the Font object in the library and recreating it to no avail.
Is there any sort of caching or anything I could clear that could possibly be the problem?
Fixed it. The problem was solved by going to Edit > Preferences > Publish Cache and turning off caching. This increased build time but I was able to turn it back on afterwards to fix the problem and reduce the build time back to normal

Disable back space key for browser based AS3 application

this is insanely annoying problem:
AS3 full screen application based on ADOBE FLEX 4, text field. User types something in text field, and then starts clicking backspace many many times to remove what he just wrote, and for some reason, instead of removing characters from text field it tells browser to GO BACK and user navigates away. Why?! Please, please help, this is so terrible. My users are losing important unsaved this is data while using my application!
i am using safari browser
PLEASE HELP.
Wow, this is terrible, I am so irritated, it happens every single time
It is possible that the focus is lost from your text field when hitting the backspace multiple times (check if you are firing some events on the text field that may cause this), which causes the main window to take focus and trigger 'Back' on the browser.
The root of the problem is that the browser carries out keyboard shortcuts REGARDLESS of the flash app having the focus or not. From what I heard this problem does not exist on Safari's for Mac, only Safari for Windows.
I would check to see what browser you are in and then create a popup saying you this app does NOT work on Safari browser ON windows.
Scratching head*
Well maybe if HAD to solve this, I would use the ExternalInterface to interact with Safari or javascript to PREVENT the history back button from getting applied. So it won't go back to an old page. That is what I would look into.

Actionscript 3 TextField bug with htmlText?

I embed text in textfield, but sometimes it does not render using htmltext. if I use text it renders fine.
Make sure you have the correct embedded font's turned on for that textfield
I reset defaultTextFormat every time I assign htmlText, nad it fixes it.

Flash CS4: Font Disappearing

I have an odd issue while using FlashCS4.
I have a textfield that, when set to
STATIC TEXT works absolutely fine, in
the correct font.
If I set it to DYNAMIC TEXT, the text
shows up as Arial or some other
default on systems where the selected
font isn't available. It shows up in
the proper font on systems that have
the font installed.
If I set it to EMBED CHARACTERS the
text doesn't show up at all on ANY
system, whether the font is installed
or not.
I have tried embedding the font using the [EMBED] tag in my accompanying AS3 code, and I have the font added to the Library in CS4 as well.
In CS4 I've tried selecting the font for the textfield as both the standard OS Font, as well as the one with the Asterisk next to it, but get the same results both ways.
The library font is set to "export for actionscript" and "on frame 1". The font contains no bold/italic/etc. data, and I'm not using any special styling (other than centering the text).
I don't think it's an issue with the font not being available, otherwise it wouldn't show up when it is set to Dynamic without any embedded characters. It's also strange that it wouldn't show up on the computer that has the font installed.
Help?
Did you click on "Character Embedding" and selected Uppercase, lowercase, numerals and punctuation.
I've found that his problem occours when only a set amount is selected. This should work without any other embedding code, and should not need any library.
Try having just the dynamic textfield on a new flash file and try that only, it should work.
A good way of seeing if they embedded properly is when you rotate the text field, as un-embedded will not show up.
Also try this: Under publish settings -> Flash tab, set Generate size report, and it will show you the fonts and the characters that have been embedded.
if they're showing up there, there's something else you're doing or not doing that's causing this
Turns out the particular font I was using was broken somehow. I started using a different version of the font downloaded from a different site, and everything worked normally. I could not detect any errors or corruption in the original font's download. :/