Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Pea #1
Clip position relative to _root
Hi all
I have a clip buried deep within other clips, and I want to find its _x and _y
position relative to the _root clip. Is this possible
e.g. I have clips A, B, C and D, all nested within each other. If I find the
position of 'D' from within 'D', its 'D's position within 'C' that is returned.
How do I return its position within _root
_root.A.B.C.D._
_root.A.B.C.D._y
Thanks in advance
Pete
Pea Guest
-
DW8 messed my relative position layer behaviors
I recently upgraded from MX to Studio 8. I have a website where I was using a series of "set text of layer" behaviors to write copy to a relative... -
relative vs abolute position with layers in liquidinterface
:confused; Newbie here. I've got a 2 column table in an editable area of a page created from a template. In column 1 there is a roll over... -
need help positioning movie clip relative to a resizing clip...
I am trying to attach a "caption" to the bottom right edge of a movie clip that resizes. I am using the resizing clip as a image holder for a... -
_root.sound1.position is wrong..
I'm developing a winamp on in flash for my MP3's on the web, but found when I move from one MP3 to another the .position still holds the position of... -
Referring to a global variable in a clip from _root
I know you can refer to global variables in the main timeline from a movie clip, but can you do the reverse--I can't seem to get that to work? For... -
stwingy #2
Re: Clip position relative to _root
on the timeline of the mc you want to know the absolute position of type
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
bigX = pt.x;
bigY = pt.y;
trace(bigX);
trace(bigY);
stwingy Guest
-
Pea #3
Re: Clip position relative to _root
Thanks, but..
I tried to simplify my problem however, and you solved it brilliantly, but
unfortunately, it doesn't work in my actual problem
I actually need to be able to find the position relative to any clip (not
_root) such as 'A' or 'B'
e.g
B.C.D._x ? so D._x relative to B
Any idea?
Pea Guest
-
stwingy #4
Re: Clip position relative to _root
sorry Pea, short of finding each clips relative position from (0,0) on the main stage and subtracting values, i really don`t know.
ps/ it helps to make reg points in upper left of each clip.
stwingy Guest



Reply With Quote

