1. Check out our companion app, Forums for Android! Download from Google Play

Lost in the Block Editor...Help!?

Discussion in 'App Inventor' started by countrycronin, Dec 1, 2012.

  1. countrycronin

    countrycronin New Member
    Thread Starter

    Dec 1, 2012
    My goal is to have the app cause the image dispalyed to change every time the user touches the big letter (it is a button with a changing image displayed).

    I am trying to have the app ask itself which image is displayed, and then pick from a list of related images.

    For example, if image A1.png is currently displayed,
    and the user touches the button/image (button click)
    image A2.png should be displayed as the image of the button.
    I am using a list and indexes for this.
    However, I am kind of blind.
    I am not really sure how to get the app to go to the right list.
    I am not really sure how the definitions work.
    I have inserted my blocks hoping someone will see my fatal error. I am open to any and all feedback.

    Here is the link to an image of my blocks: https://www.dropbox.com/s/onzdje6qu3hg9cx/Bug_1.JPG

    Thanks to anyone who has input. :)



  2. PavementPilot

    PavementPilot Well-Known Member

    Aug 1, 2011
    Professional Driver
    Vernon, BC
    If you look at your variables, you are using numbers and indexing from a list. Now look at your button.click if/else statements. You tests are asking to check the variable with an index number against a named file, instead of the index number, which is that the variable is working in.

Share This Page