Post 1 made on Tuesday March 17, 2009 at 14:43 |
pthornhill Long Time Member |
|
|
I have a volume button (hard button) script that is looking for a widget on a page within same activity/device. The widget is always called "volbarpanel", and each device/activity can have multiple pages with different page script tags. Each page has the same "volbarpanel" widget.
How can I make the volume hard button reference the widget on the currently showing page? I have tried GUI.widget("volbarpanel") and it only gets a handle to the widget on the 1st page in the device that is viewed after entering the device/activity.
Same goes if I try CF.widget("volbarpanel",CF.activity().page().tag). It doesn't update handle if you switch between pages without coming out of the activity.
I don't want to manually give these widgets different tag names. Any suggestions?
|
|
|