Name
MovieClip.valueOf( ) Method — the path of a clip or movie, as a string
Availability
Flash 5
Synopsis
mc.valueOf( )
Returns
A string containing the full path to mc
,
using dot syntax. For example:
"_level1.ball" "_level0" "_level0.shoppingcart.product1"
Description
The valueOf( )
method returns a string
representing the absolute path to mc
using
dot syntax notation. The valueOf( )
method is
automatically invoked whenever a MovieClip
object is used where a string is called for. For example,
trace(
mc
)
will generate the same result as
trace(
mc
.valueOf( ))
. It is, therefore, rarely necessary to invoke
valueOf( )
explicitly.
See Also
Object.valueOf( )
, targetPath(
)
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.