Im trying to figure out a way to add frames to a movie clip timeline with AS3. The number of keyframes that will be added depends on user input so i can not set them in advance. Is there a way to do this? Im using AS3.
What are you trying to do?
Why are you doing this?
What is your goal?
Adding frames dynamically can't be done as for as I know. If you are making an interactive animation program (just my guess), this can be accomplished by different means than physically adding frames. Keyframes can't be accessed by scripting anyhow, so adding them dynamically doesn't make much sense. You may need to think differently about how you what to solve this technically; do not let a specific technical solution ("add frames") guide you. This is why I ask: what is your goal.
Not everything that can be counted counts, and not everything that counts can be counted.
I want the user to be able to load a couple of images (unknown amout) and then "play" through these images as an animation. You should also be able to pause and resume the animation. The loading works fine (getting all the URLs into an array etc) but the next part is trickier :)