Declare chaticons in client.java
|
Declare chaticons in client.java
=> Client help section
OT: your array of chatIcons doesn't exist (or it has another name):
Spirte[] chatIcons = new Sprite[<numerOfSpritesForThisArray>];
Then you should declare it like I showed.
Simply placing "public Spirte[] chatIcons = new Sprite[<numerOfSpritesForThisArray>];" outside any method inside the client.java class will create the variable (and get rid of "cannot find symbol"). You will need to change <numberOfSpritesForThisArray> by the number of sprites you plan to place in the array.
If it complains about being referenced from a static content, make it say "public static Sprite[]" instead of "public Sprite[]".
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |