How to set backgroundImage URL s:BorderContainer

Hello

I read many examples on the web showing how to set a background image on s:BorderContainer using @Embed ("image.xxx"), however, how can I load a background image from a URL?

Example:

< s:BorderContainer
ID = "bc".
' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
Width = "150".
height = '150 '.
cornerRadius = "25".
borderColor = "#1E84E8".
borderWeight = '5 '.
"backgroundImage ="http://mydomain/myimage.jpg"
>

< / s:BorderContainer >

Thank you.

[]'s.

OK, here's a version for the web, and note I put the background image properly rather than simply to add an image to the displalist





    

        

    

    

    


Tags: Flex

Similar Questions

  • How to set the url for different environments such as DEV, PROD etc using the file resources in SSRS. How we determine the environment?

    While working with SSRS reports, I would like to store the URL once in a variable environment level and have all read reports from there. How this could be done. I think that by adding the resource file, that this might work. But how do we identify which URL should be invoked in varied such as DEV, TEST, PROD environments?

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the following link for assistance:
    http://social.technet.Microsoft.com/forums/en/smallbusinessserver/

    I hope this helps!

  • How to set the &amp; quot; setContentPath &amp; quot; with a URL parameter

    Hey,.
    I have a video player (video_player.swf) with the component playback flv in it. I was wondering how to use the URL to set the parameter "setContentPath". While I didn't have to make a separate video player for ever flv on the site. I didn't know if I could add a listener to the URL or something so that I could put it like /player/video_player.swf?video_id=1

    Thank you very much people P.S. I need that's before the end of the month.

    OK, here's the html part of the process:
    http://www.polar-lights.com/FLA/URL.html

    Here is the flash part:
    vid.contentPath = _level0.movie;

    vid is the name of the instance of the FLVPlaybackComponent
    _level0. Movie is a variable passed in the url string - it would look like:
    http://www.yoursite.com/filename.html?movie=flvfilename.FLV
    See how after the html page you ger the? film - which is the variable passed in flash. Be sure to use the HTML code on the top of the sample page in order to pass the variable into the SWF.

  • How to set the default android home page.

    How to set the home page in the latest browser of firefox for android?

    Hello:

    Unfortunately you can not remove the top sites home page but you can pin a site, remove a site from unpin it and change the url of a pinned site.

    Please read this article for instructions.

    I hope this helps!

  • How to set cookie in WebView waterfall?

    Hello

    I want to create the component webview using QML and I need to run multiple applications in Web mode and each webview have a different set of cookies.

    Now my question is:

    How to set up cookies in each webview?

    I Googled it but not any example or index. Please help me to move forward. An example would be appreciated.

    You should grasp the object of the Web view settings.

    WebCookieJar pot = webview-> storage()-> cookieJar()

    jar-> setCookiesForUrl ('my url', QStringList())

  • How to set background for container

    I want to do two things:

    (1) to set the background of a container like a solid color

    (2) set the background of a container like a png image

    How this is done? I'm going crazy over this. In android and and regular development of bb is so simple.

    Help, please.

    Hey shethab,

    Don't sweat it that we have all been there! Here's how you set the background color of your application. Where there are two ways:

    First define the metadata to a background color like this:

    package{   import flash.display.Sprite;
    
      [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")] public class MyApplication extends Sprite
    
          public function MyApplication()       {         (...)
    
          } }}
    

    The background is in the same format as the color of the HTML. The second way is by creating a shape object that is larger than the screen and adding that the first child in your program as follows:

    package{   import flash.display.Shape;   import flash.display.Sprite;
    
        [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class MyApplication extends Sprite {         public function MyApplication()       {
    
              var appBackgroundColor:Shape = new Shape();
    
              appBackgroundColor.graphics.beginFill(0xFF0000);          appBackgroundColor.graphics.drawRect(0,0,1024,600);           appBackgroundColor.graphics.endFill();
    
              addChild(appBackgroundColor);
    
                (...)     } }}
    

    To add an image is as the second step only by using the Image class as follows:

    package
    {
        import flash.display.Shape;
        import flash.display.Sprite;
        import flash.filesystem.File;
    
        import qnx.ui.display.Image;
    
        [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]
        public class MyApplication extends Sprite
        {
            public function MyApplication()
            {
    
                var appBackgroundImage:Image = new Image();
    
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('path/to/image.png').url);
                appBackgroundImage.setSize(1024,600);
                appBackgroundImage.setPosition(0,0);
    
                addChild(appBackgroundImage);
    
                (...)
    
            }
        }
    }
    

    hope that helps! Good luck!

  • Eclipse plugin Simulator - how to set up the network

    Hi I installed Blackberry JDE Eclipse plug-in successfully. My test app works fine on Simulator until he tried to open an HTTP connection to a URL (a real web address like www.google.comor localhost):

    Here's the code I used:

    S StreamConnection = null;
    Try

    {

    s = (StreamConnection) Connector.open (getUrl ());

    HttpConnection httpConn s = (HttpConnection);

    State int = httpConn.getResponseCode ();

    ...

    }

    So my question is how to set up the simulator so that it can open the connection to the network.

    Of BlackBerry MDS Simulator is packaged and installed with the plugin Eclipse and can also be downloaded separately if necessary. You can configure to start the MDS Simulator with your simulator of aircraft in debug/run dialog box. For more information about these steps, see the Eclipse plug-in for the next topic test a BlackBerry Application that uses an HTTP connection.

    To understand the parameter deviceside and information about network gateways, see the following resources:

    DB-00396: that is - different ways to establish an HTTP connection or socket
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    Video of transport network:

    http://NA.BlackBerry.com/eng/developers/resources/VideoLibrary.jsp#tab_ddetail_subtab_jde

    On BlackBerry's wireless data Transport Management - Part 1

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe?func=LL&objid=832210&objAction=browse&s...

  • How to set the value of QUERY using PL/SQL process?

    Hello

    I use APEX 4.2...
    How to set the value of the REQUEST using process of PL/SQL which lies before the header - where the value of the REQUEST should appear on the URL?

    Kind regards
    Fateh

    You cannot set a value of demand in a PL/SQL block. You can run a PL/SQL block on a request which is the id of a button for example.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Can I set a URL scheme for a viewer Android application?

    Hello world

    I want to be able to open our notice of another application Android app.  How to set a pattern of URLS for Android?

    When we are going to create a new view Android app it is not the "diagram of URL field optional" that we use to set the type for our iOS app.

    Is it possible to define a URL scheme in Android?

    Best,

    Paul

    Hello Paul,

    The custom URL scheme is offered by the iOS platform and not for android.

    You will not find this option in the Dps android app generator.

  • Apex - how to set hide and show checkboxes at the event button

    Hello


    How to set up HIDE/SHOW check boxes when click on the events button. (apex)

    If I press the button and then the box will appear.
    If I press it again then check box will be disapper.
    Can u please help me solve this issues in the APEX.


    Thanks in advance.
    concerning
    r

    My steps:

    1 create the point of the box
    LOV:

    select 'orange' d, 'orange' r
    from dual
    union all
    select 'apple' d, 'apple' r
    from dual
    union all
    select 'banana' d, 'banana' r
    from dual
    

    2. create the region button. Specify the redirect URL and URL target as #.

    3. create a dynamic action

    Advanced

    Event: Right click; Selection type: jQuery Selector; Select jQuery: button [value = "Toggle"]<-- where="" toggle="" is="" the="" label="" of="" my="">
    Action: Run the JavaScript Code. Fire when the Page loads: uncheck the box. Code:

    var ele = $('#P34_FRUIT');
    
    if (ele.css('display') == 'none'){
         $x_Show(ele);
    } else {
         $x_Hide(ele);
    }
    

    Leave the rest and click on create

    Click the button to see it disappear and other things (not tested in IE).

    I did sample: http://apex.oracle.com/pls/apex/f?p=23834:34

  • How to set the background image in the window title?

    Hello

    I am a beginner in flex. I use Flex 4.

    Can someone give me some advice on how to set the background image in the title window?

    Is it possible to do?

    Thank you.

    Hello

    Check the code in the example below


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
       
           
       

       
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";

    s | {BorderContainer
    background - image: embed(source="image/wheres_the_green_rez.jpg");
    background-image-fill-mode: clip;
    }


       
           
       

    Kind regards

    Anitha

  • How to set up channels with Spring-Flex?

    Newbie here to try and get my first Flex/BlazeDS operational application.   I think that I have correctly configured my servet and Remoting destinations using Spring-Flex integration.  My only remaining questions are how to set channels.

    The use of the spring/BlazeDS integration means that I don't have to have a remoting-config file. XML more.  But it the documentation is not clear as to if I have to configure my channels in a services - config.xml still file.

    If I need a services-config file. XML (and I think I do), how can we get away without hard coding the server URL?  I've seen samples on the web such as:

    "URL ="""https://\{server.name\}:\{server.port\}/flex2gateway/cfamfsecure '


    But I did not when/where/what the dynamic substitution?  They look almost like Maven properties or the spring, but they may not be.  It's just something that needs to be changed manually after the installation?

    Finally, I don't really like the idea of compiling the Flex client against a configuration file on the server side as I saw suggested on the web.  How would we have the Flex client discover - or if not to understand what he must do it dynamically?

    Sorry for the post multi-question... Thanks for any help!

    Do not configure a set of channels, but you can do it in your Flex client rather than code in the file services - config.Xml. Here is some information on some ways to do this:

    http://help.Adobe.com/en_US/LiveCycleDataServicesES/3.1/developing/WSc3ff6d0ea77859461172e 0811f00f6e876 - 7fecUpdate.html #WSc3ff6d0ea77859461172e0811f00f6e876-7fdbUpdate

    Look at the section called "channel on the client Configuration.

    Regarding the tokens in the definitions of channels in services - config.xml:

    {server.name} and {server.port} resolved when running on the server and port used to load the SWF file.

  • How to set the parameter reset?

    I put the (url, clipStartTime, clipEndTime) alone in the StreamingURLResource class

    How to set the parameter reset? I want to NetStreamPlayTransitions.APPEND set

    THX

    Mike.

    This is not currently supported with OSMF.  You use this feature (APPEND) regularly?  If so, you can file a request for improvement with use case here?  Thank you!

  • new update of Apple Watch doesn't have My Watch tab. I can't understand how to set up friends or family ring

    I updated my Apple Watch with the latest version of the software that is 10 IOS. But the last update did not My Watch tab in the settings. I can't understand how to set up friends or family ring? Any help on this will be appreciated.

    Hello

    IOS 10 (as in the previous version of iOS), My Watch tab is located in the application of the watch (not in the settings).

    If you have also updated your Apple Watch to watch OS 3, note that the application of friends (accessed via the side button, with a circle of people) has been removed from the watch and that there is no direct replacement for this feature.

  • How to set one of my pictures as a screen saver

    I can't understand how to set one of my own photos as the screensaver on my iMac... How do I do it please?

    System Preferences > desktop and screen saver > screen saver > select one of the modes that uses a table > screen saver Options > choose a folder...

    Made in regards to the BONES of the Mavericks.

    Clearly, it will work best when you have more than one image.

    I guess you mean screensaver and no paper painted (preferably same group)?

Maybe you are looking for

  • new language support

    Hello I am from Luxembourg. A small country in Europe. For us here, it is difficult to find any electronic device that supports our Luxembourg native. So go instead of German or in french or in English. So I wanted to ask if there is any possibility

  • HP M225dw: We try download the drivers to connect a MacBook to the M225dw printer we just bought.

    We try to download driver software to connect MacBook OS 10.10.5 Yosemite to the HP M225dw printer we just bought. It printer is set up. We arrive at the download page, and there is no download button next to the Hp Easy Start or next to the full tex

  • Could not launch the KDL-46HX729 3D experience

    When I try to run on my KDL-46HX729 3D experience, I get a pop-up window saying 'your Sony BRAVIA TV is in need of a software in order to receive more new and exciting content update. [Update now] [Latest update] ». If I take now updated, need me to

  • Time capsule assigned IP but no internet

    I'm in a two-story house where the wireless network may not extend between the upper and lower floors, so I bought an additional TC A1470 in addition to my express A1392 to connect via ethernet cable from 25 meters from my router upstairs. When I han

  • NI 9505 H - full-bridge brushed DC Servo Drive Module - hardware recommendations

    I don't know anything about the motor, motor control with PID, so I would like to start learning something (hands-on), so I bought NI 9505 from eBay.  Now, I want to buy are the hardware to start but I'm not really sure to know what brand/model shoul