Sun 26 Feb 2006
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 lines of codevar 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
1. create an fla
2. on the firstframe place this code:
-
this.onEnterFrame = function(){
-
-
MMExecute("fl.getDocumentDOM().selection");
-
-
}
3. publish to the windowsSWF folder.
4. open ur new pane
5. create a symbol on the stage and try to change any of those
abovementioned properties, whilst the panel is open.
This problem has not been sorted in 7.2.
April 5th, 2006 at 11:58 am
So you finally got a blog, huh?
It’s about damn time. Save me bugging you over MSN and email.
Good luck with it.