1 Reply Latest reply on Mar 29, 2010 6:15 AM by rkewlani

    First Attempt at AIR, ApplicationControlBar not working

    david.t.lanton Level 1

      I'm following an example (done in mx namespace) that creates a control bar. All I've done differently is use the s namespace for <s:WindowedApplication> and <s:Button>

       

      Problem is the button doesn't appear at all in the control bar.

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                             xmlns:s="library://ns.adobe.com/flex/spark"
                             xmlns:mx="library://ns.adobe.com/flex/mx">

             
           <mx:ApplicationControlBar dock="true">
              <s:Button id="go" label="Go" />
           </mx:ApplicationControlBar>

       

      </s:WindowedApplication>

       

      I read somewhere something about contentControlBar, but that seems to be used with the <s:Application> tag and not with <s:WindowedApplication>. This is an AIR example, and I'm using Flash Builder 4 Premium. Any ideas what's going on?

       

      Thanks.

        • 1. Re: First Attempt at AIR, ApplicationControlBar not working
          rkewlani Level 2

          Try this. I tried on FB4 & it works for me.

           

           

          <?xml version="1.0" encoding="utf-8"?>
          <s:WindowedApplication  xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx">

                 
                <mx:ApplicationControlBar dock="true" height="100%" width="100%">
                  <s:Button  id="go" label="Go" x="200" y="200" />
               </mx:ApplicationControlBar>

           

          </s:WindowedApplication>