How do I get Flash to recognize my TextInput from class?

Hi -
I'm trying to write a class for a standard input form. I've
got a movieclip in the library and have linked it to this class.
(class included below.)
This movieclip contains several text inputs which I have
declared in my class file. I can get their ._x and ._y values, but
I can't assign to the .text value of the TextInput. Nor can I read
this value when I set it in the parameters tab in flash. It just
comes up as undefined.
It's as though flash does not recognize the instance that was
placed on the stage in the authoring environement as a TextInput. I
can trace out the instance, but Flash does not treat it as a
TextInput because I can not assign a string to the .text property.
If I instantiate the TextInput in my class file and then
position it on the stage - I can assign to it. But this is not as
practical because I can not lay things out visually in Flash. How
do I get Flash to recognize my TextInput instance on the stage from
a class file?
Thanks in advance!
import mx.controls.TextInput;
import mini.slide.*;
class mini.slide.InfoCollect extends Slide{
var first:TextInput;
var testInput:TextInput;
var last:TextInput;
var email:TextInput;
var address:TextInput;
var city:TextInput;
var zip:TextInput;
var phone:TextInput;
function InfoCollect(){
trace("InfoCollect created");
this.first = new TextInput();
this.first.text = "testing";
trace("this.first = " + this.first.text);
}

Since you are putting the assignment and trace statements in
the Constructor function, it is possible that the textInput boxes
have not all yet loaded. So, when you are trying to assign values
to them, they are not present on the stage.
Put your code in an onLoad function. That way you can insure
that all components have loaded before you assign values to them.
The onLoad function will be called when the "onLoad" event is
triggered after all of your movieclip has loaded.
function onLoad() {
---your code here---
}

Similar Messages

  • How can I get iTunes to recognize information imported from media as audiobook vs album?

    I imported a series of audio cd's that contained lecture material into iTunes.  It sees these disks as albums not as a single set of audiobook portions.  Therefore, everytime I listen to a portion of the lecture material, I have to remember exactly what disk and track I left off on.  However when working with audiobooks, iTunes apparently knows to place a bookmark where I left off so that when I choose the book, it starts where I left off.  How can I get this behavior for my lectures?

    If they're MP3, use iTunes to convert them to AAC (M4A) and then use a batch renamer to change the extension to M4B. THEN they'll stay where you left off.
    If they're AAC already, then just change the extension to M4B.

  • How do I get CS3 to recognize RAW files from Canon 7D?

    Current operating System Mac OS X 10.5.8.
    Downloaded Adobe DNG converter.
    Do I now need to update operating system? Or update to CS5?
    Use iphoto.

    you need to dng converter 7.3 or better.  you may as well get the latest:  http://www.adobe.com/downloads/updates/

  • HT1386 how do i get itunes to recognize my new (from 3G to 4S) iphone?

    i cant get my new phone to sync with my old phones itunes. itunes doesnt show the new phone on the left hand side

    Make sure your system meets the requirements to sync the 4S, which are:
    Mac: OS X v10.5.8 or later
    iTunes 10.5 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    If they do, check these articles for troubleshooting steps:
    iPhone not recognized in iTunes for Mac
    iPhone not recognized in iTunes for Windows

  • How do I get iTunes to recognize a new device if I accidentally did not hit new device when I first hooked it up? I hit the button that said I wanted to back it up from my old info

    How do I get iTunes to recognize a new device if I accidentally did not hit new device when I first hooked it up? I hit the button that said I wanted to back it up from my old phone. The new phone is my husbands and I don't want to back up my phone info on it. I re connected it hoping it would prompt me with the option again and it doesn't , it just shows up as a back up to my phone. How can I get it to give me that option in the beginning again

    First of all, I think the first time you sync an iPod that's formatted for Windows on a Mac, the sync process reformats it for Mac. You can check what it is now by looking for the iPod with Disk Utility. If it's Mac OS Extended, it's formatted for Mac already.
    Also, there is no current iPod updater app these days. iTunes handles it through the Restore button. If you are not able to use the latest iTunes because of your Mac, I can understand. The latest version of iTunes should run with 10.3.9 or later, if the hardware can handle it.
    You said the battery was low so let it recharge for a while.
    You should also reset the iPod. It's part of the 5Rs, which you should go through as the starting point for iPod trouble-shooting.
    http://www.apple.com/support/ipod/five_rs/wheel/

  • When I open InDesign files from our design team, the fonts don't show up even though I have them installed on my computer. How do I get it to recognize fonts I have installed?

    I use my Adobe programs from the Creative Cloud. When our design agency sends me files, I open them and fonts I have on my computer aren't showing up when I open the file. Everywhere online it says I need to add the fonts to InDesign's font file, but since I'm working out of the Creative Cloud, I don't have that option. How do I get InDesign to recognize these fonts when I'm opening files from our agency?

    ID sees fonts installed on your computer and contained in a Document Fonts folder in the same folder as the document, if one exists.
    I don't really understand what you are saying about fonts you have installed not showing up. And cloud makes no difference -- all the applications and support files are installed on your hard drive.

  • How do i get Dreamweaver to recognize my website

    I had to wipe clean my PC, I saved all the Dreamweaver files. I reloaded Dreamweaver on my freshly built C drive. I also placed all the Dreamweaver files on C drive in the same location before the rebuild. my questions are these
    1, how can I get Dreamweaver to recognize the files and links on C drive or
    2, how can i down load the site from the Web to dreamweaver
    Thank you in advance
    Ciro

    Have a look here http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html

  • Itunes recently updated on my PC and now it will not recognize my iPhone.  How do I get it to recognize so I can sync?

    I updated iTunes this morning and afterwards I went to sync my iPhone and iTunes will not recognize the iPhone.  The computer will, but iTunes will not.  How do I get iTunes to recognize the iPhone so I can sync.  I do have the phone connected to the computer with the cable.

    http://support.apple.com/kb/TS1538
    Going to venture a guess your Apple Mobile Device service isn't started.

  • My new iPad is synced with iTunes but now it won't recognize my iPod nano. How do I get it to recognize both? iTunes synced with my Nano just fine until I added the iPad.

    My new iPad is synced with iTunes but now it won't recognize my iPod nano. How do I get it to recognize both? iTunes synced with my Nano just fine until I added the iPad.

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • How do I get finder to recognize my hard drive after pulling my hard drive out without eject...? Is my hard drive dead? I see it in disk utility... Can I get my info back?

    I have a seagte back up plus. I pulled my hard drive out without ejecting it and now finder dosn't find it but I see it in disk utility (although I cant repair permissions) How do I get finder to recognize my hard drive after pulling my hard drive out without eject...? Is my hard drive dead? I see it in disk utility... Can I get my info back?
    Thank you so much for any help

    In Disk Utility you need to see a volume or partition in addition to the drive.
    If all you see is the drive, then when you ejected it you proably corrupted the volume or partition on the drive.
    If that is true then your chances of getting anything back are slim at best.
    About the only thing I know that might work not is to send the disk out to a service for recovery. This is going to cost like $$$$.
    Is the data worth that much?
    Allan

  • How can I get iTunes to recognize the apps that are missing from the library screen but still on the machine??

    My apps are not showing-up in the iTunes library but they are present in the apps folder. How can I get iTunes to recognize their presence?
    Library-Apps-All (only three of several hundred appear).
    Apps are still present in Users-Music-Mobile Applications
    I am running iTunes 11.0, OS X 10.8.2 on a Mac Pro. 
    Ran Disk Utility, Techtool, Disk Warrior and then reinstalled Mountain Lion, updated it and repaired permissions. No change.
    There is a file that says 'iTunes Library (damaged), which is the iTunes Database file. How can that file be re-created?
    Any technical help on replacing that file with a new, fresh one would be appreciated!

    It has always been very basic to maintain a backup of media and other important files.  If you chose to reinstall the OS without having a backup, well that just is not smart.
    If you are in the US and running iTunes 10.3 or later, iTunes purchases can be redownloaded via iCloud.  Simply log into the iTunes store, select purchases, purchase history and redownload the content.
    If you are not in the US.... well, seems you just learned and important and possibly expensive lesson.

  • HT201269 My old windows computer crashed and I had to buy another one.  I rescued my itunes file off of the old one and installed it on the new desktop.  How do I get itunes to recognize it so that I can get all my old music (mostly burned CD's) to be rec

    My old windows computer crashed and I had to buy another one.  I rescued my itunes file off of the old one and installed it on the new desktop.  How do I get itunes to recognize it so that I can get all my old music (mostly burned CD's) to be recognized

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • How do I get itunes to recognize all of the music in my library. I backed up the library for 24.95 and not all of it went into the backed up library?

    How do you get Itunes to recognize all the music in your library when you buy the backup in the cloud? Alot of my  music was not backed up. These are songs I burned off my CD collection. Itunes Match did not recognize them either?

    *What am I doing wrong?*
    You moved it to the server.
    You should let iTunes do it.
    Point iTunes prefs to the new location.
    Menu Advanced -> Consolidate library.

  • How do I get iTunes to recognize my iPod over a network?

    Ok So I have an Apple Time Capsule which I use as my router and NAS drive. Though I also plug my iPod into the usb port on it. The iPod is recognized on my computer and over the network easily although how can I get iTunes to recognize it and be able to add music and video?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen        
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can restore from backup since the screen-lock passcode is not restored.

  • Bridge wont recognizw my Nikon d610.  I am running windows 8 and photoshop cs6 with 8.6 camera raw plug in.  How can I get bridge to recognize my camera?  Thanks to anyone who can help!!

    Bridge wont recognizw my Nikon d610.  I am running windows 8 and photoshop cs6 with 8.6 camera raw plug in.  How can I get bridge to recognize my camera?  Thanks!!

    That camera model has been supported since ACR 8.3 and it is most certainly supported by ACR 8.6 and ACR 8.7 (beta).
    Either you have damaged, corrupt image files, or a faulty Photoshop and/or ACR installation.
    If there are no privacy issues, you can post one of your files to the FTP service of your choice (such as Dropbox or yousendit.com), post the link to it, and someone here can take a look at it for you.

Maybe you are looking for

  • Get GUID in custom WPC page layout

    I'm developing a custom WPC page layout with an embedded Visual Composer flash file. Since KMC web pages are stored in KM I can use the KM Java API to access properties on the document in KM. I want to use this technique to let users store a value at

  • IOS 8 and photos

    I think I'm confused and need clarification. I downloaded ios8 and i know theres no more photo stream but i thought if i activated my iCloud and photos that all my photos would go to collections or moments and stay there even if deleted from my album

  • Bought PSE13 but my computer runs OS X 10.7.5. Can I swap for PSE12?

    I bought an downloaded Photoshop Elements 13 this morning without looking at the system requirements.  I am running Mac OS X Lion 10.7.5.  So basically i need to get a refund or swap to the elements package which will run on my machine.  Does anyone

  • Why does my Photoshop CC crash on start up?  I am using the Yosemite operating system.

    I recently got Photoshop CC and it worked for a while, now it jest crashes on start up.  I am really disappointed.

  • AirPort Extreme base station as bridge - is WPA allowed?

    Hello, I have an AirPort Extreme base station that is connected to the Internet via an older Linksys wired router. The Linksys is connected to a cable modem and acts as a router (so it's the DHCP host), while the AirPort acts as a bridge between wire