Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:09, 10 September 2007.

KIJ000734 - JSR-226: Animation may not start when calling SVGAnimationElement.beginElementAt( 0.0f )

From Forum Nokia Wiki


ID KIJ000734 Creation date August 31, 2007
Platform S60 3rd Edition, FP1 MIDP SDK Devices  
Category Java Subcategory JSR-226 Scalable 2D Vector Graphics API


Description

When using the Scalable 2D Vector Graphics API, the animation may not start when calling the SVGAnimationElement.beginElementAt( 0.0f ) method. This happens when an animation for an element is controlled by two chained <animateTransform> elements.

How to reproduce

This issue affects JSR-226 when running on the emulator.

<rect x="30" y="30" width="30" height="30" fill="yellow">
          <animateTransform id="animRect1_1" type="translate"  
  attributeName="transform" attributeType="XML" fill="freeze" begin="indefinite"
     dur="2s" restart="always" from="0,0" to="30,30"/>        
        <animateTransform id="animRect1_2" attributeName="transform"   
  type="translate" attributeType="XML" fill="freeze" 
  begin="button_play_focus_on.end" dur="1s" restart="always" from="30,30" 
  to="0,0" fill="freeze"/>
 </rect>
 
  <rect x="80" y="30" width="30" height="30" fill="red">
          <animateTransform id=" id="animRect2"" type="translate" 
  attributeName="transform" attributeType="XML" fill="freeze" begin="indefinite" 
  dur="2s" restart="always" from="0,0" to="30,30"/>        
  </rect>
 
 
  SVGAnimator.invokeLater(new Runnable() {
      public void run() {
          Document doc = svgImg.getDocument();
          SVGAnimationElement el =   
  (SVGAnimationElement)doc.getElementById("animRect1_1");
          el.beginElementAt(0.0f);
                                
          el = (SVGAnimationElement)doc.getElementById("animRect2");
          el.beginElementAt(0.0f);
    }
    });

Expected outcome:

Both boxes move to the bottom-right corner in sync.

Actual outcome:

The animation works only for the very first time. In all subsequent iterations the smooth movement of the yellow box towards the bottom-right corner is skipped and the boxes do not move in sync.

Solution

This issue is fixed in S60 3rd Edition, FP2 MIDP SDK.

Related Discussions
Thread Thread Starter Forum Replies Last Post
animation in text vickey General Symbian C++ 2 2007-12-27 09:48
screen flicker during animation nkn_motoko Mobile Java General 1 2001-11-06 21:45
full screen shydisturbedboy Mobile Java General 3 2007-09-24 20:22
abld command kollar Symbian Tools & SDKs 3 2003-02-03 07:51
Animation server, direct display memory or simple app? rmmc General Symbian C++ 0 2003-03-19 12:31
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX