Halting Timer() in order to show diffrent data

I I wrote this little script shown below, that shows images from an array and displays them one by one on the screen. Now i have been trying to implement how to display another screen perhaps while halting all the action on the main screen and display a movie script.
I was thinking that displaying it on the second Scene would be an ideal solution but it does not seem plauisble. I would llike to display the movie cllip on the same screen then using actionscipt, but with out having all the rest of the code play.
So when the function
displayCars() gets called after the time had been calculated it should halt all the timers and clear the screen and then output a movieclip
After 10s i would like to restart all the action so it could continue again.
any ideas on how to halt, clear and restart this stuff
Thanks
My Attempt
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.events.TimerEvent;
import flash.events.Event;
import flash.utils.getDefinitionByName;
//Setting up //with date params
var todayDate:Date = new Date();
//1st Timer initializing the | First Timer |
var delayCall:Number = 1000;
var repeatCall:int = 1;
var firstTimer:Timer = new Timer(delayCall, repeatCall);
firstTimer.start();
//2st Timer initializing the | Second Timer |
var del:Number = 1000;
var rep:int = 1;
var secondTimer:Timer = new Timer(del, rep);
//Setting for the date diffrence
var dtDate1:Date = new Date();
var dtDate2:Date = new Date(2009, 6, 8, 12, 47);
var leftTime:Number = dtDate2.getTime() - dtDate1.getTime();
var delay:Number = Math.floor(Math.abs(leftTime));
var repeat:int = 1;
var time1:Timer = new Timer(delay, repeat);
time1.start();
time1.addEventListener(TimerEvent.TIMER_COMPLETE, displayCars);
//defining the beverage values
var carNames:Array = ["bmw", "ferrari", "lamborghin", "mercedes"];
var nextCar:Number;
//Movie Clip + Transition releated variables
var mc:*;
var myTween:Tween;
var myPhoto:TransitionManager;
//Event Time Listeners
firstTimer.addEventListener(TimerEvent.TIMER, bringIt);
nextCar = 0;
function displayCars(event:TimerEvent):void
gotoAndStop(1, "Scene 2");
function bringIt(event:TimerEvent):* {
firstTimer.removeEventListener(TimerEvent.TIMER, bringIt);
var classRef:Class = getDefinitionByName(carNames[nextCar]) as Class;
mc = new classRef();
mc.y = 35;
addChildAt(mc, 0);
myTween = new Tween(mc, "x", Elastic.easeOut, 0, 200, 3, true);
myTween.addEventListener(TweenEvent.MOTION_FINISH, takeIt);
return mc;
function takeIt(event:TweenEvent):void
myTween.removeEventListener(TweenEvent.MOTION_FINISH, takeIt);
secondTimer.start();
secondTimer.addEventListener(TimerEvent.TIMER_COMPLETE, outTween);
function outTween(event:TimerEvent):void
secondTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, outTween);
myPhoto = new TransitionManager(mc);
myPhoto.startTransition({type:Photo, direction:Transition.OUT, duration:4, easing:None.easeNone});
myPhoto.addEventListener("allTransitionsOutDone", resetValues);
function resetValues(event:Event):void
myPhoto.removeEventListener("allTransitionsOutDone", resetValues);
removeChild(mc);
nextCar++;
secondTimer.reset();
firstTimer.start();
firstTimer.addEventListener(TimerEvent.TIMER, bringIt);
if( nextCar == carNames.length)
    nextCar = 0;

Hi Chirs,
From your desription, you want to createa a chart to show all the months on the chart no matter it has data on that month or not, rigth? If in this case, we can create an other dataset to show all the month, and then use the lookup function to get the month
QTY. The steps below are for you reference.
Create an other dataset use the query below.
DECLARE @TMP TABLE (Month nvarchar(20),QTY INT)
INSERT @TMP SELECT 'Jan',0
INSERT @TMP SELECT 'Feb',0
INSERT @TMP SELECT 'Mar',0
INSERT @TMP SELECT 'Apr',0
INSERT @TMP SELECT 'Mat',0
INSERT @TMP SELECT 'Jun',0
INSERT @TMP SELECT 'Jul',0
INSERT @TMP SELECT 'Aug',0
INSERT @TMP SELECT 'Sep',0
INSERT @TMP SELECT 'Oct',0
INSERT @TMP SELECT 'Nov',0
INSERT @TMP SELECT 'Dec',0
SELECT * FROM @TMP
Drag [Month] filed to Category Groups and drag [QTY] field to Values.
Then change the of [QTY] to:
=Lookup(Fields!Month.Value,Fields!Month.Value,Fields!QTY.Value,"DataSet1")
The report looks liek below.
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support

Similar Messages

  • Purchase Order Report Showing Delivery Date

    Hello All
    I am looking for a report which will show Purchase orders with delivery date . something like ME2N but it is not showing delivery date.
    Regards
    Yogesh

    Hello Guys
    Thanks for your answers but it seems no body have checked it.
    Vishal : I am looking for a standard report and not table.
    Ranga : In SPRO field delivry date in not there under new scope of list
    Chidanand: Boss ALLES not giving delivery date.
    Please tell me some other way.
    regards
    Yogesh

  • Browse/view  form show diffrent data

    Hello All !
    I have a problem with view data on browseform
    In local all are working corect and in browse shows the corect data
    But on server a problem, always show only a first record after browse , not that what is selected from list .
    Prieview
    I got a list with data I select one  and click 'Show' and see all corect !
    On server the same list with data i select one , but always show only a first record of data from list , but i cliked other
    What versions from local and server need to find a reason , and maybe there is a problem in code ? but i dont belive that because in local proces all ar working correct , but maybe it is posible to modify code for both versions.
    Thanks!_
    Edited by: 1D10T on 2012.16.7 04:35
    Edited by: 1D10T on 2012.16.7 05:12
    Edited by: 1D10T on Jul 26, 2012 5:02 AM

    Hi now i localise the error , with second time I sucessful installed Jdeveloper 11.1.1.6 and got This error locally
    But problem is in that that i dont understand how even there are selected current row how this code work on (...1.4 version) but not on ...1.6
    Maybe someone can Do some tips or even already see where is a problem !
    <%
        String paramHierarchy = request.getParameter("hierarchy"); 
        boolean haveMaster = false;
        boolean showCnclBut = false;
        AP_CALC_AMImpl am = (AP_CALC_AMImpl)DataTagsUtils.getAMFromJSP(pageContext, "AP_CALC_AM");
        if(
          ((paramHierarchy != null) && (paramHierarchy.equals("root")))
            if(am.findViewLink("AP3360F_CapitationCalc_VL1")!=null){
              am.Delete_AP3360F_CapitationCalc_VL();
          //if we found VL "AP3360F_CapitationCalc_VL1" that mean we have a master form     
          if(am.findViewLink("AP3360F_CapitationCalc_VL1")!=null){
            showCnclBut=true;
          if(am.findViewLink("AP3365F_YearResults_AP3361F_VL1")==null){
            am.Cretae_AP3365F_YearResults_AP3361F_VL();
          if(am.findViewLink("AP3365F_YearResults_VL1")!=null){
            am.Delete_AP3365F_YearResults_VL();
          if(am.findViewLink("AP3369F_SavaResults_AP3361F_VL1")==null){
            am.Cretae_AP3369F_SavaResults_AP3361F_VL();
          if(am.findViewLink("AP3369F_SavaResults_VL1")!=null){
            am.Delete_AP3369F_SavaResults_VL();
          //if we come from master form, only then we get a master recod by rowkey
          //other way- we are lose the current record and retun to the first master recod
          String sCreateVl= request.getParameter("crtVl");
          if("period".equals(sCreateVl)){
            haveMaster=true;
        String whereClause = "(1=2)";
        if(
             DataTagsUtils.checkAccessRight( pageContext , "APN_ARSTS" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_ARSTS_SELECT" )
              whereClause="ApnHpnCapitation_EO.hpn_id = std.kld_person_utility_ia.get_person_hp() or ApnHpnCapitation_EO.hpn_id is null";
        if(
             DataTagsUtils.checkAccessRight( pageContext , "APN_IESTADE_GRAMATVEDIS" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_IESTADE_SELECT" )
              whereClause=" std.kld_person_utility_ia.get_person_hi() IN  (SELECT prt.bpn_id_person hin_id FROM lrg_ctr_persons cpr,lrg_ctr_specialities csp,lrg_csp_features csf,lrg_documents doc,lrg_doc_periods dcp,lrg_parties prt  WHERE csp.cpr_id = cpr.ID AND csf.csp_id = csp.ID AND ApnHpnCapitation_EO.period BETWEEN csf.enforced_from AND csf.enforced_to AND csf.CATEGORY = 2 AND csf.calculate_subsidiaries = 'J' AND dcp.doc_id = cpr.doc_id  "
                         +" AND ApnHpnCapitation_EO.period BETWEEN dcp.enforced_from AND dcp.enforced_to AND ApnHpnCapitation_EO.period BETWEEN dcp.date_from AND dcp.date_to AND dcp.period_kind = 2 AND doc.ID = cpr.doc_id  AND doc.kind = 1 AND doc.ctk_id IN(SELECT ID FROM lrg_ctr_kind WHERE code IN ('A9', 'A5')) AND prt.doc_id = doc.ID AND prt.kind = 1 AND prt.group_ic = 'I' AND cpr.hpn_id = ApnHpnCapitation_EO.hpn_id) ";
        if(
             DataTagsUtils.checkAccessRight( pageContext , "APN_SLIMOKASE_EDIT" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_SLIMOKASE_SELECT" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_SLIMOKASE_GRAMATVEDIS" )
              whereClause="ApnHpnCapitation_EO.sfs_id = std.kld_person_utility_ia.get_person_rsf() or ApnHpnCapitation_EO.sfs_id is null";
        if(
             DataTagsUtils.checkAccessRight( pageContext , "APN_FULL" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_VOAVA_EDIT" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_VOAVA_SELECT" )
          || DataTagsUtils.checkAccessRight( pageContext , "APN_SLIMOKASE_KONTROLARSTS" )  
              whereClause="(1=1)";
        System.out.println(whereClause);
        ViewObject vo = am.findViewObject("AP3361F_CapitationCalcResults_VO");
        ((oracle.jbo.server.AttributeDefImpl)vo.lookupAttributeDef("YearlyTrnPayable")).setProperty("LABEL",vo.lookupAttributeDef("YearlyTrnPayable").getProperty("ListLabel"));
    %>
    <%-- Master datasource --%>
    <cdt:DataSource
      viewobject="AP3361F_CapitationCalcResults_VO"
      useExternalFilter="Y"
      useExternalOrder="Y"
      rangesize="auto"
      isMaster="Y"
      whereclause="<%=whereClause%>"
    />

  • Not showing the Data in VC application

    Hi I have developed the application in VC.
    It is showing the data some times , it is not showing the data. Can u please let me know what is the problem.
    when i checked using the Test Data service . It is showing the data. Then i have developed step by step, in between the time i use to run the application , it was showing the data. finally i have assigned to some role and user id. then also it is showing the data.
    Next day after i run the application , it is not  showing the data. displaying the message .
    "No Data Found".
    But when i run  the BAPI at the back end R/3 it is giving the data properly.
    Can u tell me what might be the problem
    REgards
    Vijay

    Hi Krishna,
    check the logs in the NWA. It seems that your connection is broken down sometimes, maybe a timeout. How many records does your data service return?
    Check it with external debugging of the BAPI, when you can reconstruct the error.
    Best Regards,
    Marcel

  • How to create a Date or time field that automatically saves current date or time?

    hello,
    i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
    also want to how to stop user to give input in Date/Time field
    currently im putting a Date field but it is accepting user input.
    hoping for quick response
    Thanks in advance!

    You can place the below code in the initialize event of the field to display the current date and time.
    Set the language to FormCalc.
    You can play around the formats to get the desired format of date and time.
    if($.rawValue eq null or $.rawValue eq "") then
    $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
    endif
    You can not restrict the input area in Date time field instead you can validate the input while existing the field.
    (OR) set the field to either readOnly or protected mode.
    Thanks
    Srini

  • Apple Watch order status says processing items. Shows delivery date of 4/24-5/8? Is this normal?

    Apple Watch order status says processing items. Shows delivery date of 4/24-5/8? Is this normal?

    I read that Sport Space Grey models (black band) are not among first to be shipped whereas Sport Aluminum White band is shipping. This could also be anecdotal. Time will tell. As said here, no one promised 4/24 delivery.
    Looking forward to it, though.

  • I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see t

    I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.

    If you only see the time then that would mean that you see an entry of the current day (today).
    History items from past days should have the date as well in the Most Recent Visit column.
    You should be able to see this changing if you open the last 7 days folder and scroll down.

  • How does the GR processing time affect the scheduling of the process order & the latest start date in the operation.

    Hi
    Can anyone explain  how does the GR processing time affect the scheduling of the process order & the latest start date in the operation overview.

    Hi
    GR processing time means number of workdays required after receiving the material in storage.
    Check this link:GR Processing time
    Regards,
    Anupam Sharma

  • How do I get it to show the date & time.

    How do I get it to show the date & time at all times. I don't want to have to click on the day & time to get the date. In the OS 10.4 I could at least get it in the "analog" format. Under leopard it just show a little clock that can't be read.
    I just want to see the time and date at all times in the upper corner on the screen

    Please see my post in your first posting at http://discussions.apple.com/thread.jspa?threadID=1237022&tstart=0
    David

  • Time Series Graph Show Inappropriate Data for Continuous Analysis

    Hi All,
    I have marked Month as the Chronological Key in my BMM Layer but still I am unable to view the data correctly in my Time Series graph because it shows Inappropriate Data for Continuous Analysis at the time of creating the Graph. Can anybody help me out with the same.
    Thanks

    What data type is your key? The chronological key is required for the time series formulas (ago etc.).
    The time series chart requires a date or datetime data type to work - perhaps a new column with the first of the month/period would help? Regards,
    Robret

  • Time of email shows in Date Column, Date is not showing on new emails

    Date is not showing in Date column. Only time is showing.
    I just migrated from OE - Old emails show the time & Date.

    If these are emails received today that is normal. Thunderbird assumes you know what day it is and only displays the time for messages received today. It will append the date to these messages at midnight tonight.

  • JTEAM please help:how to show flexible date in a time component

    According to Steven Muench about How to handle Flexible Date Format on Feb 28,2001. I create the FlexiDate Domain and create a FlexiDate.class in the
    howto.common package. Then in Employees entity on the Attribute Setting page I select Hiredate attribute and change its datatype from Date to howto.common.FlexiDate.
    But in JSP when I edit a record the time component(LOV) only show YYYY-MM-DD and I can not select HH and MM. After select a day I want to append HH and MM by hand, but I can not enter HH and MM at all.
    Another problem: I need to calculate interval between two time columns and get hours. For example the interval between 2002-10-10 12:10 and 2002-10-11 14:10 is 26.
    Thanks in advance!

    Geoff,
    I recently answered this same question for you in the other OTN thread that you posted.
    The specified item was not found.
    If you have a follow up question on an existing thread, it's best to post a further response to that same thread instead of creating a new thread.
    Thanks.

  • It seems that the last message sent in imessage doesn't show the date/time.

    When I look at the imessage screen it doesn't show the date/time on last messages.

    Claudia252 wrote:
    Thank you. I cant figure out how to change the lable infront of the number to "iPhone" . It shows "home", "work", "pager", etc. but it doesn't show an "iPhone" option.
    In the Contact, tap Edit.
    Tap the label in front of the number and another Label screen apears.
    Tap the label you want to use.

  • Can't find last import from iPhone! Noticed as I imported I had that view where there was only one project symbol, not all my projects showing by date, but even so pictures were imported. It took the time to do them, so where

    Can't find last import from iPhone!
    Noticed as I imported I had that view where there was only one project symbol, not all my projects showing by date, but even so pictures were imported. It took the time to do them, so where aare they? I have closed and restarted to get back fll view of all dated projects, but nothing can be found from today...

    have i posted it right...??  no response from apple guys...

  • I want to customise the printed header to show the date but not the time. Is there a list of control words available to the custom header function?

    The Date/Time option for header set-up shows both date and time. I only want to show the date

    Not related to your question, but you are running an extremely old and out of date version of Firefox that is no longer supported or maintained and thus is vulnerable to many security holes. You should update to Firefox 14 immediately. [[Update Firefox to the latest version]]

Maybe you are looking for

  • Black border around games

    When I installed my games the game stretched to the edge of the screen. Today I tried to run a new game and now all my games have a thick black border around them and the game is small in the middle of the screen.  What happened?  How do I fix this?

  • Photoshop Elements 12 download help

    I am trying to download photoshop elements 12... i have disabled firewall and do not know of any other security still active... I get HTTP Error: 404/support/downloads/dlm/main.jsp Request URI=/support/downloads/dlm/main.jsp any assistance will be ap

  • Now that I have a Site Map in Dreamweaver...

    Hi guys, I want to submit my Dreamweaver SiteMap to Google but it requires an XML file. How do I create an SiteMap.xml file with Dreamweaver 8.0? Mike http://www.faithfulchristians.com/

  • Exposing MBeans to JRocket mission control(Remotely connected)

    HI, We could see the MBeans of following types in JRockit Mission Control which is connected to external wls. JMImplementation bea.jrockit.management com.sun.management java.lang java.util.logging oracle.javatools.cache jrockit.synthetic. But we woul

  • Noob: Trying to build a simple application

    Basically I am a complete noob at this programming and i have NO clue. i do know how to work with HTML and internet related stuff. i am a iweb user and am trying to make me a little application: (watch out for italic parts) it basically should be a t