Endless tween

Posted on 2009-02-24
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

    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

    Thanks GE,
    That did the trick


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Title # Comments Views Activity
    Error 2032 in all the browser 6 2,753
    Microsoft WSUS 4 79
    bandwidth 5 62
    How to block online streaming via TMG2010 ? 2 90
    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now