mx.core.FlexGlobals is what you really need.
I need toimplement a crosshair cursor for the tool tip in line chart.
I got a code from sitepoint but it is not compiling due to this error.
could you please let me know any workaround to implement crosshair cursor similer to the "http://www.rb.com/Media-investors/Share-price-information/Share-price-graph"cursor.
If you had a source code then the easiest way would be to replace ApplicationGlobals with FlexGlobals.
Since you don't (or am I missing something?), implementation would be something like this:
- create custom component (extend Group) with two lines: one horizontal and one vertical (ore you could just use the tooltip component itself);
- listen for MOUSE_MOVE events and position the lines accordingly;
- listen for ROLL_OVER and ROLL_OUT events for showing and hiding the lines;
I don't think this is difficult so you should be able to figure out the details yourself.
Did you import mx.core.ApplicationGlobals? Normally you would not use ':'
I am a java developer and in our project there is a need to develope a flex
I have already a code with me to generate the cross hair cursor which i
downloaded from net but not able to compile this however now I replaced
ApplicationGlobals with FlexGlobals.
Now it is throwing error "addChildToSandboxRoot" in "CursorManagerImpl.as"
code is available at "
Is there any method to use this code as a lib in my application?
Could you please help me in this?
Thanks an dRegards
I've looked at the link you gave me and I have found no code. At least no Flex source files. There is *.fla file available which, I guess, is Flash Professional file. And I have never worked with that thing. So I have no idea if you can use that file in the Flex project.
Could you please post the source code either in *.zip file or plain text (if that does not violate any licenses or whatsoever) so that I could take a look at it?