I've used the Flash/Flex Component Kit and add my flash controls to a Canvas. But the Canvas will not change size with I set it's height and width. Is this expected?
--- In [email protected], Alex Harui <aha...@...> wrote: > > You should use the Flash/Flex Component Kit to wrap your Flash content. > Flash content won't work well in Flex without being wrapped in some fashion. > The minimum thing you could do is stick in an mx:UIComponent of the > appropriate size in the application and addChild the sprite to it. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: [email protected] [mailto:[email protected]] On > Behalf Of michaeljonknight > Sent: Wednesday, April 22, 2009 2:33 PM > To: [email protected] > Subject: [flexcoders] difference between stage and application? > > > > > > Hello, > > I am somewhat new to flex. We are working on a project that uses an exported > swc from Flash and running into some problems getting everything we want to > show up layered correctly. > > I want to add a menu bar (mx.controls.MenuBar) on top of some content from > the flash swc (flash.display.Sprite). I can only get the menu bar to show up > if I call application.addChild and the sprite to show up if I call > application.stage.addChild. But the menu bar popups are behind the sprite. > > I don't really understand the difference between the application and the > stage either. Can anyone help? And is there an established way to work with > mx.controls and flash.display.sprite data? > > thanks in advance, > madmik3 >

