3 Replies Latest reply on Jun 2, 2006 11:35 AM by poonamsheth

    How to use image as pannel header?

    gv79
      hi all,

      we here here are building a flex application for Laingorourke UK's domestic housing solution, which will cater the dynamic needs of bussiness to collect user/customer's feedback and selection on various components which will be used/installed in his house.

      Now the challenge, we have to macth the flex application to the corporate branding ( www.exploreliving.co.uk/test ). as in flex style explorer there are header images used for pannels ( most probably ). We here also need the same. Can anbody guide me to the link/resource from where i can get an idea of doing the same.

      flex style explorer : http://www.adobe.com/devnet/flex/articles/style_explorer.html[b

      thx in advance.

      warm regards
      gaurav verma
        • 1. Re: How to use image as pannel header?
          TIPLVinay Level 1
          Please describe which version ru using 1.5 or 2.0
          • 2. Re: How to use image as pannel header?
            Level 7
            Gaurav,

            In Flex 2.0, you can do the following:

            <?xml version="1.0" encoding="iso-8859-1" ?>
            <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

            <mx anel width="400" height="300" title="My Title"
            titleBackgroundSkin="@Embed('header.gif')">
            <mx:Button/>
            <mx:TextInput/>
            </mx anel>

            </mx:Application>

            - Jason Szeto

            "gv79" <webforumsuser@macromedia.com> wrote in message
            news:e3mj9g$2v6$1@forums.macromedia.com...
            > hi all,
            >
            > we here here are building a flex application for Laingorourke UK's
            > domestic
            > housing solution, which will cater the dynamic needs of bussiness to
            > collect
            > user/customer's feedback and selection on various components which will be
            > used/installed in his house.
            >
            > Now the challenge, we have to macth the flex application to the corporate
            > branding ( www.exploreliving.co.uk/test ). as in flex style explorer there
            > are
            > header images used for pannels ( most probably ). We here also need the
            > same.
            > Can anbody guide me to the link/resource from where i can get an idea of
            > doing
            > the same.
            >
            > flex style explorer :
            > http://www.adobe.com/devnet/flex/articles/style_explorer.html
            >
            > thx in advance.
            >
            > warm regards
            > gaurav verma
            >


            • 3. Re: How to use image as pannel header?
              poonamsheth Level 1
              You can also embed the image in a class and then use it..
              [but its not the right way of prgramming. i mean images should be embedded whenever required,, and not before.] But still the way to do it , can be shown by following example

              -------------
              main1.mxml
              ---------------

              <?xml version="1.0"?>
              <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

              <mx:Button label="Icon Button" icon="@Embed(source='logo.gif')"/>
              </mx:Application>

              --------------
              main2.mxml
              ------------------
              <mx:Script>
              <![CDATA[
              [Embed(source="logo.gif")]
              [Bindable]
              public var imgCls:Class;
              ]]>
              </mx:Script>

              <mx:Button label="Icon Button 1" icon="{imgCls}"/>
              <mx:Button label="Icon Button 2" icon="{imgCls}"/>