Link to home
Start Free TrialLog in
Avatar of andrewkhan
andrewkhanFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of blue-genie
blue-genie
Flag of South Africa image

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?
Avatar of andrewkhan

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
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of courtthree
courtthree

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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial