You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by scott matheson <sc...@matheson.it> on 2016/11/02 19:04:15 UTC

SVG file

Hi
     long story but, I have ended up with one SVG file, all other are FXG, and I seem not to be able to A, convert to FXG to embed this file, I end up with a black secure 


can anyone help ?

<svg id="Contours" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40.83 40.83">
	<defs>
		<style>.cls-1{fill:#79cf84;stroke:#1d1d1b;stroke-miterlimit:10;stroke-width:1.5px;}.cls-2{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:4px;}</style>
	</defs>
	<title>arrow</title>
		<rect class="cls-1" x="0.75" y="0.75" width="39.33" height="39.33" rx="8.77" ry="8.77"/>
		<polyline class="cls-2" points="9.77 20.41 30.34 20.41 23.91 14.38 27.11 20.41 23.9 26.66 30.34 20.41"/>
</svg>

Re: SVG file

Posted by OmPrakash Muppirala <bi...@gmail.com>.
See if this works for you:

<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008">
  <Group scaleGridLeft="6.66699" scaleGridRight="33.667"
scaleGridTop="32.4966" scaleGridBottom="9.20703">
    <Path y="-0.169922" winding="nonZero" data="M39 30.2305C39 35.0742
35.0742 39 30.2305 39L8.76953 39C3.92578 39 0 35.0742 0 30.2305L0 8.76953C0
3.92578 3.92578 0 8.76953 0L30.2305 0C35.0742 0 39 3.92578 39 8.76953L39
30.2305Z">
      <fill>
        <SolidColor color="#79CF84"/>
      </fill>
      <stroke>
        <SolidColorStroke weight="2" caps="none" joints="miter"
miterLimit="10" color="#1D1D1B"/>
      </stroke>
    </Path>
    <Path x="9" y="13.6748" winding="nonZero" data="M0 6.15527 20.3398
6.15527 13.9102 0 17.1104 5.96777 13.9004 12.1865 20.4551 6.0459">
      <stroke>
        <SolidColorStroke weight="4" miterLimit="4" color="#FFFFFF"/>
      </stroke>
    </Path>
  </Group>
</Graphic>

Thanks,
Om

Re: SVG file

Posted by Vulcansoft <mi...@vulcansoft.com>.
Check out AS3SVGRenderer on GitHub:
https://github.com/lucaslorentz/AS3SVGRenderer

Just pass the SVG to the source property and that’s it. 

- Christian



> On Nov 2, 2016, at 8:04 PM, scott matheson <sc...@matheson.it> wrote:
> 
> Hi
>     long story but, I have ended up with one SVG file, all other are FXG, and I seem not to be able to A, convert to FXG to embed this file, I end up with a black secure 
> 
> 
> can anyone help ?
> 
> <svg id="Contours" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40.83 40.83">
> 	<defs>
> 		<style>.cls-1{fill:#79cf84;stroke:#1d1d1b;stroke-miterlimit:10;stroke-width:1.5px;}.cls-2{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:4px;}</style>
> 	</defs>
> 	<title>arrow</title>
> 		<rect class="cls-1" x="0.75" y="0.75" width="39.33" height="39.33" rx="8.77" ry="8.77"/>
> 		<polyline class="cls-2" points="9.77 20.41 30.34 20.41 23.91 14.38 27.11 20.41 23.9 26.66 30.34 20.41"/>
> </svg>