1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    Flix is on a distinguished road

      0  

    Default Problem: jump to a Scene

    Problem: jump to a Scene


    Hello

    Today I tried the Animator the first time. Great! But now I have a problem. I have 2 Scenes, the first scenes repeats until I clicked on a button. Than scene 2 starts. Now the Problem, within of the scene 2 he jumps to scene 1.
    Here is the link: http://web21.server02.gcdata.at/Mobile2
    Is this a bug or made I something wrong?

    Hope you can help me

    Flix

  2. #2
    Sencha User
    Join Date
    Mar 2010
    Location
    Bay Area
    Posts
    152
    Vote Rating
    1
    mmullany is on a distinguished road

      0  

    Default


    Can you upload your project folder? Sort of hard to diagnose what you're doing without it.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    Flix is on a distinguished road

      0  

    Default Problem

    Problem


    Here is the file:
    http://web21.server02.gcdata.at/Mobile2/Prj1.anim

    I think, the problem is the first scene-loop. If I press the Button I jump to scene 2, but the loop-timer??? is still active. So after a while the timer activates the first loop again.

    Flix

  4. #4
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    Nice catch. We'll take a look at it.

    If you have some JS skills you might be able to change the javascript yourself to make it work properly for now. My guess would be that you could cancel the timer when the "goToSceneID" function it called.

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    Flix is on a distinguished road

      0  

    Default It works

    It works


    OK, now it works.

    PHP Code:
    var TimerScene1

    function goToSceneID(id) {

        if (
    id==0) {
            
    window.clearTimeout(TimerScene1);   //Clear the Timer
        
    }

        for (var 
    i=0config.lengthi++) {
            if (
    config[i].id === id) {
                
                
    goToScene(i);
                return;
            }
        }
    }


    function 
    applyTimeout(index,time) {
     
        if (
    index == 0) {   
          
    TimerScene1=setTimeout(function(){   // Save the timer of Scene1
            
    goToScene(index);
          },
    time);
          
        } else {
         
    setTimeout(function(){
              
    goToScene(index);
          },
    time);
        }
        

    There are still some other problemes (Text fade in / fade out) -> see my old examples. All in all a good tool. I hope, in future there will be: copy objects between scenes, bug: sometimes a line get's away, when doubleclick on the timebar, export to seperate css, js - files :-)

    Flix

  6. #6
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    Nice coding there : )

    Correct me if I am wrong, but I think the text fading issues are related to Safari. Seems to work fine in Chrome on my machine. Safari seems to have an issue with animated colors. Instead of fading the actual font-color on your text, you could try to use opacity in general instead (it's in the top panel for keyframe properties).

    Thanks for the feedback!

  7. #7
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    Flix is on a distinguished road

      0  

    Default


    That's it. Now it works better. When did you bring a new version out, any plans? (sorry for my bad english)
    I'm a teacher for computer science and want to make something new with my pupils. Webapps for iPod and Androids are great. So I find Sencha Touch. Now I try to combine it with your Animator. It works (with some workarrounds - great for me - nothing for pupils :-) )

    flix

  8. #8
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    Glad you got it working better.

    We're definitely working hard on the next release, but we're not ready to announce a date yet.

    Good luck with your teaching!

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi