flash tizzy
- Started
- Last post
- 3 Responses
- unknown
is there a way for a frame to carry out its entire actionscript of tweening coordinates, width, height, alpha, etc. before continuing onto the next frame for a new set of coordinates and variables OR do i just have to keep adding frames for my MC to finish its animation?
*these are ACTIONSCRIPTED tweens on a movieclip.
ie -
frame one:
onClipEvent (load)
{
var ease = .15;
var width = 500;
var height = 20;
_width = 0;
_height = 20;
}
onClipEvent (enterFrame)
{
_width += (width-_width)*ease;
_height += (height-_height)*ease;
}frame dos:
onClipEvent (load) {
var ease = .15;
var width = 0;
var height = 20;
_width = 500;
_height = 20;
}
onClipEvent (enterFrame)
{
_width += (width-_width)*ease;
_height += (height-_height)*ease;
}
- monNom0
use an if statement
frame one(of the main timeline):
movieclip with the clip event:
onClipEvent(enterFrame){
//put all your stuff in aswellif(this._width >= width ){
_root.gotoAndPlay(next);
}
}
- unknown0
this is what i have on my MC on frame 1
onClipEvent (load)
{
var ease = .15;
var width = 500;
var height = 20;
_width = 0;
_height = 20;
}
onClipEvent(enterFrame){
_width += (width-_width)*ease;
_height += (height-_height)*ease;
if(this._width >= width )
{
_root.gotoAndPlay(next);
}
}not working. the movie is two frames long. it just loops without giving anytime for animation.
- unknown0
solution:
onClipEvent (load) {
var ease = .1;
var endx = 350;
}
onClipEvent (enterFrame) {
_x += (endx-_x)*ease;
if(Math.abs(_x-350)<1)
{
_root.play();
}=o) thanks tho dude!