Incrementing through instances of movieclips to get them into an array
I have a form with a bunch of questions. With each question, the user needs to select an answer from a dropdown list. I am then creating an array that will store the answer to each question when the user clicks the submit button. Each of the drop down menus is named sequentially. So what I am trying to do is write a while loop that will increment through and read each of the values into the array so I can process the responses later. The issue that I am having is writing the syntax to recognize the Instance name of the specific drop down I am trying to reference.
Here is the basic code I am using:
var Store:Array = new Array(2);
public var Increment:Number;
Increment = 1;
while (Increment <=2){
Store[Increment] = MovieClip(Scroller2.Form_Scroller.content).DropDown1.value;
trace(Store);
Increment++;
So the DropDowns instance names are DropDown1, DropDown2 etc… It works fine if I manually enter in each instance name (but there are 43 total and I don’t want to do each one individually).
I am assuming that I need to setup some sort of variable to temporarily add the increment number to the “DropDown” and then use that as the reference:
Increment = 1;
while (Increment <=2){
ItemNumber = "DropDown" + Increment;
Store[Increment] = MovieClip(Scroller2.Form_Scroller.content).ItemNumber.value;
trace(Store);
Increment++;
But when I do that, I get the following error message:
TypeError: Error #1010: A term is undefined and has no properties.
at combotest/submitted()
I assume this is because it is looking for an instance of ItemNumber instead of the instance of the value of ItemNumber. So how do I get it to look for that?
I have attached the test files.
Steve
try:
var Store:Array = new Array(2);
public var Increment:Number;
Increment = 1;
while (Increment <=2){
Store[Increment] = MovieClip(Scroller2.Form_Scroller.content)["DropDown"+Increment].value;
trace(Store);
Increment++;
Similar Messages
-
I don't get this but 95% of my contacts are listed under "all exchange" and I can't figure out how to get them into my iphone. I have "Sync Contacts" and "all contacts" checked in iTunes but it doesn't work. There is a message that says "Your contacts are being synced with MS Exchange over the air. Your contacts will also sync directly with this computer"... After backing the contacts up, I deleted the Exchange account off of my iPhone because I left the company. Any suggestions?
Thanks.https://www.google.com/calendar/iphoneselect
-
I have produced a number of DVD on my iMac. They are stored in a folder called Burn Folder. I want to get them into iTunes so I can play them on Apple TV. I have tried to convert them to MP4s using Handbrake but Handbrake does not recognize these files. I am stumped.
If you have the original movie files, you'd be much better converting those, otherwise try MPEGstreamclip.
-
I have movies on my Hard drive that I would like to add to my iPad how do I get them into iTunes to download to my iPad?
READ the article from which the question was posted. Then follow the instructions for importing content to iTunes on the computer.
Once the content is in iTunes, connect the device, select the content desired to sync, and sync. -
I am new to IPhoto 9.51 and I think I missed a step when I uploaded my vacation pictures. I uploaded pictures but did not import them into the library. They are in L\last imported only. How can I get them into events?
If the Photos are under 'Last Import' or 'Last N Months' then they are in the Library somewhere, just not where you are expecting them to be. We know this as both Last Import and 'Last N Months' are not places, just listings of elements in the the Library.
The two most common reasons that they can't be found is either an incorrect date on the camera or the Sorting (View Menu -> Sort Photos - or Sort Events, as appropriate) has changed.
Quick route to find them: Right-click on one of the images in Last Import and select 'Show Event'. This will bring you to the image in the Library. -
Five months ago, I imported my Firefox bookmarks into Safari. In that time, I have added many bookmarks to many of the bookmark folders in Safari. Now, I am trying to import back into Firefox all of the existing Safari bookmark folders including the added bookmarks. Tried exporting from Safari using File, Export Bookmarks, which does get them into MyDocuments\Safari bookmarks.html, but I am unable to get them into Firefox where they would enable me to uninstall Safari and free up some room on my hard drive. Maybe they are there in Firefox, but need to Find them?
Did you import the HTML file?
* Bookmarks > Organize Bookmarks > Import & Backup > Import HTML : "From File"
Bookmarks that you import are usually appended at the bottom of the Bookmarks Menu folder.<br />
If you do not see them there then try to use the search bar to see if they show up.<br />
If that also doesn't show them then it is likely that something went wrong with importing the bookmarks.<br />
Does that file display correctly if you open it via "File > Open File" in a Firefox tab? -
hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.
i do not have a mac home pc. just a regular pcI had the same problem after I gave my old iPad to my parents and tried to install Netflix. This is what you have to do: Open iTunes on your computer, the one you sync your iPad to. Then go to iTunes Store and search for and download Netflix app. After you download it, if your iPad is set to download new purchases it may start downloading on your iPad. If so, tap and hold to delete the app (because it is trying to install the new version on the iPad) Next step, go to the App Store on your iPad and find Netflix and it should say install since you already purchased it on the computer. Tap to install, and it will say the version is not compatible, tap to download a previous version. Click that and it will install the older version! One more thing, if and when you sync to your computer again it will say something like " Unable to install Netflix on your iPad" Just click the box to never remind you again, because it's trying to sync the newer Netflix app to your iPad, but it doesn't work so it displays the message. The old app will remain on the ipad. Hope this helps, good luck
-
S LIKE i BOUGHT SONGS NOW THERE IN THIS I TUNES LIBRARY THING NOW HOW TO GET THEM INTO A FILE SEPERATE IN MY DOCUMENTS ITS LIKE HOW DO i BREAK INTO THE I TUNES STORE ON MY COMPUTER AND GET THE MUSIC i BOUGHT AND PUT IT INTO MY COMPUTER FILE DOCUMENTS SO i CAN PUT IT INTO POWER POINT PRESENTATIONS AND IN A FORMATE COMPATABLE WITH WINDOWS POWER POINT. I DID IT ONCE SEEMS LIKE I FORGOT THE RECIPE I DID IT WHEN MY KEY BOARD WAS DOWN JUST WITH THE MOUSE I MAILED IN MY LAP TOP GOT THE MUSIC OFF INTO A M-P3 PLAYER GOT IT BACK GOT THE I TUNES CARD DOWNLOADED SONGS NOW THERE TRAPED IN MY I TUNES LIBRARY LOL !!! ???
One way friends of mine have done it....use iTunes to burn a music CD with the songs (presuming it can still do that, haven't tried it in a while)
THen close iTunes and open windows media player. Use that to convet the CD file to MP3 (media player's default is to pull things in as wma, so you may need to change the preferences to mp3, or i'm pretty sure wma's work in power points)
Once media player converts the format you can insert it into your powerpoint. -
just ripped quite a few music albums. How do I know if they went into the cloud, and if they did not, how do I get them into the cloud
I assume you have iTunes Match turned on in iTunes?
You can create a smart playlist in iTunes that has "iCloud Status" is "Matched" or "Upload" - that will tell you what's in the cloud. -
I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!
Hi FancyJean!
Here is an article for you about using Font Book and installing fonts that you have downloaded:
Mac Basics: Font Book
http://support.apple.com/kb/ht2509
Thanks for being a part of the Apple Support Communities!
Cheers,
Braden -
Is there a way to take my address's I typed into Pages and get them into my address book?
I have over 200 address's typed into pages. Is there a way to get them into my address book with out copying a pasting each one individually??
Per http://support.apple.com/kb/PH4648
Address Book can import contact information that you save or export from other applications in vCard, LDAP Interchange Format (LDIF), tab-delimited, and comma-separated value (CSV) formats.
You can export addresses in vCard format from Entourage, Outlook, and others, and in LDIF format from Thunderbird, for example. You can export text files in tab-delimited or CSV format from spreadsheet applications, such as Numbers. -
I have a 2008 Macbook and have had a new ram module fitted and now i have no photos in I photo but they are there on the hard drive on mackintosh ,photos how do I get them into i photo as they were.
Frustrated
Thanks Andrewchanging the ram has nothing to do with the photos missing. Did you install the ram or someone else?
-
the last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?
Use the Subfolder pulldown to set the subfolders:
-
Using the import connection to my iPad Air 2 I uploaded pictures taken on my DSLR. I want to get them into LR Mobile and then into LR but LR mobile and even CC does not see them on my iPad. What do I do? Any and all help appreciated.
Thank you.RAW import is not yet supported. Just guessing that this is what you were trying . - Guido
-
ok so my comics are in itunes (bought comic viewer). How the **** do I get them into my iPad? The info in About File Sharing only covers getting them into iTunes. How does the app import them ot iTunes sync them? Getting tired of going in circles.
Thanks to anyone who can help here
wkouTry contacting the developer > http://www.denvog.com/contact.html
http://gizmodo.com/5555651/comic-viewer-for-ipad-lets-you-surf-for-comics-in+app
iTunes Store: About In-App Purchases
iTunes Store: Purchasing and managing auto-renewing subscriptions
Maybe you are looking for
-
Deletion of Purchase order Via BAPI
I want to delete a already created Purchase Order using a function module. Please guide.
-
Hi all, I have a problem with my Nokia N95 8GB. Basically I don't seem to be able to upload photos to my Ovi album anymore. When I try to do this it tries to scale the photo and then after a few seconds I get the message 'system error 400' or somethi
-
Jiggling iCal causes content display to scroll
Okay, it isn't a show stopper but it is interesting and I wonder if anyone else can replicate it... 1 - open iCal making sure it is displayed about half way down the screen 2 - make sure that the scroll bar is about half way down 3 - grab the grey bi
-
Will ipod car adapter work with the iphone??
???
-
How to change the drop down list "Category" in the Risk page (PWA 2013)
Hello, How to change the drop down list "Category" in the Risk page of a Project Site. I need to change the list of elements. Thanks