In the drop target syntax, if (_root.clip._droptarget == “/target”)
what is the slash for before the instance name of the target? Will _root.clip.droptarget == “target” work just as well?
The “/” is because (_root.clip._droptarget == “/target”) returns the path in slash syntax notation of the “target” mc where the “clip” was dropped.
You can also use
if (eval(_root.clip._droptarget) == _root.target) {
//do your stuff;
}
oh ok. So that was the old flash 5 way of doing it then. The dot notation will work fine if i am running mx. what does the eval in that statement do? you cant just check
[AS]
if (_root.clip.droptarget == root.target){
//whatever
}
?
eval converts it from slash syntax to a dot syntax reference.
oh ok. thanks a bunch claudio
welcome :thumb: