Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Error when add as Flex module to flexviewer project #1

Open
hathachgis opened this issue Aug 13, 2014 · 2 comments
Open

Error when add as Flex module to flexviewer project #1

hathachgis opened this issue Aug 13, 2014 · 2 comments
Labels

Comments

@hathachgis
Copy link

Hi,

I download the source code and add it to my flex project but got this error. What does it mean?
1119: Access of possibly undefined property SUSPEND_TOC_HIDE_TIMER through a reference with static type class.

@WestonSF
Copy link
Owner

Oh okay sorry about that, it seems that it works with Flex Viewer 3.5 but not 3.6 as that property ("SUSPEND_TOC_HIDE_TIMER") is missing from the AppEvent.as. The quickest fix would be to add this:

public static const SUSPEND_TOC_HIDE_TIMER:String = "suspendTOCHideTimer";

Into the AppEvent.as file, which is under come.esri.viewer.

Let me know how it goes.

@hathachgis
Copy link
Author

Thanks to Robert Scheitlin, I was able to get this widget updated to 3.6. I would like to share this new code with you.

In TocLayerMenu.mxml

private function bordercontainer1_rollOverHandler(event:MouseEvent):void
{
AppEvent.dispatch(AppEvent.RESET_TOC_HIDE_TIMER, "true");
}

        private function bordercontainer1_rollOutHandler(event:MouseEvent):void
        {
            AppEvent.dispatch(AppEvent.START_TOC_HIDE_TIMER, null);
        }

In TransparencyMenuItem.mxml

protected function transparencyBorderContainer_rollOverHandler(event:MouseEvent):void
{
AppEvent.dispatch(AppEvent.RESET_TOC_HIDE_TIMER, "true");
}

        protected function transparencyBorderContainer_rollOutHandler(event:MouseEvent):void
        {
            AppEvent.dispatch(AppEvent.START_TOC_HIDE_TIMER, null);
        }  

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants