flex mxml multiple layers - apache-flex

is it possible to have multiple layers in a flex mxml document?
What I actualy want is a panel with a form in it, but with a movieclip as a background.
What is the best way to implement this?
Using Flex 3.4

I think so if you choose for absolute layout.

Related

How to move a QPushButton inside gridLayout?

I have just tried a simple thing, in designer I created one push button, inside grid layout. The problem is geometry option got disabled in Property box, and I am not able to change the cordinates. In this situation how should I move the push button from its original place if required?
Can somebody help me to achieve this??
You can't move or resize a widget inside a layout because its position and its size are managed by the layout. If you want to manage its geometry yourself, do not use a layout.
Qt layouts are designed to help you make scalable user interfaces. For this, moving or resizing the button is usually done by the layout using sizeHint() and sizePolicy().
I would suggest reading up on how to use layouts and the use of spacers, as this will impact the location and size of your button.
Well I found a solution to that
Break the Layout, arrange the widgets and then set the layout

VScrollbar CSS for Scroller component in flex

Is there a way to customize the look of vertical scroll bar in the Scroller component in Flex? I am able to use CSS to customize the look of Vscrollbar component but I don't see the same option for Scroller component. For example, cornerRadius, fillAlphas isn't available in Scroller component. How can I set these option in Scroller component.
Thanks
Yes, but you can't use CSS. In FlashBuilder, you create a new MXML Skin and set a host component of Scroller and make sure you make it a copy of spark.skins.spark.ScrollerSkin. Then you just modify that skin to your heart's content. Not quite as easy as CSS, but it is much more powerful and you can do much, much more. I'm not sure if or how you do it in Flash CS or FlashDevelop, but it is fairly easy in FlashBuilder (and is the proper way to skin all Flex components)

Flex 4 Spark BorderContainer - draw border for specific sides?

Is there a way to easily specify on which sides a border is drawn for Flex 4's Spark BorderContainer?
I found this: http://forums.adobe.com/message/2956325
But that uses MX styling which seems like a hack. Is there a better or 'correct' way without having to build a skin? It seems incredibly silly to build a skin for a 'Bordered' component when this is a very common use case.
Thanks for any pointers!
Many of the spark components are designed to be lightweight, so I'm not surprised that BorderContainer doesn't have the same bells/whistles as its mx counterpart. If I was in your situation I would create a simple skin that uses Lines instead of a border on each of the sides so you can configure the widths however you like. Sounds like a hassle, but much of the flexibility of spark components is dependent upon creating custom skins.

Flex: What OpenSource Container Component should I use?

Please help me what container component I will use. Here is my problem, I have advance data grid with full of data about 300 by 300 row-column(data can be picture). Now I need a container that can zoom in/out, fit to screen capability and can drag around the component inside so that my data grid will be zoomable and dragable around the container(Easy for the user to read content inside my datagrid). Any suggestion for a container that fits on what I need. Thanks
You'll likely have to add some functionality to AdvandedDataGrid to do that sort of stuff. The grid only renders cells that are currently on screen (well, mostly) to achieve a decent performance level. If you enlarged your grid to show all cells and then embedded that into a container that managed scrolling, etc, it would likely be unacceptably slow.
But you could add event handlers directly to the grid to manage your new user gestures.
http://code.google.com/p/flexlib/wiki/ComponentList
Maybe the dragscrollCanvas container, combined with scaleX/scaleY events on the datagrid in response to mousewheeel events for the zoom?
Not sure exactly what you need...
you need to use a custom itemRenderer for your datagrid field. There are some great tutorials out there...
http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/
http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html (is a series of
And if you know what you are looking for then I'm sure that you can find the right itemRenderer for your datagrid.
Then using your custom component you can move it around, zoom, etc.
If you are talking about the container that contains the datagrid checkout the flexlib mdi container. This container can have other windows inside of it then you can tile, cascade, fill, etc. This also supports dragging.
example: http://www.returnundefined.com/flexmdi/explorer/
webpage: http://code.google.com/p/flexmdi/

Frameset in flex application?

There is a frameset concept in HTML that we all know.
But I need that to be done in flex application.
How to do that ?
If what you're after is just a similar GUI component container layout than what you'd get using HTML frames, check out the DividedBox component (as well as its horizontal and vertical subclasses, HDividedBox and VDividedBox.) You can use the Flex 3 Style Explorer to see what they look and feel like. You can nest them inside each other just like with framesets.

Resources