Time for specific dept record display by adding 10 minutes

Hello
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
/****************************************************************************/

create table dept(
dept_id number(14) primary key,
c_id number(14) constraint dept_fk references centers(c_id) NOT NULL,
deptName varchar2(50)
);

create sequence dept_seq
start with 1 increment by 1;

create or replace trigger dept_trig
before insert on dept
referencing new as new
for each row
begin
select dept_seq.nextval into :new.dept_id from dual;
end;
/

create table shiftManager(
s_id number(9) primary key,
dept_id number(14) constraint shiftManager_fk references dept(dept_id) NOT NULL,
title varchar2(110), /**e.g. Morning, After noon, Evening **/
startTime date,
endTime date
);

create sequence shiftManager_seq
start with 1 increment by 1;

create or replace trigger shiftManager_trig
before insert on shiftManager
referencing new as new
for each row
begin
select shiftManager_seq.nextval into :new.s_id from dual;
end;
/

select to_char(startTime,'HH24:MI'),to_char(endTime,'HH24:MI')
from shiftManager where dept_id=1 order by startTime asc;
I want to choose startTime adding 10 minutes to the end for dept_id specific for example time

Dept1
=====
startTime = 09:00 and 14:00 = endTime

POWER required:
================
09:10
09:20
09:30
09:40
09:50
10:00
..
..
..
..
..
13:40
13:50
14:00

Thank you in anticipation

Best regards

Raakh wrote:

I am not able to understand especially startTime + (level - 1) / 24 / 6<= endtime="" +="" (600="" -="" 1)="" 600="">

Oracle date arithmetic unit is day. So 1 / 24 represents 1 hour and 24 1/6 represents 10 minutes. You start by startTime and continue to add 10 min and startTime + (level - 1) / 24 / 6 impeccable (level starts from 1). Now we must stop when meet us or exceed the end time for the first time. Therefore, we can add add 9 min 59 s to endDate and use it as the end. And (600 - 1) 3600 / 24 represents 9 min 59 sec.

In fact, we can simplify and use the following logic: difference between current 10 min. and end must be< 10="">

connect by startTime + (level - 1) / 24 / 6 - endTime< 1="" 4="">

SQL> select * from shiftManager
  2  /

   DEPT_ID STARTTIME ENDTIME
---------- --------- ---------
         1 01-JUL-11 01-JUL-11
         2 01-JUL-11 01-JUL-11

SQL> select  to_char(column_value,'HH24:MI') tm
  2    from  shiftManager,
  3          table(
  4                cast(
  5                     multiset(
  6                              select  least(startTime + (level - 1) / 24 / 6,endTime)
  7                                from  dual
  8                                connect by startTime + (level - 1) / 24 / 6 - endTime < 1 /24 /6
  9                             )
 10                     as sys.OdciDateList
 11                    )
 12               )
 13    where dept_id=1
 14    order by column_value
 15  /

TM
-----
09:30
09:40
09:50
10:00
10:10
10:20
10:30
10:40
10:50
11:00
11:10

TM
-----
11:20
11:30
11:40
11:50
12:00
12:10
12:20
12:30
12:40
12:45

21 rows selected.

SQL> 

SY.

Tags: Database

Similar Questions

  • Timer for blackBerry Smartphones is displayed during installation of applications

    Hey guys, I get the timer appear when installing apps from app world, and I was wondering what could be causing this.

    Storage applications - free space: 253.7 MB

    Built in storage media - Total space: 6.0 GB

    Free space: 5.7 GB

    Storage - space card media Total: 29.8 GB

    Free space: 29.8 GB

    Hey MadGamer,.

    Thanks for the question.

    It is normal that the timer to appear during the installation of the applications.  It disappears once the application is installed.

    Let me know if you have any other questions.

  • Change capture time for many decrement of shots of a few minutes...

    Hi all,

    I have a problem that's driving crazy me.

    I have 3 cameras and operators (2 x 1 x D300, D700) and in a session of marriage that they missed to

    synchronize the timers of the camera, so when D700.a sign 10.53 am D700.b sign 10.27 and D300 sign 9.43.

    At this point in time I want to Syncronize captured using LR3 have so whenever camera movement

    good values. D700.b - 25minutes, D300-1h10minuts.

    How can I get that?

    Thank you very much...

    PS: the shots are nearly 4,500 so a manual change of all of them is impossible to do...

    Select all the D700 shots and travel time of 25 minutes for the first shot of the series. The rest of the shift of photographs of the same amount.

    Repeat for D300 shots.

  • I often get frequent blue screens on internet sites. Blue screen too fast for me to record specific error message. How can I put an end to the blue screen to get the error message?

    frequent blue screens often to internet sites.  Blue screen too fast for me to record specific error message.  How can I put an end to the blue screen to get the error message?

    en blue screen too fast for me to record specific error message.  How can I put an end to the blue screen to get the error message?

    If your computer is restarted when the BSOD appears, then you must change the by default for what to do in case of system error. It is easy to do, but takes a lot of mouse clicks to get there:

    Start | Control Panel | System | Advanced system settings (need for credentials for the administrator to spend here |) Advanced | Startup and recovery / settings.

    On this screen, uncheck the box under system failure that says automatically restart. The next time the BSOD appears, your computer will not do anything else until you press the reset button, so you'll have all the time you need to read and copy the error codes. Paste here, verbatim, and someone should be able to point in the right direction.

    ``````~~~~`````

    In the control panel choose reports on problems and Solutions (problem of type in the START search box), go to historical problem, right-click your error and choose check for the Solution. You can also examine the details.

    In administrative tools, choose the reliability and performance monitor and click on MonitoringTools then the reliability monitor (type reliability in research on Start). This list is a chart of the software installs, uninstalls, updated Windows and crashes by date. See if your plant has started to happen after you installed or uninstalled something.

    It may be useful to eliminate equipment defects

    Type of memory in the search box of start and choose Memory diagnosis

    In a command prompt (type command in the start search box then right click and choose Run as administrator) type

    CHKDSK c: /r

    If you have more than one drive replace C: with the other drive letters.

    Search for corrupted files by typing at the command prompt

    sfc/scannow

    You can clean boot troubleshooting http://support.microsoft.com/kb/331796

  • My Windows Photo Gallery has incorrect time for good that my computer is correct. I know how to change the time, but wanted the exact time is displayed automatically when you scan photos etc as before.

    Time is incorrect in Windows Photo Gallery and I would like to do this automatically scanned early for photos instead of my change time.

    Hi Sardai,

    Unfortunately, this information is not always accurate. If you took some of your pictures in a different time zone, for example, the time recorded for these pictures could be incorrect by several hours. The camera can also be set to the wrong date and time. Or, if you're scanning photos, ta date will reflect the date that they have been digitized, not the date on which they were taken. All these anomalies can be adjusted manually.

    To change the date or time

    1. open Windows Photo Gallery by clicking on the Start button, all programs, and then clicking Windows Photo Gallery.

    2. If you do not see the details on the side of the window pane, click information on the toolbar to display it.

    3. click on the image you want to change.

    1. to select more than one picture, hold down the CTRL and click each picture you want to change.

    4. click on the date at the top of the details pane.

    5. click on the arrow next to the date and then click the correct date on the calendar.

    6. click on the time at the top of the details pane.

    7. Select the correct time.

     

    To adjust the time for pictures taken in a different time zone

    1. open Windows Photo Gallery by clicking on the Start button, all programs, and then clicking Windows Photo Gallery.

    2. right click on the image you want to change and then click on change time taken.

    To select more than one picture, hold down the CTRL and click each picture you want to change, and then click a picture when you are done.

    3. in the change to box, type the number of hours to change, or click the up or down arrow to select the number of hours. To make the new start time, type a minus sign (-) before the number.

    For more information, see the link below:

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-date-and-time-a-picture-was-taken

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Question for David Powers on a subset of records display

    David,

    I used your fantastic book, PHP Solutions to great success in the development of my own projects.

    My problem is in the rest of your approach to display a subset of the records in my database. In your book (page 333, php solution 12-4), you use the tables, and in my design, I am using CSS. Everything works fine if I display the record set, but when I want to limit the number of records displayed on a page, I can't make it work. I suspect that your method using the table is "autonomous" insofar as the table was created on the various parameters of the subset.

    I don't have an example of a line of code, rather I would like to find a resource that could help me shed some light on this problem. I have tried things for hours today, but can't achieve my goal to limit the quantity x of subsets per page.

    Any help in the right direction would be greatly appreciated.

    Sincerely,

    wordman

    The fact that the thumbnails are displayed in a table is not relevant. What controls the subset of records being retrieved from the base is the code in step 4 top of page 335.

    $startRow is the current page number (counted from 0) times SHOWMAX (the number of items to display on the page.

    Which translates the SQL on page 2 that said: ' SELECT * LIMIT 6, 6 IMAGES. ($startRow is 1 * 6).

  • Change the display time for grouped objects

    Hello, I have problems to change the display time for the grouped items. I use 7 Captivate and I love how now grouped items display only as an element in the timeline because it reduces the number of lines visiblein the chronology for each object on a slide. However, now that the grouped objects is more individually appear in the timeline panel, I can't see all the adjustments for group objects together.

    If someone else has had this problem and is there a work around? My main problem is that if I need to extend or shorten the audio to the slide, and I assigned a tip action to be grouped in order to adjust the grouped object to match the audio, I must now separate adjust, regroup, then reset the advanced action by using the name of the new group. It's frustrating and tedious.

    To enlarge and view the items grouped on the timeline, you need to click the arrow next to the group name. Once you develop, you can select the individual object and adjust the timings.

    Alternatively, you can select the individual object in the Group on the slide and adjust the timing of the accordion of timing. You can do it without separate.

    Anthony

  • (7) the timer for recording TV

    Frustrated by the timer TV recording, usually starts a few minutes earlier & ends a few minutes later?

    Duplicate the content of the Post-

    (7) Media Player timer

    When I look at something with media player, the (completely useless) progressive count counter [whats it cash to?]

    I see that I can click next to the clock and it will show - count upward as well as to what extent it is cash to.

    Is there a way to keep updated do? and or is there a way to keep countdown to 0?

    You can change the beginning and the end of time.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • How can I make the date of the message appear with time for unread messages?

    Messaging systems that I spend show the date and time with the messages. I need this poster to determine the aging and the importance of the received mail. What archive/old economy mail help to drop off mail and not duplicate archived messages.

    Thunderbird displays the time and date for all messages except for the messages of today. Only displayed for today and the date is added at midnight.

  • Need to view daq reads per second but only to record a reading every 10 minutes. I would also like to record the date and time, at the same pace. Need help

    Need to show daq reads per second, but only to record a reading every 10 minutes, need help

    You are also looking to taste to 1 Hz data acquisition?

    My approach would be to use the DAQ acquisition to time your loop display reading each acquisition, then use the loop counter to control the logic of your writing to file.  For 1 Hz and 10 minutes write I would use 'quotient and remainder' I / 600; If rest = 0, then write the data point.

    For the date and time, under Calendar palette use the time get in seconds food a DateTime Format to a string.

  • Simple disk alert for specific servers

    Hi all

    Can someone tell me how to alert of simple disk for specific virtual machines please? That is to say if Server X drive E:\ hits 20 GB free, send an e-mail.

    I tried to change the rule VMW Virtual Machine, use of logical disk , but I can't limit the scope to specific servers I want to follow. Very confusing.

    VFoglight v6.6.2 using.

    Thanks in advance.

    You can change the call to the scope to include only the specific virtual machines.

    You can test this concept in the Script Console, using the query line.  Don't forget that everything is case-sensitive.

    First, enter VMWVirtualMachine , and then select query.  You should see all your virtual machines

    Then, enter VMWVirtualMachine where name like '% ServerX' and you should get only back the corresponding VMs.  You can extend this to help where and not built.  for example VMWVirtualMachine where (name like name like '% ServerY' or 'ServerX %') once you're comfortable with that, we can take the step 2.  The '%' is a wildcard character, corresponding to a number any character.

    Now, let's take a look on your particular case, which is a little more complicated, because the name of the virtual machine is not directly part of the object VMWVirtualMachineLogicalDisk .

    We need to start with VMWVirtualMachineLogicalDisk as our base and then extend it.

    Still in Script Editor, enter VMWVirtualMachineLogicalDisk in the query line and select query.  You should see a large number of records of logical drive.  By selecting one of them and selecting the tab panel object below will show you some of the properties of this object.

    Then, enter VMWVirtualMachineLogicalDisk where name like '% C:' and select query.  You should see a small list, showing only C: drives.

    That's nice, but as the name property of the VMWVirtualMachineLogicalDisk object is the drive letter, not the name of the virtual machine, it does not help your case.

    The trick is to remember that these are objects, not rows in a table SQL.  And there's a handy article on the object called parentsmodel.  You can see by scrolling down through the selected properties of VMWVirtualMachineLogicalDisk , until you see relatives.  It is a link to the top of the object tree and can be used to select what need you.

    Enter VMWVirtualMachineLogicalDisk, where parents.name like "ServerX %", and you should see just logical drives for the selected virtual machine.  Again, you can build more complex criteria.  In addition, you should be aware that in certain types of objects, parents is not one, but a list of items (e.g. warehouses under the ESX hosts, where a data store can be a child of many ESX host.)  The query in this case would be built in a different way, to deal with several possible outcomes.

    OK, so now we are ready to make your new rule.  You NEVER want to change a standard rule, you should always copy rule, if necessary, the deactivation of the original.

    Copy rule VMW Virtual Machine, use of logical drive to a new rule and go to the tab of the rule definition.

    Under scope rule, you will see VMWVirtualMachineLogicalDisk in the largest area.  This can be entered in the menu dropdown just above him, but it can also be added to by typing directly into the larger area.

    Change the biggest box of VMWVirtualMachineLogicalDisk to VMWVirtualMachineLogicalDisk, where parents.name like '% ServerX' and test the scope of the rule with the little green check mark on the side.

    In green text, you shuold see that your scope has been changed to the desired list of virtual machines.

    Don't forget to press on save, very important

  • Developer Mode error: outdated., the xxAM.xxVO1 view object contained no trace. The records displayed may have been deleted, or the current record of the view object is not properly initialized.

    Hi all

    I'm creating a Maunal search page.

    To do this, I created a view based on a custom display object.

    Page contains 2 parameters.

    If I give all settings and click the OK button.

    It gives the following error.

    Developer Mode error: outdated data


    This page contains outdated information. This error could have been caused by the use of the buttons of the browser (the browser back button, for example). If the browser navigation buttons were not used, this error may result from coding errors in the application code. Please check press the back button on the browser developer guide - view primary key object comparison section to review the main cause of this error and correct the mistakes of coding.


    Cause:
    The view BLTrinDisplayAM.ViewVO1 object did not contain any record. The records displayed may have been deleted, or the current record of the view object is not properly initialized.

    To visit, please click on the Home link at the top of the application page to return to the main menu. Next, go to this page using the app's navigation controls (menu, links and so on) rather than use the controls of the browser as rear or front.

    If I don't give any parameter and click go Button.The content of the view are displayed.

    So if I pass all parameters and click Go, then the corresponding record is displayed.

    Why, for the first time, if I give the parameter and click Go, obsolete data error is coming?

    Please help me.

    Grateful for your help!

    -Aren

    You use the object of the view for the search criteria and search results fields.

    I suggest you to remove references of VO fields of search criteria, item1 and item2.

    And in the event of the button 'Go' in the processFormRequest, get the criteria for field values entered by the user as below and run the object (ViewVO1) of the view by using these values.

    String buCode = pageContext.getParameter ("item1");

    String lsiCode = pageContext.getParameter ("item2");

    Thank you

  • Estimate of time for CTAS

    Hello
    I'm looking for a long time to find a way to estimate the time of execution of the orders of the ETG. I'm a DBA. Our users are running DEC orders to charge millions of rows. Commands extract the data from 4-5 very large tables each with millions of records and process them using where clause and group by clause and finally to create the table. All these things are coded in the order of the ETG. These CTAS sometimes takes a lot of time as 5, 8 Hrs. users frequently ask me to find how long it will take. I use the OEM and the TOAD. But I couldn't find the estimated time for these tools. I think there must be a way, but I do not know the method.
    Can any body please help me in this regard?

    Thanks and greetings
    Ananda Basak

    915354 wrote:
    I started using the method of table surface and looking at the value of column time to estimate the execution time long-running queries. For the first test case, it gave me good estimate. But for the 2nd case today, the plan for a DEC showed the value of the column time as around 40 minutes wherever the ETG was already running for 1 hour 45 minutes. If the value of column time is not estimate this matter correctly.
    Please suggest why this might be happening?

    That's why I said at the beginning

    "Of course, the optimizer estimates are only estimates and are not as accurate as the database statistics that are in place." If the optimizer generates a bad plan, it is likely because the optimizer expects an operation to take much more or much less time that it in fact in this case the runtime optimizer estimate is likely to be far. »

    Even in the best of cases, the optimizer estimates will be rough. If statistics are imprecise, estimates of the cardinality and runtime optimizer may potentially be off by a bit. You will have to dig into the specific query plan to see where the optimizer estimates do not go and then to understand the statistics are misleading it. Most likely, you will find statistics on a column, other tables, or some indexes are updated but you might also find a column that has need of a histogram, statistics system that is obsolete or a myriad of other possible sources of error.

    Justin

  • Slideshow of issues with a variable time for each photo

    Hi all

    I migrated from AS1 to AS3 and the boy, a lot has changed...

    In any case, to learn and understand AS3, I'm editing a slide show that I found through thetechlabs. I want to play SWF and JPG. These files are transmitted via an XML file. I added an element called < delaytime > in the XML file, which replaces the time that a photo is displayed in the slide show.

    I changed the function onSlideFadeIn() as follows:

    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    }

    However, when I run it, I get this error message:

    ## [Tweener] Error: [object Sprite] raised an error while executing the 'onComplete'handler. 
    TypeError: Error #1010: A term is undefined and has no properties.
    at slideshow_fla::MainTimeline/onSlideFadeIn()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/::updateTweenByIndex()
    at caurina.transitions::Tweener$/::updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()

    It stops at the first photo of my slide show. When I push the 'next' button, it displays the next picture, but I get the same error message again.

    When I comment out this line:

    slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);

    the slideshow works OK, but without the delaytime specified in the XML file.

    I'm lost here, what am I missing?

    Any help to get back on track is much appreciated!

    Thanks in advance, broadband

    Dirk

    Here is the complete, if you need:

    // import tweener
    import caurina.transitions.Tweener;
    // delay between slides
    const TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:Number = 1;
    // flag for knowing if slideshow is playing
    var bolPlaying:Boolean = true;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // current slide link
    var strLink:String = "";
    // current slide link target
    var strTarget:String = "";
    // url to slideshow xml
    var strXMLPath:String = "slideshow-data2.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    function initSlideshow():void {
         // hide buttons, labels and link
         mcInfo.visible = false;
         btnLink.visible = false;
        
         // create new urlloader for xml file
         xmlLoader = new URLLoader();
         // add listener for complete event
         xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
         // load xml file
         xmlLoader.load(new URLRequest(strXMLPath));
        
         // create new timer with delay from constant
         slideTimer = new Timer(TIMER_DELAY);
         // add event listener for timer event
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
        
         // create 2 container sprite which will hold the slides and
         // add them to the masked movieclip
         sprContainer1 = new Sprite();
         sprContainer2 = new Sprite();
         mcSlideHolder.addChild(sprContainer1);
         mcSlideHolder.addChild(sprContainer2);
        
         // keep a reference of the container which is currently
         // in the front
         currentContainer = sprContainer2;
        
         // add event listeners for buttons
         btnLink.addEventListener(MouseEvent.CLICK, goToWebsite);
         btnLink.addEventListener(MouseEvent.ROLL_OVER, showDescription);
         btnLink.addEventListener(MouseEvent.ROLL_OUT, hideDescription);
         mcInfo.btnPlay.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnPause.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnNext.addEventListener(MouseEvent.CLICK, nextSlide);
         mcInfo.btnPrevious.addEventListener(MouseEvent.CLICK, previousSlide);
        
         // hide play button
         mcInfo.btnPlay.visible = false;
    }

    function onXMLLoadComplete(e:Event):void {
         // show buttons, labels and link
         mcInfo.visible = true;
         btnLink.visible = true;
        
         // create new xml with the received data
         xmlSlideshow = new XML(e.target.data);
         // get total slide count
         intSlideCount = xmlSlideshow..image.length();
         // switch the first slide without a delay
         switchSlide(0);
    }
    function fadeSlideIn(e:Event):void {
         // add loaded slide from slide loader to the
         // current container
         addSlideContent();
        
         // clear preloader text
         mcInfo.lbl_loading.text = "";
        
         // check if the slideshow is currently playing
         // if so, show time to the next slide. If not, show
         // a status message
         if(bolPlaying) {
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
         } else {
              mcInfo.lbl_loading.text = "Slideshow paused";
         }
        
         // fade the current container in and start the slide timer
         // when the tween is finished
         Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:onSlideFadeIn});
    }

    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    }

    function togglePause(e:MouseEvent):void {
         // check if the slideshow is currently playing
         if(bolPlaying) {
              // show play button
              mcInfo.btnPlay.visible = true;
              mcInfo.btnPause.visible = false;
             
              // set playing flag to false
              bolPlaying = false;
              // set status message
              mcInfo.lbl_loading.text = "Slideshow paused";
              // stop the timer
              slideTimer.stop();
         } else {
              // show pause button
              mcInfo.btnPlay.visible = false;
              mcInfo.btnPause.visible = true;
             
              // set playing flag to true
              bolPlaying = true;
              // show time to next slide
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
              // reset and start timer
              slideTimer.reset();
              slideTimer.start();
         }
    }
    function switchSlide(intSlide:int):void {
         // check if the last slide is still fading in
         if(!Tweener.isTweening(currentContainer)) {
              // check, if the timer is running (needed for the
              // very first switch of the slide)
              if(slideTimer.running)
              slideTimer.stop();
             
              // change slide index
              intCurrentSlide = intSlide;
             
              // check which container is currently in the front and
              // assign currentContainer to the one that's in the back with
              // the old slide
              if(currentContainer == sprContainer2)
              currentContainer = sprContainer1;
              else
              currentContainer = sprContainer2;
             
              // hide the old slide
              currentContainer.alpha = 0;
              // bring the old slide to the front
              mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
             
              //Van hier
              if (currentContainer.numChildren > 0) {
                   var slideObjRef:DisplayObject = currentContainer.getChildAt(0);
                   currentContainer.removeChildAt(0);
                   slideObjRef = null;
              }
             
              //Tot hier
             
              // delete loaded content
              clearLoader();
             
              // create a new loader for the slide
              slideLoader = new Loader();
              // add event listener when slide is loaded
              slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
              // add event listener for the progress
              slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
              // load the next slide
              slideLoader.load(new URLRequest(xmlSlideshow..image[intCurrentSlide].@src));
             
              // show description of the next slide
              mcInfo.lbl_description.text = xmlSlideshow..image[intCurrentSlide].@title;
             
              // set link and link target variable of the slide
              strLink = xmlSlideshow..image[intCurrentSlide].@link;
              strTarget = xmlSlideshow..image[intCurrentSlide].@target;
              mcInfo.mcDescription.lbl_description.htmlText = xmlSlideshow..image[intCurrentSlide].@desc;
             
              // show current slide and total slides
              mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " + intSlideCount + " Slides";
         }
    }
    function showProgress(e:ProgressEvent):void {
         // show percentage of the bytes loaded from the current slide
         mcInfo.lbl_loading.text = "Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%";
    }
    function goToWebsite(e:MouseEvent):void {
         // check if the strLink is not empty and open the link in the
         // defined target window
         if(strLink != "" && strLink != null) {
              navigateToURL(new URLRequest(strLink), strTarget);
         }
    }
    function nextSlide(e:Event = null):void {
         // check, if there are any slides left, if so, increment slide
         // index
         if(intCurrentSlide + 1 < intSlideCount)
         switchSlide(intCurrentSlide + 1);
         // if not, start slideshow from beginning
         else
         switchSlide(0);
    }
    function previousSlide(e:Event = null):void {
         // check, if there are any slides left, if so, decrement slide
         // index
         if(intCurrentSlide - 1 >= 0)
         switchSlide(intCurrentSlide - 1);
         // if not, start slideshow from the last slide
         else
         switchSlide(intSlideCount - 1);
    }
    function showDescription(e:MouseEvent):void {
         // remove tweens
         Tweener.removeTweens(mcInfo.mcDescription);
         // fade in the description
         Tweener.addTween(mcInfo.mcDescription, {alpha:1, time:0.5, y: -37});
    }
    function hideDescription(e:MouseEvent):void {
         // remove tweens
         Tweener.removeTweens(mcInfo.mcDescription);
         // fade out the description
         Tweener.addTween(mcInfo.mcDescription, {alpha:0, alpha:1, time:0.5, y: 25});
    }
    function clearLoader():void {
         try {
              // get loader info object
              var li:LoaderInfo = slideLoader.contentLoaderInfo;
              // check if content is bitmap and delete it
              if(li.childAllowsParent && li.content is Bitmap){
                   (li.content as Bitmap).bitmapData.dispose();
              }
         } catch(e:*) {}
    }
    function addSlideContent():void {
         // empty current slide and delete previous bitmap
    while(currentContainer.numChildren){Bitmap(currentContainer.getChildAt(0)).bitmapData.dispose(); currentContainer.removeChildAt(0);}
    // create a new bitmap with the slider content, clone it and add it to the slider container
    var bitMp:Bitmap = new Bitmap(Bitmap(slideLoader.contentLoaderInfo.content).bitmapData.clone());
    currentContainer.addChild(bitMp);
    }
    // init slideshow
    initSlideshow();

    almost everything is possible.  There is no way to tell without looking at your xml file.

    Create a new fla, load your xml and make great use of the trace function to see what you do.

  • Hide the headings for specific users/groups

    Hello

    Is this possible with WEBhelp, hide/Exclude subjects for specific user groups / users?

    Currently, we use html/chm help. There is a project for our main software. I have another project for an add-on that is integrated in the table of contents of the main project using the merged help function. We only install help for this module when the customer has purchased this module. So the customers who do not have this module do not have help to make it.

    It is possible something similar with WEBhelp (Pro)? I ask because we go to WEBhelp (Pro). In this case, there is no help by the customer file, but one for all the world. Is there a way to display only the additional items to customers who use this module?

    * The only way I can think is to integrate all this into a single project and publish twice (one with and one without the themes of the additional module) using the tags of the construction. Or is there a way to let the RoboEngine/RoboServer merger it on the fly, but based on the criterion that the customer has the module?
    * This additional help project can be added to the main help as a teaser for other customers also use this module (others cannot buy unless you are a franchisor of a group of specific hotel for which we have developed the module)

    Thank you

    Hi John-Pierre. RoboServer this is impossible on the fly. Tags of the generation are the way to go. Simply create a new tag, apply it on the subjects you want no franchises user to see, then apply the tag to your SSL to exclude it from the output. Viola, you have your username not franchisees to help. Simply remove this label from construction of the SSL for users of franchises so that they get everything. You can also create two identical WehHelp Pro SSL - 1 vote against and no label construction and the other with a construction tag to avoid you to have to remember to add/remove.

    How your application will know files that help write? Is this a separate executable? I know that it is possible for the INSTALLATION. EXE to check the license before installing the modules, but I never went to the bottom of this line.

    BTW, build tags can be used on all types of output.

Maybe you are looking for

  • HP ENVY dv6z-7200 CTO Notebook: laptop will not be charged and will turn off when disconnected

    I noticed yesterday when my laptop has suddenly been shut down 64% autonomy when I forgot to plug it in and now it will not be charged. And when its unplugged it shuts down.   I check my settings and there are still immutable. Please help me.

  • onKeyDown() support?

    Hi, I have an android app that look the pressed key event volumn with onKeyDown(), so far from my tests on Z10, does not support the 10.1.0.2014 official, unofficial 10.1.0.2342 is not support either... anyone know if 10.2.x? or y at - it other way t

  • ORA-20000: ORU-10027: buffer overflow, of 1000000 bytes

    Hi allon 11.2.0.4 on Win 2008,.for only 3 rowsI getORA-20000: ORU-10027: buffer overflow, of 1000000 bytesWhen executing:exec dbms_output.enable (10000000);declarecursor c isSelect name, LES_PETITS of)SELECT name, count (*) AS LES_PETITS of members,

  • Read more about the buttons that expand the hidden text

    Sorry if this is a fundamental issue. How create [Read More] buttons that expand the text hidden in a paragraph in Dreamweaver CC 2015?

  • Can't see my adjustment layer settings.

    Normally when I use a layer as a hue, saturation or curves adjustment, I get the small window where I can do my settings but it seems gone.(Example: Gyazo - e7c7126199b005cb8bd7e38bbd146a84.png )Any way to recover?Thank you!