Auar / flexvizgraphlib

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

Attempting to build Relation Navigator Demo #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running Flex Builder 2 and attempting to start a new Flex project based
on the Relation Navigator Demo. When I try to run the project, I get a lot
of errors. The first of which is:

Attempted access of inaccessible method draw through a reference with
static type org.un.flex.graphLayout.visual:VisualGraph.
RelationNavigator.mxml  RelationNavigator   line 168

This is a reference to this line of code:
vgraph.draw();
I don't see the declaration of vgraph earlier in the file. Am I missing
something obvious?

I've attached a screenshot of all the errors returned by Flex Builder.
Perhaps it will help diagnose a project configuration error.

This is my first experience with Flex, Flex Builder and flexvizgraphlib.
It's entirely possible I'm making basic mistakes or have misconfigured the
project. If this isn't the proper place to ask such a question, please let
me know how best to proceed. TIA.

Original issue reported on code.google.com by lafayett...@gmail.com on 23 Aug 2007 at 12:58

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

it looks like you did not add the graphLayout library as a library reference
to the build-parameters of the RelationNavigator application.

The declaration is there, but it is admittedly not obvious. Further down
in the code, in the MXML part, you will notice the <VisualGraph> component
with id="vgraph". This is all declaration that is needed. It does not matter
that it appears later in the code, but I agree that this way of AS/MXML 
interaction
makes things a bit less explicit.

In any case, if you just want to build the demo, you will need to add all
three SWC files provided as libraries for the MXML application project.
In Flexbuilder you can do it as follows:

1. Right-click on your RelationNavigatorDemo MXML Application Project.
2. Select "Properties"
3. Select "Flex Build Path"
4. Click on the "Library Path" tab, (next to the source path tab).
5. Click "Add SWC"
6. Add the graphLayout.swc file
7. Repeat steps to add the other 2 swc files (unComponentToolbox.swc and
PrimitiveIcons.swc)

Let us know if it works or not.

Just to be sure, I uploaded a new graphLayout.swc file to make sure it is ok and
not broken.

Original comment by spo...@gmail.com on 24 Aug 2007 at 12:00

GoogleCodeExporter commented 9 years ago
Hi spoxta,

Thanks for your kind reply. I already had all three swc files added to the 
project.

I sent email to Jason Bellone yesterday who replied there was a new 
graphLayout.swc
file uploaded. I downloaded this new version and added it to the project. All 
the
errors disappeared and the project ran just like the online demo. So, it looks 
like
the .swc file was damaged.

I look forward to experimenting further!

Michael Swan

Original comment by lafayett...@gmail.com on 24 Aug 2007 at 5:34

GoogleCodeExporter commented 9 years ago
I ran into this same problem. Please update the Quick Start directions to 
indicate
that the graphLayout.swc is needed. Right now it says that you only need two 
library
files and gives a link to download PrimitiveIcons.swc and 
unComponentToolbox.swc. It
would be helpful to add graphLayout.swc to the zip file that the Quick Start 
guide
provides.

Original comment by drcalla...@gmail.com on 9 Nov 2007 at 12:13

GoogleCodeExporter commented 9 years ago
I assume this can be closed now.

Original comment by spo...@gmail.com on 21 Mar 2008 at 3:12