Execute some method once an effect has been played

Hi everybody, I want to execute a method after the effect i have played is finished. is there any property in AnimationProperty tag to acheive it.
In the component i have pasted below, getting data from xml file and using repeater populate those data in Hbox then it moves the horizontal scroll position of HBox using animation property. once animation property has been played, it has to execute some method. how can we do it ?
the next question is
i want to play animation propery infinite times and i have done it with the help of repeatCount but it takes some delay in between. how can it play infinite imes without any delay in between.
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="getXML.send(),slide(event)" >
<mx:Script>
        <![CDATA[
            import mx.containers.Canvas;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;
            import mx.effects.easing.*;
            import mx.controls.*;
            import mx.collections.*;
            [Bindable] public static var refThumb : Thumbnail;
            [Bindable] public var xmlData : XMLListCollection = new XMLListCollection();
            [Bindable] public var xml :XMLList;
            public function resultHandler(event :ResultEvent) : void
                xml = event.result.product as XMLList;
            public function faultHandler(event :FaultEvent):void
        public function slide(event :Event):void{
           ap.play();
    ]]>
</mx:Script >
    <mx:AnimateProperty id="ap" effectEnd="{Web.refWeb.nextSlider()}" repeatCount="0" property="horizontalScrollPosition" fromValue="0" target="{can}" toValue="7200" duration="72000" startDelay="0"/>
    <mx:HTTPService id="getXML" showBusyCursor="true" url="catalog.xml" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" />
    <mx:HBox paddingTop="20" id="can" width="600" height="200" backgroundColor="white" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundAlpha="0.2"  >
    <mx:Repeater id="rep" dataProvider="{xml}" >
        <mx:VBox id="comp" horizontalAlign="center" horizontalGap="200" width="200" height="200" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                         <mx:Image source="{rep.currentItem.image}" width="150" height="100" maintainAspectRatio="false" />
                         <mx:Text text="{rep.currentItem.name}" fontWeight="bold" />
                         <mx:Text text="{'$ '+ rep.currentItem.price}" fontWeight="bold" />
                         <mx:LinkButton label="Add cart" color="blue" />
         </mx:VBox>
    </mx:Repeater>
    </mx:HBox>
</mx:VBox>

you have posted a VBox component code so it will be the part of your parent Application are you injecting data into this component from the main application ? and your
httpService requires catalog.xml so you need to attach that file so i can run on my side successfully . instead of doing this you can tell the problem you are having so i can guide you on that
regards,
       ATIF.

Similar Messages

  • Why are artists in music library being removed from alphabetical list once a track has been played? All artist recently played appear before 'A' in my library.

    Why are artists in music library being removed from alphabetical list once a track has been played? All artist recently played appear before 'A' in my library now rendering the search bar on right of screen useless.

    Also, why would my music play at all when I turn iTunes Match off and delete all tracks off the phone? Home sharing also disabled. It is very odd!

  • How to uninstall Labview 8.5 once 8.6 has been installed

    How do you uninstall Labview 8.5 once 8.6 has been installed with windows XP as the OS.

    You should be able to remove the programs with 8.5 in the title from the Add/Remove Hardware sections. However, the recommended method would be to do a complete uninstall and then install 8.6 fresh. This will make sure you have the most complete and stable installation.
    Will
    Certified LabVIEW Architect, Certified Professional Instructor
    Choose Movement Consulting
    choose-mc.com

  • TS5183 My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore..:-( this has been playing up for some time now.

    My Iphone has a problem with the microphone it doesn't seem to work! so there for i can't use Siri anymore.. this has been playing up for some time now. But as my wife & I had a baby 7 Months ago I have not found the time to pop in to the apple store until today (8/12/13) and they told me that they couldn't help as it's out of it's warranty by 57 days
    Can antone help me? is there something i can do, apart from buying a new iphone!

    Have you got Siri turned on in settings/general/restrictions?

  • How to suppress a property being output to a label once a date has been reached

    Hi,
    I would like to suppress a property being output to a label once a date has been reached. I have tried the WWI conditional output functionality but am experiencing issues.
    The issue is the symbols I am wanting to use have different expansion times.
    For example:
    The property contains a CHAR30 phrase-related characteristic and a DATE FORMAT characteristic.
    I only want to output the phrase if the current date the label is printed is the same or later than the date assigned in the property.
    When I try to create the conditional output:
    <11BRG200(M,ZSAP_EHS_1011_014;*)>
    <15BIF100(AND:01GZE1_ZE145 GE S:02EHS_RPPRIN)><01GZE1_ZE10G(P;*)[D:Grant
    No.]> <15EIF100>
    <11ERG200>
    On checking the template, I get the message 'Repeating group IF 100: Different expansion times for condition symbols'
    SAP Help does tell me that:
    · If you enter a number of symbols in the condition, these must all have the same expansion time. If you require a conditional output that is dependent on symbols with different expansion times, you have to nest a number of conditional outputs.
    Does anyone know how I can achieve this?
    Best regards
    Karen Waterworth

    Hi Michael
    I will try that as the date is unlikely to be changed (unless incorrect), and it is exactly what we are wanting to achieve, only output the Grant number when printing the label if the expiry date has not been reached.
    Example of data held in SAP:
    Header 1
    Header 2
    Grant No.
    US 5,590,111
    Country
    US
    Expiry Date
    01.01.2035
    Usage
    LABEL: US
    Grant number only output until expiry date reached (ie earlier or same date, not later as I put in my question!)
    Thank you
    Karen

  • HT1657 Do I need a wifi connection to watch once the movie has been downloaded

    Do I need a wifi connection to watch once the movie has been downloaded

    Nope.
    Watch it anywhere you want no connection needed.

  • I thing I have some phishing going on, there has been some emails going around that I haven't sent plus getting emails from friends who haven't sent them, what to do?

    I think I have some phishing going on, there has been some emails I have received from people I know that haven't been sent also people have said I've sent out some when I haven't , how do I investigate this?

    What you describe is generally not an issue with your computer. Everyone gets phishing e-mails unless you or your ISP has blocked them.
    As for e-mails from friends that they didn't send, these are usually because someone insists on putting 200 address in their e-mails with a link to a cat video. If people used distribution lists or the bcc field for mass mailings, the chance of this is reduced. Probably one of your frineds has a Windows virus that is stealing e-mail addresses, or their hotmail. msn, or outlook account has been hacked.
    You probably don't need to do anything from your end

  • How do I change template designs once a form has been created using another template design?

    How do I change template designs once a form has been created using another template design?

    I talked to a service Representative and he told me there isn't a function to change a form using one template to a different template. For example, I used template for "Accommodation registration" and wanted to change it to "admissions application." I was hoping I could just select a "Change template" rather than having to copy/paste everything to the new template. But that's what i had to do. Maybe the next version of this software will make it easier to change design templates.

  • Once a form has been submitted, can it be "unsubmitted" to allow the submitter to make changes?

    Once a form has been submitted, can it be "unsubmitted" to allow the submitter to make changes?

    Hi,
    Unfortunately, it is not possible to un-submit a response. However, user can submit a new response and incorrect/old response can be deleted by the moderator.
    Regards,
    Nakul

  • Once an iBook has been exported to the iPad, how can that book be moved to a different iPad or back to iBooks Author?

    Once an iBook has been exported to the iPad, how can that book be moved to a different iPad or back to iBooks Author?

    You can't simply move it directly between iPads.
    In your example, you'd find that .ibook file in your iTunes account on your computer and then email or sync it to the school's iPad. Similar to how you did with yours....maybe you got it off a server and can repeat that process.
    Then delete it off your iPad and either delete or flag your copy in iTunes to not be put back when you sync in the future.

  • Once a note has been deleted, can it be restored?

    Once a note has been deleted, can it be restored?

    Only if you have a backup.
    Device Backup:
    http://support.apple.com/kb/ht4946
    http://support.apple.com/kb/PH2584

  • I took out a trial of Fireworks CS6, but for some reason a .dll file has been deleted off my computer. How can I download the program again?

    I took out a trial of Fireworks CS6, but for some reason a .dll file has been deleted off my computer. How can I download the program again?

    Hello
    you could have a look there Download CS6 products
    Hans-Günter

  • Filter Render Lighting effects has been disabled

    Filter>Render>Lighting effects has been disabled. Hoping to get a fix for this. Seems like this started after the last update for Creative Cloud.

    This PC is about 6 weeks old. The problem started right after Adobe released their last update for Creative Cloud. It also spawned another issue: background eraser not eraser when dragging across image. Adobe is slow to admit this. However, 2 of their support people (during 2 separate phone support sessions) replicated  the issue on their side. That issue is ongoing. I haven't uninstalled/re-installed PS yet, but at this point, that may be my only option.
    My system:

  • How can I uninstall Trend Micro Safe Surfing once the app has been deleted from my Mac OS X?

    How can I uninstall Trend Micro Safe Surfing once the app has been deleted from my Mac OS X?

    Check to see if there's such a folder as  either
    /Library/Application Support/Trend Micro
    ~/Library/Application Support/Trend Micro
    and if so, see if either contains an uninstaller.
    Failing that, download the demo version of the app from Trend Micro, and try the uninstaller that it should contain.
    If all else fails, the manual way would be to use something like EasyFind and search for anything with "com.trendmicro" in the filename (you can use Finder, but be sure to include system files and invisible files in the search options). Pay particular attention to the folders
    /Library/LaunchAgents
    /Library/LaunchDaemons
    ~/Library/LaunchAgents
    ~/Library/Internet Plug-Ins
    ~/Library/Preferences

  • Iba allow others to make text edits. What workflow are you guys using to allow others to make text edits once the iBook has been layed out and formatted?  Is it too late? Do I need to export txt then reimport the editted text and reformat it all again?

    iba allow others to make text edits. What workflow are you guys using to allow others to make text edits once the iBook has been layed out and formatted?  Is it too late? Do I need to export txt then reimport the editted text and reformat it all again?

    Hi Ken,
    Thanks for the reply. The project I am working on is a test project for a customer. They could potentially want a number of their educational subjects presented as an interactive text book. The intent of this first project with them is to establish a logical workflow that will allow us to efficiently estimate costs and allow for review throughout the design process. Having worked with customers on creative projects in the past I can anticipate that they will want a number of changes made once they see a working version of the interactive text book.
    It is a grim reality that no project can be fully edited and planned prior to working on it and I know revisions and changes are always made once the customer can see their product. It is ok with me if there is no easy way to pass the text back and forth from the customer and me without having to reformat everything but I just want to know that is the way it works in order to provide a realistic time estimate for the project.
    My hope was I would be able to export the formatted text, allow them to make edits and then reimport that formatted text. The style sheets I am using are from one of the iBooks Author templates.
    Do you know if there is a way to use (or export ) this style sheet so it can be used in a Pages Document?
    Or, would the best option be to have the customer install iBooks Author? This would require the customer to have a mac and the software so it doesn't work for all cases.
    Another idea I was considering would be to export the book as a PDF and have the customer add markup and notes to the PDF.
    All of these options do not seem too great to me.
    I am open to any ideas.
    Thanks,
    Rob

Maybe you are looking for

  • Reading backed up files

    I am trying to read the files that I backed up to my computer but my computer will not read them. What is a safe download that will help? thx

  • Launch executable with command line arguments

    I have a programmer that I need to launch in my cvi code.  I tried the system command and lauchexecutable command but cannot get the programmer to lauch correctly.  If I run it from the command prompt or create a windows shortcut it works fine.  Here

  • EJB Persistence problem [Data modified outside EJB]

    Hello, There is an EJB in the system which corresponds to a db table, say it "AppBean", and a corresponding session bean AppSession which provides insert/remove/query service. There is another program, a webapp which might runs on another server, als

  • Manually managing songs and playlists in iTunes

    My hard drive crashed so I'm now manually managing the songs that get updated to the iPod. Looking for tips on how to quickly tell which songs in the Library are new and have not been updated to iPod. I understand the Recently Added playlist (mostly/

  • Resume working on a saved halfway done form in Reader

    I have an XFA form designed in Designer 7. I downloaded the Document Server for Reader Extension 6.0 and enabled the form. After I opened the form in Adobe Reader, typed in something and saved and closed the form. I was not able to work on the form a