group and ungroup

182 views
Skip to first unread message

Ivan

unread,
Jun 5, 2008, 7:32:05 AM6/5/08
to flash.jsfl
Hi!
I need to ungroup an element containing different elements, modify one
of this elements and group again all the elements obteining the group
as in the beginning (but of corse with one of the elements modified).

Actually I didn't get how to use group() and ungroup() I didn't find
any example in internet.


Thanks'


Ivan

Keith Hair

unread,
Jun 6, 2008, 11:32:15 AM6/6/08
to js...@googlegroups.com
Hey Ivan,

I was hoping someone would have a solution for unGrouping stuff too.
The unGroup problem is the last thing keeping me from finishing this "findObject" function.
It seems to work fine, but does not find objects that are grouped:
http://keith-hair.com/blog/2008/06/05/finding-elements-with-jsfl/


If I wrote my function using "fl.getDocumentDOM().mouseClick()" to select each element maybe
I could used the following steps to do the unGroup on each element

1.) call enterEditMode() on each element to access each element Timeline
2.) Loop over elements in that current Timeline.
3.) Check if the current elementType == "shape" and perform unGroup(), if it is a "shape" call "continue" to restart the current iteration after unGroup.
4.) call exitEditMode() and repeat all 4 steps on the next element.


-- Keith H --
--
-- Keith Hair --
www.keith-hair.com
Reply all
Reply to author
Forward
0 new messages