Use a loadRemoteImage as a button?

I’d like to load a graphic remotely using loadRemoteImage and store the file locally. Then, I’d like to use that resource as a button (widget.newButton()).

In scene:create, I have the following statement but how do I access appSceneGroup from within the callback function?

  local appSceneGroup = self.view --display.newGroup()

  if (databox.customlogo == "1") then
    display.loadRemoteImage(databox.classurl .. "/img/customlogo.png", "GET", displayCustomLogo, 
      "customlogo.png", display.contentWidth * 0.5, display.contentHeight * 0.5 - 250)
  end

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.