title: Use setSeconds(); to close my splash screen in blackberry cascade
body: <p>Well, Here I have a screen which I want to get close after 2-3 Seconds. For that I am using setDate() method. </p>
  
  <p>I am very new to this Blackberry Cascade QML programming. I want to attach 1 more splash screen, so for that reason I want to use timer to close and open the sheet according to seconds.
  Any help will be appreciated.</p>
  
  <p>Thanks in advance.</p>
  
  <p>I have worked on the following code.</p>
  
  <pre><code>import bb.cascades 1.0
  import bb.cascades.pickers 1.0
  
  Page
  {
  Container 
  {
    background: Color.Transparent
      //Todo: fill me with QML
      onCreationCompleted: 
      {
          mysheet1.open();
          new Date();
  
          **Error is shown in for loop**
          for(Date.setSeconds(1),Date.setSeconds()&lt;=5 , Date.setSeconds()+1)
          {
  
             if(Date == 5)
             {
              mysheet1.closed();
              mysheet2.open();
             }
          }
       }
  
      attachedObjects: 
      [
        Sheet 
        {
          id: mysheet1
          peekEnabled: false
  
          Page 
          {
              Container 
              {
                  background: Color.Transparent
  
  
                  ImageView 
                  {
                      horizontalAlignment: HorizontalAlignment.Fill
                      verticalAlignment: VerticalAlignment.Fill
                      imageSource: "asset:///splash1.png"
  
                  }
  
              }
  
          }
      }
    ]
  }
  </code></pre>
  
  <p>Context Invokable: Date Date(...)</p>
  
  <p>The Date object is used to work with dates and times.
  Date objects are created with the new Date() constructor.
  There are four ways of initiating a date:
  new Date() // current date and time (or)
  new Date(milliseconds) //milliseconds since 1970/01/01 (or)
  new Date(dateString) (or)
  new Date(year, month, day, hours, minutes, seconds, milliseconds)</p>
  
  <p>Invokable: number setSeconds(number sec)</p>
  
  <p>Sets the seconds of a date object.</p>