stupid question for a smart programmer

This is probably a stupid question, who need a simple answer:

I'm looking to the 'length' property in the Adobe AS3.0 language ref as I don't understand.

It is said:

An integer specifying the number of characters in the specified String object. (I understand it)

Because all string indexes are zero-based, the index of the last character for any string x is x. length - 1. (I don't understand the '-1 '.) I understand that all string indexes are zero, but I can't put it as well as the last character for any string said TI-1 or something.

Do you understand this and can you help me understand?

Thanks in advance.

If you create a simple example, you should be able to see for yourself.

The length of a string is the number of characters in it.

The index values for string to start at zero.

So if you have four characters in a string, say "0123" is the string, then its length is 4, and because indices start at 0, the index of the 4th/last character is 3 (length - 1).

Tags: Adobe Animate

Similar Questions

  • Stupid question for the fans?

    Hello, thanks in advance - what in blazers the yellow tags that appear in the browser when you hover over a link or something called and how blazers announced in dreamweaver to buttons etc.?

    Hello

    No such thing as a stupid question in these forums. I think what you're talking about is a ToolTip and you can use the TITLE attribute to create one for any element on the page. It allows to describe links, tables, individual table rows and other HTML elements. Search engine of many ranking algorithms read the text in the TITLE attributes like the contents of a regular page.

    Who are we

    Hope that helps

  • Stupid question for the example of ColorfulCircles work

    I don't know that I missed something stupid, but hell if I can find it. I'm trying to learn a bit about the use of JavaFX 2.0, because I intend to use it heavily in a project in the coming months. I develop in Eclipse, and when I try the example of ColorfulCircles on the Oracle website, I get an error, the statement that Stage.setVisable is not defined. I added the external jfxrt.jar, and all other lines of code using classes and methods of JavaFX 2.0 compiles correctly. He suggested that even other methods of scene I could try (even if they are not good suggestions). Am I missing something obvious, or is the outdated tutorial example? Thank you!
    -Jean
    stage.setVisible(true) 
    

    is replaced by

     stage.show() 
    

    http://blogs.Oracle.com/thejavatutorials/entry/changes_in_build_42_that

  • simple and stupid question for apps dba

    Hello

    I set up RAC 11 GR 2 on a C2D machine (only two nodes are only) home with 10 gr 2 db.its just a Setup at home.
    As I am newbie and fresh starter, I want to install EBS R12 just to practice a few things apps with this clusterware + db 10g DBA.

    y at - it something wrong? I can do?

    What EBS R12 download package for minimal configration for just tips?
    a getting started guide for this installation on linux x86_64 OEL 5.4?


    Concerning

    Hello

    It's "Oracle E-Business Suite Release 12.1.1 Media Pack for Linux x 86-64-bit", part number: B54465-05

    You must download it from: Oracle E-Business Suite Release 12.1.1 quick install Start Here (part 1 of 4), part number: B53824-01 Part 1 of 4

    To: Oracle E-Business Suite Release 12.1.1 for Linux x 86-64 quick install APPL_TOP - disc 2 (part 3 of 3), part number: V15691-01 Part 3 of 3

    Thank you
    Hussein

  • BlackBerry Smartphones has BB for less than 24 hours... some (stupid) questions!

    Hi all

    I looked through some tips and read the summary instructions (at best) that came with my BB and now have a few questions, if that's ok:

    1. I downloaded the "favorite" of Facebook, but I don't know where that is?  I thought this would be an icon, I could then add to the home screen?  If it IS, then how can I find and to do this?

    2. is it possible to add my iTunes Catalog, or a part of it, to my BB - are compatible somehow?

    3. how to choose something other than the horrible Vodafone home page, to be my homepage on the internet?

    5. What is the difference between "browser" icon and the icon "WAP"?  Am I meant to go through one preference to another, because in the end, they both make the same thing?

    6 represents the number of pins only to give BB 'friends', so we can chat on messenger, or there are homonyms?

    Again, sorry for the stupid question; I'm really proud of the implementation so far without any help from the husband, but having my llimitations, lol - it's a world apart form the Nokias I've owned exclusively for the past 13 years... but I think I love her!

    Thank you

    L x

    1. I don't know about a 'bookmark', unless you try to bookmark a place in your web browser? You can download and install the Facebook for BlackBerry application.

    Use the browser of your BlackBerry to access www.blackberry.com/facebook

    2. Yes, use of BlackBerry MediaSync software...

    http://NA.BlackBerry.com/eng/services/media/mediasync.jsp

    iTunes with DRM will not transfer, DRM coding should be removed first of all files.

    3. open the browser to the page that you are going to choose as your home page, and then press the Menu key > Options > browser Configuration > scroll down > address Home Page > use current Page

    5. I would like to use the browser icon. WAP icon uses the data of your service provider's WAP service.

    6. the PIN identifies your device to the network and is, so to speak, "Digital ID" in your devide.

    And Yes, your use of the primary AXIS will invite friends with BlackBerrys chatter on BBMessenger.

    You would benefit from reading and practice of 9700 (very similar) my friend Mr. Stinsonddog PIL.
    Look at this link for them, download and print the PDF file and practice the tips using your device. You will be amazed at all the cool things that your BlackBerry can do.
    http://www.Stinsonddog.com/

  • Add more memory for hp nc4200 - stupid question

    I know it's probably a stupid question, but I'm trying to insert more memory into my old laptop for my son. The vehicle currently has 1 GB of memory that I see when I take off the lid, but there apparently also 512 MB that I can't see. I thought of taking the 512 MB and replace it with a stick of 1 GB giving my son of 2GB, but I'm sitting here, after removing the cover and although I can see where is the 1 GB, I see no sign of the 512. Are the memory sticks in two places, not one, and if it's a how to insert the 1 GB when there is not enough space?

    Hello

    bbsmallkid wrote:

    I know it's probably a stupid question, but I'm trying to insert more memory into my old laptop for my son. The vehicle currently has 1 GB of memory that I see when I take off the lid, but there apparently also 512 MB that I can't see. I thought of taking the 512 MB and replace it with a stick of 1 GB giving my son of 2GB, but I'm sitting here, after removing the cover and although I can see where is the 1 GB, I see no sign of the 512. Are the memory sticks in two places, not one, and if it's a how to insert the 1 GB when there is not enough space?

    DDR II SDRAM, 400 or 533 MHz, two locations SODIMM, 256/512/1024 MB expandable to 2048 MB maximum

    Here is a link to the welcome and maintenance guide.

    It is an internal memory and an external memory module. Replace the external module is quite simple. Access to the internal memory card requires a dismantling. See page 6-28 in the manual.

    Best regards
    ERICO

  • Yes, that was a stupid question

    Yes. It was a stupid question. Serial number written on the bottom of the computor. Yes. I have it. DOH!

    Although it would be useful for Apple to include this info in the topic How to find section...?

    Still unresolved problem but it seems to be a non-accessible boot drive.

    Reserved it in for bypass surgery, so we're getting there.

    Apple has done an article on how to find a serial number:

    https://support.Apple.com/en-us/HT201665

    Fighting yourself.  You're not the first and won't be the last to have such a problem.

    If yo chooses to provide more details about the difficulties with your MBP, maybe others can help you solve them.

    Ciao.

  • Stupid question: why tinytots (and other similar fonts) will not work in Firefox?

    I am a user of Tumblr, if of course if I had to work on a theme, I would like to see the fonts that I have chosen to serve. In Chrome, everything seems as it should usually (relative to the fonts). In Firefox, I respond specifically to these two browsers so my theme seems not completely horrible. In my opinion, only a browsing experience more could be made if Firefox showed fonts such as tinytots for more than just me, but for someone else who is perhaps not brave enough to post about it. This brings me to another question: I'm just ranting or is it possible I can see these fonts and not know about it?

    This isn't a stupid question.

    Google Chrome has its own library of fonts.

    Mozilla Firefox runs Windows fonts library.

    To run on Firefox fonts, they must be installed on Windows and then Firefox must be restarted.

    Sometimes, Web sites do not use the correct font name and the police is found, even if it is installed.

    A good website designer would design a Web site with backup for users to load fonts if they do not have the installed font.

  • REALLY stupid question about virtual machines and disks of cancellations.

    I'm a bit hesitant to ask this question because it might make me look stupid, but...

    When I'm done using Virtual PC and a virtual machine running Windows XP Pro with Vista 64 Home Premium because the host os, often I did not any significant changes to the hard disk of the virtual machine.

    What I save gets saved to a network share on my server for files and printing from Win98 and saved on a flash drive.

    Assuming that I do no configuration changes or anything else I want to keep, is there a reason barely stopping properly when I 'cancellations discs' enabled?

    Any reason, I can not save time by pressing the 'X' button and choose 'disable and remove changes '?

    I am aware of patches, but took me to inform me of the patches, and I can get patches when it's convenient for me and I always validate changes when I install the patches. I'm not using it for anything other than my classes of the school of the evening for the time being, so it is not much of a value of protection on the virtual machine, and I used to write papers on the host operating system. I just use the virtual machine to play with the admin tools in an environment where I can easily fix it a massive screw-up without spending hours to reinstall Windows.

    Hey SlickRCBD,.

    Not a stupid question at all! :)

    It's very well hit the X when you have activated the disks of cancellations. And corruption or problems with the active virtual machine will be resolved when using the drive to cancel it.

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Question for Microsoft Support; I have a huge amount of music files .m4a that I can not play on Windows Media Player?

    Question for Microsoft Support;
    I have a LARGE amount of files music .m4a in a storage drive stand alone that I downloaded from an old Apple computer have more possession of. I can't understand how to enter these data into my old Emachines computer Windows Vista run the Media Player program. I tried to copy a few files m4a manually in the file Media Player Music folder, but they do not play. I'm not really all that computer savvy and know only the basics, I need to use my computer really. Can you give me some step by step instructions how to get these converted files or whatever it is I need to do to get them to play and to integrate properly into my library if it is possible? If this isn't the case, I'll have to go out and buy a new Apple computer for my 60 GB music collection. In the past, that I've never had no real problem shooting files to leave this computer based Vista and convert these files to my old computers Apple Itunes Player. So what's the problem with your system of guys that done anyway this such a pain in the butt? I would really like to understand what exactly is happening with this issue? It's very frustrating for me. I'm a finish Carpenter not a computer programmer. Such things should not be so difficult for someone like me to understand. All I intend to buy a really nice computer, probably in the summer and was considering a Microsoft based computer. But if this kind of problem will be spread with Microsoft products, so maybe I should reconsider. help you can offer to alleviate this problem will be greatly appreciated.
    Thank you
    Signed;
    Tim M. from Detroit.

    According to research on the Internet, Windows Media Player, atleast this is version 11 (included in Windows Vista and available for Windows XP SP2 +) cannot play Apple loseless type .m4a audio files without having to install any codecs.

    If you want to use Windows Media Player, you can follow the instructions mentioned here to install the necessary codecs and plugins.

    (In the related instructions above, in the first step talks about codecs - your .m4a files are files Apple loseless then follow the party referred to in the first stage about Apple loseless .m4a)

    Personally, I prefer using alternatives to Windows Media Player rather than installing codec packs.

    If you don't want to install codecs, download no matter what media player from "programs that open. M4A files"- Windows category list on this page.

    If you use a spare player - VLC Media Player is my choice.

  • stupid question about UAC

    OK, it's a REALLY stupid question about UAC.

    I have several icons on my desktop. Some of them are games that must be run as administrator in XP compatibility mode.

    I rarely accidentally tried to open the icon, particularly if you use the keyboard to choose what I want.

    Is there a reason if I accidentally open a game that pushes me in height DO NOT hit 'Cancel' if I didn't intend to play the game at the moment, but trying to open something else? Something like a process being left in suspense, memory leaks, or any other reason why I can't Abort to launch the application to the UAC prompt?

    Hey, Slick,

    Clicking Cancel will prevent the running total process if you do not have to worry about the still ongoing services for memory leaks or game, etc..
    I hope this helps.
  • Digital networks... Maybe a stupid Question

    I have three updated servers in place currently in my lab. One is 3.3.4 Call Manager called EV. I have two other servers, the two 4.0.3/EX2000 unity. One is called AA and the other is called EVVOIP which is connected to the EV Call Manager. Two unity servers are in the same domain/AD Forest, but different Exchange servers. I configured the search options, options for addressing etc.. I have also configured a dial in EVVOIP area, and there have been replicated to AA, so I could select it. I did the reg also hack. When I use a telephone connected to the CM and go in the EVVOIP unit, I hit the ' * ' key to access the main menu. I select '4' to join the fate of directory name. I can get the names of the local server on EVVOIP, but when I try to retrieve the names of AA, it returns nothing.

    Here is the stupid question. Do I need to have an another call manager to the top and connected also to the AA unity server running? I'm not trying to transfer a call, just try to search for names. I can't join the names from the store of the AA unit.

    Thank you.

    Yes, it is certainly a factor.

    The choice of name list manager will never offer a username to a caller outside that does not have a name of the recorded voice. For subscribers addressing messages, these users are, of course, available, but they are checked with their extension number (no doubt if an external caller knew their extension number they would have composed it).

    If you need to record the names of a few votes for users before they will appear in the list manager of choice of name for external callers.

  • Very stupid question of blackBerry Smartphones A

    I'm sorry to bother you with what I am certain is a very stupid question.  I promise you that I am in fact quite irritable, but this very simple thing has running me around in circles for more than an hour now.  I went through all the videos of tech support that I can find and I can't find one online anywhere to solve what is surely a simple problem.

    I bought a Curve 8310 this morning and is to sign up through Straight Talk.

    Unfortunately, the #& * ^ @ thing won't let me accept the contract of Blackberry Solution license.  No matter what I do, it keeps taking me back to the agreement.  I tried:

    1. enter everything right.

    2 prescription until "I agree" is in white (leaving "I do not accept" in blue)

    3 space limitation until the "I agree" is blue (leaving "I do not accept" white)

    4 space requirement until the two "I agree" and "I do not accept" are white.

    In these four cases, when I lorsque je tape hit enter, it brings back me to the license agreement. There is no other options given.

    It's obviously culture of the box, because I couldn't any changes made to the settings if I wanted to. How to proceed?

    Try doing a battery pull. Let it reboot and see if the problem is still their. If the problem is still their after restarting, I think you should try to get a replacement.

  • a stupid question about the string conversion error

    I learn generic

    well generic allows setting the data type that you add to the fields of the object, right?

    I made a simple example

    class generic < String >

    {

    The name of the string;

    void set (String name)

    {myIdName = name ;}

    String get() {return myIdName ;}

    }

    class using {}

    Public Shared Sub main (String [] args)

    {

    generic < String > gn = new

    (generics) < String >;

    GN. Set (90);

    System.out.println ("name entered is:" + gn.get ());

    }

    }

    now the line

    GN. Set (90);

    I know that I send a string to the value method, but I wanted to see the error that comes when I send the argument of type other than a string and sent 90 to set method (without quotes)

    the error that slammed me is

    method defined in the class generic < String > cannot be applied to the given types

    required: java.lang.String

    found: int

    reason: int real argument cannot be converted to a java.lang.String by method invocation conversion

    corresponding to a variable of type String: String extends the object declared in the class generic

    OK here is my stupid question

    I know that int cannot be converted to a string and put 90 quotes will correct the error

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    thnq

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    Which refers to the class definition you provided:

    generic class

    You "stated" in your 'generic' class a 'collar' stretching ' the object '. It reads as if it said "String declared in the class generic.

    See "Generic Types" in the Java Tutotial

    http://docs.Oracle.com/javase/tutorial/Java/generics/types.html

    Search for the word 'object' and you'll see that word highlighted in the world. Although it appears highlighted read this line:

    As you can see, all instances of the object are replaced by T. A variable of type can be any non-primitive type you specify: any type of class, any interface, any type of table or even another variable of type.

    On this page, you will see this:

    A generic class is defined with the following format:

    class name { /* ... */ }
    

    Where each one is read as: T1 extends object ', "T2 extends object", etc.

    When you said this:

    generic class

    You replaced "T1 extends object" with "String extends object".

  • I am new to this, please excuse my stupid question. I am unable to develop/change my photos. I have a purchased version of Lightroom and now receive an error message that I need to restart Lightroom download creative cloud?

    I am new to this, please excuse my stupid question. I am unable to develop/change my photos. I have a purchased version of Lightroom and now receive an error message that I need to restart Lightroom download creative cloud? Why do I need creative cloud now and why can not simply continue with the version of Lightroom, I got without being blocked from editing?

    Thanks for your reply - I've updated my version and everything works now :-)

Maybe you are looking for

  • Display becomes unresponsive, the mouse moves, no click

    I have a 2008 iMac that was a gift for my wife. Since I got it with there have been intermittent problems the display becomes unresponsive, the mouse moves, the clock does not update and you can not click on anything. the only way to fix it is to ssh

  • Point of access WAP54G Dreambox 7025 + en

    Hello I have a receiver Dreambox 7025 + now I would do it with a Linksys Wireless accespoint in internet. I already have a Linksys WRT54G wireless router. Is that possible when I buy a WAP54G wireless access point? Thanks in advance for the help. Gre

  • Changing size of task bars & toolbars.

    I was playing a game that the opening has taken the entire screen.  When I came back later and tried to get on the internet, the toolbars and taskbars were enormous.  I tried to hit alt and enter and I also tried zoom and discovered 75 and 50%.  Noth

  • Cannot open. PCB &. CLX files

    I did the recovery operation on my computer. Now I'm unable to open many files with different extensions as .pcb .clx and many others. I could open these files before restoring. could someone please guide to solve this problem

  • My laptop turns off after that it lags behind. More details inside.

    As the title says, my laptop turns off after that it lags behind. He accused the sound of something that fate of my speakers started his strange. Sound like a blur with tell them no matter what. Then my laptop everything is slowing down and there is