1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    1
    Vote Rating
    0
    dzinr38 is on a distinguished road

      0  

    Default Renaming Symbols

    Renaming Symbols


    I just downloaded the demo of Sencha Animator and tried to post to the forum but was unable to do so. I need to know if I can name a symbol so that the code it exports to html/css/js uses an id or class that makes sense rather than assigning a random number as the style name. That's really the only feature I cannot seem to find and do need. Thanks!

  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 dzinr38,

    You can give a name to a symbol by double-clicking it's name in the Library->Symbols, however this will not let you access the symbol, but it's meant to help you keep your library organized.

    To manipulate a symbol instance (or any other object), select a symbol (or object) that you placed on the canvas and give it an id under Properties->Base Object->Id. Using AN.Controller.getElementById you can access this instance and change its properties. (also see documentation on the API: http://docs.sencha.com/animator/1.5/.../AN.Controller)

    However, to do things such as switch or restart the timeline inside the symbol, you need to access the symbol instance internally. To do this, you should use AN.Controller.getSymbolByInstanceId . When editing the code inside Architect, autocomplete within editor will list all symbol instances placed on your canvas so you can select the instance easily. Changing the internal symbol instance ids is not possible for consistency reasons, every id is uniquely generated, but you could create your own reference to the symbol you need to use to access it easier outside Animator. Something like this (it should be executed once the animation is initialized, e.g. Properties->Timeline->Actions->Start):

    Code:
    //ids will be listed with autocomplete
    
    var mySymbolInstance = controller.getSymbolByInstanceId('62KhW7cw');
    Take a look at code snippets regarding symbol navigation inside editor in Animator and also take a look at documentation regarding AN.Controller and AN.Symbol: http://docs.sencha.com/animator/1.5/#!/api

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