FORUMS: list search recent posts

coordinate system whacked?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
thumbslinger
coordinate system whacked?
on Jul 3, 2006 at 7:40:55 pm

I'm using Brendan Dawes Slide class to move two independant movie clips.

One is a very long graphic that just moves on the x axis according to a mouse click.

The other mc is the navigation panel which is to move to a different location.

Both are registration marked at the upper left corner.

I would move the background graphic into position, then move the navigation list to an area where it fit and note the x,y position.

However, though the main graphic responds correctly, the navi doesn't end up anywhere where the coordinates I've used show.

The script is:

ActionScript Code:

import com.dragslidefade.*;
mc_bckgrnd.cacheAsBitmap = true;
var mc_NaviTest:MovieClip;
var s:Slide = new Slide(mc_bckgrnd,1);
var n:Slide = new Slide(mc_NaviTest,1);
mc_NaviTest.know.onRelease = function()
{ s.moveClipTo(-1665,0,15);
n.moveClipTo(550,156,15);
}

mc_NaviTest.tonic.onRelease = function()
{ s.moveClipTo(-812,0,15);
n.moveClipTo(30,30,15);
}
mc_NaviTest.ring.onRelease = function()
{ s.moveClipTo(-2400,0,15);
n.moveClipTo(18,363,15); };

home.onRelease = function(){
s.moveClipTo(0,0,15); n.moveClipTo(570,123,15);
}


The navigation is just three sentences with little orb graphics. (like bullets)

In the timeline of the navigation, nothing is grouped, if that matters.

Any idea why the second movie clip wouldn't end up where the coords in the AS specify?


Return to posts index

thumbslinger
Re: coordinate system whacked?
on Jul 3, 2006 at 8:22:03 pm

well, I found out a way to work. For some reason, though each mc has its registration at the top left, I have to take the coords at the center registration and it works.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]