Hi Everyone,
I am using a canvas which has a degrafa background, so far so good.
However when scrolling apears the background (degrafa grid) does not get redrawn.
In the code the bg strokes are linked to the container height. The thing is container.height does not change even when scrolling.
How do i get the heigh of the whole area so ...
Hi,
I was using an mxml class but since i need to pass some properties at construction time, to make it easier i will convert it to as3 code.
The class is RectangleShape and it just draws a rectangle.
Original mxml working
<?xml version="1.0" encoding="utf-8"?>
<BaseShape name="rectangle"
xmlns="org.edorado.edoboard.view.componen...
Hi,
I have a degrafa surface into a canvas container.
I want to link both width and height.
When i use binding like it works as expected:
// binding
BindingUtils.bindProperty(rect,"height",this,"height");
BindingUtils.bindProperty(rect,"width",this,"width");
Now, someone told me that i should do it on validateSize() or updateDi...
<degrafa:LinearGradientFill id="bluedream">
<degrafa:GradientStop color="#6ab5d0"/>
<degrafa:GradientStop color="#388aae"/>
</degrafa:LinearGradientFill>
<degrafa:GeometryComposition graphicsTarget="{[bgCanvas]}">
<degrafa:RoundedRectangle id="color_preset" fill="{bluedream}"/>
</degrafa:GeometryComposition>
I ...
Hello guys,
I have a Canvas i would like to clone.
This canvas hold a Degrafa Surface with several Geometry shapes.
I tried the naive approach of
return ObjectUtil.copy(graph_area) as Canvas;
TypeError: Error #1034: Type Coercion failed: cannot convert Object@63b1b51 to com.degrafa.geometry.Geometry.
TypeError: Error #1034: Type Coe...
I'm trying to add a RasterImage component to a Surface at runtime. My code runs as follows:
var ri:RasterImage = new RasterImage();
ri.loadingLocation = new LoadingLocation('http://resources.mydomain.com/','crossdomain.xml');
ri.source = 'http://resources. mydomain.com/some.jpg'
this.myGeometryGroup.geometryCollection.addItem(ri);
Bo...
Hi,
I want to insert a bezier spline into my Canvas by this code
<mx:Canvas
id="graphCanvas"
width="100%"
height="100%"
preinitialize="preInit()"
/>
<BezierSpline id="mySpline" graphicsTarget="{[graphCanvas]}" data="points"
verticalCenter="0" horizontalCenter="0"
>
points is a string I initialize in the preInit() method
[Bin...
I'm trying to find an easy way to use degrafa with MXML. I'm no artist and creating graphics using code just seems very wrong when you can't visualise what is needed to make the required art work.
What I'm after is a tool that can take an SVG graphic and convert to suitable MXML tags so that I can copy/paste them into a MXML file.
There...
Degrafa newbie here :-).
I was able to get "com.degrafa.skins.CSSSkin" to create linear gradient backgrounds. Now I'm getting into more advanced stuff as I try to figure out radial gradients...
I figured this out by watching Flex-skinning-with-degrafa-screencast but my code isn't working for me and I'm getting a white background on ...
I've been learning Degrafa recently, and I have noticed that there is not much consistency amongst examples posted on the web. Is there a place where I can find degrafa best practices (esp. for skinning)? or can anyone suggest examples that use best practices?
...
I am having some issues when trying to skin the scrollbar on a horizontalList with Degrafa. The scrollbar doesn't show up at all. I checked to see if the scrollbar is supposed to show up without the skinning, and it does. Are there any gotchas with doing this?
Here is some code:
This is where I define the HorizontalList where I want...
I see a degrafa autoshape that I want to use but it seems like there are no autoshapes included in the swc. What do I have to do to use an autoshape?
...
I was recently profiling my application that uses Degrafa States in the skins and noticed that doing so uses more memory than I expected. Between the SetProperty and State, they were using about 10% of the total used application memory.
Would it be better to use css for the state changes and a new skin for each state?
or
Are there some...
I'm trying to create dynamic flower component to depict relations between parent object and it's children.
Parent object is represented by daisy center and the children are represented by petals. Each of above can have a specific fill/color and text label, moreover petals should be draggable. My question is: is that possible to do using ...
Hi!
I'm trying to use degrafa in my Flex project, and I would like to change a surface coordinate reference point. I want to put the center of the screen as (0,0).
I have tried many ways but I can't make it work. Any ideas, please?
...
Hi everyone,
I have a problem with degrafa's polygons. I've created 4 polygons to reproduce a picture frame, they all looks the same, I just change their coordinates and angle.
the bottom one :
<Polygon data="{parentApplication.original.height},0 {parentApplication.widthSlider},0 {parentApplication.original.height+parentApplication.wi...
Hi! I'm workin in a degrafa project and i want to rotate a RegularRectangle. I can do it around one center for the transformation, but I would like to add another transformation. I mean, imagine that I have two circles. I would like the rectangle to rotate around the first one, and when I click a button it should rotate around the second...
I have a skin that's base clas is GraphicRectangularBorderSkin (from degrafa). I'm using it as a panel skin. I'm using Degrafa 3.2, Flex 3.2. It throws a #1502 error (thrown when a script runs too long) every time. If I remove the line changing the em variable, the error goes away.
The class is basically (although I paraphrased for the ...
I have a swc(degrafa) that I have been referencing externally in another folder on my computer. When I tried to move the swc to the libs folder I was no longer able to access the swc from my application. Is there a step im missing?
...
I'm trying to plot data from several entities over time.
Each entity will have its own line, so there will be several lines.
Each line will be connected, but it's important that dots are drawn to represent data.
I'm aware of the linked bar chart, but at initial inspection, I can't seem to find one that offers me the ability to draw ...