PDA

View Full Version : More Scroll Pane Problems


Pondy
06-14-2003, 12:35 AM
hello,

basically i have a clip which depends on where the mouse pointer is in relation to clip that reacts to the mouse move ment.

my movie clip is a bird (raven) which eye looks at where ever the user has thier mouse on the movie stage. (see .fla attached).

what i want to do is add this to a scroll pane, and still have the eye moving around. ive have tried all kinds of ways of doing this but what ever i do it does not work.

the movie clip works if you load the clip in using 'loadMovieNum' on a normal stage but not into a clip on the main stage.

the mouse pointer posittion is not a simple _root._ymouse or _root._xmouse

thank you for your time

CyanBlue
06-14-2003, 01:09 AM
Howdy and Welcome... ;)

Hm... Maybe I am not seeing things right, but I just commented out and changed two lines, and it seems like it is working to me...// MousePosX = _root.All.EyeGuide._xmouse;
// MousePosY = _root.All.EyeGuide._ymouse;
MousePosX = _root._xmouse;
MousePosY = _root._ymouse;Correct me if I am wrong...

Pondy
06-14-2003, 02:15 AM
lol, i could have sworn id tried tht >_<.

any how thank you for your time and help.

id also just liek to ask...

with changing the apearance of the pane buttons is it as easy as just changing colours in the library folders?

thank you one again (damn i feel stupid)

CyanBlue
06-14-2003, 02:34 AM
Well... As for customizing the component, check out the Using Flash...
Using Components > Customizing component skins

That solely covers everything on how to customize/skin the component... :)

Pondy
06-14-2003, 02:36 AM
thank you once again

Pondy
06-14-2003, 01:19 PM
ok, from first inspection it worked and it does. but not in the way id hoped. basically the eye moves in relation to where the mouse is on _root. if the clip is in the middle of the stage and the mouse is at 0,0 the eye is in the center of its socket, but it should be in the upper most left position.

the code i had b4 works only if the clips have instance names.

so my follow up question is:

what is the instance name of a scroll pane and is there any way of defining a clips instance name with out having it on the stage and naming it throug thr properties bar?

thank you once again...

CyanBlue
06-14-2003, 05:57 PM
Hm... Maybe I am not getting where you are heading, but the answer for your question would be...

Give your scrollPane an instance name of 'sc' and it will be '_level0.sc.tmp_mc'...