You need to cast to the widget/actor you wish to use variables from. In order to cast you will need a reference to the particular widget/actor you want. The videos in the link will help you if you are having trouble with casting/references. The particular ones for this issue are #1 (casting) and #25 (creating references). Video #4 (Widgets and UI) may also be helpful.