Set is used like a function: set("variableName", _expression_);
Much like the setVariable function in coldfusionMX.
You can always press shift-F1 to go to the actionscript reference from the flash IDE. You can also highlight an actionscript function and press shift-F1 and if it recognizes it, will go to that part of the docs. (would be awesome if homesite did that for cf tags/functions - does anyone know if it does?)
FYI, this worked for me.
function traceMovieName(myObj) {
var myObjectName = myObj._name;
trace(myObjectName);
}
traceMovieName(testMovie);
Adam.
>How can I get the name of an object that is passed by reference to a
>function?
>
>I want the object name of obj1 in this function. (Excuse me if this
>is incorrect, I'm working on it.)
>
>
>function fnct(obj1){
>set objectname = obj1._name;
>}
>
>I can't seem to get this.
>
>- Thanks, Matt Small
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]