Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
3state Button with Cursor change
Check valid date
Get Rect of Vertexlist
Frame Trigger-Alphamania
80's Arcade High Score Name Entry Behavior
Animate Text By Font Size
Date Time Xtra
Macromedia Flash 5 Authorized
FlushEventsXtra
RADGrid
MediaMacros Xtras Mall
 

 

 

Behavior Clear all editable fields

Added on 6/12/2006

 

Compatibilities:
D6_5 D7 D8 D8_5 D9 Mac PC Script Shockwave

This item has not yet been rated

Author: MikeBlaustein

Have you ever had a project where there are editable fields that should always start off blank, but Director keeps saving the info you filled in last time you tested the file in Authoring mode? Well, this should be a problem no more. Note that this will clear ALL editable fields, so if there are some that need to have a default value, you should include that in the sprite's beginSprite handler. I usually will put this into the startMovie handler so everything always starts off fresh.

on clearEditableFields
  repeat with iCast=1 to the number of castlibs
    repeat with iMember=1 to castlib(iCast).member.count
      if castlib(iCast).member[iMember].type=#text then
        if castlib(iCast).member[iMember].editable=1 then
          castlib(iCast).member[iMember].text=""
        end if
      end if
    end repeat
  end repeat
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail