I'd Appreciate Some Help

Discussion in 'Jiggy Runtime Development' started by mstrpppts2, Apr 25, 2008.

  1. mstrpppts2

    mstrpppts2 New Member

    Joined:
    Apr 10, 2008
    Messages:
    3
    Likes Received:
    0
    I was wondering if i could make an image into a button. Like if you press the image it loads something else. But i dont want it to be the whole image just a small part of it i loaded the image on here. I just want to press the load game button and take me to another screen. Any help would be greatly appreciated!

    Attached Files:

  2. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    I think its something like this.
    Code:
    //Top category selection
    var categoryView = new UIScroller( [15, 60, window.bounds[ 2 ] - 30, window.bounds[ 3 ] - 70 ] );
    categoryView.contentSize = [ window.bounds[ 2 ] - 30 , window.bounds[ 3 ] + 200  ];
    categoryView.backgroundColor = [ 0 , 0 , 0 , 0 ];
    categoryView.setAllowsFourWayRubberBanding( false );
    categoryView.setScrollingEnabled( true );
    mainView.addSubview( categoryView );
    
    
    
    //Add categories
    AddImageLabel( categoryView, 0, 0, "McDonalds"   , gotoPage, 290, 65, 25, 0, "Acceleration.png");
    AddImageLabel( categoryView, 0, 66, "Burger King", gotoPage, 290, 65, 25, 1, "Area.png");
    AddImageLabel( categoryView, 0, 132, "Taco Bell" , gotoPage, 290, 65, 25, 2, "Currency.png");
    AddImageLabel( categoryView, 0, 198, "Subway"    , gotoPage, 290, 65, 25, 3, "Electricity.png");
    AddImageLabel( categoryView, 0, 264, "KFC"       , gotoPage, 290, 65, 25, 4, "Energy.png");
    AddImageLabel( categoryView, 0, 330, "Pizza Hut" , gotoPage, 290, 65, 25, 5, "Force.png");
    AddImageLabel( categoryView, 0, 396, "Chic~Fil~A", gotoPage, 290, 65, 25, 6, "Length.png");
    AddImageLabel( categoryView, 0, 462, "Store Name", gotoPage, 290, 65, 25, 7, "Length.png");
    AddImageLabel( categoryView, 0, 528, "Store Name", gotoPage, 290, 65, 25, 8, "Light.png");
    AddImageLabel( categoryView, 0, 594, "Store Name", gotoPage, 290, 65, 25, 9, "Weight.png");
    

Share This Page