Auar / flexvizgraphlib

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

Using as a Component #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

First - your application rocks - thanks for the contribution!

As many of us, I am new to Flex and I am trying to turn your application
into a component so I can include it into another application (of course).
So I create a new component, copy the code into a Canvas or TitleWindow
component (deleting viewsource), and then try to call it into an
application - and get the following errors:

ReferenceError: Error #1069: Property singleClick not found on saraStarter
and there is no default value.at
org.un.flex.unComponentToolbox.renderers::PrimitiveIconRenderer/private::initCom
ponent()at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
n()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.core::UIComponent/set initialized()
    at mx.managers::LayoutManager/private::doPhasedInstantiation()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/private::callLaterDispatcher2()
    at mx.core::UIComponent/private::callLaterDispatcher()
    at [renderEvent]

Seems to be a problem with singleClick (saraStarter is my Application). Got
any ideas?

Thanks,
Mike

Original issue reported on code.google.com by livelyca...@gmail.com on 1 Sep 2007 at 7:03

GoogleCodeExporter commented 9 years ago
I'm having the same problem, looking for a solution.

Excellent work, thanks a lot for it!

Juan

Original comment by juan.t...@gmail.com on 18 Dec 2007 at 10:00

GoogleCodeExporter commented 9 years ago
i solved that by just adding this code snippet into the script section of the 
parent
application:

public function singleClick(e:Event):
{
    // visual graph parent app dependency
}

greets, bex.

Original comment by petar.b...@gmail.com on 20 Jan 2008 at 5:49

GoogleCodeExporter commented 9 years ago
What are you trying to use as a component?

The main class in the graphLayout library, VisualGraph is actually
already a component (it is derived from Canvas).

Let me know what other parts you'd like to use as a component and need
the singleClick() method?

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