string passed to a loop var name for?  Table question

I have a set of variables of type string named q1String where 1 can be replaced by a value between 1 and 17.

So I have a loop for:

for (var i = 1; i < 18; i ++) {}

var question_caption_mc:Question_caption_mc = new Question_caption_mc;

* question_caption_mc.caption_question_string. Text is q + i + String; *.

}

The "BOLD" line will cause an error because q is evaluated separately, I is evaluated separately and String is evaluated separately.  I should probably use a user name different in my definition of the string variable, but I was wondering how to properly pass the variable name in the loop for that

"question_caption_mc.caption_question_string.text" is equal to the value of the variable q1String through q17String.  I know it's simple, but I can't seem to find a way for this query on a search on the web for a thread or a similar solution.

Can someone help me solve this problem?

Kind regards

-markerline

OK, so basically you want to read the string from an array in a loop do you mean?

Currently your loop spit q '' i' ' string or q1String - q17String

so if you had questionsArray:Array = ['Palin's Alaska', 'reply to two']

for (var i = 0; i)<>

var response: String = questionsArray [i]

question_caption_mc.caption_question_string. Text = Answer;
trace (Answer);

}

Tags: Adobe Animate

Similar Questions

  • Error #2101: The string passed to URLVariables.Decode must be a URL-encoded query string residues

    : Error #2101: the string passed to URLVariables.Decode must be a query string URL-encoded containing name/value pairs. to Error$ /throwError () to flash.net::URLVariables/decode() to flash.net::URLVariables() to::URLLoader/onComplete() _ flash.net stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest ("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = pouvez; DepartLoader.addEventListener (Event.COMPLETE, completeDepart); depart_btn.addEventListener (MouseEvent.CLICK, DepartUser); Function to execute when you press the start function DepartUser (event: MouseEvent): void {/ / Ready variables here for shipment to PHP DepartVars.post_code = 'Start';}         Send the data to the PHP DepartLoader.load (DepartURL);         welcome_txt. Text = "processing of application...". Good journey. " } / / Close function DepartUser / / / / / function for when the PHP talk back to Flash function completedepart(event:Event):void {if (event.target.data.replyMsg == 'success') {var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload();)} NewWindow.focus (); ("void (0);");             navigateToURL (refreshPage, "_self");         } / / CompleteDepart close function / / / / / View Code for the res button var viewRes:URLRequest = new URLRequest ("view_res.php"); viewRES_btn.addEventListener (MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {navigateToURL (viewRes, "_self") ;} / / / / / / / / Code for the edit profile button var editRes:URLRequest = new URLRequest ("edit_res.php");} editRES_btn.addEventListener (MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {navigateToURL (editRes, "_self") ;}}}

    you need a function named completeDepart to handle the return of you php script.  for example:

    function completeDepart(e:Event):void {}

    trace (e.Target.Data);

    }

  • How gemfire locator can be configured to return the full DNS name for the customer?

    We have an index running before 2 cache servers,

    Locator.DomainA == > Server1.DomainA, Server2.DomainA.

    the problem is when the customer (customer. DomainB) try to access gemfire via locator, it up ' get: not connected to GemFire' exception, the reason is that the Client.DomainB uses the full name "Locator.DomainA" to access the gemfire, the Locator maintains only the servers host name, when the client runs the query, it access Server1 or Server2, but in this case, the networking is not connected.

    How gemfire locator can be configured to return the full DNS name for the customer?

    in gemfire.properties, Locator attribute is full domain name already.

    Thank you

    Yao

    There is a parameter for hostname for the customers that you can put in your cache.xml file cache-server element. It is a string that is passed the server for the location, and then on the Locator for the customer. You must set this client-to-host name in each of your cache servers.

  • color code javascript var names

    I'm reviewed some Youtube tutorials on javascript slideshow. and the presenter uses DW and its highlight is configured so that the assigned name of var is colored aqua. whereas mine is black. A few searches on Google lead me to ' Preferences > Code Coloring "but I can't find the option that will be the effect on the name of objects, in this case the name of var.

    Obviously, the capacity is available, because this video is that it works and it is certainly using Dreaamweaver.

    Anyone know where I can do this?

    I went into Preferences > Code coloring and worked my way through the list on the left side of the dialog box, changing the color for each option, but none of these options appeared to target the var name

    Ah, that's the question, your version is too old.

    A lot of code view updates and updates to the interface in general, have been held since the release of creative cloud system was introduced a few years back. Unfortunately, your version is the final "perpetual license" software and is now considered to be Legacyware. He received no updates for several years and no future updates are planned, unless they find a sort of major security breach.

    DWCS6 simply not do, themes (and their options) were not added until I think CC 2014 (something like 3 or 4 versions after yours).

  • How can I pass a value to var between MovieClips?

    New week, new question.

    I could not find the answer to this: I work with a var defined in the scenario main var score int; , which I use in 10 different movie clips using partition var = .score MovieClip (this.root);

    Everything works perfectly on the first MovieClip, but when the partition is then do not keep the value assigned in the previous MovieClip so the score is lost.

    The clips are questions and they are place on the main time line in different settings and layer stock main time line which contains only this:

    Stop();

    var score: int;

    nextQuestion.addEventListener (MouseEvent.CLICK, newQuestion);

    function newQuestion(evt:MouseEvent):void {}
    nextFrame();
    }

    covers each image with each another MovieClip.

    What I need to know is how to make this value to pass to the next video Clip?

    I mean, it's not to create a new variable of score for each question.  Use the MovieClip (this.root) .score in all cases.

    MovieClip (this.root) .score += 61; etc...

    When you create a new var in each question and assign the value of the partition, you are not linking back to the partition in the main timeline.  And I don't see anywhere in your code when you update the main partition.

  • What is the code name for intex fx cloud (required to manually build 2.0)

    I want to manually build the last B2G for an intex phone fx cloud. The build process requires executing the script "config.sh' with the name of the phone code:
    https://developer.Mozilla.org/en-us/Firefox_OS/Preparing_for_your_first_B2G_build#Configuring_the_B2G_build_for_a_mobile_device

    The phones operating system supported firefox page does not display the code name for new devices:
    https://developer.Mozilla.org/en-us/Firefox_OS/Developer_phone_guide/Phone_specs

    Is it possible to get the code for intex phone name. If the list of the devices supported by "config.sh" does not include the code name of intex, is there a way to still be able to build the latest os from firefox for the intex device?

    Hi Notalex,

    The code name for the Intex Cloud FX device is Tarako. However, it uses another optimized codebase that the regular B2G is based so that it can run on lower range with little memory devices.

    Unfortunately, version 2.0 of the B2G code base would go not on the Fx cloud Intex due to material limitations.

    For more information and advanced issues on customizing your Firefox OS device, you can visit the following pages:

    I hope you find this information useful. Please let us know if you have any questions of usability with your new Firefox OS device.

    Thank you!! =)

    -Ralph

  • How remove the toolbar Babylon. Is there another name for "Babylon"? because I don't see a "Babylon" in my control panel, of it being installed? Help

    I would like to get yahoo as my home page. I tried to change, according to the instructions of mozilla. It did not work.
    By mozilla support I uninstall "babylon toolbar". I checked the Panel no Babylon not listed as being installed. My question is there another name for the "babylon toolbar?

    I'm of Babylon business support team. Research of Babylon and the toolbar are supposed to be part of an integrated set of tools that help people understand and explore their world. Sometimes, however, other manufacturers package our tools with their free end of programs and by unexpected people receive our software. We are sorry if this is the case with you and we would be happy to help you remove a part that you can not. Click here for easy removal instructions: http://www.babylon.com/uninstall_search/index , or contact me at [email protected] for more information.

  • Is that a way firefox will store the information of user name for a site without password information?

    some other browsers allow a user name to be automatically filled in and saved so you just enter a password. It seems that Firefox does not have this option. Is that a way firefox will store the information of user name for a site without password information?

    This works! Thank you very much.

  • Cannot create Alias name for Cardinal cannot right click maximum DF PROFI II CARD

    Cannot create Alias name for Cardinal cannot right click to the maximum example of MAX installation instructions, does not match what I see. See attached picture.

    At the suggestion of Ryan to technical support, I improved the VISA to 5.4.1 and the problem was solved.

    Thank you.

  • stop a loop without waiting for its next iteration

    I wonder if there is a good way, or still anyway to stop a while loop without waiting for its next iteration. Lets say you have a timer in the loop so he iterates once evey 10 seconds, and then you have to wait 10 seconds for him to stop after you press a stop button that could be a problem.

    Thank you!


  • French names for applications 'Windows Explorer' and 'File Explorer '?

    I'm updating documentation and noticed that "Windows Explorer" (win7) and 'File Explorer' (win8) are mentioned in the French translations.

    When you use the french language pack, these applications use the English names, or is there the French names for them?
    Thank you.

    Hey,.

    -Are what documents you referring? Personal work or associated Windows?

    -What version of Windows is installed on your computer? Is - this Windows 7 or Windows 8?

    If you have installed the French language pack, then some of the applications (Windows 8) will be displayed with the french names and rest will appear in English because the version of Windows installed on the computer will be in English. If you have installed the version French of Windows, then the interface of Windows will be in french, and if you add an English language pack, then some of the apps will appear in English.

    So, if you don't want the french names on applications, then please check the language packs installed (and the current language pack used) and change it to English.

    http://Windows.Microsoft.com/en-in/Windows7/install-or-change-a-display-language (Windows 7)

    http://Windows.Microsoft.com/en-in/Windows-8/language#1TC=T1  (Windows 8)

    Let us know if you have any questions.

  • How to fix error of loop infinite ati2dvag for XP

    How can I fix error loop infinite ati2dvag for XP?

    An electrical 'loop', usually means a part or parts are not connected

    missing or damaged, normal channels loops, or the chks and balances that should be, are

    not. Current car/truck pcs have this problem all the time after age sets, its

    the components in other areas that are at fault.

    In your situation, if its an old card, turn off the pc, remove card, take a pencil #2

    eraser to clear and clean the connection tabs, it does not take much. If this is a new card,

    is the BIOS configured correctly for what he (AGP/PCI, etc.), if everything is ok, try to install a newer version or

    former pilot, get ATI, also, get the latest installation of microsoft DirectX, well

    idea to do both...

  • 3524 office: Change name for the scans

    Somewhere in the past I changed name genric for scans of scan000X to a name, I prefer not to use it anymore. But I probably did before moving to Windows 10, because I knew where he change in Windows 7 (and earlier versions). How can I change the generic name for the (still) scans in Windows 10?

    Hello

    Thank you for using the HP forum.

    1. Firstly, you must ensure that you have your software FULL of features installed.

    http://support.HP.com/us-en/drivers/selfservice/HP-DeskJet-3520-e-all-in-one-printer-series/5162504/model/5241256#Z7_3054ICK0K8UDA0AQC11TA930O2

    2. open the HP printer Assistant

    3. go to scan a Document

    4. go into 'advanced settings '.

    6. go to 'File' (or Destination)

    There should be an option to change the generic name.

    Hope that helps!

  • I entered the wrong names for servers on my windows mail how to change them and what are the good names

    I was installing windows mail thinking I was to catch up with the names for them (George and Sam)

    On behalf of email configuration, you don't "make things upward. All information must be accurate and approved by your ISP.
    You must as a result of your Internet Service Provider (ISP)...
    Your user name
    Your E-mail address
    Your password
    Name of the incoming server
    The name of the outgoing server

    After graduating from those, ask if the person can help you set up the email account. Once I got a new ISP and I also need help to connect to the wireless connection. I gave permission to access my computer remotely, and the person has had enough to set everything to me.
    If this is not possible, ask if there is a site that can teach you how to set up the account.

    OR, you can use this tutorial...

    Windows Mail: Setting up an account of end-to-end
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-mail-setting-up-an-account-from-start-to-finish

  • Windows mail the filler of unique active automatic name for a day or two after the last contact with the person.

    Windows mail. Filling of unique active automatic name for a day or two after the last contact with the person. After that, I have to manual search in contacts. Is this normal?

    Thanks in advance

    Hi Abbeypiece Ltd,

    The feature of AutoComplete in Windows Mail doesn't seem to use the Contacts folder. Instead, he uses the history of most recently used contacts.

    For more information, you can consult the following article:

    Change Windows Mail send settings

    Hope this information is useful.

Maybe you are looking for