SMIL and script

Jonathan Chetwynd <[email protected]> Tue, 29 Jun 2010 06:31:14 +0100
Newsgroups gmane.comp.web.smil
Message-ID <[email protected]>
--Apple-Mail-1-982047248
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

SMIL and script

is there a way perhaps using ecmascript to move, for instance an  
animation** to its start position?

Whilst a user might have buttons to play pause and rewind, but where  
one or more individuals and or services which may be  remote, is a  
means provide for them to engage?

regards

Jonathan Chetwynd

** the  attached file is  in SVG by way of illustration.
what is sought  is  a way to emulate one and only one of the  buttons  
through script.


<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
   width="100%"
   height="100%"
 >

	<title>Click  on the green button  then the grey button</title>


   <text x="20" y="20" >Wait for animation, then click on the green  
circle, then click the green rectangle</text>

<g id="neutral" fill="#cca" >
<set attributeName="fill"  from="#cca" to="green"  
begin="fillGreen.click"  end="fillNeutral.click" />
    <rect x="16" y="38" width="150" height="21"  rx='4' ry='4'/>
</g>

    <rect x="176" y="38" width="50" height="21"  rx='4' ry='4'   
fill="green"  pointer-events="fill" cursor="pointer" id="fillGreen"/>

    <rect x="176" y="78" width="50" height="21"  rx='4' ry='4'   
fill="#cca" pointer-events="fill" cursor="pointer" id="fillNeutral"/>

</svg>
--Apple-Mail-1-982047248
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><div>SMIL and =
script</div><div><br></div><div>is there a way perhaps using ecmascript =
to move, for instance an animation** to its start =
position?<br><br>Whilst a user might have buttons to play pause and =
rewind, but where one or more individuals and or services which may be =
&nbsp;remote, is a means provide for them to =
engage?<br><br>regards<br><br>Jonathan Chetwynd<br><br>** the =
&nbsp;attached file is &nbsp;in SVG by way of illustration.<br>what is =
sought &nbsp;is &nbsp;a way to emulate one and only one of the =
&nbsp;buttons through script.<br><br><br>&lt;?xml version=3D"1.0" =
encoding=3D"utf-8" standalone=3D"no"?&gt;<br>&lt;svg xmlns=3D"<a =
href=3D"http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</a>" =
version=3D"1.1"<br>&nbsp;&nbsp;width=3D"100%"<br>&nbsp;&nbsp;height=3D"100=
%"<br>&gt;</div><div><br><span class=3D"Apple-tab-span" =
style=3D"white-space: pre; ">	</span>&lt;title&gt;Click &nbsp;on the =
green button &nbsp;then the grey =
button&lt;/title&gt;<br><br><br>&nbsp;&nbsp;&lt;text x=3D"20" y=3D"20" =
&gt;Wait for animation, then click on the green circle, then click the =
green rectangle&lt;/text&gt;<br><br>&lt;g id=3D"neutral" fill=3D"#cca" =
&gt;<br>&lt;set attributeName=3D"fill" &nbsp;from=3D"#cca" to=3D"green" =
begin=3D"fillGreen.click" &nbsp;end=3D"fillNeutral.click" =
/&gt;<br>&nbsp;&nbsp;&nbsp;&lt;rect x=3D"16" y=3D"38" width=3D"150" =
height=3D"21" &nbsp;rx=3D'4' =
ry=3D'4'/&gt;<br>&lt;/g&gt;<br><br>&nbsp;&nbsp;&nbsp;&lt;rect x=3D"176" =
y=3D"38" width=3D"50" height=3D"21" &nbsp;rx=3D'4' ry=3D'4' =
&nbsp;fill=3D"green" &nbsp;pointer-events=3D"fill" cursor=3D"pointer" =
id=3D"fillGreen"/&gt;<br><br>&nbsp;&nbsp;&nbsp;&lt;rect x=3D"176" y=3D"78"=
 width=3D"50" height=3D"21" &nbsp;rx=3D'4' ry=3D'4' &nbsp;fill=3D"#cca" =
pointer-events=3D"fill" cursor=3D"pointer" =
id=3D"fillNeutral"/&gt;<br><br>&lt;/svg&gt;</div></body></html>=

--Apple-Mail-1-982047248--