Document.changefilterorder() – Adobe Extending Flash Professional CS5 User Manual
Page 102
80
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Description
Method; determines whether you can use the
Example
The following example first tests whether fl.getDocumentDOM().testScene() can be used successfully. If so, it calls the
method.
if(fl.getDocumentDOM().canTestScene()){
fl.getDocumentDOM().testScene();
}
See also
,
document.changeFilterOrder()
Availability
Flash 8.
Usage
document.changeFilterOrder(oldIndex, newIndex)
Parameters
oldIndex
An integer that represents the current zero-based index position of the filter you want to reposition in the
Filters list.
newIndex
An integer that represents the new index position of the filter in the list.
Returns
Nothing.
Description
Method; changes the index of the filter in the Filters list. Any filters above or below newIndex are shifted up or down
accordingly. For example, using the filters shown below, if you issue the command
fl.getDocumentDOM().changeFilterOrder
(3, 0
), the filters are rearranged as follows:
If you then issue the command fl.getDocumentDOM().changeFilterOrder
(0, 2
), the filters are rearranged as follows:
Example
The following example moves the filter that is currently in the second position in the Filters list to the first position:
Before
After
blurFilterdropShadowFilterglowFiltergradien
tBevelFilter
gradientBevelFilterblurFilterdropShadowFilterglo
wFilter
Before
After
gradientBevelFilterblurFilterdropShadowFilt
erglowFilter
blurFilterdropShadowFiltergradientBevelFilterglo
wFilter