Access Keys:
Skip to content (Access Key - 0)

Issue with buttons of Alerts

Added by Arnaud , last edited by Arnaud on Oct 06, 2009 12:11

When I compile my project with KapInspect 1.5, the buttons of my Alerts show a label "null".
Just try this :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

     <mx:Script>
     <![CDATA[

          import mx.controls.Alert;

          private function showAlert() :void             

Unknown macro: { Alert.show("Alert texte", "Alert title", Alert.OK | Alert.CANCEL ); }

     ]]>
     </mx:Script>

     <mx:Button label="Show alert" click="showAlert();" />

</mx:Application>

and add kapinspect.swc in the compilation.

I use FlashDevelop as IDE.

Here is a screenshot.

When I remove KapInspect.swc from the compilation libraries, buttons are ok.

Join the Lab

  • Access to our free components
  • Give your feedback, your needs
  • Participate to our roadmap

Account


Forgot password ?

Latest Updates: 2010/07/12

Releases on:

Top News

Kap2Flex & Klovis new releases
(2010/06/08)
Kap2Flex A new release of our Flex code generator.
Klovis A set of free and open-source libraries.

Read the news »
ConfluenceFx release 1.0!
(2010/06/08)

After a year of beta program and lots of user feedbacks, we are glad to announce the 1st commercial release of CFx!

Need Information?

  1. Oct 21, 2009

    Julien Revel says:

    Hi I have not been able to reproduce your problem, but I use FlexBuilder and not...

    Hi
    I have not been able to reproduce your problem, but I use FlexBuilder and not FlashDevelop.
    I would say that you may want to check what language you compile your application with, as it seems that some framework bundle may have not been loaded, for a mysterious reason.
    Do you use a localized version of the framework ?

    1. Oct 21, 2009

      Arnaud says:

      Hello Julien, I use the default framework, v3.4.0.9271. My locale option was emp...

      Hello Julien,
      I use the default framework, v3.4.0.9271.
      My locale option was empty in FlashDevelop, I changed it to en_US but the issue remains.
      If you can't reproduce it in FB, this is probably an issue in FlashDevelop or any difference in compilation option, nothing with your component.

      Regards

  2. Dec 15, 2009

    Ulrike Heidler says:

    Hi... I've the same problem with FlexBuilder 3. Did you find any solution alre...

    Hi...

    I've the same problem with FlexBuilder 3.
    Did you find any solution already?

    Regards, Ulrike

Log in to reply

Why Kap Lab ?

Kap Lab exists because innovation is our passion. Enjoy our products and help us to give you the best.

Cyril Daloz
CEO Kap IT

Adaptavist Theme Builder (3.3.5-conf210) Powered by Atlassian Confluence 2.10.3, the Enterprise Wiki.