Complete compilation of code and demos into one project

7 views
Skip to first unread message

Keith Sutton

unread,
Jan 29, 2008, 2:14:10 AM1/29/08
to Flex Visual Graph Library
Spent a few hours on the weekend boning up on the library. As a mini-
project I pulled together the demos and refactured the base code and
demo code as one project. Most of the refactoring was related to paths
and tracking down all the associated errors. All the different
projects compiled and ran (for me at least). There are no .swc files
in this, everything compiles from source.

I have uploaded the project as a single zip file. I tested this by
unzipping it into my root Flex directory and then importing the
project. Compiled and ran the 5 demos with no problems, all the
project settings came in correction (i.e. .src directory, and
designated application files - demos). Let me know if there are any
problems with this - keith.sutton100@gmail

http://groups.google.com/group/flexvizgraphlib/web/FlexVisualGraph.zip

JB

unread,
Feb 1, 2008, 3:35:49 AM2/1/08
to Flex Visual Graph Library
Keith,

Thanks for sharing. We'll be adding a few more demos to catch up to
the latest developments, e.g. hyperbolic and circular layout, edge
renderers, as well as rotation of node renderering, etc.

Really appreciate your efforts as I'm sure the same for the members...

JB

Keith Sutton

unread,
Feb 1, 2008, 3:51:07 PM2/1/08
to flexviz...@googlegroups.com
JB,
 
As long as it works. A would appreciate your testing what I have done so to make sure it doesn't give anyone headaches. I am working on bringing the functionality that was developed in the demo mxml into a base or abstract class that extends VisualGraph named "VisualizationManager". This would be extendable for anyone building specialized functionality and would encapsulate code as a component - that what there would be less logic required in the xmxl application class.
 
Interested in the new demos.
 
Regards,
Keith

barry.b

unread,
Feb 5, 2008, 8:41:04 PM2/5/08
to Flex Visual Graph Library
many thanks for efforts Keith, it's given me a head start into the
project.

I have hit an error though: - using Flex Beta3/FlexBuilder3b3/ Flash
9.0.115.0 (moviestar)

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at FlexVisualGraph/initData()[/Users/barry/Documents/eclipse_3311/
workspace/FlexVisualGraph/src/FlexVisualGraph.mxml:153]
at FlexVisualGraph/handleHTTPResult()[/Users/barry/Documents/
eclipse_3311/workspace/FlexVisualGraph/src/FlexVisualGraph.mxml:114]

which boils down to:

startRoot = graph.nodeByStringId("vizgraph").vnode;

when it starts fetching the XML, startRoot is NULL. Can't prove it yet
but I suspect it's waiting for the webservice to return the XML before
startRoot gets a value.

It does eventually load and work fine.

also getting a couple of warnings:

WARNING: setting a new graph object invalidates the root node, a new
default root node was set, but it may not be what you want
warning: unable to bind to property 'association' on class
'XML' (class is not an IEventDispatcher)



any suggestions on what to try to debug this further?

many thanks
barry.b



On Feb 2, 6:51 am, "Keith Sutton" <keith.sutton...@gmail.com> wrote:
> JB,
>
> As long as it works. A would appreciate your testing what I have done so to
> make sure it doesn't give anyone headaches. I am working on bringing the
> functionality that was developed in the demo mxml into a base or abstract
> class that extends VisualGraph named "VisualizationManager". This would be
> extendable for anyone building specialized functionality and would
> encapsulate code as a component - that what there would be less logic
> required in the xmxl application class.
>
> Interested in the new demos.
>
> Regards,
> Keith
>

Keith Sutton

unread,
Feb 5, 2008, 10:24:33 PM2/5/08
to Flex Visual Graph Library
Barry,

I have to admit to being new to this library as well. I think the few
hours I invested pulling things together paid off, glad it helped.

I ran into an a similar error during initialization when an
operational was attempted against a variable that had not completed
loading (VisualGraph). I just added an if <var>!==null to avoid the
situation but there probably needs to be a little more investigation
to sort out the sequencing of how things are loaded (which is done
slightly different between some demos).

Regards,
Keith
Reply all
Reply to author
Forward
0 new messages