Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
DOMPathUtil

Package | org.apache.flex.utils.dbg
Class | public class DOMPathUtil
Inheritance | DOMPathUtil Object

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The DOMPathUtil class is a tracks instances of display objects and provides a unique string for each one based on its position in the tree of display objects. It is generally used for trace output. If you think you need this for production applications you might want to re-think your design.

Public Methods

| Method | Defined By
--- | --- | ---
|  | getPath(obj:Object):String [static] Returns a string for an object. | DOMPathUtil

Method Detail

getPath | () | method

`public static function getPath(obj:Object):String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Returns a string for an object. IF the object is parented, it creates a string based on the DOMPathUtil of the parent.

Parameters

| `obj:Object` — The object to generate a path/name for.

Returns

| `String` — The unique name based on the parents.

Mon Sep 5 2016, 07:19 AM -07:00