Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 174

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 173
152
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Description
Method; specifies a value for a specified property of primitive Rectangle objects.
Example
See individual properties in Rectangle object for examples.
See also
Rectangle object, shape.isRectangleObject
document.setSelectionBounds()
Availability
Flash MX 2004; bContactSensitiveSelection parameter added in Flash 8.
Usage
document.setSelectionBounds(boundingRectangle [, bContactSensitiveSelection])
Parameters
boundingRectangle A rectangle that specifies the new location and size of the selection. For information on the
format of boundingRectangle, see
document.addNewRectangle().
bContactSensitiveSelection A Boolean value that specifies whether the Contact Sensitive selection mode is
enabled (
true) or disabled (false) during object selection. The default value is false.
Returns
Nothing.
Description
Method; moves and resizes the selection in a single operation.
If you pass a value for bContactSensitiveSelection, it is valid only for this method and doesn’t affect the Contact
Sensitive selection mode for the document (see
fl.contactSensitiveSelection).
Example
The following example moves the current selection to 10, 20 and resizes it to 100, 200:
var l = 10;
var t = 20;
fl.getDocumentDOM().setSelectionBounds({left:l, top:t, right:(100+l), bottom:(200+t)});
See also
document.selection, document.setSelectionRect()
Vue de la page 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 559 560

Commentaires sur ces manuels

Pas de commentaire