huangshan04:
> Does anybody know how to embed a swf file in a svg document?
> What element should be used?
I don’t know of any user agent that supports rendering WMF inside SVG.
If your SVG user agent supported WMF natively, you should be able to do:
<svg …>
<image xlink:href='file.swf' width='100' height='100'/>
</svg>
If your SVG user agent supports WMF in HTML somehow, then you might be
able to do:
<svg …>
<foreignObject width='100' height='100'>
<object xmlns='http://www.w3.org/1999/xhtml'
data='file.swf'
style='width:100px;height:100px'/>
</foreignObject>
</svg>
You probably will have better luck if you convert your WMF to SVG, for
example by using Batik’s WMFTranscoder class:
http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/transcoder/wmf/tosvg/WMFTranscoder.html
I don’t think it is exposed through the command-line transcoder
application yet, unfortunately.
> Thanks and happy new year.
新年快樂!
--
Cameron McCormack ≝ http://mcc.id.au/
------------------------------------
-----
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/