samedi 26 septembre 2015

Play only a certain range of frames

I have a combobox on the stage and changing its value I want to play only a certain range of frames:


combo01.addEventListener(Event.CHANGE, change);

function change(event:Event):void{
    if (combo01.selectedItem.label == "BAL"){
        if (currentFrame == 99) {stop();}


The game is not stopped but returned to frame 1.

Aucun commentaire:

Enregistrer un commentaire