Content size ImageField

Is it possible for me to know what size (in bytes, etc.) a picture is an imageField?

Now users can insert images that are less than 1 MB and I need to know how to test for it.

All comments are appreciated.

Hi David.

Paul and Marcel solutions will work for you.

A couple of things to look at:

(1) your naming convention includes the sign twice. This is why the xfa.resolveNode is used in some of the solutions above. If you enter the name of the field of the image in Marcel validation script, it can raise an error. You could do one or two things:

  • Because in this case, the script is in one of its own events, you can change the name of the object 'this' (JavaScript) or ' $' (FormCalc).
  • resolve the name of the object in the script, for example xfa.resolveNode("EX-Image-1"). You can define a variable for that at the beginning of the script, for example vImage var = xfa.resolveNode("EX-Image-1"); and then use vImage in the current script.
  • Change the name of your objects; remove the sign less (exImage1) or its replacement by the negative for a trait underscores (EX_Image_1). In this way the object should not be resolved in order to be used in the script.

Because you don't have a lot of script pointing to the fields of the image, I'd be inclined to change the names of the objects. This way your new script is less likely to have problems. Otherwise, do not forget that you need to resolve the name whenever you are referring to the object in the script.

A convenient way to ensure that you have the correct object name in your script is get LC to insert the name for you. When the script window is active, click the location of the script where you want to refer to a field. Then hover over the field you want to refer to "order". The mouse will change to a "V". Click the field and LC will insert the name of the object (including the subform set out for you. He treats also automatically issues where the name must be resolved. As above or if there are multiple objects with the same name.

(2) Marcel solution resembles JavaScript ({} and; in the script), so you could try to change the language.

I hope this helps.

Niall

Tags: Adobe LiveCycle

Similar Questions

  • imageField content size

    How I check the size of the image and reject images that exceed a certain size, giving the user a pop-up message telling them to choose a smaller file if they try to insert too big?

    I tried things in this discussion http://forums.Adobe.com/thread/421796

    but I get a "validate failed" message.

    I have very little experience JavaScript (which means that virtually none) so I need step by step instructions more than whats given in this thread, and if someone can help me, I would really appreciate it!

    I created a sample for you... are relative to the validate on the image field event to get the code.

    Paul

  • Oracle to send email with the size of the content of more than 32 k using UTL_SMTP

    Hi all

    I Googled, and also searched the oracle forums and I did not find a good link to see when dealing with sending e-mails with content size over 32 k using UTL_SMTP. If someone can you please direct me to some links that would be a great help.

    Thank you

    Rambeau

    It's because you first set 'Hello World,' mailBody (mailBody.COUNT) and then immediately replace by "test sample". Maybe you wanted to EXTEND between postings...

  • JavaScript Command Window.getComputedStyle (document.body, ': after') .getPropertyValue ('content') returns the content with quotes

    When I use in my css:
    body: after {}
    content: "mobile";
    display: none;
    }
    And by controlling javascript with the command:
    size var = window.getComputedStyle (document.body, ': after') .getPropertyValue ('content');

    I get in firefox (mac v 23.0.1) returns the '' mobile' ' string with double quotes as return and, therefore, checking if size == 'mobile' returns false. In safari, the value returned 'mobile' without the quotes. How is it?

    What you get is a string that represents what you specified in the content.

    A content specification can include other things like a counter: body: after {content: "subjects []" counter (topics) "]" ;}}

    size = window.getComputedStyle(document.body,_':after').content would give: 'subjects []' counter (topics) "].

    If you need test the exact text of the contents: size == ' 'mobile "";

  • Scale of content and then reset the global scale to 100%

    It is perhaps a strange question. But I'm looking at the first change the scene via the Document settings, then scale of content. I would then "reset" of the global scale to 100%.

    For example, if my internship is 1024 x 1024. I then change the scene at 512 x 512 and scale of content. Everything fits on the stage.

    The way he does is to apply scales at all. However, I do not want this, because I use Actionscript to extract images and positional information. What I need is a way to reset things so Flash think that the scene is "100% scale" and therefore will have images that are now 50% of the size of origin as well as other information such as being in fact 50% of positions.

    In other words, I'm looking for a way to scale things up or towards the bottom and then say it's worldwide now base... line so it treats it as if I created the file at this stage and the latest Flash content size.

    Hope it makes sense.

    Thank you.


    Ben

    I don't think this would be possible. An easy problem cases would be movieclips, where the scale could descend into the movieclip and resize vectors, to compensate for the change in scale, but it is unlikely to end up looking exactly the same. Bitmaps would be a problem too, Flash will re - sample each bitmap and replace the bitmapdata within the bitmap. Text is perhaps the most difficult part, Flash will have to change the font size of the field and hope that the text was still running in the same way.

    BTW, you can solve your ActionScript difficulty placing the entire experience into a movieclip, the current FLA document class would become the script of this movieclip class. All the details would work out ok, but you could evolve the new movieclip to any size, without the breaking of AS3.

  • Pushing data from a Java application * confused *.

    Hello community,

    I'm new to the BlackBerry Push. I tried to understand what options are available to provide data to a Java application and how it can be tested.

    There are so many documents on this subject, for example:

    1. Push for the BlackBerry Enterprise Server software
    2. BlackBerry Push service
    3. Push blackBerry SDK service

    What I discovered thanks to these documents.

    1. There are two formats that can be used to send data through the BES (PAP push / push RIM)
    2. BlackBerry Push service has two levels (BB push Essentials / BB push more - limited to 8 KB content)
    3. In the Push Service SDK, there are two modes available (public and business mode)

    For me, these information are really confusing.

    What I don't understand:

    I. can the software of the BlackBerry Push Service SDK be used for both options 1. & 2. mentioned above? (referring to public and business mode)

    II. is there documentation how to push Service SDK can be configured for the mode of the company?

    III. when you use BES Push is also limited to 8 KB content size?

    IV. is it possible to only a single client application that can be used to BES and BIS push?

    Thanks in advance.

    I. the SDK can be used to push either a BIS or BES. The SDK has a setting to determine if its pressure through the (public) BIS or BES (company). The SDK can be used to push push Essentials or Plush Push. The SDK software uses the API of PAP.

    II. I'm not sure of the documentation, but I don't know that the SDK can ask a BES for sure. But in the end, you need to set the PushSDK.properties flag to push public were false.

    III. no the BES is not a limitation of 8 k.

    IV. I'm not an expert on client applications, but I think you need to develop a version for BIS and a version for BES.

  • ScrollPane incorrect ContentSize

    So I think ScrollPane content size calculation algorithm is seriously tapped.

    I have create a container, add it to the ScrollPane, set its size and then update the ScrollPane component to take account of the given size of the container. However it works "correctly" If the property debugColor is set... If I don't set it, ScrollPane lack about 500 + pixels of the container.

    Example (with set of debugColor):

    And without:

    Can someone help me with this? or is this a bug?

    Hey decibell,.

    the pictures don't show up to approval, but I think it might have something to do with the amount of space that your content is actually meet with the container. a work around all kinds is to set the background of the container so that it occupies the entire room and the entire tank is scrollable regardless of its content. and to avoid any color background is displayed, you can set the transparency of the fill to 0. Here's a code example to show you how it works:

    ContainerTest.as:

    package{   import flash.display.Shape;   import flash.display.Sprite;
    
      import qnx.ui.core.Container; import qnx.ui.core.ContainerAlign;    import qnx.ui.core.ContainerFlow; import qnx.ui.core.Containment;   import qnx.ui.listClasses.ScrollDirection;    import qnx.ui.listClasses.ScrollPane; import qnx.ui.text.Label;
    
      [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class ContainerTest extends Sprite {         private var mainContainer:Container;      private var titleLabel:Label;     private var scroller:ScrollPane;
    
          public function ContainerTest()       {         super();
    
              scroller = new ScrollPane();          scroller.setSize(300,200);            scroller.scrollDirection = ScrollDirection.VERTICAL;
    
              mainContainer = new Container();          mainContainer.margins = Vector.([20,20,20,20]);         mainContainer.flow = ContainerFlow.VERTICAL;          mainContainer.align = ContainerAlign.FAR;
    
              titleLabel = new Label();         titleLabel.text = "Sample Text";
    
              titleLabel.setSize(200, 52);
    
              mainContainer.addChild(titleLabel);
    
             mainContainer.setSize(300, 500);
    
              mainContainer.graphics.clear();           mainContainer.graphics.beginFill(0x000000, 0);            mainContainer.graphics.drawRect(0,0,mainContainer.width,mainContainer.height);            mainContainer.graphics.endFill();                      scroller.setScrollContent(mainContainer);
    
              addChild(scroller);
    
          } }}
    

    hope that helps. Good luck!

  • ListField focus problem.

    Hi people,

    I have a problem with listfield focus. in the 8900 v4.6.1, the last update does not disappear when I select a new line.

    Do the invalidate in line works, but navigation has become with the slow performance.

    Code:

    package mypackage;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Hashtable;
    import java.util.Vector;
    
    import javax.microedition.lcdui.Font;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.ListField;
    import net.rim.device.api.ui.component.ListFieldCallback;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public final class HelpScreen extends CustomMainScreen {
        protected boolean onSavePrompt() {
            try {
                save();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                System.err.println("Excecao HelpScreen 1 " + e.getClass() + " - " + e.getMessage());
                e.printStackTrace();
            }
            return true;
        }
    
        private Vector content = null;
        private ListHelpScreen callback;
    
        public HelpScreen() {
    
            // System.out.println("HelpScreen");
    
            setBanner(new BitmapField(Bitmap.getBitmapResource(ScreenManager.getStringProperty("helpscreen.banner"))));
            setBackground(BackgroundFactory.createSolidBackground(0x434343));
            content = getVector();
    
            ListField list = initCallbackListening();
    
            list.setSize(content.size());
            // list.setRowHeight(62);
            int rowheight = ScreenManager.getPositionAtKey("helpscreen.listfield.rowheight");
    
            list.setRowHeight(rowheight);
            add(list);
            LabelField copyright = new LabelField("Cielo Mobile " + ServerRequests.version + "\n" + "© Todos os direitos reservados",
                    Field.USE_ALL_WIDTH) {
                protected void paint(Graphics graphics) {
                    graphics.setColor(Color.WHITE);
                    super.paint(graphics);
                }
    
            };
            copyright.setBackground(BackgroundFactory.createSolidBackground(0x434343));
            copyright.setPadding(ScreenManager.getPositionAtKey("helpscreen.copyright.padding.top"),
                    ScreenManager.getPositionAtKey("helpscreen.copyright.padding.right"),
                    ScreenManager.getPositionAtKey("helpscreen.copyright.padding.bottom"),
                    ScreenManager.getPositionAtKey("helpscreen.copyright.padding.left"));
            copyright.setPosition(ScreenManager.getPositionAtKey("helpscreen.copyright.position"));
    
            copyright.setFont(getFont().derive(Font.STYLE_PLAIN, 14));
    
            add(copyright);
    
        }
    
        private Vector getVector() {
            Vector menuItems = new Vector();
            Hashtable currentElement = new Hashtable();
            Class classs = null;
            try {
                classs = Class.forName(this.getClass().getName());
            } catch (ClassNotFoundException e) {
                // TODO Auto-generated catch block
                System.err.println("Excecao HelpScreen 2 " + e.getClass() + " - " + e.getMessage());
                e.printStackTrace();
            }
            InputStream stream = classs.getResourceAsStream("/fraseologia.properties");
            PropertiesUtil properties = new PropertiesUtil();
            try {
                properties.load(stream);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                System.err.println("Excecao HelpScreen 3 " + e.getClass() + " - " + e.getMessage());
                e.printStackTrace();
            }
            currentElement.put("title", "1 " + ((String) properties.getProperties().get("pergunta1")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "2 " + ((String) properties.getProperties().get("pergunta2")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "3 " + ((String) properties.getProperties().get("pergunta3")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "4 " + ((String) properties.getProperties().get("pergunta4")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "5 " + ((String) properties.getProperties().get("pergunta5")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "6 " + ((String) properties.getProperties().get("pergunta6")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "7 " + ((String) properties.getProperties().get("pergunta7")).toUpperCase());
            menuItems.addElement(currentElement);
    
            currentElement = new Hashtable();
            currentElement.put("title", "8 " + ((String) properties.getProperties().get("pergunta8")).toUpperCase());
            menuItems.addElement(currentElement);
            //
            // currentElement = new Hashtable();
            // currentElement.put("title", "Cielo Mobile " + ServerRequests.version);
            // currentElement.put("text", "© Todos os direitos reservados");
            // menuItems.addElement(currentElement);
    
            return menuItems;
        }
    
        private ListField initCallbackListening() {
            callback = new ListHelpScreen();
            ListField listField = new ListField() {
    
                protected boolean navigationClick(int status, int time) {
                    // TODO melhorar essa logica
                    if (this.getSelectedIndex() < 8) {
                        UiApplication.getUiApplication().pushScreen(new AnswersScreen(this.getSelectedIndex()));
                    }
    
                    return true;
                }
            };
            listField.setCallback(callback);
            listField.setFont(this.getFont().derive(Font.STYLE_PLAIN, 16));
    
            // listField.setRowHeight(-3);
            return listField;
        }
    
        private class ListHelpScreen implements ListFieldCallback {
            private int lastIndex = 0;
    
            public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) {
    
                Hashtable currentCellInformations = ((Hashtable) content.elementAt(index));
    
                Bitmap image = null;
                if (index == listField.getSelectedIndex()) {
                    image = Bitmap.getBitmapResource(ScreenManager.getStringProperty("helpscreen.listfieldcallback.image.hint"));
                } else {
                    image = Bitmap.getBitmapResource(ScreenManager.getStringProperty("helpscreen.listfieldcallback.image"));
                }
    
                graphics.drawBitmap(0, y, image.getWidth(), image.getHeight(), image, 0, 0);
    
                String text = (String) currentCellInformations.get("title");
                graphics.setColor(Color.WHITE);
                graphics.drawText(text, ScreenManager.getPositionAtKey("helpscreen.listfieldcallback.inicialoffset.x"),
                        ScreenManager.getPositionAtKey("helpscreen.listfieldcallback.inicialoffset.y") + y);
                 listField.invalidate(lastIndex);
                lastIndex = index;
            }
    
            public Object get(ListField listField, int index) {
                return content.elementAt(index);
            }
    
            public int getPreferredWidth(ListField listField) {
                return ScreenManager.getPositionAtKey("helpscreen.listfieldcallback.preferredwidth");
            }
    
            public int indexOfList(ListField listField, String prefix, int start) {
                return content.indexOf(prefix, start);
            }
        }
    }
    

    Could you help me please with other alternatives?

    Thanks in advance.

    It was the solution for me

    ListField listField = new ListField() {
                private int lastIndex = 0;
    
                public int moveFocus(int amount, int status, int time) {
                    lastIndex = getSelectedIndex();
                    invalidate(lastIndex);
                    return super.moveFocus(amount, status, time);
                }
    

    Thank you!!!

  • AppleScript cannot change the font of the text layer

    I used Applescript to create a text layer and specify its properties, but when I specify the font I get a compilation error:

    Impossible to define 'class NTR' to 'TradeGothic-Bold ". Unauthorized access.

    That sounds like a kind of permission error.

    Here is a little simplified script:

    Tell application "Adobe Photoshop CS4"

    say current document

    do new layer of art Properties {name: "File name", type:text layer}

    say the text object layer of art 1

    the value {content, size, stroke color, position, type} {"thefilename", 12, {class:RGB hexadecimal color, hexadecimal value: 'CC0000'}, {2, 12}, text of paragraph}

    set the font to "TradeGothic-"BOLD""

    tell the end

    tell the end

    tell the end

    If I put the police manually and use 'get properties of the text object in layer art 1', the Script Editor returns (with a long list of other properties):

    "" police: 'TradeGothic-"BOLD".

    so I think that I've specified the name of the font correctly at least. In the list of properties returned by the Script Editor, the font is blue like above, but all other property names are purple. It's I have to say something.

    Well, after some trial and error, I answered my own question. Here's what worked:

    Tell application "Adobe Photoshop CS4"

    tell the active document

    new layer art with properties {name: "File Name", layer type: text}

    the text of the layer 1 of the art of storytelling

    the value {content, size, stroke color, position, type} {"thefilename", 12, {class hex color: RGB, hex value: 'CC0000'}, {2, 12}, paragraph text}

    tell the end

    set the font for the text of art layer 1 to "TradeGothic-"Bold"object

    tell the end

    tell the end

    Maybe someone who understands OOP and/or better than I do, may explain why it worked and my first try didn't.

  • Different results, running the same Javascript - CC vs CS6

    I am having some problems affecting the font size of a text using Javascript. For some reason, I always get characters of 2.88 points as opposed to what I put it to (in this case, it's 12). Anyone know what is the problem that the PS is not recognizing the command to set the font size here and why?

    #9740928-Pastie

    Line 42 is where I'll put the size.

    Line 27, that's where the variable is defined. I tried just punching in an integer with the same results.

    Thanks for any help.


    So I think that there could be a problem with Adobe CC or maybe some changes in its development with regard to the way he treats the Javascript. I ran several tests today and did some reading. At the end of the line, I decided to try the script on CS6 and I got the correct results. The script works on CS6, but not cc? I made an example of script I did my tests to take a pic to Adobe team. It's the end of this post.


    I'm not the master script by any stretch of the imagination, but I find it odd that this script works correctly on Adobe CS6, but does not change the size of font correctly on Adobe CC. I expect that same results. If any of you come up with anything please let me know. Cheers.

    BEGINNING OF THE SCRIPT

    var defaultRulerUnits = preferences.rulerUnits;

    preferences.rulerUnits = Units.PIXELS;

    var AD = activeDocument;

    Size = 53;

    var TextLayer = AD.artLayers.add ();

    TextLayer.kind = LayerKind.TEXT;

    TextLayer.opacity = 90;

    var txtRef = TextLayer.textItem;

    txtRef.font = "Impact."

    txtRef.contents = size;  The size of 53 is reflected in CS6, but when this script is run on CC, is not. Sometimes 12, sometimes it is 2.88.

    txtRef.size = size;

    END OF SCRIPT

    ^ I save it as a. JS


    Post edited by: Clayton Krause

    The ruin of font size of DOM somewhere in 2014 of the CC is a known problem.

    Re: Do you have CC 2014.2 break textItem.size?

    The alternative would use code AM.

  • Error downloading file. There was no response from the server. Check your network connection

    I tried to publish my site and three things happen:

    (1) when I open the Muse file it says that site has changed and asks me to review and merge the changes - I say Yes and the screen that appears is empty without modification to revise and or merge. (See image below)

    muse_error.jpg

    (2) the process of optiization of files stops at 60%

    (3) the publication of the blockage to 64 percent, but sometimes up to 68% and then gives me the error message above.

    Here is my site:

    www.ghatest.BusinessCatalyst.com

    Quick notes:

    -When I export to HTML, it works very well.

    -The files it gets stuck on that were previously downloaded without problem / they are not new files. I tried to get out of these files and it is not serious, the publishing process will still not exceeded 68%.

    -J' tried to save the file under a different name as well as its publication - sam problem

    -I was wondering if the Muse has a content/size limit?

    It's really frustrating. Halp please!

    Thank you Adobe guru

    Hi Nikki,

    Please visit the following link http://forums.adobe.com/thread/1373233?start=0&tstart=0

    Kind regards

    Aish

  • Expansion of the elements of design with the text?

    I develop the next page in the client's site:

    http://www.dancingeyes.com/prackart/profile.html

    and I wonder if it is possible to have a specific section of the page layout extend vertically to the need (for overflow of text because of the browser font size, etc.), and still move the sections below it accordingly?

    For example, on the page linked above, if for some reason any text in the upper section (paragraphs ' family roots - The Early Years "white on grey background) have need more vertical space because of the font larger or added content size, medium gray background will at the same time develop downwards to take into account (just like the outside contour fill gray browser more dark because I want to she). The problem is that he a few outbursts and overlaps the black text on white below ("Working with Clay", etc.), rather than pushing all the content proportionally too much. Is there a structure of basic layout that I have can / should I use to achieve this? Separate horizontal sections of a page layout are possible to expand and contract independently, depending on the settings of browser/user/fluctuations?

    My first intuition was to put all the black text on white below in the footer, but it does not quite work.

    Any tips/ideas/suggestions for a new user to Muse?

    Thank you!

    The first thing to check will be objects with boundaries that cross. Try to place objects in such a way that they land above or below the other object or is completely contained inside the other object as a rectangle.

    Any type of intersections or incorrect overlays can cause the content to be placed in a fixed position rather fluid with respect to the above content.

    See you soon,.

    Vikas

  • Any way to disable scrolling for ListView?

    I have a ListView inside a larger ScrollPane. What I want is the domestic substances list to ever scroll and rather for the ScrollPane container to expand its scrolling area as the list grows. Currently, the list scrolls and my external ScrollPane never shows its scroll bars because it is its internal content is still small enough not to need external scroll bars.

    Someone at - it a way to make this happen? Currently, my only option seems to be that I ditch ListView all together and make my own list component that does not have a built-in scroll pane.

    Some examples of code for what I'm trying to do. In this code, see the ListView scroll bars appear. I don't want, I want the shutters outside roll scroll bars (allowing the button 'Add' scroll on the top of the screen that the list is growing):
    public class TestApp extends Application
    {
        public static void main(String[] args)
        {
            Application.launch(args);
        }
    
        public void start(Stage stage) throws Exception
        {
            ScrollPane scrollPane = new ScrollPane();
    
            // tried with and without these - without the list just uses a fixed size regardless of content size
            scrollPane.setFitToWidth(true);
            scrollPane.setFitToHeight(true);
    
            BorderPane borderPane = new BorderPane();
            borderPane.setStyle("-fx-padding: 50");
    
            final ListView<String> list = new ListView<String>();
            list.getItems().addAll("Bilby", "Bettong", "Wallaby");
            borderPane.setCenter(list);
    
            Button button = new Button("Add");
            button.setOnAction(new EventHandler<ActionEvent>()
            {
                public void handle(ActionEvent event)
                {
                    list.getItems().add("Another One");
                }
            });
    
            borderPane.setTop(button);
    
            scrollPane.contentProperty().set(borderPane);
    
            Scene scene = new Scene(scrollPane, 800, 600);
            stage.setScene(scene);
            stage.show();
        }
    }
    Appreciate any input, including "it is not possible" - at least then I can stop searching.

    See you soon,.
    zonski

    Unfortunately, it is not possible at the present time. Unlike in the world of the swing where it was necessary to wrap a JList in a get, in JavaFX world you get the scrollpane 'free of charge '.

    If you could clarify your use case I can be able to offer suggestions, although most likely I'm going to encourage you to produce a RFE by our JIRA.

    -Jonathan

  • Resize to parent children

    I have an application with very dynamic container and content sizes.

    This is the situation:

    I have a BorderContainer with a fixed size (it was developed to adapt to a container of the AIR application).

    I want to put another BorderContainer therein and that the child of the size of the parent.  Remember that it is changing all sizes so I do not know when to take the size of the parent and apply it to the child.

    Or is a layout with content justifies will help me.

    I tried not bad already.

    Oz

    4dtex

    In actionscript:

    percentHeight = 100;

    percentWidth = 100;

    or top = 0; right = 0; low = 0, left = 0;

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

Maybe you are looking for

  • Used Apple TV

    My daughter and SIL gave me their old Apple TV.  Another that subscribe to streaming services I want (e.g., Netflix), what I need to do something for the transfer device to my Apple ID?  Thank you!

  • restore data to the iphone 5 s

    Hello I'm trying to restore my data from iTurnes to my iPhone. Backup is a few days ago. When I press the button restore, I get a message that there is not enough space on my iPhone. According to the INFO on my phone, I still have 2.7 GB left. And as

  • Analog output using DAQmx task

    I need a signal to analog waveform using 6259 output, I followed the instructions to "Build an analogue output VI in NOR-DAQmx" in the developer area OR, when I run the code I receive thefollowing error message "Error-50103 occurred in the DAQmx writ

  • How can I add a program to the start?

    I would like to add a program to the start in setting in motion.  The program is already loaded.    How can I do?

  • computer will not wake up from sleep or hybernation HP Dv9000

    Hi, I have a laptop HP Dv9000 which came into hybernation mode and I can't wake him up.  I tried restarting several times, with and without the battery installed, press the power button, try control alt del and other things without success.  Any idea