How Do I Get Context Menus Working in Flex?
I have the usual openzoom namespace (xmlns:openzoom="http://ns.openzoom.org/2008") inside the application tag and MultiScaleImage component (openzoom-preview-111.swc) is what i'm using . contextmenus are cool, but I just could not get it right. Does not work even when I try to access a "newer namespace" by replacing 2008 with 2009.
<openzoom:controllers>
<openzoom:keyboardcontroller />
<openzoom:mousecontroller />
<openzoom:contextmenucontroller />
</openzoom:controllers>
and flexbuilder says
Could not resolve <openzoom:contextmenucontroller /> to a component implementation.
same error occurs with <openzoom:fillconstraint> and <openzoom:smoothtransformer />.
Please say what iam doing wrong?.</openzoom:fillconstraint>
<openzoom:controllers>
<openzoom:keyboardcontroller />
<openzoom:mousecontroller />
<openzoom:contextmenucontroller />
</openzoom:controllers>
and flexbuilder says
Could not resolve <openzoom:contextmenucontroller /> to a component implementation.
same error occurs with <openzoom:fillconstraint> and <openzoom:smoothtransformer />.
Please say what iam doing wrong?.</openzoom:fillconstraint>
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Herat,
The version you're using (openzoom-preview-111.swc) is from December 2008. In the meantime I've announced the first public release of the OpenZoom SDK which is version 0.4.2:
http://getsatisfaction.com/openzoom/t...
Please read the notice above, download the new version and I'm sure the context menus will work :)
There are over a dozen examples in the SDK, illustrating the most common tasks, e.g. here's one for a basic setup of the MultiScaleImage component including a ContextMenuController:
http://github.com/openzoom/sdk/raw/94...
–Daniel
The company and 1 other person say
this answers the question
-
Inappropriate?Daniel,
Thank you for the answer. I downloaded the SDK tried to build it in flexbuilder it did not work. Therefore I simply replaced the old .swc with the new one and also copied code from MultiScaleImageExample to the old mxml file. Im able to see the context menu now. But things such as tweener controller or zoomconstraint is not recognized b y flex and i dont know why.
-herat -
Inappropriate?Herat,
Let's not start off with an ugly hack. Tell me exactly what went wrong when you tried to compile the examples from the SDK download.
Do you have the latest Flex Builder, I believe 3.0.1, and the latest Flex SDK, 3.3 or 3.4?
–Daniel
Loading Profile...




EMPLOYEE