Working with Tween in Flash Lite

In last months my team and I are working on Flash Lite projects so hard, in particular with Tween class we found a good way to work with them.
Also Adobe has released in last weeks a new interesting resource: Mobile and Devices cookbook, for now it’s only online, I hope soon it will be also published by O’Really!

So I’ve just post in this great online resource some suggestions to work with Tween in a Flash Lite project.
I think the most important is the third one:

3. When you move a movieclip that contains lots of textfields or clips, switch movie quality to low (fscommand2(“SetQuality”, “low”)) and, when animation is finish turn quality to high (fscommand2(“SetQuality”, “high”)).
With this trick you can have great performance for your animations

In fact I tried to use always high qualit and performance was not good, when I tried to set low quality before a Tween and switch to high when it finished, performance grown until to 50% instead of first method.

If you want try this you have got a Flash Lite 2.x device and download the sample file.
I put a comment in the code, first of all, try to comment the right code line and then try without it.
Please leave me other suggestions or comments on this post or write me directly.

Enjoy 

 

 

Published by

lucamezzalira

I’m the VP of Architecture at DAZN with more than 15 years of experience, a Google Developer Expert on Web Technologies and the London Javascript community Manager I had the chance to work on cutting-edge projects for mobile, desktop, web, TVs, set top boxes and embedded devices. I am currently managing DAZN, a sports video platform based on the cloud with millions of users that are watching live and on-demand contents. I'm the author of Front-End Reactive Architectures published by APress: https://goo.gl/ywAmsx I think the best way to use any programming language is mastering their models, that’s why I spent a lot of time studying and researching on topics like OOP, Functional and Reactive programming. In my spare time, I wrote for national and international technical magazines and editors, I'm also a technical reviewer for APress, Packt Publishing, Pragmatic Bookshelf and O'Reilly. I was speaker at: O'Reilly media webinars, O'Reilly Software Architecture (San Francisco & London), O'Reilly Fluent (San Jose), O'Reilly Oscon (London), Google Developers Summit (Krakow), Google DevFest (London), Frontend Devs Love (Amsterdam), Voxxed Days (Belgrad & Bristol), JeffConf (Milan), International Javascript Conference (Munich & London), JS Poland (Warsaw), Code Europe (Wroclaw), JSDay (Verona), CybercomDev (Łódź), Jazoon Conference (Bern), JDays (Göteborg), Codemotion (Milan), FullStack Conference (London), React London UG (London), Scrum Gathering (Prague), Agile Cymru (Cardiff), Scotch on the rocks (Edinburgh & London), 360Max (San Francisco), PyCon (Florence), Lean Kanban Conference (London), Adobe Creative Suite CS 5.5 - Launch event (Milan), Mobile World Congress (Barcelona)

2 thoughts on “Working with Tween in Flash Lite”

Leave a Reply to lucamezzalira Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s