Objects Overlay within Flex (foreground/background)

Hello,
I am new to flex programming so please forgive me if this
question is out of place, newbish or just plain stupid.
Within my flex application, I want to change to a veiw, and
in that view I want to expand a panel, so that it fills the
majority of the application size.
The problem is when I resize this panel in the view, most
other objects in my application show over it, i.e. the panel itself
is not at the front of the foreground.
So my question is, how can I send the form object to the
front of hte object layers, is this possible at all?
Thanks in advance,
Matt.

Only Canvas (or Application or panel with layout='absolute')
allow children to overlap.
The simplest way to control ghis is the order in which the
children are rendered: the latest goes on top.
You might also look at the swapChildren() method of some
containers.
Tracy

Similar Messages

  • How to render a pdf file within flex

    Hi,
    could any one suggest, how to open a pdf file within flex.
    we have an application built on flex3.
    please suggest.
    regards,
    John

    Hi,
    Is it a Flash or AIR app?
    If it's an AIR app, then use the HTML/web, where you then can navigate to the URL of your PDF.
    If it's an Flash app, then set the wmode to transparent: http://kb2.adobe.com/cps/127/tn_12701.html#main_Using_Window_Mode__wmode__values_
    And then create an iframe in your HTML page, where you load you PDF, set the iframe z-index, so it gets shown on top of the Flash object. Then you kan use the javascript bridge to interact with the iframe.
    Best regards
    Martin

  • How can I get the foreground/background swatches in my panel?

    Howdy all-
    Been loving this forum, it's been extremely helpful getting started with Configurator. I'm pulling together a panel for my students to guide their retouching work and the last thing I am trying to get in is the foreground/background swatches like at the bottom of the toolbar. Is this possible? I haven't found it in the provided libraries- is it something that would need a script or am I looking in the wrong places?
    thanks so much again for the forum and any help anyone can provide.

    Hi
    You can only switch foreground/background color   or   set them to default color
    As in the previous thread ( by ipf55 )
    you have the possibility to insert the color picker.
    so the workaround is :
    switch to foreground ( or background as you prefer)
    choose a color with the color picker button (Now the foreground is  set with the color you choosed)
    then repeat te step for the background
    to choose a color you could also ( e.g.) insert into your panel a button that open the swatches panel
    This is the link to develop a panel with the caratheristic i suppose you are looking for
    Adobe® Photoshop® Panel Developer's Guide
    http://www.adobe.com/devnet/photoshop/pdfs/photoshop_panel_developers_guide.pdf
    ( go to pag 26-The Color Picker Panel tutorial)
    You could also take a look to the link to  adobe exchange I mentioned in the thread  above

  • When I go into bookmarks and click on a, the screen shows what appears to be a compass with a lock overlay, on a black background. At the bottom the address/url are shown. Theses cannot be opened. Other bookmarks have the black background and compass, but

    When I go into bookmarks and click on a site, the screen shows what appears to be a compass with a lock overlay, on a black background. At the bottom the address/url are shown. Theses cannot be opened. Other bookmarks have the black background and compass, but no lock. These can be opened by clicking on the compass. What is wrong?

    Thanks to the-edmeister and cor-el, for speed of response. I had not inadvertently moved the Bookmarks-Toolbar : I was confronted with the situation right after Firefox 9 had installed and unfolded in front of me. At first, the toolbar area looked reassuringly familiar, but when I started normal work, I discovered the lack of tabs and the only reference I could see to TABS was a tiny button inviting me to group tabs (which was unhelpful to say the least, filling up the screen with tiny unreadable windows). Sure, there were tabs forming, but they were invisible, unless I used the group button. Eventually, I was brave enough to use "reset toolbars" and the tabs came back in the way I want them, but it was a traumatic 2-3 hours out of my life. I kept on "adding a new toolbar" to see if I could make use of it; I kept giving them names, but it is impossible to see where the new tool bar is! (the toolbars don't have a little bit to grab at one end). In my opinion, Firefox should not have allowed the Tab Bar and the Bookmarks Toolbar to become caught up with each other - they have completely different functions. I don't think I would like to play around with "Make a new profile"! I was so desperate that I have already downloaded version 3.6 again, ready to install, for if I was unable to resolve the version 9 problems above.

  • Oracle SQL Developer (Not seeing object names within the interface)

    Hello,
    I was finally able to perform an export/import from our production environment to our training environment. Anyway, this was done using the SYS account and for some reason, I have an issue where in Oracle SQL Developer, there are no object names being displayed, but the objects do exist within SQLPLUS if I should query the table.
    The following error message displays when I refresh any of the objects folders within SQL Developer:
    ORA-00942: table or view does not exist
    Any ideas would be greatly appreciated.
    Thank you.

    825084 wrote:
    I'm pretty new to the Oracle DBA space but not to SQL Server Ah. The first thing you need to do is check everything you think you know about rdbms at the door. The similarity between SQL Server and Oracle ends right after SELECT * FROM EMP.
    Even the term "database" has different meanings.
    First thing I see, in your original post, is that you did the export/import as SYS. Was this "as sysdba"?
    From Oracle® Database Utilities
    10g Release 2 (10.2):
    Invoking Export and Import As SYSDBA
    SYSDBA is used internally and has specialized functions; its behavior is not the same as for generalized users. Therefore, you should not typically need to invoke Export or Import as SYSDBA, except in the following situations:
    * At the request of Oracle technical support
    * When importing a transportable tablespace set
    so it's quite possible that I missed something during the import/export of the environments.
    Are there any system tables that get invoked when you click on any of the objects within the connection?

  • SWFloader loads SWF movie within Flex but not when compiled

    When I run my app in Flex, SWFLoader loads the SWF okay as a movie clip but as soon as I Export/Release Build, the new app SWF that is generated won't show the movie clip anymore.  If I take another SWF that is an app (not a movie clip) and give it the movie swf name, my compiled app will show the sub app in a frame.  Why would running something within Flex be any different than running a compiled version?
    Here is some of the code:
    button1 loads the swf.
    button2 loads a sound and when the sound is loaded, the sound is played and the swf is played in onSoundLoaded();
    public  function onSoundLoaded(event:Event):void{
    var localSound:Sound = event.target as Sound;localSound.play();
    var clip:MovieClip = MovieClip(swflodr.content);
    clip.play();
    private  
    function button1Handler(event:Event):void {Alert.show("test 1");swflodr.load(
    "dog.swf");Alert.show(
    "test 2");}
    private  
    function button2Handler(event:Event):void
    var s:Sound = new
    Sound();s.addEventListener(Event.COMPLETE, onSoundLoaded);
    var  
    req:URLRequest = new URLRequest("test.mp3");
    s.load(req);
     private function SwfLodrEventHandler(event:Event):void { 
    var clip:MovieClip = MovieClip(swflodr.content);clip.gotoAndStop(1);
    Alert.show(
    "The event loader is ready");}
    thanks, Mike

    Maybe timing?  The child SWF may not be fully loaded.  Sounds and SWFs are asynchronously loaded.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Accessing java objects from within javascript

    Hello,
    Anyone with an idea of a useful toolkit for accessing java objects from within javascript will be much appreciated.
    Thanks in advance,
    Antana.

    What do you mean by accessing Java objects? Do you mean interacting with an applet via JavaScript? Something else?

  • Object RESB within Critical Area - creating Maintenance Order

    Hi All,
    We are getting warning message while creating Maintenance Order. It says " Object RESB within Critical Area". After checking we found that 90% of the number range for reservation documents have been consumed and it is maintained in settings that the warning will come up when number range enters last 10%.
    we have changed this setting to 5% but still the issue is not resolved. We are still facing the same warning message.
    Kindly guide.
    Regards
    DM

    DM,
      This maybe due to the buffering of the number range numbers on the application servers.once these numbers are exhausted and new  block of numbers are picked up  from the database server this should go off.  Ideally you may want to adjust to a new  number range so that this warning message doesn't irritate the end users.
    Regards
    Narasimhan

  • How long a program can run in Foreground/background?

    Hi ,
    Can anyone know what is the maximum time a program can run without time out ,in foreground/background?
    Let me know,its an urgent requirement....
    Thanks in advance!!!

    Hi Hemant,
    Updation of the timeout limit is task of BASIS.
    In Tcode : RZ10, you can maintain systme parameters.
    The parameter name is rdisp/max_wprun_time. If it not maintained in the profile it will be default 10 mins(600 seconds) as SAP has recommended.
    Also check this links for more info.
    http://sap.ittoolbox.com/groups/technical-functional/SAP-R3-DEV/timeout-in-abap-debugger-560635
    http://sap.ittoolbox.com/groups/technical-functional/SAP-R3-DEV/timeout-in-abap-debugger-560756
    Regards,
    Ferry Lianto

  • Different Behaviour within Flex and on Browser

    Hi,
    I am using an XMLsocket in my problem (client and server on
    the same machine).
    As server I have modified slightly the java example from the
    help (server on port 5050).
    When I run my program within Flex (run button), program is
    run, it connects and accepts
    data from the server. When I try to run the program outside
    flex (run the html in the browser),
    then no connection seems to be made to the java program.
    Are any settings of the browser (firefox) configured
    differently when running through Flex?
    server part:
    socket = new ServerSocket(port);
    incoming = socket.accept();
    readerIn = new BufferedReader(new
    InputStreamReader(incoming.getInputStream()));
    // open up standard input
    BufferedReader br = new BufferedReader(new
    InputStreamReader(System.in));
    printOut = new PrintStream(incoming.getOutputStream());
    printOut.println("Enter EXIT to exit.\r\0");
    out("Enter EXIT to exit.\r");
    boolean done = false;
    while (!done)
    //String str = readerIn.readLine();
    String str = br.readLine();
    out("Echo: " + str);
    if(str.trim().equals("EXIT"))
    done = true;
    ====================================
    when run outside flex, surprisingly I can see the:
    "Enter EXIT to exit" on the screen but whenever i type
    something
    it does not appear on the Flex client. This works as it is
    supposed to,
    when executing within Flex...
    thanks

    When you say run from the browser.. is the request served by
    a web server?
    You may be running into crossdomain issues in the 2nd case. I
    would suggest that you print the input stream data from the XML
    Socket to see if its sending a request for crossdomain.xml? If that
    is the case, you should first send the response with the policy
    file back so that subsequent calls succeed.
    Thanks,
    Gaurav Jain
    Flex SDK Team

  • [b]Two images in a Label  [/b]     (foreground & background)

    I cannot add two images to a Label. just one is acceptable but I have to add two images in a Label or another idea that shows two images up and down (foreground & background). The foreground image is GIF so it is transparent and the background is JPEG ..
    Is there any idea or sample code for this? I couldnt managed for about 3 hours.
    Regards, Bulent TASTAN

    The easiest thing to do is combine the images into one image.
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) throws IOException {
            BufferedImage gosling = ImageIO.read(new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg"));
            BufferedImage duke = ImageIO.read(new URL("http://today.java.net/jag/old/green/duke/T4.gif"));
            Graphics2D g = gosling.createGraphics();
            double dx = (gosling.getWidth()-duke.getWidth())/2.0;
            double dy = gosling.getHeight()-duke.getHeight();
            AffineTransform xform = AffineTransform.getTranslateInstance(dx, dy);
            g.drawRenderedImage(duke, xform);
            g.dispose();
            JFrame f = new JFrame("Example");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JLabel(new ImageIcon(gosling)));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • What is the purpose of the foreground/background color?

    I want to know what is the purpose of the foreground/background color in photoshop, am knew to PS, so am just trying to figure what are the purposes of some of these stuff.
    Regards,
    Jamaine Semple

    Please read the Help files.  Start with "Creating, Opening and Importing images".
    • Select a canvas color option.
    White Fills the background or first layer with white, the default background color.
    Background Color Fills the background or first layer with the current background color.
    Transparent Makes the first layer transparent, with no color values. The resulting document has a single, transparent layer as its contents.
    The Foreground Color is chosen for the brush, shapes, etc.
    Eventually, you want to read the entire content of the Help files, and maybe, hopefully, a book like " Photoshop Classroom in a Book".
    Photoshop is a professional level application that makes no apologies for its long and steep learning curve.
    Take a class at a community college.  Teaching you Photoshop from the ground up far exceeds the scope of the forum.

  • Are parallel stages possible within Flex applications?

    Hello,
    I'm interested in exploring Flex, but I don't want to spend
    unnecessary time on it. I'm wondering if it is possible to have
    multiple "layers" (say a foreground, mid-ground, and background)
    within a Flex application. In my particular case, I'd like to have
    some type of animated Flash running in the "background" of the
    application that is always visible. However, when the user
    interacts with this application, is it possible to make visible
    Flex components that exist in the "foreground" or "mid-ground"
    appear "above" it? Or, to say, they come become visible in front of
    the "background layer" when the user clicks a button (i.e. a user
    clicks a button in the flash movie and a Flex form, perhaps for a
    login or something, appears before them in the "foreground").
    As a newbie to Flex I'll appreciate any help.
    -Thanks!

    Sure you could use states to show or hide controls in a view,
    you can use viewstacks to switch between views and you can set
    transparency using the alpha property.

  • Is there a way to create a custom overlay within FCP?

    Simple question...
    Can u create a simple overlay (such as a square box) within FCP and have it work as an overlay, with alpha channel. Can't seem to figure it out.
    I've done it by making the object and then keying out the black, but is there a way to just make it and have it work right off the bat?
    Thanks!
    mm

    Interesting question. I had to go try it and, you're right, the shapes come in on an opaque field and I have always assumed they were on transparent. Seems they were in earlier versions, can't remember. I do most of that kind of work in Motion.
    You can use the luma keyer or you can shift one or more of the color channels to the alpha.
    You can use the Screen composite mode which makes black transparent but there are issues with modes if you start stacking layers.
    bogiesan

  • DropDownList ItemRenderer within Flex Datagrid Not Refreshing

    I have a datagrid which contains a Spark dropdownlist that needs to  obtain dynamic data.
    The datagrid uses a separate dataProvider.
    When I use a static ArrayCollection within my ItemRenderer, it works (please see listing 1).
    However, when I use Swiz to mediate a 'list complete' event to load  the ArrayCollection, the dropdownlist does not show the new data (please  see listing 2).
    Using the debugger, I inspected the dropdownlist ItemRenderer and  have confirmed the new data is being loaded into the ArrayCollection.
    The new data is not shown in the UI control. I have tried  invalidateProperties() + validateNow() and dispatching events on both  the control and the renderer (this), but nothing seems to make the new  data appear in the control on the datagrid.
    Please help !!!
    Listing 1: Datagrid and static ArrayCollection (this works)
    <mx:DataGrid x="10" y="25" width="98%" id="dgInventory" paddingLeft="25" paddingRight="25" paddingTop="25" paddingBottom="25"
                         editable="true"
                         itemClick="dgInventory_itemClickHandler(event)" dataProvider="{acInventory}"
                         creationComplete="dgInventory_creationCompleteHandler(event)"
                         height="580">
                <mx:columns>
                    <mx:DataGridColumn headerText="Item" dataField="itemName" itemRenderer="components.ItemRendererItem"
                                       rendererIsEditor="true" editorDataField="selection" editable="true"/>
                    <mx:DataGridColumn headerText="Quantity Required" dataField="quantityReq" itemRenderer="components.ItemRendererQuantityRequired"
                                       rendererIsEditor="true" editorDataField="selection" editable="true"/>
                </mx:columns>
    </mx:DataGrid>
    <fx:Script>
        <![CDATA[      
            import mx.collections.ArrayCollection;
            import spark.events.IndexChangeEvent;
            public var selection:int;
            [Bindable]
            protected var acItem:ArrayCollection = new ArrayCollection(
                [   { itemName: "Item1"},
                    { itemName: "Item2"},
                    { itemName: "Item3"},
            protected function dropdownlist1_changeHandler(e:IndexChangeEvent):void
                selection = e.newIndex;
        ]]>
    </fx:Script>
    <s:DropDownList id="ddlItem" prompt="Select Item" dataProvider="{acItem}" labelField="itemName"
                    selectedIndex="{int(dataGridListData.label)}"
                    change="dropdownlist1_changeHandler(event)"
                    width="80%" top="5" bottom="5" left="5" right="5"/>
    Listing 2: Dynamic ArrayCollection (does not work):
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              xmlns:mx="library://ns.adobe.com/flex/mx"
                              focusEnabled="true">
        <fx:Script>
            <![CDATA[      
                import event.ItemEvent;
                import mx.collections.ArrayCollection;
                import mx.events.FlexEvent;
                import spark.events.IndexChangeEvent;
                public var selection:int;
                [Bindable]
                protected var acItem:ArrayCollection = new ArrayCollection();
                protected function dropdownlist1_changeHandler(e:IndexChangeEvent):void
                    selection = e.newIndex;
                protected function ddlItem_creationCompleteHandler(event:FlexEvent):void
                    var eve : ItemEvent = new ItemEvent( ItemEvent.LIST_ITEM_REQUESTED );
                    dispatchEvent( eve );
                [Mediate( event="ItemEvent.LIST_ITEM_COMPLETE", properties="acItem" )]
                public function refreshness( _acItem : ArrayCollection ):void
                    acItem.removeAll();
                    var len:int = _acItem.length;
                    if (len > 0)
                        for (var i:int=0; i < len; i++)
                            var newItem:Object = new Object;
                            newItem["itemName"] = _acItem[i].itemName;
                            acItem.addItem(newItem);
                    this.invalidateProperties();
                    this.validateNow();
                    //dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
            ]]>
        </fx:Script>
        <s:DropDownList id="ddlItem" prompt="Select Item" dataProvider="{acItem}" labelField="itemName"
                        selectedIndex="{int(dataGridListData.label)}"
                        creationComplete="ddlItem_creationCompleteHandler(event)"
                        change="dropdownlist1_changeHandler(event)"
                        width="80%" top="5" bottom="5" left="5" right="5"/>
    </s:MXDataGridItemRenderer>

    After re-reading Peter Ent's ItemRenderer series, this turned out to be quite simple.
    I extended DataGrid to have the ArrayCollection property I needed, then added this to my renderer:
    [Bindable]
                protected var acItem:ArrayCollection = new ArrayCollection();
                override public function set data( value:Object ) : void
                    super.data = value;
                    acItem = (listData.owner as MyDataGrid).itemList; // get the data from the renderer's container (by extending it to add a property, if necessary)

Maybe you are looking for

  • The setting for my macbook pro?

    i mainly use my macbook pro as a desktop im always on and off what would be the best setting for me on the energy setting ?what are your setting and are they any pros and cons with a particular setting ?

  • Standard programs for reports..

    hi, how to find d standard report programs... for example i need a report for goods reciept or say purchase price variation report... do we have any  standard sap report prg fr it??? if yes how to find it???

  • Time Capsule "not getting IP Address"

    I am a comcast internet customer and I have the RCA cable modem. My network has been up and running fine on a Linksys54g for a year or two. I disconnected it today, and I plugged in my time capsule (exactly following the instructions. My powerbook pr

  • Unable to view Device button in the upper-right corner

    When I connect my iphone to my laptop to sync the data from Itunes I am not able to view the Device button in the upper right corner of iTunes. Can you please help as to how to go about this.

  • Downloading the LR-plugin "presets for lightroom", which I bought before.

    Hi I bought the plugin "presets for lightroom", and I can't find a file or a folder in my "download-folder" for installing after with lightroom. How may I download the plugin?