0 Replies Latest reply on Jul 29, 2010 9:51 AM by InfoCon_Brian

    Modules and view stack

    InfoCon_Brian Level 1

      I am tring tto implement a ViewStack with multiple views inside a separate module.

      Simular to Windows style "wizard" (property Sheet / Property Page).

      When I complie the module and run swf. I get a colored background.

      No Image, no canvas.

       

      Code Sample:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
          layout="vertical"
          width="100%"
          height="100%"
          xmlns:BookDetail="Modules.BookService.src.views.*"
          backgroundColor="#ff0000">

       

          <mx:Canvas width="100%" height="100%">
              <mx:ViewStack xmlns:mx="http://www.adobe.com/2006/mxml"
                  xmlns:BookDetail="Modules.BookService.src.views.*"
                  selectedIndex="0"
                  resizeToContent="true"
                  >
                  <BookDetail:Main id="MainHome" width="100%" height="100%"/>
              </mx:ViewStack>
          </mx:Canvas>
      </mx:Module>

       

      What am I doing wrong?