(Help) Using Input text in Flash CS4 AS3

I am trying to take a user's input (His Name) and then greet the user on the next frame using the name he previously entered. I googled for 2days and was unable to find a way to do this on flash CS4 AS3, i guess because im very new to flash (only 2-3weeks )
Any help would be greatly appreciated, and i am sorry if this was already answered in the forums.
thanks for reading.

If your interested... here's some general "rules of the road" that are basically courtesies...
Don't post the same question in different forums (crossposting).  Folks that help don't like that because they can waste their time providing the same response someone else already offered elsewhere, or their helpful info gets no attention because the OP (original poster) got wrapped up in the discussion elsewhere and never went back to the other forums.  I saw one time where the OP suffered from doing this... the first person to respond in one forum said what they wanted couldn't be done, while my response in another forum showed them how to do it... but they accepted that it couldn't be done and never returned.
Don't post in someone else's posting unless the exact same situation applies to you and it is a current posting.  It is a bit rude to step into someone else's posting just to get attention, which some people do... some with totally unrelated problems.  Or if your problem is even slightly different, it can end up confusing matters for all involved... trying to juggle helping two people where different solutions are needed.
If you get one problem resolved and have another you want help with that does not involve the first, start a new posting.  People search these forums so it helps to have topics match the postings, which will not apply if mutliple topics get resolved under one title.  I recently saw one person tell someone to start a new posting even though they were following up to clarify something of the solution they received... that's wrong and is more likely someone with a case of points greed... as useless as points are, it happens.

Similar Messages

  • Need help in screen capturing for flash CS4 AS3

    Hi, i need help!!!!!!!!!!!!!!!!!!!!!! URGENT!
    I am currently doing Augmented Reality.
    I got my marker to detect my model but my problem now is how to screen capture the content that is in swf.
    (As in capture the dae model shown in the comp not from webcam.)
    & also i just want to capture the swf window not the whole desktop.
    I read online, they say its impossible?
    Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
    (Moreover, does anyone know how to detect multiple dae models with different markers?)
    Anyone can help??? Thanks in adv!!

    My current program (Flash CS4, AS3) only can capture what the webcam sees.
    How do i change it to screen capture (something like print screen) with my .DAE models?
    In the case, when i click on the capture button, it print screen.
    Here's part of the code that capture what the webcam sees.
    private function captureImage(e:MouseEvent):void
       bmd.draw(stage);
       bmp = new Bitmap(bmd);
       bmp.x = 140;
       bmp.y = 40;
       addChild(bmp);
       capture.visible = false;
       saveButton.visible = true;
       discardButton.visible = true;
    Really really need help! URGENT!
    Thanks!

  • How can I NOT let collision happen in Flash CS4(AS3)?

    I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.
    I made a new rectangle into a Movie Clip, with an instance name : "block_mc"
    I made a sphere into a Movie Clip, with an instance name : "ball_mc"
    I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )
    Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.
    Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.
    Now my problem is I don't know if there is a way of not letting objects collide?
    I tried the ".hitTestObject()" but that did not work for me.
    ~ Thanks for Help and Advice~

    I apologize, for this confusing long question, I simply ment to ask:
    Is there a way Flash CS4(AS3.0) will not let Objects on stage collide?
    ~Thank you for any Tips, Advice and Help~

  • Does using the Embed in Flash CS4 load all Embed content first?

    I'm using the Embed in a Flash CS4 AS3 game.  the code looks like this:
    [Embed(source="stuff.swf", symbol="a_mc")]
    This is great, cause I can load large sounds and swf files at runtime and not have to sit there and wait for the swf to compile while developing and testing.  But I've noticed that my swf loads all these embed files on the first frame, and loads them first so the user doesn't see my preloader until almost everything is loaded. 
    I have to have all my assets, including the preloader, in one swf.  Most game sites want everything in one swf. 
    Is there a way to force the embedded content to load in a later frame?
    Thanks!

    PS
    It doesn't even load the stage color, the swf sit there all white until all the embedded content is loaded, then it shows the stage color.  This is not desirable behavior.

  • Adding stroke to text in Flash CS4?

    But I can't figure this out or find it anywhere.
    How do you add/edit stoke on text in Flash CS4??
    Thanks.

    G.Bob,
    > How do you add/edit stoke on text in Flash CS4??
    The closest you can get to a stroke on text is either to a)
    break apart
    the text into a series of shapes and then use the Ink Bottle
    tool to add
    stokes to those shapes or b) use a very strong Glow filter.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Possible to use FlexUnit 4 with Flash CS4?

    When I try to compile and run FlexUnit 4 tests from Flash CS4, there is a run-time error that no tests were found. I believe the cause is that the custom [Test] metadata didn't make it into the SWF, because MXMLC by default does not keep custom AS3 metadata. And unfortunately, Flash CS4 doesn't allow you to supply additional compiler arguments.
    Is there a way to use FlexUnit 4 with Flash CS4?
    Robert

    ... metadata which is part of the Flex Framework, and not the Flash Player API.
    This may seem like splitting hairs but I would disagree with this particular statement. Metadata tags are a general mechanism that is not specific to the Flex framework. I can create and use my own tags in an ActionScript-only project. The tags are part of the Flash Player API because they can be accessed at run-time through flash.utils.describeType.
    Certainly, the metadata can be accessed at compile-time as well. Flex uses tags like [Bindable] for code-generation magic. But FlexUnit is using metadata at run-time, as I understand it.
    Robert

  • Help with Illustrator CS6 and Flash CS4

    Hello I use Illustrator CS6 and Flash CS4. When I export a drawing realized in Illustrator in the size(format) .sof Flash, this one is imported in the library(bookcase) of Flash CS4 but he(it) is created with a multitude of graphic symbols and symbols Bipmap. In the scene(stage) of Flash, the image is illegible it is floutée, apparently it is not a vectorial image. Thank you for your answer. Very cordially.
    Thank You !!!

    Sometimes a picture is better than a description. I had to use a translator to find out that floutee means blurred.
    Generally bitmaps (raster images) are not a strong suite for illustrator. It can do some things with them, just not as much as photoshop. Maybe if you could explain what you want to do with the symbol, then maybe we can give some ideas. Also by posting a screen shot, we might know of where there is a vector alternative.

  • Using input text that's in a MC

    Hi all -
    Tearing my hair out on this, and it seems like it shouldn't be that difficult.
    I've got an input text box (opAnswerTxt) that I've added to a movie clip (questAns) using AS3:
    questAns.addChild(opAnswerTxt);
    That's fine -- I'm able to type text into the text field. Now I need to trace this text. (Ultimately, I will want to capture the text in a variable and then reuse the text in a dynamic text field, but just tracing to make sure I can get the text first.)
    I added a button (opSaveBtn) - also to the MC - and added an event listener to the button:
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    but can't seem to trace the input text. Here's what I'm using:
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text);
    My output is the original default text I have in the text box, rather than the text I just typed in.
    When I add the input text box to the stage, rather than to the MC, it works fine.
    Note: I've tried targeting the instance -- see the following -- but I get an error.
    trace (questAns.opAnswerTxt.text);
    Also tried trace (MovieClip(root).questAns.opAnswerTxt.text) and that didn't work either.
    Can anyone help?
    Thanks!
    Miriam

    Thanks for your quick response. You may be right on this. The MC (and child text box and button) are all within a loop that's parsing an external XML file.
    Basically, I'm trying to create a "form". The questions are in the external XML file (so they can be updated by the customer later). I've got a loop that's parsing the XML file and creating an MC for each question element it finds. Each MC has a question text field (dynamic - populated from the XML), an answer text field (the input text field), and a save button. Here's the code:
    for (var i:int = 0; i < opLen; i++)
    //declare variables - the XML is loaded in the first frame - this all works fine
    var opQuestionElement:XML = opQuestion[i];
    var opQuestText:String = opQuestionElement;
    var opQuestionsElement:XML = opQuestions[i];
    var opQuestNum:int = opQuestion[i];
    //add container to hold each q&a
    questAns = new qAndAMC();
    questAns.width = 575;
    questAns.height = 200;
    questAns.x = 0;
    questAns.y = 0 + i * questAns.height;
    containerOp.addChild(questAns);
    questAns.name = "Q&A #" + (i+1);
    //add question text
    var opQuestionTxt:TextField = new TextField();
    opQuestionTxt.multiline = true;
    opQuestionTxt.wordWrap = true;
    opQuestionTxt.defaultTextFormat = qTextFormat;
    opQuestionTxt.embedFonts = true;
    opQuestionTxt.htmlText = (i+1) + ". " + opQuestText.toString();
    opQuestionTxt.width = 545;
    opQuestionTxt.x = 5;
    opQuestionTxt.y = 10;
    questAns.addChild(opQuestionTxt);
    opQuestionTxt.name = "OpQuestTxt " + (i+1);
    trace(opQuestionTxt.name);
    opQuestionTxtFieldList.push(opQuestionTxt);
    //add answer input text box;
    var opAnswerTxt:TextField = new TextField();
    opAnswerTxt.type = "input";
    opAnswerTxt.multiline = true;
    opAnswerTxt.wordWrap = true;
    opAnswerTxt.background = true;
    opAnswerTxt.backgroundColor = 0xFFFFFF;
    opAnswerTxt.border = true;
    opAnswerTxt.defaultTextFormat = qTextFormat;
    opAnswerTxt.embedFonts = true;
    opAnswerTxt.width = 545;
    opAnswerTxt.height = 110;
    opAnswerTxt.x = 10;
    opAnswerTxt.y = 60;
    opAnswerTxt.text = "Here's some text";
    addChild(opAnswerTxt);
    //add save btn
    opSaveBtn = new saveButton();
    opSaveBtn.x = 522;
    opSaveBtn.y = 188;
    opSaveBtn.buttonMode = true;
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text); //This currently traces "Here's some text", rather than what I type in
    The two things I need to solve are:
    1. I want to be able to "save" the input text in each of the input fields, so if the user navigates away from this frame, the text they input last time isn't lost. Ideally, I'd like all of the input text fields to display whatever text they entered last time -- but they should still be an input field so they can edit the text if they want.
    2. I want to be able to print (or save to a text file) ALL of the question and answer text fields. I believe I need to create a separate print job MC for this?
    Any help you can give would be greatly appreciated!!
    Miriam

  • Using dynamic text in Flash Builder

    Hi,
    I'm trying to get some dynamic text to my web page. The text is readed from .txt file
    I use AS script which i was using in a project I made with Flash Pro and now i try to implement it in Flash Builder project
    The script look like this:
    var req:URLRequest = new URLRequest("design_1.txt");
    var loader:URLLoader = new URLLoader();
    function textLoaded(event:Event):void
    design.text = loader.data;
    loader.addEventListener(Event.COMPLETE, textLoaded);
    loader.load(req);
    So first I made a project with Flash Catalyst and in there I created an area text element. Then I imported the project to Flash Builder and put the AS script in the <Script> section and gave the <RichText> an id="design".  The text is just simple text and formatting happens in richtext element.
    So, when i try to compile the FB project it give me and parse error "undefined property error req", "undefined property error loader" etc.
    So should i alter the AS script for FB or is there something else wrong? I tried to google how to use dynamic text in FB but couldn't find any easytyutorials. I'm mostly a desginer so coding isn't my speciality. But thanks for help!

    Hi Amy,
    You can customize 'New class' generation under Preferences->Editors->Flash
    Builder->FileTemplates->Action Script->New ActionScript class.
    Currently there are no template variables available constructors. But you
    can customize it as following,
    $
    ${import_declaration}
    $ {
      public function ${class_name}() {

  • Help building image swap in flash cs4?

    Hello all,
    I've been trying to research 'flash cs4 image swap' but most everything I find is related to dreamweaver, so I appreciate anyone's help to point me in the right direction.
    I have a project in which I have an opening scene of a main image and 8 thumbnail buttons.  This opening scene is pretty basic, as the thumbnails would link to a new scene or frame label (however I build it).  This 2nd scene or instance in the timeline is where I would display another large image, and 6 new thumnail images that, upon rollover, would swap the large main image with the large version of the active thumbnail.
    Basically I have a main 'menu' of category thumbnails that link to an instance in the timeline that displays the initial large image for that category, and allows the user to mouseover the other thumbnails to see the large images, and then click to go to a specific URL for more information.
    The trouble I have with my rusty, limited AS knowledge is how to effeciently write the AS so that the image swap works. I quickly ran into a wall trying to acomplish this using a very OLD method that would require a LOT of jumping around the timeline.  If there is ANYTHING out there that can help me figure out how to do this efficiently, I would very much appreciate the help.
    Thanks in advance

    that's really what I'm asking, is if there is any such AS to do this.... I would normally do it just using CSS & HTML, but I have to keep it all contained within one page, I can't click to a new page from the opening scene to show the sub category of graphics. I figured I could set the opening scene up easily with a goto frame label 'category 1'.... then at category one is where I need to figure out what to do to swap the images....
    If I keep it very simple with no fade effects or anything, yes I could just jump to a frame and back, and so on.... Instead of animating all the different elements, is there a way to activate an instance of a mc,  like a white to transparent fade, and just have that animate in place and out, chaning the images in a layer below it while it's in place?  I'm really green to AS so I may be talking outta my ear on this,
    your feedback is greatly appreciated.

  • Using input text to alter movieclip

    I have a number of movieclips which I would like to move when a particular value is entered into an input text box. The movieclips simply need to grow longer when a value is added to the input text. eg '10' would cause 'this.movieclip1._xscale += 20;'
    The closest to an explanation of how to achieve this that I could find was here: http://forums.adobe.com/message/140884#140884, but I dont understand what an 'associative array' is!?
    Any ideas anyone? Thanks, R.

    Ok, well I sorted out that bit of script to make it work with my files and it worked, but I think flash is having trouble handling my script.. I am trying to produce a 'clock' where numbers typed into the text box play a single movieclip (as above), the problem being that I am using 60 individual movieclips, and therefore 60xthe 'if ' function code above, and I think it's having a problem as flash seems to get confused with a (seemingly random) part of my code way before I have added all the needed sections of code.
    This is the code I am using (It's a very clumsy way of solving the problem but I am a basic as2 user!):
    time.onChanged = function()
    if(time.text >= 1201 && time.text < 1213) {
              line1._xscale += 20;
      line1._yscale += 20;
      if(time.text >= 1213 && time.text < 1225) {
              line2._xscale += 20;
      line2._yscale += 20;
      if(time.text >= 1225 && time.text < 1237) {
              line3._xscale += 20;
      line3._yscale += 20;
      if(time.text >= 1237 && time.text < 1249) {
              line4._xscale += 20;
      line4._yscale += 20;
      if((time.text >= 1249 && time.text < 1300)or(time.text >=0101 && time.text < 0102)) {
              line5._xscale += 20;
      line5._yscale += 20;
       if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
       if(time.text >= 0113 && time.text < 0125) {
              line7._xscale += 20;
      line7._yscale += 20;
       if(time.text >= 0125 && time.text < 0137) {
              line8._xscale += 20;
      line8._yscale += 20;
        if(time.text >= 0137 && time.text < 0147) {
              line9._xscale += 20;
      line9._yscale += 20;
        if((time.text >= 0147 && time.text < 0160)or(time.text >=0200 && time.text < 0202)) {
              line10._xscale += 20;
      line10._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
    Where time.text is the input text box, line1, line2 etc are my movieclips (there are 60, but only the code for 6 here), and the number ranges are basically incriments of 12 as I am trying to use the time(12hr clock) digits as a number that I can then [ut into a number range that would play the appropriate movieclip.
    Complicated I know but I have attached the file, which works if you enter 1234/1256/1250 etc, and it's a firly basic idea, but I think I am approaching it in the wrong way and am not sure how to work around it!

  • How to use input text

    Hi, I have searched the forums and haven't found what I am looking for.
    I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
    Thanks

    You can access the text of an input box using the text propery of it. It will return a string
    var str:String = inputBox.text;

  • Can you use html text in flash cc html5 project type?

    I'm attempting to dynamically change font color of various words inside a dynamic text field.
    I have tried both these lines of code below. have you dont this can you correct my code please?
    I'm using flash cc and html5 project type. This was possible in previous versions of flash.
    this.Logger.Log_File.htmlText = "<font color='#000000' size='-1'>"+MyGreatNumber+" "+"</font><BR>"+this.Logger.Log_File.htmlText;
    this.Logger.Log_File.htmlText = "<p style="color:#ff0000">"+MyGreatNumber+"</p><br>"+this.Logger.Log_File.htmlText;

    from the easeljs docs: Please note that Text does not support HTML text, and can only display one font style at a time. To use multiple font styles, you will need to create multiple text instances, and position them manually.
    to resolve, edit text in the js file where it's relatively easy to even use rtl text.

  • Is it possible to use 3D objects in Flash CS4 for animation?

    Hi,
    Is it possible to use 3D objects created in 3D Max, Blendor, iClone etc. to perform animation to make Flash Movie more realistic? Can I make nice animations like in iClone 4 Software?
    If it is possible to use 3D Objects in Flash, please provide a sample Tutorial Link if you have any.
    Thanks in advance.

    Here are some links to 3d tutorils which u might find useful
    http://www.adobe.com/devnet/flash/3d_animation.html
    http://www.adobe.com/designcenter/flash/articles/lrvid4059_fl.html
    http://www.flashandmath.com/flashcs4/
    http://www.kirupa.com/developer/flashcs4/intro_3d_flashcs4_pg1.htm

  • Flash CS4/AS3 - How to use a preloader with FLVs?

    Somehow I've had a really hard time finding a straightforward forum answer or tutorial for this--maybe someone can help?
    I have an SWF file that references/loads an external FLV file (www.44designs.com/promo_video.php), but since the FLV file is about 9MB and can take time to load on a slower connection, I think a preloader (something simple like "LOADING...100%") would be a good idea as the FLV loads.
    Anyone have a simple way to do this??  I've had no success in finding what I need--just scripts for loading SWFs.  You can see an example of this on www.44designs.com where a preloader script I've got seems to be referencing the SWF (thus loading almost immediately) instead of the much larger external FLV.  Make sense?  I'm not super AS3 savvy, but I can follow logic and cut and paste

    Great info, thanks for the post!

Maybe you are looking for