tswsrl / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Better support for using from within Flex #222

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

At this time, the only way I was able to figure out how to use the svgweb
viewer directly from flex was to read the source code.  Also, I am not
certain if I can use svgweb in flex without the source code (instead of the
.swf file), although my knowledge of flex does not make that certain.  

What I would like to see is the following:

1.  A document on how to use SVGWeb from Flex
2.  A release version suitable for using SVGWeb from Flex, if necessary.

Original issue reported on code.google.com by kvanston...@gmail.com on 13 Aug 2009 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by grick23@gmail.com on 13 Aug 2009 at 11:00

GoogleCodeExporter commented 9 years ago
Hi!
This project uses svgweb under flex, it might be helpful for you:
http://www.randomfractals.com/lab/FlexSVGExplorer/FlexSVGExplorer.html
regards

Original comment by pedro.sa...@gmail.com on 14 Aug 2009 at 3:02

GoogleCodeExporter commented 9 years ago
It is only helpful if I could see the source code.

I did get SVGWeb to work with Flex, but it was harder to do than it should be, 
which
is why this Issue was created. 

Original comment by kvanston...@gmail.com on 14 Aug 2009 at 3:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, I forgot to mention that the source code is available with right click.
Everything is here:
http://www.randomfractals.com/lab/FlexSVGExplorer/srcview/index.html
those who is experiencing this kind of problem and needs a running example with 
SVGWeb. 
Thanks Taras Novak :D

Original comment by pedro.sa...@gmail.com on 14 Aug 2009 at 5:02

GoogleCodeExporter commented 9 years ago
Started in r722.

We did not have any mxml file examples and so I added a basic one. The example 
loads
and displays an SVG URL. It should be noted that for flash/flex usage, we have 
not
formally defined and documented a stable API to develop against. This is mainly
because the current active developers of this library have considered the 
javascript
interface to be our main priority.

Original comment by grick23@gmail.com on 17 Aug 2009 at 12:38

GoogleCodeExporter commented 9 years ago

Original comment by bradneub...@gmail.com on 20 Oct 2009 at 12:29

GoogleCodeExporter commented 9 years ago
The example from FlexSVGExplorer works, you load the svn as xml, and then 
assign the
xml to the viewer:

// assuming mySvgViewer is an instance of SVGViewerFlex
mySvgViewer.viewer.xml = new XML(loadedXML) 
//this works, and only if you assign a namespace and instantiate your viewer in 
mxml:
<svg:SVGViewerFlex id="mySvgViewer"/>

Couldn't get it to work creating the SVGViewerFlex programatically, and in 
either
case, could't get mySvgViewer.viewer.loadURL(url_to_svg_file) to work either
(although the implementation seems the same).  The file appeared to load, all 
the
events fired (loadComplete, etc), but nothing ever showed up.  Haven't dug deep
enough to find out what the problem is.

Otherwise, fun with SVG! Thanks guys.

Aaron

SVGWeb trunk r981
Flex SDK 3.4 on Linux (Ubuntu 9.1)
Flash Player 10,0,22,87 on Firefox 3.0.12 (if it matters to you)

Original comment by aaron.j....@gmail.com on 12 Nov 2009 at 7:46