I am having a nightmare getting text to display as the font and size I select?I select text tool, I click on MC and start typing, it displays correcly in edit mode.I change the size of the text box (not via transform) and move the text box to where I want the text to display.However, when the application is published the font is showing as though it has been bolded or made a different size.It is not the font size and format I created it in.I have ensured I have no "anti-alias Bitmap" selected, but it's behaving as though it has "animation anti-alias" applied?
I have wrtitten some code that draws a couple of lines with changing alpha and width whenever the mouse is moved. I need to convert this code to AS3 so that I can use it in conjunction with some video tracking.
Code:
var speed:Number = 100; var myNumber:Number; var myMax:Number = 50;[code]...
In my file I have used greensock transform manager class. At he same time I have used a code to generate text field at runtime which can be moved and deleted. Now the problem is that If I select the text box and then select the black box, the text box will lose its selection.Now if I delete the black box the text box will also be deleted . I don't know why it happens every time. But if i select and delete the text box , then only the text box will be deleted, which is quite natural.
I want to make some buttons and use the buttons.fla library. The button is inserted and given an instance name. A second button is inserted (same kind) and given a new instance name. But when I am trying to change the label text in one of my buttons the text is changing on the other button as well. I believed they where separate instances?
I have a code that creates 10 dynamic text fields, along the "y" axis, based on a loop.
What I want to happen is, for each text field that is created, i want the numbers to constantly change based on a timer (they'll all change at the same time, but to random numbers).
Right now, the code below changes the numbers, but keeps stacking the new numbers on top of the old...
Code:
Code: var timer:Timer = new Timer(100,0);//called every Xms, repeated infinately (0); timer.addEventListener (TimerEvent.TIMER, doNumber); timer.start ();
I'm trying to get the letters in a word (each letter is an individual text object) to cycle through three different colors when clicked. Right now, all they do is change from their original color, blue, to black when clicked. No further "cycling" occurs. I'm appending the code. The part of interest is (probably?) in what is presently (and inaccurately) the "traceTextEvent()" function/method. It starts around line 90 of the code.
Is it possible to change the text property of a text field that is contained within a sprite? I've been trying but can't come up with the right syntax. Here is what I'm doing:
I've created a sprite named "lessonSprite" and added a text field to it in one function. Now, in another function, I'd like to change the text in the field.
I have a Dynamic Text box in my Library. I drag it to my main stage and give it a name..it is now a movieclip. The name is 'mcAdmin' I added an event listener for MOUSE_OVER I want the text to change color, but for now I'm just trying to change the text; however, it's not displaying the change in text I want. I do a trace, and the change is in there on the output window, but it is not displayed as such.How can I :1) use AS3 to change the font color of the text2) use AS3 to change the text and have it display?
function onMouseOver_txtAdmin(e:MouseEvent):void{ Mouse.cursor="button"; //Current mcAdmin text is 'Administration' //I want to change the color of Administartion on Mouse_Over
I have a textfield that is dynamicly created which contains some text and has a textformat applied to it, which works fine, and I have my happy little text field.
the problem comes when I try to change the text and textformat after an event. I am doing it as so:
I just started playing with scripting and here is a question i got. I got 1 button.A movie with containts 3 graphics , graph1 , graph2 , graph3 Each graphic contains a Dynamic Text field. The var of that field within graph1 = text1, graph2 = text2 etc. On release should put the text "test" in each of the textfields and should play the whole movie wich contains the graphics with textfields. this is the code i made
Code: on (release) { set ("_root.movie.graph1.text1", test);
I'm trying to put a text in a dynamic text box. The text element, however, is placed dynamically:
var topText:myDynamicText = new myDynamicText(); topText.name = "NameTextTop"; topText.text = String("Text 1"); addChild(topText); topText.text = String("Text 2");
Placing the text element isn't the problem, but I cannot seem to change the text in the element. As you can see, I tried placing the text before and after putting the text element on the stage. Both didn't work. The text element is creating from scratch by adding text with the Text Tool. It's single line dynamic text, Arial regular and the text characters have been embedded. Can anyone tell me what might be the problem, because I'm completely stuck.
I have this piece of code which basically takes some text from an XML file and displays it into a dynamic textbox called "a1" then the same text into another dynamic textbox called "a1h":
Code:
var a1Node=findNode(rootNode, "a1"); a1=getValue(a1Node); var a1box:String = a1; a1h = a1
Say if "a1" is "England" is there a way to make "a1h" say a shorthand version...something like "ENG"I could use a simple if else function but I have lots of dynamic textboxes and lots of different countries.
I've got a flash template, and was just messing around to see how tough it is to work with. Anyways, I changed some text, saved it, exported, and in the SWF, it did not change, it stayed as what it used to say.
I then changed some other text to see if the same thing would happen, and it did. I also added in a text field to see if it would appear, and it did.
why certain text does not show as changed in the SWF?
I have a map of Europe. What I am trying to set up is coding or something to it. trying to make it so when the mouse goes over each country the name of the country is shown.Have made a version with images, however due to the countries being so close together when you run the mouse over where the text is (even if the text is off the space of the country) it shows the text of the other countries
I have a class called Background that has a function that creates a textfield when my movie is first called:
Code: public function MakePoint() { var txt:TextField = new TextField(); addChild(txt); txt.text = "Points: " + StaticValues.puzzlePoints.toString(); }
I want the text to change whenever the user does something. I have a function in another class that controls that. How do I change the text from another class? I've tried with the code below, but it doesn't work:
The text wont populate to Hello. But if I put this on a button click to change the text it works. Not sure what the issue is.I have even tried creating an empty clip into which to load the swf into despite the feedbackHolder_mc being empty.
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()"
i've created a mc and inside that i have a dynamic text field, named 'inside'. Iside the mc i've created three key frames, first frame is untouched, second frame, i've changed the color of my text to red, and in the third i've changed the color to yellow. Now i have i awful blinking mc.I'm trying to change the text of my text field. I'm guessing that for every key frame i create i get a new instance of my text field, so i should change the text in every frame of the mc. So i've tried:
I was wondering how you go about changing the looks of static text via the use of actionscript given the time in seconds when the filter is to be applied/adjusted/removed.so things like the filters and font colour
I am trying to create buttons that will replace the text in a text field.The text field is "Staff_Copy".The buttons are "Staff_Saam_btn", "Staff_Nicolas_btn", "Staff_David_btn", and "Staff_Anthony_btn".
//Code in frame 1 of timeline var Staff_Copy_Value:Number = 0;[code]................
This doesn't work.Whatever the initial value of the variable "Staff_Copy_Value" is will determine the text in the field.So if I use the value 0 as in the above, whatever is in the textfield on the stage shows.If I use 1,2,3, or 4 then the text strings in the defined variables shows up.What am I missing.I am assuming it is has to do with the onEnterFrame command.How do I make the movie keep checking the value of "Staff_Copy_Value"?
I created dynamic Textfield using flash interface and named it "score". Now im trying to change its text in actionscript during runtime, but some strange things happen... Anyway the text is not changing. Other properties are OK , but i cant change the text.
I want to change the text in textfield1 with the inputted text in textfield2..for example, the text in textfield1 is "HELLO" i want to make it "HI" by inputing "HI" in textfield2 after clicking the change button the "HELLO" text will replace by "HI"
I have a set of textfields created in a for loop and I want individual textfield text to change colour on mouse roll-over. I can't get it to work - it throws a 1009 null object reference error:
Code: var textField = new TextField(); textField.x = 150;