Hi Fabian, Fabian Unfried <i...@funfried.de> wrote on 03/15/2010 05:45:07 AM:
> Maybe I didn't mention that exactly, my problem is that I have already opened > a svg file in my application and then would like to add an animation, but if > I do this like in your example, it won't be animated. I suspect the problem is that the canvas decided that it could use 'static' mode to render the document. If the Canvas does not see any dynamic elements/attributes in the document then it will not attach the necessary listeners/handlers to support dynamic modification of the document (including animation). You can force the canvas to be dynamic by calling the following _before_ loading the document: canvas.setDocumentState(JSVGComponent.ALWAYS_DYNAMIC) BTW it might also be the timeline thing (or both).