Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    15
    Vote Rating
    0
    blopes is on a distinguished road

      0  

    Default Integrate Sencha Animator events on Architect events

    Integrate Sencha Animator events on Architect events


    Hi all,

    Can I design a css3 website with animations on the Animator and then integrate it into the MVC on the Sencha Architect in order to define events on the controllers to add some logic and communication with the database with Ext.Direct.

    Basically on the Architect MVC the View will be the result from the Sencha Animator plus eventual some other architect components like grids and so on.

    It would be very cool if it was that simple, is it ?

    Can you provide a simple example ?

    Thank you.

    Bruno

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    251
    Vote Rating
    22
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    Hi blopes,

    It is not that simple, but it is still possible to insert your animation into a ExtJS / Touch project with a little bit of coding. What you can do is render the animation inside a container in your app and use Animator API to control it (start / stop / switch scene etc.). The API is documented here: http://docs.sencha.com/animator/1.5/#!/api

    Triggering an Ext event from inside the animation is possible if you are rendering the animation in the same scope as your app (so not inside an iframe). With this, you should be able to attach event listeners to the dom elements (objects) inside your animation, by using dom selectors. To do that you need to use delegating more or less like this:

    Code:
    //ExtJS example
    
    Ext.getBody().on('click', function(event, target){  
    // code to do something on click
    }, null, {
      delegate: '.my-animation-element-class'
    });
    To read more about delegation, take a look at this blogpost:
    http://www.sencha.com/blog/event-del...-sencha-touch/
    and the documentation for addListener in ExtJS
    http://docs.sencha.com/extjs/4.2.2/#...od-addListener
    and in Touch
    http://docs.sencha.com/touch/2.3.1/#...od-addListener

Thread Participants: 1

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