W3C home > Mailing lists > Public > www-smil@w3.org > April to June 2010

Re: script to rewind?

From: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Date: Sun, 27 Jun 2010 19:05:42 +0100
Cc: www-smil@w3.org
Message-Id: <23C791C0-367B-40D5-8450-C7D46B0AF3F7@btinternet.com>
To: Jonathan Chetwynd <j.chetwynd@btinternet.com>

attachment title should read:

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

as below:

<?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>


On 27 Jun 2010, at 18:46, Jonathan Chetwynd wrote:

> script to rewind?
>
> 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>Script should over-ride set attributeName="fill" testcase</ 
> 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>
Received on Sunday, 27 June 2010 18:05:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 27 June 2010 18:05:49 GMT