Augustus Saunders <[EMAIL PROTECTED]> writes: > Can the SMIL stream (of whatever form) be altered at runtime > (view-time) without changing the SWF? > Hi Augustus,
are you referring to the status quo, or about the feature set of the to-be-implemented new flash export? > Does an effect with a trigger exist in the main timeline as well > (and is replayed on the trigger), or is it only played on the > trigger? > Trigger effects are separate from the main timeline. > Is the behavior well defined when you trigger two effects > on the same shape? > Yes - the one that has been activated last wins (but effects affecting distinct attributes mix without interference). There's also the possibility to mix effects on the same attribute, via addition, multiplication, etc. > Is the behavior well defined when a shape no longer has its initial > state when an effect is triggered? > Yes - effects always operate on the 'current' state > If a shape has exited, will triggered effects make it reappear? > Only if they explicitely set it to 'visibile'. Visibility is just one out of a bunch of modifiable shape attributes. > If effect A is marked to animate "with previous" and effect B (the > previous one) is marked to animate on a trigger, is A implicitly > triggered? > Yep. > So I'm certainly all for switching each individual effect > implementation to ActionScript. I see processing the SMIL stream as > being the hard part. If there's an easy way through the OOo API to > say, "Give me an ordered list of the SMIL effects for the main > timeline, and then give me a list of all the triggered effects!" > then it shouldn't be too hard. If there are implicitly triggered > effects, that could be a nightmare. I guess in that case, you would > create effect chains. I sense ambiguity here (can an effect be > implicitly repeated by being marked "with previous" on a looping > animation?). > Depends. If you take general SMIL, then yes, given certain flags are set. So, a rough draft of what the ActionScript engine should be able to do: implement the few basic smil effects (that more or less amounts to modifying certain shape attributes, like position, rotation, font size, overall alpha, etc.). Those attributes are changed over time, and smil defines quite a set of different time-varying behaviours. I'm pretty confident that we can normalize that to, say, a keyframe animation plus a repeat mode (off, plain repeat, ping-pong). Next come the triggers (and the main time line is only a special way of triggering, which is handled more or less canonically in the slideshow smil engine): effects can get triggered by various means, at any time (plain timeouts, timeouts plus user-generated events, timeouts plus other effects (finished or started). Then there are arbitrary arithmetic expressions in smil (with a fixed set of functions, though) - guess those are best exported verbatim into ActionScript, and shouldn't pose any problems. Cheers, -- Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
