andrewkhan
asked on
ActionScript animation efficincy (AS2.0)
Hi, I currently have an animation using a .prototype function on a MovieClip (cannot use .as)
I'm using it as I find it more versatile than to use say, the tween class. As it sometimes gets called halfway through an animation. The problem I am having is it is causing a lot of processor lag to the rest of my animation while it is playing.
What is the most efficient way to animate objects dynamically?
(Note that I CANNOT use: .as files or any external libaries, apart from default ones such as the tween class)
Any help/ideas appreciated.
Thanks,
Andrew
I'm using it as I find it more versatile than to use say, the tween class. As it sometimes gets called halfway through an animation. The problem I am having is it is causing a lot of processor lag to the rest of my animation while it is playing.
What is the most efficient way to animate objects dynamically?
(Note that I CANNOT use: .as files or any external libaries, apart from default ones such as the tween class)
Any help/ideas appreciated.
Thanks,
Andrew
hi, explain why you think it's more versatile? there's no doubt doing a tween with code is must more efficient than doing a frame based animation. why can't you use .as files?
ASKER
Why is creating a tween with animation more efficient though? I'm looking for an explanation rather than a definite answer. Because the SWF is hosted on an external server out of my control and is embeded inside another SWF. On this server I cannot host .as files.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Definitely agree with Blue on loops being inefficient.
Are you saying you are suffering from the problem that importing the tween class in an embedded swf conflicts with the class in the parent when loaded across domains?
In addition, running multiple Tweens simultaneously (whatever the method) will bog your movie down. The only workable solution I've ever found is to stagger my animations one after the other wherever possible.
Do you have an online example of the problem?
Are you saying you are suffering from the problem that importing the tween class in an embedded swf conflicts with the class in the parent when loaded across domains?
In addition, running multiple Tweens simultaneously (whatever the method) will bog your movie down. The only workable solution I've ever found is to stagger my animations one after the other wherever possible.
Do you have an online example of the problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.