How to export vars in script for AudioStreams and textures?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Wolf Win

How do you access AudioStreams or Texture via gd script, and how can you use the export keyword to change the Audiostream in the editor?

Example case:

A script that extends AudioStreamPlayer that plays an intro then switches to the main music on intro end.

Thanks in advance,


:bust_in_silhouette: Reply From: hungrymonkey

Why do you need to know the lengh?

there is a signal called finished. When the the thing is done, then the signal will call whatever function you created