How to set backgroundImage in flex 4..?

HI.,
              I am using flex 4 sdk,to set backgroundimage in  hole application,using this
  <fx:Script>
       <![CDATA[
            Application
                background-image: "assets/Green Apple.jpeg";
             ]]>
    </fx:Script>
error diplay Label must be simple identifer..
how to solve this.,
With Regards
LinFlex-

Hi,
You should set the background in a skin(the flex 4 way ), the following link will help.
http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in- flex-gumbo/
David.

Similar Messages

  • Flex 4 Mdi canvass, how to set background image..?

    Hi.,
         Now i try to use mdi canvass  background image,how to set  background image in mdi canvass in flex 4..
    With Regards
    LinFlex-

    In the past flex 3 version, there is an attribute call <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    to set it. However it has problem in Flex 4 because of 'halo' and 'spark' theme library changed.
    The following is my post that still haven't found the answer.
    Dear all,
    We  have a project that doing migration from flex 3 to flex 4. We use  flexlib the latest version of
    flexlib - 2.5 - flex4.zip.
    However we  confronted problems that several of attributes that flex 4 doesn't  support:
    Constraints are listed as follows:
    1) <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    2)  <flexlib:MDICanvas backgroundSize="auto"/>
    3)  <mx:ApplicationControlBar barColor="#000000">
    original error message:
    ====================================================
    Description     Resource    Path    Location    Type
    The style 'backgroundImage' is  only supported by type 'flexlib.mdi.containers.MDICanvas' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 242    Flex Problem
    Description    Resource    Path     Location    Type
    The style 'backgroundSize' is only supported by type  'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'.     MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 242     Flex Problem
    Description     Resource    Path    Location    Type
    The style 'barColor' is only  supported by type 'mx.containers.ApplicationControlBar' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 227    Flex Problem
    Regards,
    Man  Pak Hong, Dave
    manpakhong
    [email protected]

  • How to set multiple styles on a single component in flex ?

    Hi ,
    I would like to know how to set multiple styles on a single component in flex.
    Can anyone give me an example as to how to set multiple styles for a single component ?
    Thanks ,
    Regards,
    Ajantha

    Hi tuliptaurus,
    You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
    btn.setStyle("styleName","blendButtonSkinOther");
    You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
    blendButtonSkin {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    blendButtonSkinOther {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    Thanks,
    Bhasker Chari

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • How to set custom size of Close Button e.g. 32x32  of Title Window in Flex 4

    How to set custom size of Close Button e.g. 32x32 of Title Window in Flex 4?

    Hi
    Here is the code of the Button in the skin class of spark title window.
    <s:Button id="closeButton" skinClass="spark.skins.spark.TitleWindowCloseButtonSkin"
                              width="15" height="15" right="7" top="7" />
    So first change the default height and width from 15 to 32. Then in the Button Skin class i.e. spark.skins.spark.TitleWindowCloseButtonSkin change paths to modify the cross symbol.
    Hope this helps
    Rush-me

  • Flex 4: How 2 Set Application Height/Width with Script?

    I am new to Flex 4 and going through the 3 to 4 migration pain.
    I need to set the size of my application programmatically. In Flex 3, I did it this way:
    mx.core.Application.application.width  = theWidth; (equivalent for height).
    I can not figure out how to do this with Flex 4. Searched high and low.
    Help, please! TIA
    Bruce

    You can use this.height and this.width properties.

  • How to set image in title of Panel in flex 4

    Hai Friends,
    I don't how to set title have image in  Panel(spark panel) of flex 4 , so please any one help to me  ...and send code...
    { normally title =" something text" but my case title="some image come here"  }
    Thanks & regards,
    Magesh R.

    You need to set the icon property to a Class variable that is the image (embedded image).

  • Need help: Flex  record webcam problem, how to setting Brightness,Contrast,Saturation and Sharpness

    Hello, dear all
    Please help me!
    Flex  record webcam problem, how to setting Brightness,Contrast,Saturation and Sharpness?
    nsOutGoing=new NetStream(nc);
    nsOutGoing.attachCamera(m_camera);
    nsOutGoing.publish(filename, "record");
    I want to control the Brightness,Contrast,Saturation and Sharpness for the recorded flv file.
    At present, I only can control the videodisplay object, but I can not able to control Camera.
    Thanks very much!!
    kimi
    MSN: [email protected]

    Can I change a Video object to to Camera object, If yes, How do??
    nsOutGoing.attachCamera(video as Camera);// it does not work rightly
    thanks

  • How to set Css in mobile device + OS  using Flex 4.5 Mobile

    Hi,
    how to set Css for mobile device + OS
    is it possible
    @media (device : "IPAD") and (application-dpi: 160) and (os-platform: "IOS") { }
    Can anyone help to me.

    BorderContainer wont resize if the fixed width is specified, if u want to give some minimum width you can use minWidth . Give  Width = "100%", now it will get Resizing capabilities

  • How to Set Default Value in DFF

    Hi Experts
    I have a requirement to Default the DFF field value as No on Iprocurement Requistion Headers Page.
    I followed the below steps to enable the field. Please help me where can we set the initial value as NO.
    Please help me how to set the default value as No and we would aslo want to give flexibility to the user to change it to Yes if they want to.
    Any Help would be greatly appreciated.
    http://oraclerocks.blogspot.com/2008/04/adding-dffs-to-oaf-pages.html
    Add DFF to iProcurement Requisition header in the same way. Define a DFF again:
    1. Create a new Value Set.
    2. Define Values for the value set created in step 1.
    3. Add Value Set to the Flex Field Segment in Application: Purchasing and Title: ReqExpress Headers.
    4. Freeze and Compile the FlexField definition.
    The steps to enable DFF in IP HTML pages are as follows:
    1. Enable profile Personalize Self-Service Defn to yes at the user level
    2. Log in to iProcurement
    3. Go to Checkout: Requisition Information page
    4. Click Personalize Page at the top of the page
    5. Look for Flex: (ReqHeaderDFF)
    6. Click Edit (Pencil)
    7. Change Rendered from false to true8. Click Apply
    9. Click Return to Application
    Regards
    Krishna

    Hi Gaurav
    Thanks for your quick reply. I did a different solution just by adding value set with Pop List and attached to DFF segment. The value set that I created is for single value saying Yes. So on the page by default it will display NULL. If user want to select a value then they will select Yes from the pop list. On that same region I created TIP and left a note.
    I will follow the approach that you mentioned, for my future extensions. Thank you for your help again.
    Regards
    Krishna

  • How to display reply in flex data grid?

    Hello All,
    Frompast couple of months i am working on a Flex Application which used MySQL databse and PHP as server side language. In this application user can login and they can post their comments which will be displayed in a datagrid. This will have a reply button where other users can send their reply. My problem is how i will be displying the reply of a msg in a datagrid. Here is the screenshot of my datagrid
    I thought of 2 options:
    1. Displaying the reply in the datagrid and disaply in the same row: i don know how we can do this.
    2. Store all the replies in data base and display in toher panel though a button. From flex side it is easy to do but i don know how i can store them in database.
    Please let me know if you have any ideas/tutorials on this

    This is only in theory, haven't actually checked it but I think it could work
    If each one of those posts is done by an itemrender, your renderer can have 2 states stateone and statetwo for example.
    The reply state (statetwo) being bigger and containing space for the reply post.
    Store your replies in the database and have another boolean column ( Tinyint(1) or something) in your MySql db indicating that a particular post has a reply . When you pull your data from the database and put in in an arraycollection check this column for each post and use it to set the state of the itemrenderer.
    That way posts with no reply with be state one, and posts with replies will be state 2 and you can populate the reply field with data from the object in your arraycollection.
    I suppose it all does depend on how you get your data from MySQL and how you store it in Flex but I think states is a way you could accomplish things like this.

  • How to set XML.ignoreWhitespace = false; in HttpService /Result?

    Please ask these kind of questions on flexcoders or the Adobe Flex Forums.  This is for development of the SDK itself.<br /><br />Matt<br /><br /><br />On 11/17/08 12:56 AM, "venubwal" <[email protected]> wrote:<br /><br />A new discussion was started by venubwal in<br /><br />Developers --<br />  How to set XML.ignoreWhitespace = false;  in HttpService /Result?<br /><br />I want to carry/preserve Leading & trailing spaces<white spaces> in event's result....<br />I am using service as :<br />_webService = new HTTPService();<br />_webService.url = serviceUrl;<br />_webService.method = "POST";<br />_webService.resultFormat = "e4x";<br />......<br />...Again i am checking it as -in<br />private function serviceResultHandler(event:ResultEvent):void<br />        {<br />        stopExecution();<br />        var doc:XMLDocument = new XMLDocument();<br /> doc.ignoreWhite = false;<br />        XML.ignoreWhitespace = false;<br />doc.parseXML(event.result as XML);<br />       Alert.show(event.result.toString(),"....serviceResultHandler...");<br /><br />But, i am not able see L&T spacesin alert() where I can see L&T spaces in Servlet/Java side which assigned as metaResponse<br />as....<br />      OutputStream writer = response.getOutputStream();<br />      OutputStreamWriter outputStreamWriter = new OutputStreamWriter(writer,"UTF-8");<br />JaxbSerializationUtil.serializeObjectToWriter(outputStreamWriter, metaResponse);<br /><br />________________________________<br />View/reply at How to set XML.ignoreWhitespace = false;  in HttpService /Result? <a href=http://www.adobeforums.com/webx?13@@.59b70bd4><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b70bd4!folder=.3c060fa3>  form to cancel your email subscription.

    By Using XML.ignoreWhitespace = false; <br />I am able to Store/Carry/Save L&T white spaces in XML and i can retrive values with whitespaces...<br /><br />It is in case of loading from Java<DB> to Flex.<br /><br />But the actual problem is with xmlObject.toString()/toXMLString()<br />is not able to carry whitespace, while it should carry as parameter to Java Servlet..so that it can be get using request.getParameter() [..then it is serializing/deserializing]<br /><br />So, how i can preserve the L&T whiteSpaces on XML.toString()/toXMLString() method.<br /><br />OR else<br />How we can set Http request attribute in Flex, so that we can use ( AnY_Object)request.getAttribute()...

  • How to set up BlazeDS project in FB3?

    Hi ,
    I want to start a new project with Flex,BlazDS and web
    service. web servces are located in other server by SOAP.
    I have install BlazeDS in local pc and I do not have a idea
    how to start set up in Flex Builder and do the project.
    Please help me .Thanks a lot
    Mark

    Hi,
    You don't need BlazeDS for accessing web service unless you
    want to use the proxy service of BlazeDS, for accessing the web
    service. Please check out the URL below for details on how to
    configure FB3 for projects that use server technologies.
    http://learn.adobe.com/wiki/display/Flex/Creating+Flex+Builder+Projects+that+Use+Server+Te chnologies
    Hope this helps.

  • How to attach a Key Flex Field to Descriptive Flex Field

    Hello,
    I would like to know how to attach a Key Flex Field to Descriptive Flex Field(when I click my DFF, I should see my accounting KFF values) using forms personalizations in 11.5.10. It would be great if someone could help me.
    Thanks,
    SJ

    I'm not sure what you mean by referring to forms personalization. If your requirement is simply to be able to enter an accounting KFF via a DFF then you need to attach a value set of type 'Special' to your DFF segment. These are much trickier to get right than other value set types so I would suggest some careful reading of the flexug and also taking a look at some of the seeded value sets of this type.

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

Maybe you are looking for

  • Operating system causes loss of data during writing to file continuously

    Within a while loop I read data from serial port (9,5KByte/sec, bluetooth dongle via serial port protocol) and writes them to a file (text-file) continuously. The operating system interrupts the while loop periodically which causes a loss of data. If

  • To Replicate Material DATA from SAP R/3 to SAP-BW

    Hello, I need the Material Master data from SAP R/3 in SAP BW. The material Data is to to moved in Info object: 0MATERIAL. In SAP R/3 the data for material is stored in table:MARA. Which Business content needs to be activated in BW. Please give the s

  • Only top left quadrant of AVI DV files shows in High Quality mode

    I'm having the same problem as this person: http://discussions.apple.com/thread.jspa?messageID=3396179&#3396179 AVI files that have NTSC DV video in them only show the top left quarter of the image throughout playback when I have checked the "Use the

  • How to find the executable file /usr/bin/7za in Solarsis?

    Hi All, We are trying to install the Oracle 10 g release.Before installation ,it needs some system requirements.In that way ,Using the following command to add the package in Solarsis pkgadd -d SUNWi1cs However, we got the this type of error, # pkgad

  • IPhoto 5 & 6

    Hi, I am using iPhoto 5 on my first generation MacMini at Home. At the same time, I have a MacBookPro with iPhoto 6. My MacMini is attached to an external Harddisk which stores all my iPhoto & iTunes Database. Recently, I used my MacBook Pro to acces