Tweening using AS3 - Not Smooth

Hi, im trying to develop a simple web gallery.
When the user scroll his mouse to the left side of the image the leftArrow will appear to allow him to move back
and same goes for the right arrow. Im using AS3 tweening using the tween class but the animation is really not smooth.
I saw this effect on a different website and the side arrows just pops out and a such a smooth way but i cant get it to work.
Any one can tell me why ?
Attahced i the .SWF file.
Thanks

Sorry ! just had to change the frames per sec !!

Similar Messages

  • IOS app using AS3 not fitting screen dimensions

    I'm building an iOS app using as3 and air to package the app onto my iPhone 6. My issue is that I get a black bar above and below the app, the app itself is not going fullscreen. The stage screen is set to the iPhone 6 screen dimensions.
    I have tried by adding the following launch images into the app folder; [email protected], [email protected], and [email protected] But it's not being displayed properly.
    Does anyone have any fixes for this?

    Hi ericmathew
    iPhone 6 & iPhone6+ require different Launch Images than older phones:
    For Example,
    For iPhone 6 : Default-375w-667h@2x~iphone.png
    And iPhone6+ : Default-414w-736h@3x~iphone.png
    For more details regarding this, check out below article :
    http://blogs.adobe.com/airodynamics/2015/03/09/launch-images-on-ios-with-adobe-air/
    -Tushar,
    Adobe AIR Team

  • Tween Max AS3 Not Working on Root of loaded SWF

         I have a project where I'm loading a SWF into another Shell SWF and I've run into a strange bug.  Tween Max works in the compiled clip everywhere, but on the root of the loaded SWF.  It's not erroring out, it's just not tweening anything?
    Here's the code for the loader in the Shell...
    stop();
    //Import the required assets
    import flash.display.*;
    //Stop the playhead while loading occurs
    var ldr:Loader = new Loader();
    var url:String = "12com2682-value.swf";
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    //Create a listener to call the loading function as the movie loads
    ldr.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING2);
    function PL_LOADING2(event:ProgressEvent):void {
    loader_txt.visible = true;
    var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
    //Display the % loaded in textfield
    loader_txt.text="loading:"+int(pcent)+"%";
    //If the movie is fully loaded, kick to the next frame on the main timeline
    //You may wish to change the gotoAndStop(2) to a gotoAndPlay(2)
    if(pcent==100){
              mc_loadscene.addChild(ldr);
              loader_txt.visible = false;
    this.loaderInfo.removeEventListener (ProgressEvent.PROGRESS, PL_LOADING);
    then in the loaded SWF, I have:
    stop();
    import com.greensock.TweenMax;
    import com.greensock.plugins.*;
    TweenPlugin.activate([AutoAlphaPlugin]);
    import fl.transitions.easing.*;
    //////mc_host is a movieclip holding a video
    TweenMax.to(mc_host, 1, {scaleY:1, scaleX:1, delay: 2.5, ease:Back.easeOut });
    //////mc_sidert is another movieclip
    TweenMax.from(mc_sidert, 2, {y:"-600"});
    Anybody else running into this error? 

    you must be doing something wrong because that code works as expected for me:  http://www.kglad.com/Files/forums/test2.html and http://www.kglad.com/Files/forums/test2.fla
    p.s. please mark helpful/correct responses.

  • When using a path, jagged lines, not smooth lines, uneven lines

    I am using a Mac, photoshop CS5
    I created a path with Curves with the pen tool.
    filled it in with a color light blue.
    than I use the paint bucket to change it to dark blue.
    This is when the curved lines become jagged, not smooth, uneven.
    also I would like to use this as a mask, but with bg color changing from time to time.
    any solutions?
    GC

    Enable the retain transparency option when applying fills or use alternate colorization methods like using adjustment layers or creating the layer as a shape layer in the first place. Not sure what you mean by your mask thingy. You simply load the selection by Ctrl+clicking on teh layer thumbnail. this works no different than with any other layer.
    Mylenium

  • Can somebody help me install IOS 6.1.3 back to my iPhone 4. IOS 7 is not smooth enough as perfect as IOS 6.1.3. I am stuck with this OS, every app gives a break for 4-5 seconds to open up. And playing games in this OS using iPhone 4 is really crazy

    Can somebody help me install IOS 6.1.3 back to my iPhone 4. IOS 7 or 7.0.4 is not smooth enough as perfect as IOS 6.1.3. I am stuck with this OS, every app gives a break for 4-5 seconds to open up. And playing games in this OS using iPhone 4 is really crazy. Very much disappointed that I am not able to use IOS 7 and cant go back to what I need.

    Mani Dinesh wrote:
    Can somebody help me install IOS 6.1.3 back to my iPhone 4.
    Downgrading is not supported by Apple.
    Mani Dinesh wrote:
    ...every app gives a break for 4-5 seconds to open up. ...
    See this discussion...
    https://discussions.apple.com/message/23731048#23731048

  • 2 days ago my FF3.6.3 started becoming extremely slow/delayed on EVERYTHING/ALL ACTIONS (I have been using 3.6.3 for a few months with NO problems, until 2 days ago). Scrolling going in delayed/slow 'waves' motion (not smooth & fast), Right-click box ver

    2 days ago my FF3.6.3 started becoming extremely slow/delayed on EVERYTHING/ALL ACTIONS (I have been using 3.6.3 for a few months with NO problems, until 2 days ago). Scrolling going in delayed/slow/jerky 'waves' motion (not smooth & fast), Right-click box very delayed/hangs in coming up, Text typing lagging/intermittent, activity extremely slow/delayed when pointing mouse over anything, changing from tab to tap extremely slow. Bascially EVERYTHING has become sooo slow, delayed, lagging etc. I have tried ALL possible checks (extensions, add-ons, plug-ins, download history, cache, cookies) & viewed nearly ALL the FF help sites. Is this a sudden/recent bug?? It doesnt only happen with Facebook, but EVERY window I open!!
    == This happened ==
    Every time Firefox opened
    == approx. 2 days ago

    I've personally not seen this behaviour since Firefox version 2. It however re-appeared for me in 3.6.6 and 3.6.7 (current) and it's bloody awful. Makes everything I do take 50% longer ..... great for efficiency in the modern world.
    This 3.6 branch is so riddle with flaws which seem never to be fixed. Each fix / update brings with it more problems ... worst of all I see version 4 is already in development but they cannot even get 3.6 right ??? WTF ????
    Mozilla must stop chasing version numbers as has become the trend in the software world. Fix an existing version to perfection then start working on a new branch of the product.

  • When i use zoom on websites the scroll is not smooth! Is there any solution?

    when i use zoom on websites the scroll is not smooth! Is there any solution?

    Tools > Options > '''Advanced''' - General <br />
    Under '''''Browsing''''' do you have '''Use smooth scrolling''' check-marked?

  • Constant unresponsive script warnings - constant - no particular site - just slows computer- now using Explorer (not a fan) but computer now running smoothly. in English

    Constant "unresponsive script" warnings - no particular site - slows computer for considerable time. Now using Explorer (not a fan) but computer running smoothly. I believe the problem is with Firefox. What can be done so I can go back to Firefox?
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)

    I noted Dino had the same problem..many things crossed my mind..could it be my computer, could it be two other browsers parked in my computer but not be using as a default, or is it Firefox...I have not received any specific answers without spending a lot of bucks for professional help..any suggestions would be beneficial..Rob [email protected].Firefox Default user

  • Save motion tween as as3 in flash cc2014

    in previous flash i had the ability to save motion tween as as3 and use it an scripting.
    i can not find it in flash cc 2014
    how can i use motion preset as part of as3 scripting?

    i don't know why it was removed, but in general the adobe engineers had to decide which features from the 32bit flash pro (cs) should be added to the 64bit flash pro (cc).  and there were time-constraints so the more features carried-over, the long it would take to release cc.
    i don't know if it's better to use xml because i've never seen the need to use either feature, ever.  in fact, i don't use the flash timeline tweening and i don't use the flash tween class.  like many flash professionals, i use a 3rd party library from greensock, tweenlite (usually and lately tweenmax).
    and finally yes, cc subscribers can use flash pro cs6:  open your cc desktop app>click apps>filters&versions>previous versions>flash pro install>cs6.

  • Flash files are not smooth

    Hi,
    I am running DMP 4400G (5.2.3) with DMM server 5.2.3.
    Every thing working fine except the flash files. All the flash files are not smooth. They are playing like fram by fram. I am using flash 10.

    We've run every type of flash on the 4400. We've tried flash 7, flash 10, flash lite, action script 2 and action script 3. For the most part, flash will *not run smoothly* if:
    1. You have very large files, like imported bit map images.
    2. Large sweeping motions or tween animation effects.
    3. Multiple flash objects on a single page.
    4. Video embedded in flash will never play evern remotely reasonably well.
    The best thing to do is:
    1. Keep flash objects small.
    2. Animations should have as few frames as possible, no tween effects, no big sweeping motions, in other words, make transitions small and very quick.
    3. Keep flash objects self contained, that is, don't try to pull in too much content from external sources.
    Like I said, we've tried so many things, but when it comes to flash, the 4400 is rather restrictive.
    Good luck!
    -Michael

  • Simple tutor for motion tween in AS3

    i am searching one simple tutor for motion tween in AS3. Does any body know website ?

    Assuming you are creating your tweens using actionscript I would highly recommend using the external animation engine TweenLite, developed by greensock. You can download it and read a tutorial on it here: http://blog.greensock.com/get-started-tweening/
    If you are just creating tweens using the timeline then try this one: http://tv.adobe.com/watch/learn-flash-professional-cs4/getting-started-13-creating-motion- tweens/ I've not watched this one in a while but I seem to remember that the tutorials in this series were quite helpful to me.
    Hope they help you out!

  • How do I create a play button for movie clip using AS3

    Hello.
    Bit new to this and have been searching the adobe forums and google. I am trying to create a button that will play an imported MovieClip.
    I have a movie clip that I've imported into it's own layer (Layer1) Frame 1.  I've given the MovieClip an instance name of foundationMovie.
    I've created a button and have that on its own layer(Layer2) above layer1, it is also in Frame 1.
    I've added a
    stop (); action to layer2
    The video is not set to autoplay.
    I want the video to start playing when the viewer clicks the button.  I know I've got to put some kind of event listener using AS3 in my timeline somewhere.
    I've found some code and I've been trying to work with it.  I'm sure I've mutilated it beyond usability but this is what I've got.
    stop ();
    player.addEventListener(MouseEvent.CLICK,play);
    function play(event:MouseEvent)
    gotoAndPlay("foundationMovie");
    If someone could point me the right direction or help me with my code I would really appreciate it.  Thanks.

    First, you need to clear up what you are working with... a movieclip and a video are usually entirely different things.
    Next, your code may get you started on your way with some changes.   You shouldn't use "play" as a function name due to there already being a play() method/function in Flash.
    If the movieclip is a movieclip and has an instance name of "foundationMovie", and your button has an instance name of "player" then the following adjusted code would normally work...
    stop ();
    player.addEventListener(MouseEvent.CLICK,playMovie);
    function playMovie(event:MouseEvent)
         foundationMovie.play();

  • PDF exported from Pages (mountain lion) results in jagged font not smooth

    I am using Mac air mid-2012 + Mountain Lion (OS X 10.9.4) + Pages (5.2)
    I used Arial - Regular - font 12 pt to write a resume. After I export to PDF the font on pdf looks anti-aliased, jagged not smooth on 100% scale. The font in Pages is ok.
    I export the same file to *.doc and opened it with OpenOffice and export to PDF using OpenOffice, the font looks no problem.
    I have the option "Use LCD font smoothing when available" option checked in system preferences.
    Does anyone have the same issue?

    This is a known issue in Pages 5's tables. Pages 5 has been out for 9 months now and there is no sign of Apple fixing the issue.
    Use Pages '09 if you have it.
    Peter

  • Dynamic Photo Gallery in Flash using AS3.0 and XML, but it doesn't work and missed up my app.

    Hi,
    I am creating an iPad app using AS3. The app contains three sections.
    One of those sections (chocolate sources)contains Dynamic Photo Gallery using XML. The photos, thumbnails, and text in this section are loaded from XML.
    I faced may issue when I tried to run this app:
    The gallery photos didn't show up
    The thumbnails (buttons to navigate the photo gallery) didn't show up at all. (The thumbnails should show up under the photo gallery box.)
    The text doesn't show up (the text should be in every photo as describtion)
    I want to include Swipe in the photo gallery, how can I do that?
    When I click on "Chocolate Sources" button, the photo gallery appears in every section, here are print screens describe what I mean:
    The photo gallery covers the home screen too.
    Here is my XML:
    <?xml version="1.0" encoding="utf-8"?>
    <sources>
              <section>
                        <details>
                                            Cocoa tree exists in the tropics area, such as Central and South America.
                                  </details>
                                            <image>
                                                      <url>coca1.jpg</url>
                                                      </image>
                                                      </section>
              <section>
                        <details>
                        Cocoa is supplied in many countries such as Indonesia, Ghana, Brazil, Ecuador and Cameroon.
                        </details>
                                  <image>
                                  <url>coca2.jpg</url>
                                  </image>
                                            </section>
              <section>
                                  <details>
                                  Dark chocolate helps to relax and reduce the stress and blood pressure because it has antioxidants elements, which helps in vasodilatory process.
                                  </details>
                                            <image>
                                            <url>coca3.jpg</url>
                                                      </image>
                                                                </section>
              <section>
                        <details>
                        Chocolate provides energy and hyperactive sometimes because it contains high level of caffeine and sugar.
                        </details>
                                  <image>
                                  <url>coca4.jpg</url>
                                            </image>
                                                      </section>
              <section>
                        <details>
                        Chocolate could be mixed with many different flavors, such as mint, strawberry, orange, banana, vanilla, hazelnut, almond, coconut, and etc.
                        </details>
                                  <image>
                                  <url>coca5.jpg</url>
                                  </image>
                                            </section>
              <section>
                        <details>
                                  Chocolate is expressing of well hospitality and good time due to its lovely taste.
                                  </details>
                                            <image>
                                            <url>coca6.jpg</url>
                                                      </image>
                                                                </section>
    </sources>
    And here is my Action Script for "Chocolate Sources" section:
    stop();
    function Choco1(evt:MouseEvent): void {
              gotoAndStop('16');
    choco_btn.addEventListener(MouseEvent.CLICK,Choco1);
    function Souc1 (evt:MouseEvent): void {
              gotoAndStop ('31');
    souc_btn.addEventListener(MouseEvent.CLICK,Souc1);
    function ShopIn1 (evt:MouseEvent):void {
              gotoAndStop('46');
    shops_btn.addEventListener(MouseEvent.CLICK,ShopIn1);
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import fl.motion.MotionEvent;
    import flash.events.MouseEvent;
    import flash.sampler.NewObjectSample;
    import flash.text.TextFormat;
    var xmlLoader: URLLoader = new URLLoader (new URLRequest("sources.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, finishedXmlLoader);
    var xmlFile:XML;
    var xextend:int = 10;
    var gal:galary = new galary ();
              gal.x = 85;
              gal.y = 165;
              addChild(gal);
    var txfe: TextField = new TextField ();
    txfe.x = 25;
    txfe.y = 45;
    var tformat:TextFormat = new TextFormat ();
    tformat.bold = true;
    tformat.color = 0xFFFFFF;
    tformat.size = "18";
    tformat.font = "Arial";
    txfe.defaultTextFormat = tformat;
    addChild(txfe);
    function finishedXmlLoader (e:Event): void{
              xmlFile = new XML (xmlLoader.data);
              var leng:int = xmlFile.image.length();
              txfe.text = xmlFile.image.details[0];
              for (var i:int = 0;i<leng;i++){
                        var b:thumbs = new thumbs ();
                        b.x = xextend;
                        b.y = 480;
                        b.buttonMode = true;
                        b.details = (i+1).toString();
                        addChild(b);
                        b.addEventListener(MouseEvent.MOUSE_OVER, theMosover);
                        b.addEventListener(MouseEvent.MOUSE_OUT, theMosout);
                        b.addEventListener(MouseEvent.CLICK, onMosClick);
                        var bloader:Loader = new Loader();
                        bloader.load(new URLRequest("thumbs/" + (i+1) + ".jpg"));
                        b.addChild(bloader);
                        xextend += b.width + 50;
    var loader:Loader = new Loader ();
    loader.load(new URLRequest ("pictures/coca1.jpg"));
    gal.addChild(loader);
    function theMosover(m:MotionEvent):void{
              m.currentTarget.alpha = 0.5;
    function theMosout (m:MouseEvent):void{
              m.currentTarget.alpha = 1.0;
    function onMosClick(m:MouseEvent):void{
              var loader:Loader = new Loader();
              loader.load(new URLRequest("pictures/" + m.currentTarget.details + ".jpg"));
              gal.addChild(loader);
              txfe.text = xmlFile.image.details[int(m.currentTarget.details) -1];
    I need an urgent help to fix the errors and make this section work well.
    thanks.

    try:
    txfe.text = xmlFile.section[int(m.currentTarget.details) -1].details;
    instead of
    txfe.text = xmlFile.image.[int(m.currentTarget.details) -1];
    and add your thumbs to gal, not the stage.  when you're done with the gallery, remove gal.

  • Tracing Captivate 4 variables in Flash CS4 using AS3

    Hello. I've googled this 9 ways to Sunday and can't find an answer. I'm hoping one of you can help.
    I have a very simple Captivate 4 quiz with one question. I embed the Captivate SWF file in a Flash file, which plays fine. However I am struggling with tracing one of the Captivate variables in the Flash file using AS3.
    All I want is for Flash to read the Captivate variables so I can continue developing my quiz in Flash (building additional functionality Captivate does not provide).
    The variable I'm attempting to trace is cpInfoAuthor.
    I've attempted:
    trace(root.cpInfoAuthor);
    trace(root.movie.cpInfoAuthor);
    var cpAuthor = MovieClip(root).cpInfoAuthor;
    All of the above examples error out: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Captivate preferences are set to publish in AS3.
    Anyone with an explanation?
    Be splendid, Jodie.

    Hi Jodie,
    I'm not exactly 100% proficient in AS3 but to me it looks like your statements are wrong.
    Since you are loading your Captivate SWF into a Flash SWF then (root) actually refers to your Flash SWF. I guess that you are loading your Captivate SWF into a movieclip on your Flash stage and that movieclip has an instance name,
    You would therefore need to grab the variables like var cpAuthor = yourLoaderMovieClip.cpInfoAuthor;
    See if that doesn't do the trick for you.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

Maybe you are looking for

  • Why can I only access 3 of the 4 usb busses on a mac pro?

    I'm attempting to aggregate four cheap 7.1 usb soundcards to give myself 32 channels of audio output (I have good reasons for doing this). It seems that the devices cannot be differentiated when they're connected to the same usb bus (I'm not sufficie

  • How can I return to the previous ios version?

    Version 7 is a step backward for me. >The Calendar does an awful job displaying the All-Day Events. >I can't figure out how to get the previous search page showing web search and Wikipedia search. >Where is an easy to follow description of the change

  • Replicating to a different schema

    Some questions regarding Oracle 9i Lite: 1. Using the WebToGo Application Packager (or Consolidator API), is it possible to specify the target schema in the Oracle Lite DB for a snapshot definition? Everything, no matter what the source schema (SYSTE

  • Removing Event Listeners - Are they needed all the time

    My goal is to increase the performance of my project so I would like to know if it is always a good idea to remove event listeners. More specifically, lets say I have a movie with severals scenes and several frames within those scenes. Each one of th

  • My spell check adblock and form fill addons keep disappearing

    for some reason all of a sudden in the last week or so on the navigation bar where the spell check is and the form filler and the ad block icons are for the add ons they keep disappearing for that bar. i have to go into the customization section and