Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-28-2004, 03:45 PM   #1
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default document.selection

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-26-2004, 12:18 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

this was confirmed by MM to be a bug.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.