Can't seem to work out how to get a simple animation to run again after 
altering attributes with javascript. I can make a circle jump from place to 
place. But when I add animate to get it to move smoothly - it only works the 
first time. i.e. what I want to do is feed new coordinates to a function - 
update the svg - and watch the circle move (not jump) to each new position.
   
  I have a circle, created and added to a page using javascript. That works 
fine. I then alter the x and y coordinate attributes using the following code: 
that works fine too. The circle jumps from place to place on the page.
   
    circ.setAttribute("cx",x);
  circ.setAttribute("cy",y);
   
  [cx and cy are the SVG attributes. x and y are the new values.]
   
  Now I've added animate tags for both cx and cy. When I first do this, it 
works fine. The object moves (not jumps) from one point to another. But then, 
altering the x,y coordinates as above no longer works; not even to make it jump.
   
  Is there something I need to set or refresh each time to trigger the animate?
   
  The above explains the problem - can't move the circle again once the animate 
completes the first time. I have tried changing animate's from and to 
attributes at the same time. 





It's not a problem. It's an opportunity. 
Correlation does not prove causality. 

 




[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to