I'm having some problems when I use addDataToSelection(). I'm trying to store the current time in the selected object (a symbol instance). Here's my code:
var date_object = new Date();
var current_time = date_object.getTime(); // number of milliseconds since 1970
fl.getDocumentDOM().addDataToSelection("blah", "integer", current_time);
On the call to addDataToSelection, Flash gives me an error that says "Argument number 1 is invalid." What am I doing wrong? I'm following the prototype for the function that I've seen in several documents. It doesn't seem to matter what string I put in place of "blah" -- it always gives me the same error.
I'm using Flash 8 on Windows XP.
Thanks for any help you can give.