PDA

View Full Version : document.selection


hangalot
07-28-2004, 03:45 PM
i have posted this on the jsfl list as well, but still awaiting response.

Well I think I might have discovered a little problem with this command. Let me explain first.
I need to poll from a windowsSWF what object(s) on the stage is selected at any given point so I can extract the actionscript from it. Thus using setInterval I call a function to do that in a jsfl file.

Obviously I need to c how many objects are selected at any given point so I use the following line
var doc = fl.getDocumentDOM();
if(doc.selection.length==1)
all straight fwd there,

the side effect is this, when accessing an the selection array I seem to be losing the values of any properties being set in the properties pane for symbols (x,y,width,height and instance name).

to reproduce:
create an fla
on the firstframe place this code:
this.onEnterFrame = function(){

MMExecute("fl.getDocumentDOM().selection");

}
publish to the windowsSWF folder.
open ur new pane
create a symbol on the stage and try to change any of those abovementioned properties.

this has not been sorted in 7.2

TIA
johan

hangalot
08-26-2004, 12:18 PM
this was confirmed by MM to be a bug.