all groups > flash actionscript > february 2007 >
You're in the

flash actionscript

group:

Grouping symbols programmatically


Grouping symbols programmatically hummosa
2/16/2007 3:37:21 PM
flash actionscript: Hello,
I am drawing a graph that can be panned through a mask layer. I need to drag
icons into the graph, and have the icons move with the graph when it is panned.
So I guess I need a way to have the newly created a icons be incorporated into
the graph and act as a group.

Thanks.

Re: Grouping symbols programmatically kglad
2/16/2007 3:44:25 PM
you can't change the inheritence structure during runtime. you can however
simply add each icon, that's dropped onto your graph, to an array and loop
through that array when panning.

or you can fake an inheritence change by attaching a duplicate using
attachMovie(), assign its _x and _y properties and then remove the original
icon.
AddThis Social Bookmark Button