Creating series with effects via Actionscript causes effect to repeat endlessly

Hi,
I've been trying to add effects to programmatically generated series.  I can create everything fine, but when the effect is applied, it repeats over and over.  In the example below, my line series slide on to the chart (that's good), but then disappear and slide onto the chart again, and again, and again.  It should only run the effect once, and then stop.
Any ideas?  The code below reproduces the problem.
thanks for any help,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Button click="run()" />
    <mx:CartesianChart id='mainChart'>
    <mx:horizontalAxisRenderer ><mx:AxisRenderer axis="{offsetAxis}" fontWeight="bold" /></mx:horizontalAxisRenderer>
    <mx:verticalAxisRenderer><mx:AxisRenderer axis="{returnAxis}" fontWeight="bold"/></mx:verticalAxisRenderer>
    <mx:horizontalAxis ><mx:LinearAxis id="offsetAxis"/></mx:horizontalAxis>
    <mx:verticalAxis><mx:LinearAxis id='returnAxis'/></mx:verticalAxis>
    </mx:CartesianChart>
    <mx:Script>
        <![CDATA[
            import mx.charts.series.LineSeries;
            import mx.charts.effects.SeriesSlide;
            import mx.collections.ArrayCollection;
            [Bindable] private var testData:ArrayCollection = new ArrayCollection(
                             [{'x':1,'y':2},{'x':2,'y':4},{'x':3,'y':7},{'x':4,'y':5}]);
            private function run():void {
                var slideIn:SeriesSlide = new SeriesSlide();
                slideIn.duration = 2000;
                slideIn.type = 'show';
                slideIn.elementOffset = 0;
                var ls:LineSeries = new LineSeries();
                ls.dataProvider = new ArrayCollection();
                ls.horizontalAxis = offsetAxis;
                ls.verticalAxis = returnAxis;
                ls.setStyle('showDataEffect',slideIn);
                ls.setStyle('showEffect',null);
                mainChart.series = [ls];              
                callLater(setData,[ls,testData,'x','y']);
            private function setData(obj:LineSeries,data:ArrayCollection,xField:String,yField:String):void {
                obj.xField = xField;
                obj.yField = yField;
                obj.dataProvider = data;
        ]]>
    </mx:Script>
</mx:Application>

I am getting the same problem. Can you post if up if you ever find the answer. I will do the same.
The workaround I am using is to put the chart effect (slideIn) on the "showEffect" style as opposed to the "showDataEffect" and start with the series .visible property set to false.  Then when I want to have the series appear with the effect I set the series' .visible property to true.  The data then appears correctly on the chart with the effect.

Similar Messages

  • Cannot create MP3 With Itunes via Garageband -

    Hello-
    Im trying to create a MP3 out of songs I created in garageband.. Ive read other posts on this issue but the resolution I read about does not work. It has to do with changing the settings to MP3 to CD which I did, however when I try to burn the files I get an error "None of these files can be burned to a MP3 CD" These files are not bought through Itunes etc.. they are sound files created by me.. Shouldnt I be able to turn these into MP3's??
    Please assist! anyone who knows how to turn a audio file from garageband to MP3??
    Thanks in advance-
    t

    If you have it, iTunes, with the correct preferences set, will automatically convert GarageBand files. Open up the song wou prefer to convert, enter the File menu, and click on Export. From iTunes, you can then easily create your CD.

  • Animation with easing via ActionScript

    How cain I make animation of an object in Flash with easing
    by using actionscript...

    Check out
    http://laco.wz.cz/mc_tween/
    and download the Custom Tween Extension

  • How can I create a video with effects using my ipad?

    How can I create a video with effects (sepia, B&W, Negative, oval or any other shape borders) using my ipad?  I would Like to keep a higher res and also be able to shrink it down to email or send in a MMS. Or should I just upload it to my PC and mess with it there? Some of the apps I have are very easy to use compared to the learning curve needed for video editing software.
    Thanks

    Thats the Problem . . . how many apps do I have to try until I find the one I want? I noticed a few will render the video thus losing its original size. When I went to edit it more in iMovie the video was smaller--not good. And what software do you suggest, Templeton, for the PC? I love the apps because they are easy. I dont have hours to mess around on a software to figure out if its something I want. Im looking for simplicity. Maybe Ill get more into it later. I just want to record simple video of my playing the guitar for self analysis and create a short video for family and friends.
    Apps:
    iMovie
    CinemaFXV
    VideoFix
    Cartoonatic
    Video illusion
    VidEditor
    Software:
    Windows Movie maker (wont accept .mov files)
    After Effects (Too little time, so much to learn)
    Wondershare (Very easy but little choices)
    VideoPad (Again. Few choices)

  • How to create shiny/mirror effect with a background.

    HI there we have been trying to create a shiny effect and
    found the following tutorial.
    http://www.fireworkszone.com/redirectionNbClicks.php?root=2&idLogiciel=4&idTutorial=371
    The only problem we have is that we have a textured
    background and the tutorial talks about having a colored background
    with not texture.
    When we create the shiny effect you can see the white or
    black that fades.
    Any suggestions?.

    To create a user defined member, in the Hierarchy editor on the bottom right of the screen there is an add buton, if you click on it, you will get a list. Included in the list are user defined child and user defined sibling. These create user defined members. Don't worry that the binding says unspecified. When you save the hierarchy, it will change it will change to be a text value equal to the name you gave the member. To get the members you want to put under that member, I find it easiest to create a Dimension element that has filtering to get select the I need for example if I create a user defined member called diet drinks. I'll create a Dimension member called diet skus that has a filter to select skus where the alias contains the word diet. I'll put that member under my diet drinks member. Whil it might be a little late for you. The Essbase Studio book I'm working on will be available late this week. It has examples of what you are asking about.

  • Need to create a textinput with effects

    I need to create a textinput with effects- it should show a blue icon infront of it when the icon is focused and the blue icon should fade afterwards. I am pretty sure I need to use skin but the problem is I have only two states with textinput control and not sure how I would use those to ensure a handling mouse hovering effect. Right now I am not able to create a custom component bacuae I have to modify the whole code wherever there is textinput control.
    Thanks in advance.
    Rachel

    You might find this blog post useful: http://flexponential.com/2010/01/24/custom-focusskin-for-spark-components-in-flex-4/

  • How to create a blur effect with CS6 ?

    Hello , On the CS5.5 version of the blur effect was proposed . In CS6 it no longer exists.
    How to create a blur effect input or output on a video with CS6 ?
    Thank you

    Hi !
    Thank you ! it's perfect !
    Bye

  • Im trying to create a "wobbling" effect with a bitmap

    im trying to create a "wobbling" effect with a bitmap
    any idea how to go with this with director?

    It somewhat depends on what the effect is intended to acheive.
    Here is a simple behavior script that can be applied to any bitmap. It wobbles, in the sense that it has a radom movement about its axis.
    That is acheived with the random() statements. The amount of wobble can be controlled by changing the value added to each parameter on each iteration.
    The last three statements keep the wobble from randomly walking off the frame. Again, wobble can be changed by setting the corrective value at which point the bitmap returns to its original state.
    Hope this helps.
    property spritenum
    global glocH, gLocV, gRotation
    On beginsprite
      gloch = sprite(spritenum).loch
      gloch = sprite(spritenum).locv
      gRotation = integer(sprite(spritenum).Rotation)
    end
    On enterframe
    b = random(2)
      if b=1 then
        sprite(spritenum).loch = sprite(spritenum).loch + random(2)
      else
        sprite(spritenum).loch = sprite(spritenum).loch - random(2)
      end if
      c= random(2)
      if c=1 then
        sprite(spritenum).locv = sprite(spritenum).locV + random(2)
      else
        sprite(spritenum).locv = sprite(spritenum).locV - random(2)
      end if
      d= random(2)
      if d=1 then
        Sprite(spritenum).rotation = sprite(spritenum).rotation + random(4)
      else
        Sprite(spritenum).rotation = sprite(spritenum).rotation - random(4)
      end if
    if abs(gloch + sprite(spritenum).loch) <= 8  then sprite(spritenum).loch = gloch
    if abs(glocv + sprite(spritenum).locv) <= 8 then sprite(spritenum).locv = glocv
    if abs(Integer(gRotation - sprite(spritenum).Rotation)) >=8 then sprite(spritenum).rotation = gRotation
    end

  • Create a rollover effect with an avg with edge animate

    Hi,
    I would like to know if there is a way to create a rollover effect (i.e. get my social media icons spin or drop shadow or change color) when I hover over them, I know how to do it with CSS 3 but I think it will also be useful if I learn how to do it with Adobe Edge Animate. I appreciate your time.
    Thank you.

    Hi,
    I would like to know if there is a way to create a rollover effect (i.e. get my social media icons spin or drop shadow or change color) when I hover over them, I know how to do it with CSS 3 but I think it will also be useful if I learn how to do it with Adobe Edge Animate. I appreciate your time.
    Thank you.

  • How create water with specially good effect

    hi everyone,
    I want create a river or a lakes .
    how can I create water with some specially good effect in shockwave.like Wave,Reflection etc
    unity3d may do it easily,Look this water effect from unity3d

    Someone tell me "rendertotexture" can do it,
    But I don't know how to do
    I want to learn more on this water effect using Director
    anybody have demo(source file) or Other methods ,please tell me
    thank you.

  • Incredibly Long Lag Time When Working With Effects in Premiere Pro CC 2014

    I am having incredibly long lag times when working with effects in Premier Pro CC 2014.  Like 60 seconds or more.  This also happens periodically when I am doing something as simple as cutting into a timeline (just ripple deleting from and in to an out point). 
    I have a MacBook Pro running OSX 10.9.4 2 GHz Intel Core i7 with 16 GB 1600 MHz DDR3. 
    I have seen that some people are having different versions of the same problem.  I do have RedGiant plug-ins, but I am not using any of them in this project.  The Red Giant plugs (again, not being used in the project) include MOJO and Universe.  The previous version most certainly did not work like this.  Any ideas?  I did try moving the Red Giant plugs out of the COMMON folder and "alt" starting up to reset preferences.  Still having same problems.
    A specific example is I have an interview shot.  I add brightness and contrast.  Just making a change to the effect (increasing brightness) causes freezing of the interface and long delays.  I added a piece of transparent video on a top layer to add a CIRCLE to create a vignette effect.  Same deal -- ridiculously long times for effect changes to take place.
    Does anyone have any clues as to how to fix these problems? 
    THANKS FOR ANYONE'S HELP!!!!!!!

    Got the same Error. Previous I worked with a GTX 760, and was hoping to get it fixed with using a GTX 780 6GB. But just as you, didn't solve the Problem.
    Usually I got the Problem solved, with exiting Premiere, restarting it, reset my Workspace. Then the Problem of having the bugged Workspace was gone. And also the Problem of the missing Video Tracks.
    At the moment I started on a new Project. Pretty simple, with only a 21 second DV footage. And here I was switching tabs with my Browser, came back to the Project, and the Video Tracks were gone. I saved, closed Premiere, restated and the Video Tracks are still  missing.
    So I made a new Sequence, voilá the Video Tracks are there. Thus I need to copy and paste the Tracks onto the new Sequence.
    But that is not really a solution!
    I was on the Phone with Adobe, and on Chat, but they couldn't help me. They suggested to get a Tesla or Quadro Card, or at least a GPU that got confirmed as working on their page. I did that, but obviously, that is not the issue.

  • How can I create an iridescent effect in a Photoshop 3D object?

    How can I create an iridescent effect in a Photoshop 3D object? I have searched everywhere for downloadable option for a mac with no luck. I'm working with CS6.

    NO way. Such stuff isn't even commonly available in many 3D programs becaus it's actually pretty advanced shader stuff...
    Mylenium

  • GL Trial Balance Report with Effective Dates as Parameters

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query being used:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    Kindly suggest if I am missing anything. I am sure that the great guns here can help me out.
    Thanks
    Sumit

    suggest to create customize TB report.

  • How do I create this particle effect?

    I am pretty new to After Effects and I'm getting to grips with all the particle effects and have managed to create some cool looking animations, but I'm trying to create the particle effect as seen in the image link below. Can anyone tell me how this is done, and what plug-in (if any) would be used to create something like this? I can't get anything I do to look like this. Thanks...
    http://img171.imageshack.us/img171/5001/particleskf1.jpg

    Create the custom particle in Photoshop or a separate comp. Drag the custom particle into your main comp, turn its visibility off, set Particular's particle setting to "Custom Particle", and choose the new layer as the source.
    Create a camera for the comp and turn on "Depth of field". Experiment with the settings until you get the desired effect.
    Personally, I'd use two Particular layers for that look, one for the larger particles and another for the smaller ones.

  • How can i create this videos effect ?

    Hello, i am new here, and i have a project in my hand. I have to create a slideshow presentation on certain subject.   I have completed the slideshow using a tool called,PhotoStage Slideshow Producer, with a bunch of 60 images. Now i want to add a small video effect in the beginning of the slideshow to make it look more professional. Here is the download link for the video. http://www.mediafire.com/download/i5az6a7rjp3lbkn/Video.rar This video is farely advanced for my liking, but you got the general message. I want something really simple and i want to add it in between different images for some effect. I may be asking in the wrong forum, again. Can Adobe’s Premiere Pro do it , or is there some other simple program that can make these kind of effect. Thank you.

    Might be able to create it with Filter > Render > Clouds with your foreground and background colors set to the lighter and darker versions of your selected color. Then you might need to use Filter > Blur > Gaussian Blur to smooth things out

Maybe you are looking for