4) add another text field to the stage, this one should be a static text field; put some text in it and test the movie again.
5) if you delete the static field and add another dynamic field, all is well again. Simply changing the static field doesn't work. It needs to be deleted and re-added.
I took Kirupa's tutorial on how to make a grassy field (which can be found HERE and it worked out. But now I have a different problem: I need to get all those grassy blades out of my movie at a sudden point. They just need to go, but I can't figure out how to. I tried multiple things:
- Masking the layer doesn't work - Creating a new layer on top of them all, and putting a black square on that one, which covers everything, doesn't work either - Changing the alpha of the first blade...nope.
How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use
mysound = new Sound(); mysound.attachSound("SoundOn"); mysound.start();
and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?
The problem is simple all the field work except the Phone field. I am sure it is somethign to do with the variables, as i don;t know if i am missing a chunk of code or not. [URL] THis contain a php file n flash file
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code: var i:Number = 0; var myInt:Number; var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
I am looking for building a scrollbar for a static text field. I've seen a bunch of examples on the web, but I don't want to use a class file. Any good tutorial on building an AS3 text scrollbar from scratch?
TWO PROBLEMS: THE FIRST ONE: I have one Button instaced botao01 Inside this button i have a animation, with to words alternating in a mask, each one word is a MC with instace names:
txt01_bt01 and txt02_bt01 This two MC have ONLY the text "home" inside, with one frame... its only a MC of a static text All flash have some objects, and this objects change the colors with some variables.... and this works fine. I want to change the colors of this static texts too. BUT when i put the command to change the color of the movie clip txt01_bt01, he really change the color BUT he lost the animation, the movement, he dont have more the movement!
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
I have a movieclip with static text inside of it. The width (correct one) of the movieclip is 204 px, this is what it even reports after dragging it from library to stage. However, if I export the movie and trace the width of the movieclip, I get 214 px. Inside of the clip is a static text field - it is not wider than the clip and it is not even filled up with text completely. Now if I change it to dynamic text and I export the movie, I get the correct width - 204.
i'm trying to learn about clases, and i tried to make an easy XML loader, but i gotta a problem with the attributes that doen't take the value i provide with the att variable. it shows me on the trace statement like undefined, and for example if i change the atrribute instead of being dynamic, to be static, it does work.
Code: class XMLS { function XMLS(Path:String, textfield:TextField, att:String, n:Number) { var miXML:XML = new XML();[code].....
I'm trying to change data in a dataGrid field. I'm using XML as the dataProvider. I need to be able to click on a button outside of the dataGrid and cause the data to update as a result of the button push.
I can't cope with the inheritance of this AS 3.0! I have the next code:
package { import flash.display.Sprite; import flash.text.*; public class CText extends Sprite {
[code]....
My only purpose is to create a text field, which is formatted and to have a chance to manipulate it later, so I think I need to express it as a Sprite.
I'm just doing a test for the moment, where iv'e got a dynamic text field and a button. All i want is when the user presses the button, the numerical value of the number displayed in the text field increases by 1.
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]...........
I am at work right now trying to create a power point for our Christmas party. I know I can do so much more with Flash than I can with any other power point program. Right now, I'm trying to figure out a way to load a list of names into one dynamic text field that changes at certain time intervals. I'm using ActionScript 2 right now b/c I haven't learned 3, yet. Is there a way for Flash to access a word document and load a name say, every minute? I know I could add a different variable name in front of each employee name, like content, content1, content2, but I have a list of like 300 names here. That would take up almost as much time as it would creating a slide for each name in Power Point.
Is it possible to change the way a array element displays in a dynamic text field. example this is the code i was given for flash AS2 lash 8
[Code]...
What I would like is to make the first two items off the array "Gen 1 Fail" and "Warning level 2" red text and warning three and four amber text and "end of list " white is this possible? I have looked at the string class but there does not seem to be a color property and text format seems to change the whole text field.
I am trying to change the background color of a textInput field. I have tried: ActionScript Code: var textInputFormat:TextFormat = new TextFormat(); textInputFormat.color = 0xFF0000; _textInput.setStyle("backgroundColor", textInputFormat); However this doesn't want to work.
Is it possible to change part of the text in a dynamic text field using Actionscript? For example can I change the color of some words that are in the middle of a sentence?
I have a xml menu bar with the menu titles in black. This titles are loaded from an xml file into a dynamic text field inside a movieclip. Well, i would like to set the color of the menu items to red when clicked and back to black when any other menu item is clicked. I know there is a way with actionscript (i have been going on circles around the color class the hole afternoon ) but i cant find it (i admit, im quite a dummy with AS).
I have an input text field in which the user enters text. This text is displayed in an output textfield. The user should have the option to change the color of a selection, This color should be applied to the selection in both the input and output textfield. After that the user should be able to further edit the text without loosing the fomatting.
But pictures say more than words so...
1. The user selects text and sets the color to yellow
2. The text color is set to yellow just like I want
3. This is the actual issue. When the text (in the input field) is edited all text in the ouput field goes black again That's not what I want, I want the colored text to stay colored when the input is edited.
This is my code:
Code: txt_Input.addEventListener(KeyboardEvent.KEY_UP, fncOutput) btn_Format.addEventListener(MouseEvent.CLICK, fncFormat) var tfmBlack:TextFormat = new TextFormat();