Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Speller
Valentina Spider 1.0
DirSaver
Bilinear Resample Algorithm
Color Dialog behavior
changing the color of a flash movie clip with lingo
Easy to use video convertor
Direct Media Volume Slider
PDF Asset Xtra
Get Rect of Vertexlist
 

 

 

Behavior Double Char Fix - D 7.0

Added on 2/15/2000

 

Compatibilities:
behavior D7 D8 PC

This item has not yet been rated

Author: Macromedia (website)

From Technote #14056 at Macromedia.com

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

Send e-mail