Endless tween

Posted on 2009-02-24
Medium Priority
Last Modified: 2013-11-11
On the map when a building is selected from the list it starts what I call the "endless tween". It very slowly starts to zoom in on the map. I haven't even had the patience to see how long the tween lasts.
I would like to remove this feature all together, but I'm having trouble seeing what to take out in the code. I think it is something in here:

import mx.transitions.Tween;
import mx.transitions.easing.*;
var list:mx.controls.List;
list.addItem({data:"external_files/chemistry.swf", label:"Chemistry", locationX:-356.0, locationY: -138.7});
list.addItem({data:"external_files/graduate_library.swf", label:"Hatcher Library", locationX:-293.0, locationY: -240.7});
list.addItem({data:"external_files/kraus.swf", label:"Kraus Science", locationX:-247.0, locationY: -123.7});

but when I take something out I get errors in my output.

Question by:Bm71
LVL 11

Accepted Solution

Eaddy Barnes earned 2000 total points
ID: 23728005
do you recall me telling you that you had to many properties inside a tween?
that would be the tween in question now.

you can comment it out for future reference .

        var zoom_handlerX:Tween = new Tween(_root.mapall2, "_width", Strong.easeOut, 386.1, 463.4, 540.6, 617.8, 695.0, 772.3, 849.5, 926.7, 1004.0, 1081.2, 10, true);
        var zoom_handlerY:Tween = new Tween(_root.mapall2, "_height", Strong.easeOut, 298.1, 357.8, 417.4, 477.1, 536.7, 596.4, 656.0, 715.6, 775.3, 834.9, 10, true);

Author Closing Comment

ID: 31550566
Thanks GE,
That did the trick


Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question