Comma not appearing in Actionscript 3 - actionscript-3

I have a textbok called stateExplanation. I want to dynamically change the text inside the textbook. This is my ActionScript 3:
stateExplanation.text='Small portion of Pro and large portion of other, Both cease.';
and for some reason when I run the Fla file as a Swf, the comma after the word 'other' do not show up. If I change the comma to a '.', the '.' does show up. How do I get the comma to show up?
Note: I am using ActionScript 3 and Flash CS5 with Flash Player 10.

Answered in the comments: the font needed to be embedded.

Related

if statement skipped , uppercase letters not displaying

I'm making a mini game for my multimedia class using Adobe Animate with ActionScript 3.
The first question requires the user to fill in the blanks to print "hi" like in python.
the question looks like this
_____("hi")
then you would fill in the blanks and click on a check answer button.
Then to check if the answer is correct I use an if-else statement like so :
import flash.events.MouseEvent;
stop();
checkBtn1.addEventListener(MouseEvent.CLICK, checkClick);
function checkClick(event:MouseEvent): void
{
if(input1.text == "print")
{
ans1.text = "Correct!";
}
else
{
ans1.text = "Wrong answer!";
}
}
However, even if the input is correct, it will skip the if part of the code and run straight into else.
It also won't display uppercase letters?
It'll display "rong answer!" ignoring the uppercase "W".
Any ideas?
#Organis is right; The font needs to be embedded.
Flash Professional CS5 (and later) automatically embeds any characters used by text fields on the Stage. However, if you are using Dynamic or Input text fields, the project may also need to include characters for the font that aren't specifically contained in instances on the Stage during authoring. If you do not embed the necessary characters and text elements are programmatically displayed or entered by the user, the characters may be missing and the application may appear broken.
Common Mistakes Working with Fonts and Text Objects in Flash
For help embedding fonts, refer to the Adobe documentation on it.
Embedding Fonts with ActionScript
Embedding Fonts in Adobe Animate (Flash)

actionscript can i have symbol with multiple animation?

im building a multi page flash animation , the background is changeless and symbols come to view with some effect and enter a loop . its possible to add more animation effect on symbols and call them when a button is clicked ?
maybe i can label deferent part of symbol time line and call them with as?
something like this
symbol1.loading.play();
and
symbol1.exit.play();
p.s
im new in flash and prefer to do things with code
you can put animation in different moviclip, with first frame blank. As example given you can name movieclips with name as "loading" or "exit"

No Dynamic Text will correctly show, why?

I am learning rudementary flash, and have a book in hand; but am beginning to wonder if there is something wrong with the program or my computer. The following should be simple but only gives me nothing in the dynamic text box or just pieces of letters.
Frame 1
var amount:Number = 1;
Frame 2
howmuch.text = String (amount);
and....nothing ever shows....like ever. I've used this in a simple loop according to the actionscript 3.0 lesson including an amount++ function to make a simple counter.
I'm trying to get each concept and build on it, but have been here at lesson one for days.
using Adobe Flash CC on an iMac I bought here in 2013 running Mountain Lion.
Help please.
Because your text field is a dynamic one you may need to embed the font. Also check if the text color is not the same as the color of the background.

Actionscript 3 loading Chinese symbols into TextField using Actionscript

I am having trouble loading Chinese Symbols into a TextField from another TextField.
I have a dynamic drop down box that loads its text from a string within the actionscript code, however the actionscript code cannot contain chinese symbols.
I thought the easiest way around this problem would be to load the text from another TextField, however it seems to appear blank, failing to load the text.
example
base1_mc.header1.textbox_txt.text=q1.text;
base1_mc.header1.textbox_txt.text = dynamic drop down textbox.
q1.text = chinese symbols inside TextField on the stage.
I thought this would have been a simple problem, however it doesnt appear to be so.
If I try to load it using this
base1_mc.header1.textbox_txt.text=q1;
it loads some text declaring a new and empty function.
Can anyone help me out here?
Try to turn off embedFonts for TextField. I.E.:
textbox_txt.embedFonts = false.

ActionScript not showing up in Actions - Frame window in Flash CS5

In an existing fla file, I'm not able to find strings within actionscript that is contained within certain frames (regardless of which frame it's in). So for example in frame 1 there is the following code:
stop();
But searching for 'stop' (without quotes) doesn't turn up any results.
If I create a new fla file, I'm able to find actionscript in all keyframes. Furthermore, I've noticed that the "Actions - Frame" window shows me a tree of all the ActionScript in the scene, organized by frame. This isn't happening in the first .fla file - I can open up and edit actionscript for a frame, but the tree/index never gets built.
Has anyone run into a situation like this? Is the first .fla corrupt in some way, or is there a setting to allow me to easily find actionscript within all frames? Thanks!
Have you checked the settings in the search box? Maybe the search is document based and the specific file you are having trouble with has different settings from the default one. Try to compare the working file with your "corrupt" file. Actionsctipt should be enabled.