ActionScript 3.0 :: Text Format Size Not Changing Results?
Dec 8, 2010
The text shows up, but it needs to display bigger than it is. It's showing up consistently at about size 10, no matter what I set the size to, even "size = 100" .
public function StimLetter(data:Object) {
// format
var format:TextFormat = new TextFormat();
format.font = "Verdana";
[Code].....
View 4 Replies
Similar Posts:
Apr 30, 2011
My Text Format is not changing colour or size, despite me telling it to do so with the following code. it displays the number of steps taken (a number called Steps) to complete the level in my flash game.
ActionScript Code:
var myFont:TextFormat = new TextFormat;
myFont.font = "Ariel";
myFont.color = 0xCCCCCC;
[Code]....
It displays the box the correct size (height and width), position and number inside, but the text font is still black and small size.
View 2 Replies
May 27, 2009
I have a textField inside a mc. When you roll over an event is triggered.
In the fuction I can do thisCode:event.currentTarget.getChildAt(0).text="fred";and the text changes - so its being targettedI want to change the format of the text so I thoughtCode:event.currentTarget.getChildAt(0).defaultTextFormat=mTitle_fmt;but, its doesn't work.it says "ReferenceError: Error #1037: Cannot assign to a method setTextFormat on flash.text.TextField.at index001_fla::MainTimeline/overHandler()"
View 5 Replies
May 27, 2009
I have a textField inside a mc. When you roll over an event is triggered. In the fuction I can do this:
Code:
event.currentTarget.getChildAt(0).text="fred";
And the text changes - so its being targeted. I want to change the format of the text so I thought.
Code:
event.currentTarget.getChildAt(0).defaultTextFormat=mTitle_fmt;
But, its doesn't work.
It says "ReferenceError: Error #1037: Cannot assign to a method setTextFormat on flash.text.TextField. at index001_fla::MainTimeline/overHandler()"
View 3 Replies
Sep 26, 2010
on click on "elements" i'm dynamically generating coloured boxes (all instances of the same symbol) and the colour of these boxes is applied through a colortransform. in the box there is a textfield and i want the the text to be colored according to the box color. i mean, if the box is dark the text has to be white, and viceversa.
here's the code:
Code:
var box_text:TextField = new TextField();
//textformat for black text
var dark_text:TextFormat = new TextFormat();
[Code]....
View 3 Replies
Feb 10, 2012
now i need to customize the Font, Color, and Size.. can anyone help. I've found many possible solutions but none that I know how to apply to exactly what I have already created.
AS3:
stop();
submit_btn.addEventListener(MouseEvent.CLICK,check Answer);
[code].....
View 21 Replies
May 25, 2010
Im making a grid datatbase and wanted to know more ways to customize the text(besides color, font, size). Something like filters mabye?
View 2 Replies
Dec 23, 2010
I created an multiline TLF editable text field in my fla file. How can I format different alignments and font size for different lines in the same text field?
View 2 Replies
May 13, 2010
I have some text pulled in from a db via cfm and remoted into flash - I'm trying to figure out a way to determine if whether or not a given string requires the vertical space of a multiline text box.Visually, two lines take up more space than a single line and when the string only takes up a single line, the second (empty) line creates to much whitespace and has everything below it too far away from that initial single line. When the string can fill both lines, it doesn't look bad at all - so, ultimately, I'm trying to get that whitespace gone.
View 1 Replies
May 19, 2010
have created a scrolling text area in flash CS3 using a dynamic text box with text inside controlled by a couple of buttons using the .scroll property to add to the scroll value on each click of a button.i am wanting to add two new buttons to decrease and increase the font size of the text within the dynamic text area, which i thought should be fairly easy. i found a .size property which could be applied to text, but i do not think i am using it in the right way. here's what i have tried to do (where 'myText' is the instance name of my dynamic text area):
on (release) {
var myFormat = myText.getTextFormat();
myFormat.size += 10;
[code].....
View 2 Replies
Jan 23, 2002
is there a way by which i could change the font and colour of a dynamic text,during run time.
View 7 Replies
Jul 18, 2010
I am using a downloaded script and it is helping me out tremendously. After a little manipultion it is doing wonders for my intended project. The script yields a nunber into a dynamic text field that I would like to enlarge. In other words, make the font larger. I changed the size of the text field but the font size didn't change.Here's my script:
stop();
if (!initialized){
memory = 0;[code]...........
View 1 Replies
Apr 1, 2010
I want to use the UI Text Scroll component on a text box. When I make the initial text box,it is the normal 1 line in depth, based on the font size. When I paste the type into the box it gets very long, which is fine, but when I try to make the text box smaller using the transform tool so that I can make it fit the movie, it makes the type smaller as well. Is there a way to change the height of the box, without it effecting the text inside?
View 2 Replies
Dec 21, 2010
I have a button with variable-length of label text. I have a User Setting that can turn on or off the label text on this button.
How can I implement this?
NOTE: the button's background has a gradient color.
I tried using BlendMode.LAYER, no luck;
I tried using Button.resizeHandler
private function resizeHandler(event:ResizeEvent):void
{
if (event.oldWidth > this.width)
[Code]....
but it only worked if the initial UserSetting value is true.
How about embedded font? I don't know how to apply it to button
View 3 Replies
May 2, 2010
When I set up 3 input text fields, I allow the user to change the font and size of those fields. If the user selects each one with the mouse and modifys them then no problems are seen. But if the user first changes the size and font of text field 2, then tabs to that text field and starts to change the text. The font and size properties revert back to the default.
View 1 Replies
Jun 7, 2010
When I set up 3 input text fields, I allow the user to change the font and size of those fields. If the user selects each one with the mouse and modifys them then no problems are seen. But if the user first changes the size and font of text field 2, then tabs to that text field and starts to change the text. The font and size properties revert back to the default.
I could re-apply the formating everytime the text field changes, but that seems like a bandaid to the problem.
View 1 Replies
Feb 6, 2011
I wrote a program to benchmark different version of functions(bitshifting vs integer math) against one another. I thought I had dealt with some inaccuracies that seemed to crop up when you run two functions in the same cycle, but now the answers are changing greatly depending on how the programs is run.
If I run it from Flash CS5, it says bitShifting is better.
If I run it from just FlashPlayer 10, is says bitShifting is bad.
If I run it from FireFox, it says bitShifting is really really bad.
In the end I imagine what happens in the internet browser is what should go, because 9 out of 10 times that's where people will be loading my stuff.
But....What is is going here? I thought my program was fairly solid and by looking at the % of differences between two functions I was taking in to account the time of the for loop itself used to run the tests. This is really really really really freaking annoying. The only thing I can fathom it is; is something to do with the load of each individual program that is running and what resources each function needs.Here is the base code from the benchmarking program I made.If you copy and paste it to Flash, you will need to create:
- decent sized text Field with the instance name "tOut" for Output
- a small text Field with the instance name "tLoop" for # of loops to run
- a MC/text Field with the instance name "btnBegin".
It's setup to easily add to functions, just add vars as needed.
Code:
import flash.utils.getTimer;
var avgTimeA:Number = 0.00;
var avgTimeB:Number = 0.00;[code].............
View 1 Replies
Mar 1, 2010
I have following problem:
Code:
title_txt = new TextInput( );
title_txt.setSize( 100, 20 );
[code]....
View 4 Replies
Apr 6, 2011
I have three images and I want change the images size based on the scene size (default size is 1024x768). After each image has completely loaded I call bindableUtils.setter to set width/height when scene size changes but I don't know how to make a pointer or something like that. I'm using a public var img, but it only works with the last complete image.
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].......
View 2 Replies
Mar 30, 2010
I'm working on a slideshow where I'm calling in photos from an xml file. How do I tell AS to resize the stage according to photo dimensions? Would I need to list the dimensions in the xml file? If so, how would I pull that into the fla file with AS?
View 6 Replies
Feb 11, 2010
I have a MovieClip that is just a 100x100 circle with a stroke but no fill. When I change this to 200x200 using as3 the stroke size doubles. How can I increase the diameter of the circle without changing the stroke size?
View 7 Replies
Aug 17, 2004
I am creating an order form for my flash site. I have never done this before in flash but I have in visual basic. I have a few questions:
1. Is assigning variable names to checkboxes and radio buttons the same as in visual basic? I mean i know that you probably assign them in the properties. ex..say i name a radio button 'radio1', to run a check in my actionscript whether radio1 was checked or not would it be something like if(radio1){}
2. After the person fills out the form I would like to have the results of the order sent to a pre-specified email adress in a certain format. What would be a good way to do this?
View 3 Replies
Sep 30, 2010
I added this to my document class:
Code:
private var title_txt:TextField;
private var artist_txt:TextField;
private var myFormat:TextFormat;
myFormat = new TextFormat();
myFormat.align = "center";
[Code] .....
The problem now is that changes of myFormat (in size or color) don't have any effect on the text in the text fields. Why is this and how can I improve this? Did I forget to import a certain class again?
View 3 Replies
Feb 23, 2010
I have this flash project in which i animate a logo from big to small, the logo in the big state looks pretty good but when the flash movie reduces the image the logo tends to pixelate(i dont know if this term is correct).
View 2 Replies
May 26, 2011
In raw format stream data are divided into many files named "segments". How can I configure the size of this files? I want to make them twice smaller.
View 1 Replies
Nov 8, 2010
I've run into a new problem, this time with positioning. I've narrowed down the line that's causing it--"block.y = block.y + block.height;" in SetOfBlocks.shiftDown. When I take it out, no problem. But with it in, instead of just dropping each block down by a block height, the affected blocks sometimes move up, and also often move about randomly within the X axis--although their new positions always keep them lined up with the 'grid', which is to say, within multiples of the block height and widths.
[Code]...
View 3 Replies
Feb 4, 2009
Trying to format input text fields using format buttons in Actionscript has been challenging. I've been able to put some pieces together, however I am still missing some things. Here's my code:
Code:
function selectText() {
startSelect = Selection.getBeginIndex();[code].........
I need the ability to click the Bold button and it bolds or unbolds at the cursor so if I hit the bold button what I type from that point on will be bold until I hit the button again and then it goes back to regular. I am able to change it to bold or unbold by selecting the text and clicking the button but I also need to do it without selecting.
View 3 Replies
May 18, 2011
I want to have an input text box with the instance name "answer1_input."If the user types in "one" I want it to go to frame 2.If the user types in anything else, I want it to go to frame 3.
View 8 Replies
Dec 10, 2009
I am doing one completely dynamic interface which is control by an admin module. what i want to do is to control the stage size by this admin module.When i press submit in the admin module it will generate one xml file which is connected to the flash flie, and what ever the size is mention in that xml that has to reflect in that flash file. I don't want any supporting file only one swf. I don't know whether it is possible to adjust the stage size dynamically on fly.
View 3 Replies
Jan 13, 2010
each time I test my client app, the camera settings (h & w) are different. It's a Creative Ultra Webcam. Ultimately I will be using a Canon XL2 but using the webby for testing.
I close the test, and restart it, then the settings are good.
View 3 Replies