alert message code?

hello,

I am trying to get an alert message to appear in my game when you roll the triangle over top of the word finish. I have looked at the ghosts vs. monsters code, but it doesn’t seem to work. If you guys know how bubble ball has it when you make the ball hit the flag there is an alert message, how do i get my word finish to do something like that? any help would be greatly appreciated! Thanks in advance! [import]uid: 19836 topic_id: 8020 reply_id: 308020[/import]

well im going to look at the ghosts vs. monsters code once again and see if i understand. any help will be great. [import]uid: 19836 topic_id: 8020 reply_id: 28613[/import]

here is some of my code. Its not working so if anyone can please help me with it?

[code]
local F = display.newImage( “F.png”, 120, 15 )
localGroup:insert(F)

local onNextTouch = function( event )
if event.phase == “release” then
audio.play ( youwin )
local theModule = “load” … nextModule
director:changeScene( theModule )
end
end
local nextBtn = ui.newButton{
defaultSrc = “nextlevelbtn.png”,
defaultX = 60,
defaultY = 60,
overSrc = “nextlevelbtn-over.png”,
overX = 60,
overY = 60,
onEvent = onNextTouch,
id = “NextButton”,
text = “Congratulations, You Won!”,
font = “Helvetica”,
textColor = { 255, 255, 255, 255 },
size = 16,
emboss = false
}
nextBtn.x = 72; nextBtn.y = 186
nextBtn.alpha = 0
if isWin ~= “yes” then nextBtn.isVisible = false; end

if isWin == “yes” then hudGroup:insert( nextBtn ); end

return localGroup
end
[import]uid: 19836 topic_id: 8020 reply_id: 28615[/import]

Please anyone? I looked over the Ghosts vs. Monsters code and still cannot find what i’m supposed to do. [import]uid: 19836 topic_id: 8020 reply_id: 28831[/import]