4 hours old working with flash CS5, and im trying to create a website that just displays a goggle map with two text fields that the user would enter some details(its for demo purposes), Have no issue with the google Map Part, but i have probably the dumbest Question ever, how do i create a textfield in flash. Or am i using the wrong tool for the task?
I've got a nice bit of code that allows me to dynamically add a dynamic text box to the stage, add text to it and control it's position and formatting:
var txt:TextField = new TextField();txt.text= "feisty";txt.x=50;txt.y=50;var format:TextFormat = new TextFormat();format.color = 0x2F55EA;format.font = "Arial";format.size = 18;txt.setTextFormat(format);stage.addChild(txt);
This just makes the word "feisty" appear on the movie.The problem is that I want to create many words with different positions,different starting times, make them go away and then have different words appear. It would look like this:[URL]The swf at the link was created with After Effects and the file size is 1.5 MB - too big for a web banner. I was told I could recreate the whole thing dynamically with actionscript and get file size way down. I've been working through various tutorials with little luck.
I have a list of 100 words, how do I turn the code above into a cloud of words that appear one or two at a time? I assume I will put the words into an array, but then how do I get the code above to cycle through the array and pick up the position and format attributes?
how do i create multiple text fields with different text in it?
i've tried using createTextField() but you can only make 1 textfield if you give it a different instance name everytime you then should be able to make more but they just disappear.
I am trying to create 2 dynamic text fields at run-time.
With the following lines of code I manage to create the 2 fields but i cannot figure out how set a space between the 2 fields without specifying the _y value.[code]...
I am looking for an alternative way to set a space between the 2 fields instead of specifying the _y value which is shown in bold!
I have combed through the forums and read every font embedding article I could find and still I don't understand what's going on. I have created a simple test case that I have attached to this post. Hopefully someone can tell me what I'm doing wrong.Here's the situation ...ultimately, my goal is to be able to dynamically create text fields with embedded fonts (I'm using Arial or Arial Unicode) that can display a variety of languages (English and Russian are the primary ones I'm working on right now). In the attached sample, I have added a font to the library and set it to use Arial Unicode.I have 3 text fields on the stage: Field 1 is generated entirely from code using createTextField, Field 2 is a design-time text field that uses the embedded library font, and Field 3 is a design-time text field that uses basic Arial rather than Arial Unicode.For the 2 design-time fields I have embedded the glyphs necessary to display English and Russian as well as some others.I also have a few buttons on the stage to create the 3rd text field (using createtextfield), send english or russian text to all 3 fields, and turn embedding on/off of the generated text field.
Here are the results I've found:With embedding OFF:English shows up fine in all 3 text fields (in the generated one, it uses the system default font instead).Russian shows up in the generated field and in the 3rd field (basic Arial) but NOT in the field that uses the embedded library font.With embedding ON:NOTHING shows up in the generated text field the 2 design time fields function the same as they did before.I REALLY don't understand why the design-time text field doesn't work when it uses the library version of the font. Why should that matter? I also don't get why even ENGLISH doesn't work in the generated field when embedding is on.
//EDIT: I just tried using Arial as the font for the generated text field rather than using the linkage name for the library font and now the embedding works. So I guess my main question is why it doesn't work using the library font....I thought that using the library font .
I have created a form based on this tutorial by senocular: [URL]..The ide is to create input text fields on a site where a viewer can write his/her name and email address and then press "send". When the send button is pressed an email will be sent to my own email account.
My problem is that the email is supposed to contain only a name and an email address which the user wrote in the form.
[Code]...
I'm guessing it is because I use CSS to set the format on the input text fields. How can I solve this problem?
I want to dynamically create multiple text fields that fade out and "die". I have been looking over the "sprite" programming but there seems to be nothing that works in CS4. Have I bitten off more than I can chew with this one?THe basic concept is this:I want the function to do the following. Step 1: Create a new dynamic text field.Step 2: Tween it to fade out (or whatever).Step 3: Kill the text field.Key item is that the function should be able to create multiple text fields and each text field may be
I'm having trouble with dynamically assigning text to a dynamically created text field.
[Code]...
I've tried setting up the TextFormat and createTextField as a function that's called on the onRelease handler. I've tried dropping the whole frackin' code in the onRelease function for each button. Neither approach works. I've been digging around on the web, looking for answers, and nothing seems to solve my problem.
I have a linked movieclip that contains two textfields.One of the textfields needs to have regular and bold text, so I thought I would use htmlText however it's only showing the regular font that I embedded?I made the textfield in Flash and called it "details".I also tried to make another textField in the symbol called, "invisi" and I set it not visible:invisi.visible = false;I embedded the BOLD version of the font in the invisi textfield, hoping this would make the "details" text field show the bold font...but no luck.
I have created a Flash 5 Movie which contains numerous input fields.The variables assigned to some of these fields have been converted into numeric format using the Actionscript command Variable =Number(Variable)
I am trying to paginate text in flash using actionscript.Basically there is a fla file with a layer for the actionscript, a layer for the text fields and a layer with next and previous buttons. (next_btn and prev_btn).The flash file looks like an open book, with a multiline dynamic text field on the left page and also on the right page.I want to be able to paginate the String in the "text" varible so that it fillls page 1 of the open book and displays the next chunk of text on page 2 of the open book.Then, when the next button is pressed I want the next bit of next to appear on the left page of the book (page 3) and the next piece of text after that on the right etc etc.At the moment I can only get this to work for a single text field. I need to split the content over two text fields.[code]
I'm looking to send variables from text fields in an HTML source and direct them to a SWF object on the same page. The variables would be sent once the user hits a send button.
we've started using a Flash-based customer management system at work, which we access as a Web service through Internet Explorer (I'm using IE6) and I have to enter each record's information (name, address, etc.) into an Excel spreadsheet.Our IT department has chosen not to develop data import/export capability for this system, so it's up to the end users to develop their own applications.I'd like to automate this data entry, so I'm trying to write a script that will access the Flash being displayed in the browser, and read/write various text fields from the screen.I've been using AutoIT for most of my scripting, but AutoIT doesn't have a way to read Flash objects.Is there some way to do this in JavaScript or some other common scripting language?
I have a movie clip with 5 frames. When I'm on frame 3 (main game play) and I use the setChildIndex command on an on-screen element that exists on the frame itself, the element in question will now be permenantly added to the stage, and will persist across the remaining frames (end level and end game). This behavior was not present in the project until I converted it to CS5. If I remove the setChildIndex command, the on-screen elements stop sorting their depth (as your would expect) and they no longer bleed into the next frame which is for level ending.
I am also having trouble with a dynamic text field. It's currently set to not be selectable, but when you mouse over the field it shows the cursor symbol for your mouse pointer, and when you click over it, a small block highlight appears on the left or right side of the field. You can't change the field contents, or even select them, but when you try a small selection black mark appears on the end of the field. I've destroyed and recreated this field, and the bahavior seems to be staying the same.
I am trying to figure out how to dynamically populate textfields in Flash. The text in the fields will either say ON or OFF based on the value of bstatus.var bstatus will either have a value of 0 or 1 I have the following textfields listed below.I'm not sure if the syntax is correct, but I was thinking that the text fields would be in an array, and I would create a for loop--that will go through the array in order to have the fields populated.
var textFields:Array = new Array(); textFields[0] = compTxt.text; textFields[1] = bathLightTxt.text;
I need basically a way to convert a group of selected text in movieclips separately with Flash commands. For example, I know to select just text items in the stage is:
var theSelectionArray = fl.getDocumentDOM().selection; for(var i = 0; i < theSelectionArray.length; i++){ if(theSelectionArray[i].elementType == "text"){ ... } }
And I know to convert a selection in a movieclip is:
Say, i have a text field with some text in it, and i want to make it have a backgruond with alpha value (as in partially transparent, not sure how to make it sound good ^^). This text field reacts to mouse events, such as clicks and rolls out/over, and each event changes the background color.
I've done some digging and ran across flash.text.TextField.backgroundColor and flash.text.TextField.background properties of text fields. They're cool, but not enough to solve the problem. And obviously, if I change the text field's alpha value, the text will also become transparent.
I know I can create a movieclip below the text field and alter its properties to acheive my goal, but I'm wondering if there is a simpler way.
I think the title says it all. I'm building website and I've come half way now just to notice that my clients cant see my font that supposed to be there. What I've learned so far is that in static text fields, flash should embed it itself since I can't reference to it + embedFonts property not working.[code]...
Ok, I have looked around and I know that this question has been asked many times but I still dont understand. I am developing an ROI calculator and need to acomplish two things, i think one will fix the other but here goes. 1. I need to make sure that when a user inputs their number in the input text field if they us a comma I dont get the NaN as a return. 2. How can I incorporate commas into the final calculation answer. For example if they enter 10000 my net result currently comes back as 105600. I would like it to come back as 105,600. I dont necessarly need to format as currency to make this work.
I am using CS5 and AS3 for the coding on this. I am not very expierenced in coding in Flash, as a matter of fact the fact that I have made it this far is amazing.
Here is my current code:
stop(); CalcBtn.addEventListener(MouseEvent.MOUSE_UP, FindTotal); function formatNumbers(num:Number, comma:Boolean):String {
[Code]....
I have looked at other suggestions and plugged them in with no luck.
New to AS3, and just went through the great Kirupa tutorial on parsing XML using AS3 My trace output is fine, but when I try to send that parsed data to a text box, only the last XML node appears in the text box (named dynamicText_txt).Here's my XML:
Code: <ts><verticals> <alarms><alarmQ1>Is there an alarm?</alarmQ1><alarmQ2>What component is the alarm on?
I have five individual movie clips that dynamically load names from five variables in a txt file (these all fade in and out and overlap the transition of the next). Every time the movie loops, I'd like the movie clips to display the next item in the list until every name has been listed - is this doable? Is there a better way to do this from within flash instead of loading the content dynamically?
I am trying to get some dyanmic text fields to work in my flash movie. I got one to work and have had trouble getting more than one. I think I kinda got it but it works but works funny. I am trying to load text in two different places. When I click on the first instance (Philosophy Section) nothing shows up. When I check the other instance (Eco_Conscience) the text shows up and then when I go back to the Philosophy Section it works. BUT it doesn't work on the first try. I am attaching code and link.
I'm working on a project with a flex component that I designed in flash and exported as a swc. The moment I changed two of the text fields in the flex component to from static to dynamic text fields, my app started throwing an error when I create a new instance of the flex component. I get the following error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@1dddb179 to flash.display.MovieClip. at flash.display::Sprite/constructChildren() at flash.display::Sprite()
[Code]..
When I deleted the text fields from the stage and republished my game swc, it worked fine.
I am trying to load dynamic data into text fields with in flash (.swf) the system is a closed circuit (no internet & web access) basically there are about 10 standalone computers connect through a network and one central computer i created a flash which will be downloaded to all the computers at once and each computer has a unique (name).
My goal is to load the different data into the text field for each computer:
Computer 1 would have winner 1 Computer 2 would have winner 2
and so one........
Steps the code should do..
1. call function and load the "unique (name)." of the computer by going to ("c:/myharddrive/local.ini"); flash will reconize the "ini file to say "this is computer 1
2.then have the txt request come from("c:/CMS/MediaFiles/Data2.txt");
when i publish the file out there is no errors-
When I view the files on each computer there is no data (blank screen")
so my guess it is not seeing the path for new URLRequest("c:/myharddrive/local.ini");
or
new URLRequest("c:/CMS/MediaFiles/Data2.txt");
can anyone breakdown the code and let me know how flash can go to those specific areas on each individual computer and pull the data into flash
I recently created a form in flash and managed to get it all set up so i receive it through e-mail,But, I do not see the info. on what has been typed in the text fields from someone responding to the form. what script should I be using to see that info, once it's emailed to me?
I am having some problems with displaying loaded xml in flash. The content had loaded successfully but am having problems displaying it into dynamic text fields named txtDate, txtTitle and txtDescription.. iv attached the xml aswel
If I have a form with 12 text input fields on one page and on another for a different reason I have 4 text input fields how do I keep this information form the 4 from being passed to my php script?