contents   index   previous   next



seSetAttribs

 

syntax:

   void

SEContext.seSetAttribs(SEObject obj,

                       SEMemberDesc mem,

                       int attributes); 

where:

obj the object half of an Object,Member pair

 

mem the member half of an Object,Member pair

 

attributes the attributes to set

 

return:

None

 

description:

This call sets the variable's attributes. The attributes can be any of the following, |'d togethor:

 

SE.DEFAULT

 

The default, no special attributes

 

SE.READONLY

 

Any attempt to update the member is ignored

 

SE.DONTDELETE

 

Attempts to delete the member using the ECMAScript delete operator are ignored

 

SE.DONTENUM

 

The member is not included in for..in enumerations

 

 

 

The following flags apply only if the variable is an object:

 

SE.DYNA_UNDEF

 

Dynamic callbacks for the objects are only used if the object does not contain the desired member in the ScriptEase internal storage for the object.

 

SE.IMPLICIT_THIS

 

When the function is executed, the this variable is added to the front of the scope chain so all members of this are visible without putting this. in front of them. This is exactly as if the entire body of the function was wrapped in the statement with( this ) ... This behavior is similar to how Java member functions work.

 

SE.IMPLICIT_PARENTS

 

Similar to SE.IMPLICIT_THIS, the parents of the this variable are put into the scope chain. This chain begins with this.__parent__ and continues as long as each such object itself has a __parent__ property. Note that there are two underscores on each side of parent above. This is useful for browsers in which event handlers can refer to variables in the enclosing element, document, and window. By chaining these objects together using __parent__ and adding SE.IMPLICIT_THIS and SE_IMPLICIT_PARENTS to the event handler function, the desired behavior is achieved.

 

see:

seGetAttribs()

 


seAssign