View Full Version : vPosition of attached movie
dmband2323
10-23-2007, 12:38 AM
I have a button that attaches a movie (which contains a scroll pane in it) to a clip on the stage. It works fine. What I can't figure out is how to make it attach the movie but also set the vPosition. I am using CS3 and AS2.0. I just can't make it work. Below is the code I am starting with. Anyone know how I can attach and set the vPosition?
on(release)
{
_root.main_loader.attachMovie( "resume", "resume_pane", 1);
}
danjp
10-23-2007, 03:56 PM
you can set any properties after you attach:
on(release)
{
_root.main_loader.attachMovie( "resume", "resume_pane", 1);
_root.main_loader.resume_pane._y = 43
}
this sets the _y value of the attached 'resume_pane' to 43
is this what you are after?
Brucebannor
10-23-2007, 04:04 PM
_root.attachMovie("resume", "resume_pane", this.getNextHighestDepth(), {_x:100, _y:100});
or better yet we can do it all in one line of code. =)
dmband2323
10-23-2007, 06:03 PM
No, what I have the actual box positioned correctly. What I need is to have it go to a certain line or anchor inside the actual text of the scroll pane.
sd9sd
10-23-2007, 06:27 PM
I guess you're looking for scrollpanes that acccept dynamic content. You'll find some if you google or search in this forum, and please post the fla when you find it, coz even I'm looking for a good one. :)
Once you get such a scrollpane, just set the content of the scrollpane as a movieclip. Once that's done, you can attach another movieclip inside the content movieclip easily, using the ._y property.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.