property spriteNum, pMember, pCheckDoubleClick
on beginSprite me
pMember = sprite(spriteNum).member
end
on mouseUp me
-- set pCheckDoubleClick = TRUE only when a doubleClick has been detected
pCheckDoubleClick = FALSE
if the doubleClick then pCheckDoubleClick = TRUE
end
on keyUp me
-- if a doubleClick has been detected
if pCheckDoubleClick then
-- execute only when the movie is running in Windows
if the machineType = 256 then
-- execute only when the movie is running in authoring mode
if the runMode = "author" then
-- establish how many characters there are in the field/text member
x = member(pMember).char.count
-- delete the last character (the duplicate character)
if member(pMember).type = #field then delete char x of member(pMember)
if member(pMember).type = #text then delete member(pMember).char[x]
end if
end if
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA