View Full Version : assign values question
onsitus
February 19th, 2005, 07:06 PM
I created a auto scroller which works fine but I would like to change it so that I can reuse it without changing different values each time.
The movie consist of a scrollmc and a maskmc (just a rectangle)
So if I write,
right = 150;
150 being the _x position of maskmc
why wouldn't it work if I change it to
right = maskmc._x;
:puzzled:
scotty
February 19th, 2005, 07:12 PM
Is the path to your mask mc okay?
scotty(-:
onsitus
February 19th, 2005, 07:39 PM
everything is on the main stage
onsitus
February 20th, 2005, 03:45 AM
Good morning all, any chance to help me find a solution for my fla?
scotty
February 20th, 2005, 04:33 AM
Save your fla as a mx (it's now a flash5) and you can write
left =mask._x-mask._width/2;
right = mask._x+mask._width/2;
(the registrationpoint of mask is in the centre;) )
scotty(-:
onsitus
February 20th, 2005, 04:49 AM
I still can count on you Scotty, thank you.
I'm confused about those registration point. The mask form is centered but when I converted it to a movie clip, I put the registration point to the top left (is this non important in this case the registration point when I convert it?). So Flash will consider the mask._x as the mask form, not the maskmc x as it is on main stage?
Some informations. I promised Lunatic to post the finished fla of this auto scroller, where shall I post it. Shall I include explanations to it (in the main fla or separetly?)?
onsitus
February 20th, 2005, 06:23 AM
I can't believe it...it's working great whatever the size of the maskmc or the scrollmc.
Next step, to make this auto scroll it's own movie clip, so that I just drag it from the library to the stage.
I'm an happy bunny.
:b:
scotty
February 20th, 2005, 03:06 PM
LOL, I'm happy to hear that=)
scotty(-:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.