Hi Doug,

sorry that i didn't clearly explain my question.. i am trying to make a
midlet(jsr-226).

here's the code:

         doc = svgImage.getDocument();
         svg = (SVGSVGElement)doc.getDocumentElement();
         EventTarget t = (EventTarget)svg;
         t.addEventListener("click", new LayerManager(), false);

in the LayerManager class i just print the ids of the element..
i also tried this code:

         doc = svgImage.getDocument();
         svg = (SVGSVGElement)doc.getDocumentElement();
         elt = (SVGElement)svg;
         elt.addEventListener("click", new LayerManager(), false);

when i press the up key in the emulator, my midlet will print the id of
the element that is on the center of the viewport. trying the first code
above, i can only "access" the root element even though there is another
element at the center. the second code above is the same.  so i tried
this code:

         doc = svgImage.getDocument();
         SVGElement elt = doc.getElementById("elementID");
         elt = (SVGElement)svg;
         elt.addEventListener("click", new LayerManager(), false);*
         EventTarget t = (EventTarget)svg;
         t.addEventListener("click", new LayerManager(), false);




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