1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    557
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default One Animation - Multiple Objects

    One Animation - Multiple Objects


    Hi there,

    I am currently trying to animate a Text, which is always inserted at the point where the user clicks on the screen. Whenever the user clicks this text shows the number of total clicks so far.

    1st click = 1
    2nd click = 2

    So these numbers are shown on the screen. To do this I create a div on the screen with a unique name
    PHP Code:
    newdiv document.createElement('div');
                
    newdiv.id 'scoreAnim'+i+'_'+j;
                
    newdiv.innerHTML '+' animScore;
            
    document.getElementById('myScreen').appendChild(newdiv); 
    To animate this I create a new StyleSheet add the start values and then I use insertRule to animate it.

    Thats really horrible and very slow.

    Now I took a look at Sencha Animator and animated a number to use the outcome for my animation.

    But:
    How do I add the animation to a random created item and probably have several instances running on the screen at the same time with a slight time difference?

    If the user clicks rapidly several times on the screen, there should be several numbers popping up at different states of the same animation.

    Can you help?

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

      0  

    Default


    Dynamic/Interactive element creation is not supported at this point.

    Not sure if I fully follow what you're trying to accomplish, but perhaps you should have the animation in the css be based on a class name, that way you can add the class to your newly created object to start animating it.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar