Thanks @CaseyFields . I checked your code and it looks a lot like mine, so I don’t get why it’s not showing up.
But there’s something important I need to ask you… where or when do you call the ATT popup?
By the way, did you get any banner or interstitial to show up?
About the progress bar, here’s my code:
-- loading bar border
local barBorder = display.newImageRect( sceneGroup, "assets/img/loadingBar2.png", 225, 25 )
barBorder.x, barBorder.y = display.contentCenterX, display.contentCenterY + display.contentHeight*0.25
-- loading bar
local loadingBar = display.newImageRect( sceneGroup, "assets/img/loadingBar.png", barBorder.contentWidth, barBorder.contentHeight )
loadingBar.x, loadingBar.y = 0, 0
loadingBar.anchorX = 0
local widthContainer = barBorder.contentWidth - 7
local container = display.newContainer( sceneGroup, 0, barBorder.contentHeight )
container.x, container.y = barBorder.x - widthContainer*0.5, barBorder.y
container.anchorX = 0
container.anchorChildren = false
container:insert( loadingBar )
barBorder:toFront()
function scene:loading( t, f )
-- 't' -> loading bar fill time
transition.to(container, {
time=t, width = widthContainer,
onComplete=function()
if f then f() end
end
})
end
scene:loading( 3000, function()
composer.gotoScene( "menu", {time=0, effect="fade"} )
end)