I have a square that is being dynamically resized depending on which button is selected. The problem is that when it resizes it resets the original size of the symbol and tweens from that size and not the previous size it had tweened from (Did that make sense?!) So the box jumps between transitions and does not go from dimension to dimension smoothly.
Also I wanted to add some velocity and elasticity to the transitions.
Here's the code on each clip (I'm not a AS guy. I read this in a post and tried it on my own) ....
code:
onClipEvent (enterFrame) {
// Set dimensions and speed and more
w = 200;
h = 150;
xpos = 100;
ypos = 150;
speed = 5;
// Move the thing
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
}
I've included the file in case my assessment of the issue was too confusing.
Looking forward to enlightenment ...
Thanks
Last edited by Ridick; 11-02-2005 at 07:18 PM.
"Lets get right down to brass tacks....How much for the ape?"
When you go to a new keyframe, the movie clip instance reloads, thus returning to its initial state prior to beginning it's approach to the new dimensions. I've attached a reworked .fla that shows the solution. Instead of going to a new frame with new variables to approach, just send the clip the variables. Now it approaches from where ever it already is instead of reloading to it's initial state.
Ahaaa!! Thank you so much! Eternally grateful for this!! So ideally I could trigger sound effects and elasticity in the same fashion by sending them as variables?
"Lets get right down to brass tacks....How much for the ape?"
Ahaaa!! Thank you so much! Eternally grateful for this!! So ideally I could trigger sound effects and elasticity in the same fashion by sending them as variables?
Boy was I off target! Variables Schmariables!! But I found another thread regarding resizing with elasticity. Complex stuff but I was able to understand enough to edit it to fit my needs. Thanks again for your help!!!
"Lets get right down to brass tacks....How much for the ape?"
i'm having the same problem... anyway you could post that fixed FLA in MX2004?...I can't open the attached.
Thx
Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
OS X 10.3.9 || Flash MX04 Pro
| del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |
Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
OS X 10.3.9 || Flash MX04 Pro
| del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |
Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
OS X 10.3.9 || Flash MX04 Pro
| del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |
Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
OS X 10.3.9 || Flash MX04 Pro
| del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |
I was hoping someone could also explain to me how you could have a movieclip always attached the left edge of the movieclip that is resizing.
example...a menu...the blue box would contain the content but the menu would always be stuck to the left edge of the box.
also i notced that if you add a slightly larger box behind the blue box to imitate a border, when it stretches wider than it is high it warps....
What I'm trying to acheive is something like this www.dubko.com