Topic: Example RSS widget modification

I have been playing around with the rss widget found on the wiki:

http://wiki.chumby.com/mediawiki/index. … le_Widgets  (the RSS widget)

I was wondering if anyone out there has added "forward" and "back" controls to this?  I have limited action script skills, and don't really know where to start logically.  If anyone has any ideas on where to start or what I should do logically it would be a great help.

I haven't been able to get this to work, but is it as simple as calling these functions when the button is pressed?

function nextItem() {
    g_itemIndex = (g_itemIndex+1) % g_items.length;
    showItem();
}

function prevItem() {
    g_itemIndex = (g_itemIndex-1);
    if (g_itemIndex<0) {
        g_itemIndex = g_items.length-1;
    }
    showItem();
}

Thanks!

Re: Example RSS widget modification

I think I made something that did this.

Just go
fwd_btn.onPress = nextItem();
bck_btn.onPress = prevItem();

Where fwd/bck_btn are the buttons.

Re: Example RSS widget modification

Figured it out.

on (press) {
    prevItem();
}


Thanks!