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
Adobe Flash

Avatar of undefined
Last Comment
moagrius
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
andrewkhan
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
Avatar of moagrius
moagrius
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Adobe Flash
Adobe Flash

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo