Hybrid View

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


    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.


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



    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:

    //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:
    and the documentation for addListener in ExtJS
    and in Touch

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