First, let me just show you the project I'm working on. keep in mind that the first name, last name and company name in this animation are actually variable. When one of our clients clicks on the link, they will see their own information in the Flash movie.
[URL]
So, as you can see, I've got the variable in the dynamic text working (we've already had about a hundred customers click on their video to see their own name animated across the screen). But as you can also see in this particular example, the company name goes right off the screen.
I set the text field within the stage, but when I add the actionscript, my_text.autoSize = "left" (or true), the company name goes off to the right as opposed to making the font size smaller to fit inside the stage.
I'm coding this, so if you have some suggestions, please post them in code, not MXML.
but UITextfield is not a TLF component and the example for RichText does not cause the RichText height to grow with the text. What I need is a component that I can set the width, add TLF formatted text and get the height of the component once it has rendered. Just like a TextField does when you add text.
I have an input Text Field with the autoSize property set to true, a DropShadow filter, and with a default text value of "Your text here".When the user enters text in the Text Field, and if their entry exceeds the length of the default text, everything typed after that length is reached APPEARS to have been truncated.
However, when I turn the DropShadow off, the TextField expands to the requirements of the newly entered text. This proves that the TextField actually autosized, but just didn't show the additional characters when the DropShadow was applied. I can then turn the DropShadow back on, showing all of the text in the Text Field. how to autoSize a textfield(so that the user can actually see the expanded TextField) when a DropShadow filter has been applied?
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
I'm relatively new to Actionscript, in fact, I just figured out today how to load text from an external source. I have another issue that I'm not sure how to handle. I have buttons for my main nav, a main text box, and a mini text box (both text boxes are loaded dynamically from external files). I want to have the mini text box load new external text files in the main text box. For instance, I have a button for music, which loads a list of songs in the mini text box. I want to be able to click on the name of one of the songs and have it load the lyrics in the main text box. I'm sure it's simple, I'm just new.
I have another issue that I'm not sure how to handle. I have buttons for my main nav, a main text box, and a mini text box (both text boxes are loaded dynamically from external files). I want to have the mini text box load new external text files in the main text box. For instance, I have a button for music, which loads a list of songs in the mini text box. I want to be able to click on the name of one of the songs and have it load the lyrics in the main text box.
Problem: I am trying to get a very simple text resize going, for my main content area in a flash website. My aim is to get a button, that on click, increases the text size of a dynamic text field.
[Code]....
This is what I tried, I am very new to Action Script, so excuse the futility of my code.
If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document. The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.The code which formats the text boxes is:
with (main["dragAct"+i].dragActText) { text = actText[i+1]; background = true;
I have 4 dynamic text boxes which duplicates the text from a main input text box. How do I write a code to make visible only the dynamic text box I want when clicked it's check box.What is the CODE to make each "DYNAMIC TEXTBOX" visible when clicked on it's checkbox?
I have a dynamic text on the stage which gets updated (shows numbers) when some buttons are pressed.I just need to know if it is possible to show the first dynamic textfield in another dynamic textfield.Lets say the first dynamic textfield called "price" and the second one called "price2". when a button is pressed, the first dynamic textfield "price" will show a number. is it possible to show whatever is shown in the "price" in "price2" ?
I'm creating an XML-driven pie chart in AS3 with 2 text boxes in each pie slice. Both text fields are dynamic in the sense that they are populated by the XML doc and then told where to place themselves in the AS3. I've got them both using the same x and y position to place themselves at the moment (which of course puts them right one top of each other), but I'd like to make one of the fields (which acts like a label or a title to the larger number and % text field) place itself in a particular spot around the other text field. The result I'm looking for is to have the smaller "title" text field appear approximately 5 pixels above and left-justified to the larger "percentage" field.
Anyway, here are two sections of code that I've currently got. The first chunk, for the Tags portion, sets the position for the "percentage" text field using a good old x and y method. The second chunk, for Titles, is setting the position for the smaller "title" text.
//evaluate tags private function evaluateTags():void{ for (s=0; s
I have 2 input textfields on the stage and 1 dynamic textfield.
-input1 is for quantity
-input2 is for page count
When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?
I've made a flash movie which will load four movie clips at runtime. Actually, the number of movie clips will depend upon number of "NODE" in XML file. Keeping XML file thing aside, I've tried hardcoded values; 4. Let me describe you the structure very well:
There is a main empty movie clip, instance name "mc_scroll" which will be only item on stage. In this movie clip, another movie clip whose identifier name is "blueMovie" will be loaded dynamically. Inside this "blueMovie" MC, there is a button instance name is "blueButton" and inside this button there is a "Dynamic Text" field instance name is "btn_text".
Phewww.. so long chain... inshort: mc_scroll->blueMovie->blueButton->btn_text
Now, I can load 4 or any number of "blueMovie" inside "mc_scroll". But I also want to set the button text for each button inside each MC!! I'm sure you guys are getting what I want to do. But its not working. Below is the code:
Code: //INSIDE THE MAIN TIME LINE for(i=0; i<4; i++) {
[code]....
how to assign the text dynamically which is inside a button and this button inside a MC which is created dynamically inside a main MC!
i have a problem with my flash menu. It's simple menu that contains one MC at start that works as button, u can edit size of the menu from external .txt file by changing the value of menu length. All that works fine , my problem is that every new duplicated mc contains dynamic text area as a label. Labels are also loaded from that .txt file , but that works only for the 1st mc because the newly created text areas in mc's dont have Instance Name set. How can i assign them from as?
can't figure out why the dynamic text boxes in my dynamic clip arent picking up the variable when I loop through this recordset!the trace (you'll see here right after I try two ways to assign the variable) traces the correct info back..
I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:
Code: //"this" is the button that was pressed; would return a string ending in //thumberMC_<number of whichever movieclip thumb was clicked> var: testString:String = this;
[code]....
Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).
I'm trying to input a dynamic text field into many dynamic movies. I use a for loop to successfully create 18 movies. I can't seem to get the text to be input dynamically however. The dynamic text field in the dynamic movies is named eventText. This code in the for loop successfully creates 18 movies:
I am using buttons with a dynamic textfield and a function to set the label for various different buttons:
public function setLabel(thisLabel:String) { visibleLabel.text = thisLabel; }
I set a label for each button:
btn_mc.button1.setLabel("2 | Al Sabkha Bus Station - Al Qusais Police Housing");
I have a dynamic textfield ... myText ... which I would like to use as a page title ... so once the button has been clicked, the dynamic textfield should update with the label of the button clicked.
I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep.So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.
1) I've created a MovieClip and placed a Dynamic Text into this clip. I've named the text "text_txt";2) I've exported my MovieClip for action script (made it a class) and gave it name "ImageContainer"; And I deleted MovieClip prototype from stage (to create it dynamically later)
3) On main time line in frame 1 I've placed code:
Code: var clip_mc:ImageContainer = new ImageContainer(); clip_mc.name = "myClip"; addChild(clip_mc);
[Code]...
ADDED: Ha, everything was easy! I should just change one string like this:
Code: MovieClip(getChildByName("myClip")).text_txt.text = "doh";When I placed MovieClip in the beginning everything works fine with Strict Mode! Problem has been solved
Is it possible to add text in and existing dynamic text box which already has text in it. Not at the end but in between some predefined characters or word.
Does anyone know why text put into a dynamic text box would look different than the same text with the same font, size, etc in a static text box. The dynamic text looks jagged and pixel-y, while static box looks normal.
I've seen similar threads but couldn't find one with the exact same issue. I've a PDF / Word document with arabic copy when I try pasting that text in flash all the joined letters start appearing as individual letters.I've tried the dynamic text box solution in which you create a dynamic text box and assign the text to its variable that doesn't work. But strangely when you write arabic in dynamic text box (with out assigning the text to the variable) and double click to select the text box and its content the text starts appearing fine .. but when published its again all individual letter.
here is my code public function loadtext():void{ var text_arry:Array=new Array(xmldata.child(0).name); student_name.text=String(text_arry); } I called this function inside my timeline action window. but it is not working it said undefined...
I am looking for some sample fla files in AS2 where i can see a running example of dynamic text curve (bend) and spacing in between the text through their respective sliders.