TitleWindow with dynamic background gradient

I am new to Flex 4 and how component with sparks of the skin. I'm doing a TitleWindow personalized with a dynamic background gradient in a style sheet.

Is there a way to define a CSS class to a gradientEntry?

This is my actual code for the gradient:

< s:Rect height = "406" d: id = "3" width = "430" x = "0" y = "0" >
< s:fill >
< s:LinearGradient = scaleX = "270" rotation "406,028" x = "214.981" y = "406.028" >
< s:GradientEntry color = "#303030' ratio = '0' / >
< s:GradientEntry color = "#141414" ratio = "0.854545" / >
< s:GradientEntry ratio = "1" / >
< / s:LinearGradient >
< / s:fill >
< s:filters >
< s:GlowFilter alpha = "0.85" color = "#000000" quality = "2" / >
< / s:filters >
< / s:Rect >


It is the result that I want:

titlewindow.jpg

Here is an example of gross that I managed to make it work. It is not sure how ideal, but it seems to work:


http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">

    
        
    

    
        .foo1 {
            bgFillGrad: red,haloOrange;
        }
        .foo2 {
            bgFillGrad: yellow,haloGreen;
        }
        .foo3 {
            bgFillGrad: haloBlue,purple;
        }
    

    
        
    

    
        
    

    
        
    


And I have attached my custom skin of TitleWindow spark, GradTitleWinSkin.mxml. It was a bit too long to paste here. The code that I changed was around lines 244-265, and more I added the following code around line 106-107.

grad1.color = String(getStyle("bgFillGrad")).split(",")[0];
grad2.color = String(getStyle("bgFillGrad")).split(",")[1];
No doubt of the best ways to do it, but it has been fast and apparently worked (even if I don't add any error checking, so I don't know what would be wrong if you spent 0.1, or 3 + colors in the custom style bgFillGrad.)
Peter

Tags: Flex

Similar Questions

  • CSS 3 stencil with a mobile gradient background

    CSS 3 stencil with a mobile gradient background

    How did that made the header of this site on this page?

    http://trentwalton.com/2010/03/22/CSS3-in-transition/

    Hello

    This was done using css3 transitions, see - http://webkit.org/blog/138/css-animation/.

    Attention however, it is not supported by all web browsers not even those more modern such as FF and Opera.

    PZ

  • dynamic backgrounds

    How can I get the most dynamic backgrounds such as those added by default, I'm not for direct background applications I'm looking for those who are as default and is it possible to make your own.

    Thanks in advance.

    Hello. You can use any Photo as wallpaper. Simply view the photo then tap the send box with up arrow. Wallpaper is one of the options.

  • Materialized with dynamic input possible view?

    Hello

    We have some end users have a very complex query of SQL reports (~ 2500 lines) they came with.  We are trying to tune and to create additional indexes as needed.  He has made more than one aggregation of xml and the chain in select statements.  in any case while I'm looking for other methods deal with the problem regardless of a potentially inefficient SQL query.

    In my opinion, they said that the query taking ~ 6000 sec to finish and basically http sessions expire of their web application after 4000 seconds of inactivity.  They have a few dynamic user input from the web page which is fed in the request for multiple WHERE clauses.  So I think we want to have this query that is run in offline mode (after the user input is collected) as well as the results stored in a table, then the wep app can do a simple select query to retrieve data from the table of results later.

    Is there a way to create a materialized view and replace user with some variables bind input and update the values of the variables bind with the participation of the user whenever they want the data, and then refresh the materialized view?  Or if there is a better mechanism for Oracle to run asynchronously this query offline with dynamic input and then store the results in a table?  My problem is that I don't know if they can call a sp and feed the bind values as parameters, but maybe I need to force them to.  I really don't want to process SQL statements dynamic that their request is so great andt hey asked me on GTT, but I was under the impression that the data is lost after each session and probably wouldn't really solve anything.  Thoughts?


    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    Web pages should return something in<5s or="" the="" end-user="" will="" hit="" the="" refresh="" button="" again="" and="" again="" and="" again="" and="">

    Do something like this:

    • store the query to run the sql in a table with the values for the variables bind (parent table)
    • run the SQL in the background via DBMS_SCHEDULER
    • store the results in a partitioned table. (child table) (I assume a large amount of data)
      • for example, use a partition of range interval by sequence ID 1. of the parent
    • update the parent with the status table "Hey, I'm made.
    • Maybe the applicant send an email.
    • Web page queries only the parent table.
    • a scheduled task removes the no-more-required data through DROP PARTITION.

    MK

  • In Photoshop CS6 Hue Saturation does not work with forground/background jitter set to 100%, that no color change is found. Help

    In Photoshop CS6 Hue Saturation does not work with forground/background jitter set to 100%, that no color change is found. I've added a screen Shot the brush settings and a demonstration of what produced the brush.

    I also noticed that when I make a model of a single color, when I fill a selection with the pattern, I get a rainbow of different colors.

    I use a 64-bit version of Photoshop CS6 masters Collection

    I'm on a PC equipped with an Intel Core i7 1366 4 physical cores and 8 wires, 24 GB of DDR memory, A Crucial 512 GB SSD and a NVIDIA GTX 570 with 2 GB of memory.

    The size of the document is 2100 x 1500 pixels in only two layers of 300 PPIBrush Settings.png

    For the issuance of the brush, see apply a Tip in the dynamics of color and see if that makes a difference.

    more information

    Dynamic color in Photoshop CS6 "Julieanne Kost's Blog

    https://helpx.Adobe.com/Photoshop/using/adding-dynamic-elements-brushes.html

    With regard to the model, if your use Edit > model fill, make sure you have not verified Scripted Patterns

    (this parameter is also the Paint Bucket tool in photoshop cs6)

    more on scripted models

    https://tinytutorials.WordPress.com/2014/07/25/Photoshop-CS6-CC-scripted-patterns-fills/

  • Custom background gradient for ToolTip color

    Hello

    I created a custom ToolTip where I use light gray background color.

    (I created a separate custom tooltip component.)

    Now user wants her to be with a gradient effect (is that his name?).

    Basically, this gray color should be darker in the region at the top of the ToolTip page.

    This color goes progressively lighter from top to bottom.

    Can you tell me how this can be done?

    Thank you and best regards,
    Amey

    Hello.

    Sorry, my mistake - I guess you use flex 4.

    This message tells you how to add a gradient to a background of vbox: ers http://butterfliesandbugs.wordpress.com/2007/06/08/generic-background-gradient-for-contain /

  • The existing video (with sound) creation in phase with a background music track

    You want to add a video with sound (movie maker) be in line with existing background music.  Someone singing a song in sync with an existing musical track

    Hi Michael,

    1. What is the operating system installed on your computer?

    2. using Windows Live Movie Maker?

    Please post with more information on this issue to get help.

  • Solitaire opens with a background - but "does not.

    My Solitaire Microsoft opens with a background - but she does NOT really open for a game. It is said ' does not ' after I go to the Task Manager.  I have Windows 7 on a 32-bit (do not know if this is important) on a Toshiba Satellite

    I worked like a champ until about three, four days ago.

    Thank you

    Billp545

    Hi Billp545,

    Welcome to the Microsoft Answers site!

    You are able to open the other built-in games on your computer?

    Method 1:

    You can try to turn Windows feature turned off and switch on and check if that helps.

    To enable or disable Windows features, follow these steps:

    1. Click the Start button, select Control Panel, click programsand then click Windows turn on or off features. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. To turn a Windows feature, select the check box next to the feature. To turn a Windows feature off, clear the check box. Click OK.

    Later, turn it on and check if the problem is resolved.

    For more details follow the link below.

    Turn on or off Windows features

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    Method 2:

    If this does not help, then this could happen if all of the background program is causing the problem persists try booting the computer to start clean and control which program is causing the problem.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    The steps to perform a clean boot are given below:

    1 log on to the computer using an account with administrator rights

    2. click on start, type msconfig.exe in the start search box and press ENTER to start the System Configuration utility.

    If you are prompted for an administrator password or for confirmation, type your password, or click on continue

    3. on the general tab, click Selective startup, and then clear the check box load startup items. (The check box use the file Boot is not available.)

    4. on the Services tab, click to select the skin all the Microsoft services check box, and then click Disable all

    Note: Following this step lets services Microsoft continue to run. These services include networking, Plug-and-Play, record of events, error reporting, and other services. If you disable these services, you can permanently delete all restore points. Do not do this if you want to use with existing restore points system restore utility

    Once you start office check if the problem persists, follow the steps in the article and find out which program is causing the problem.

    For more information about the clean boot, follow the below given link:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. click on start, type msconfig.exe in the start search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    2. on the general tab, click the Normal startup option, and then click OK.

    3. When you are prompted to restart the computer, click on restart

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • All my ICON Office descriptions are changed to white lettering with blue background. How can I change this back?

    All my ICON Office descriptions are changed to white lettering with blue background. Don't know how it happened. I would like to have black letters with NO background (background right). How can I make changes?

    Try the following:
    Right click on "My Computer"-> properties-> (Advanced tab)->
    Then click on 'Settings' in the section 'Performance '.
    Then click on "Custom" and make sure that in the window below (you may need to scroll) that there is a tick next to "shadows fall to use the desktop icon labels.

    HTH,
    JW

  • Custom with a background image button had a white area around it

    Hello

    I have a screen with a black background and I am trying to add a custom button with a background image on it. But the custom button has a white border around it.

    Is it possible to remove this white border or black?

    Thank you

    Is the custom field button only focusable, or do you see it too when she does not have focus? Try drawFocus() substitution if it is only when he has developed there.

  • L2l between an ASA 5505 and WatchGuard XTM330 with dynamic IP

    Hi guys,.

    I looked for a solution on this one but can't find inappropriate, most of the discussions were old and with dead links to the solution.

    We have an ASA 5505 with static IP address on the outside and a customer who have a WatchGuard XTM330 with dynamic IP address to the outside.

    Is it possible to have an L2L VPN between our ASA and the WatchGuard when he has a dynamic IP?

    I have no experience on the series of WatchGuard,

    so, I am very grateful for any answer!

    Thanks in advance and have a nice day

    BR

    Robin

    Hi Robin,

    Here are the links you can make reference when configuring static to the dynamic VPN tunnel: -.
    http://www.Cisco.com/c/en/us/support/docs/security/ASA-5500-x-series-next-generation-firewalls/112075-dynamic-IPSec-ASA-router-CCP.html

    This one is with Pix on the remote side, but the configuration will remain the same on the local side: -.
    http://www.WatchGuard.com/docs/4-6-Firebox-CiscoPix.PDF

    Kind regards
    Dinesh Moudgil

    PS Please rate helpful messages.

  • problem with the background intelligent transfer service

    My computer is current only. I checked to see if a problem happens and ran the following messages:
    Potential of database of Windows Update Error 80070002 detected 0 x
    Windows Update needs to be repaired
    Problem with (BITS) Background Intelligent Transfer Service
    I'm using Windows 7 Home Basic Edition
    Service Pack 1
    64-bit operating system

    reference http://support.microsoft.com/kb/910336

  • VRF support IPsec with dynamic VTI

    Hello

    I am Configuring IPSEC compatible with dynamic VTI e VRF. I followed the guidelines of the document

    http://www.Cisco.com/en/us/docs/iOS-XML/iOS/sec_conn_vpnips/configuration/15-2mt/sec-IPSec-virt-tunnl.html#GUID-C0A165BF-5866-4B13-BD73-0892B7E65488

    According to the example: "taking VRF support IPsec with a dynamic VTI when VRF is configured under year ISAKMP profile" I should be able to configure the features of the vrf and virtual-model under the same crypto isakmp policy.

    Unfortunalety, if I try to do, I get the following message

    R4 (conf-isa-prof) #virtual - model 1

    % VRF already set to isakmp profile. Unauthorized virtual model

    Is anyody knows why I'm not able to follow the configuration of this example?

    Here's my profile setup and configuration of the virtual model

    Crypto isakmp profile

    VRF HAS

    A Keyring

    function identity address 192.168.0.2 255.255.255.255

    type of interface virtual-Template1 tunnel

    Unnumbered IP Loopback2

    ipv4 ipsec tunnel mode

    Profile of tunnel ipsec protection has

    I do the test on the router of runningon 3725 XW3 IOS 12.4 (11).

    Thank you in advance for advice.

    Concerning

    Lukas

    Lukas,

    I don't know, but probably this was not yet supported 12.4.

    The document you're viewing is for IOS 15.2. I don't know by heart if your 3715 can run 15.2, if not give 15.1 (4) Mx to try?

    HTH

    Herbert

  • ASA - s2s vpn with dynamic ip - Dungeon tunnel upward

    Hi guys,.

    We want to set up a vpn between our central asa5520, and a new branch office asa5505 with dynamic public ip address.

    This type of configuration is supported, but the tunnel can only be initiated from the asa distance (the asa central do not know how to reach the asa remote).

    prove that on this vpn also transit traffic voice, we must always maintain the tunnel.

    A solution would be to have a kind of continuous ping from the remote office to the central office... is more 'professional' wat to reach our goal?

    Thank you.

    Try, 'management-access to the inside' of the asa and ping

  • DMVPN with dynamic failover HSRP/IPSEC

    "DMVPN with dynamic failover HSRP/IPSEC."

    Hi all. Is this possible? When you use a direct IPSEC LAN to LAN, you have a card encryption and when you secure the card encryption at the source of the tunnel interface, you configure "' crypto map redundancy with State '."

    The DMVPN does not use encryption card, sound by using an IPSEC profile with protection of tunnel. How you configure stateful with HSRP IPSEC in this situation?

    We're heading for a double cloud dmvpn topology with 2 heads dmvpn geographically separate. I want that every network head to have a redundancy HSRP, which can be done fairly easily. But I also want State IPSEC to be replicated for all security associations IPSEC do not fall in the case of a failover. Is it possible in this scenario and how?

    Thanks a lot as always.

    Hello again ;-)

    There are currently no plan at the moment (that I know) to mix with State redundancy and anythign with protection of tunnel.

    Frankly it is best to create redundancy in DMVPN termination on both turntable and relying on routing protocols - which I am sure you aware of so I won't bore you with details.

    That said, my personal observation is - if you want a failover go to ASA, when you have routers, you have all these wonderful tools like VTI/GRE for IPsec that mix well with routing protocols, and MUCH MUCH more. It is very often to change some timers for routing protocol driven "failover" happen very quickly.

    Marcin

Maybe you are looking for

  • Lost Japanese input

    Hello I lost my Chinese & Japanese entry from my mac os x 10.11.6 (15-1004). > System Preferences > keyboard > input source. Could not find any Chinese and Japanese... I can't do a job, how to solve this problem?

  • HP envy phoenix 860-170vr: errors

    I just got this desktop, hp Envy Phoenix 860-170vr and I have any other problems. Dozens of error messages and I can not use more then 5 minutes and it stops any kernel or another error. I received many mistakes, including the failure of the core of

  • 15 ak085na: 15 - ak085na RAM

    I just bought the pc above curries and thought that I would put a little more ram, so first of all it's a sealed pc doesn't cover the back so I have a few questions the motherboard has at least 2 ram slots Whats the max ram supported ddr3L amout it c

  • Print the story.

    Can someone tell me how to print a paper copy of all the www. sites listed under Favorites / history, so I don't have to write them all? Thank you

  • HP Solution Center help please

    I have a HP Photosmart C4680 connected to my HP desktop computer (model # SR5703WM) Vista Home Basic served Pack 2 32 bit, HP Solution Center has BEEN working as gold for a while, then one day and since then, never worked again. When I double click o