Any way to stop rendering using code trigger?

24 views
Skip to first unread message

t...@devdino.com

unread,
Mar 24, 2017, 2:21:18 AM3/24/17
to SWFRenderer
My SWF's length is dynamic, so it may stop after 10 seconds or after 2 minutes.

I'm not able to find a solution in order to stop rendering using code. I tried to move to the end of the SWF, but it didn't help - the SWFRenderer calculated the number of frames, and it wouldn't stop until it finish the count.

karim beyrouti

unread,
Mar 24, 2017, 5:21:51 AM3/24/17
to swfre...@googlegroups.com, t...@devdino.com

There is currently no mechanism to stop rendering from inside a SWF - but it would be possible to implement. Although - I currently have no time spare to look at this in the next few weeks - but would be happy to add that as a feature when I do (which would depend on your code being AS3 / and being able to run in local context).

For now - If the length of your SWF is dynamic you will need to find a way to tell SWFRenderer externally the length of the movie and use 

```
stopMode=0 // Stops after time ellapsed
stopTime=5 // Number of seconds to capture
```

But I presume you already dismissed that as a solution. Maybe if you have a local script it could also load that same variable and calculate the length of the movie ?

For now - (this could be a very long shot - if it works) - maybe throw and error from inside your SWF - that might cause the rendering to stop ? - but I would not count on that being a solution (have not tried it - it is just a total guess)


t...@devdino.com

unread,
Mar 24, 2017, 12:35:08 PM3/24/17
to SWFRenderer, t...@devdino.com
Hi Karim, thanks for the reply.
Unfortunately, an error makes the renderer shut down (with 'renderer error' message), but not to stop.
Reply all
Reply to author
Forward
0 new messages