Question: I have a question about if a animation ends that it will like `gotoAndStop()` to another frame

```
if (bird.hitTestObject(pipe1)) {

     bird.gotoAndStop(3); //frame 3 = animation

}

```

after it ends it will need to go the Game Over frame (frame 3) and I use the `Flash Timeline` not `.as` thanks!

Answer: 
If you are still looking for an actual answer here is [mine](https://pastebin.com/R0jMh4ui) (it is kinda hacky but its work). 

To use it you simply have to call one of the 2 options below : 

```
FileHandle[] fileList = JarUtils.listFromJarIfNecessary("Path/to/your/folder");
FileHandle[] fileList = JarUtils.listFromJarIfNecessary(yourJarFileFilter);

```

A JarFileFilter is a simple class that overload the Java default FileFilter to fits the jar filter needs.

This will work both: when running from the IDE and from within a jar file. It also check that the game is running on desktop otherwise it use the default libGDX way of loadding the resources so it is safe to use for cross-platform project (Android, Ios, etc.).  

Feel free to update the code if necessary to fit your needs. The code is documented and is ~150 lines so hopefully you will understand it.

Warning: Beware that this might not be very efficient since it has to look for all the entries within your jar so you do not want to call it too often.
What i do sometimes is to loop the "sounds" folder with a prefixed filename and a numbered suffix like this:

```
for(String snd_name : new String[]{"flesh_", "sword_", "shield_", "death_", "skating_", "fall_", "block_"}) {
        int idx = 0;
        FileHandle fh;

        while((fh = Gdx.files.internal("snd/" + (snd_name + idx++) + ".ogg")).exists()) {
            String name = fh.nameWithoutExtension();
            Sound s = Gdx.audio.newSound(fh);

            if(name.startsWith("flesh")) {
                sounds_flesh.addLast(s);
            }
            else if(name.startsWith("sword")) {
                sounds_sword.addLast(s);
            }
            else if(name.startsWith("shield")) {
                sounds_shield.addLast(s);
            }
            else if(name.startsWith("death")) {
                sounds_death.addLast(s);
            }
            else if(name.startsWith("skating")) {
                sounds_skating.addLast(s);
            }
            else if(name.startsWith("fall")) {
                sounds_fall.addLast(s);
            }
            else if(name.startsWith("block")) {
                sounds_block.addLast(s);
            }
        }
    }

```