Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 038F3200BA1 for ; Mon, 17 Oct 2016 19:33:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 01F76160AEC; Mon, 17 Oct 2016 17:33:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4840F160AE2 for ; Mon, 17 Oct 2016 19:33:49 +0200 (CEST) Received: (qmail 32098 invoked by uid 500); 17 Oct 2016 17:33:48 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 32086 invoked by uid 99); 17 Oct 2016 17:33:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2016 17:33:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5F6761806F7 for ; Mon, 17 Oct 2016 17:33:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.193 X-Spam-Level: *** X-Spam-Status: No, score=3.193 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, NUMERIC_HTTP_ADDR=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4PHyXBFFG8lL for ; Mon, 17 Oct 2016 17:33:43 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 247035F368 for ; Mon, 17 Oct 2016 17:33:43 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id o68so293425936qkf.3 for ; Mon, 17 Oct 2016 10:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=IcUF4U9kThqLRJVI0/en9IMe/SJDzcOxSUlca+iwzXM=; b=wD6R5MUs8gGBI32o1cuiL/Ycr47ogk/8H8XqTAmsonRXjc7kTsY0HCbrJ/lem0ATcY RGBx7GzSTVuedsLSkHDflSYZ9Hw71XZoEUOVrnS7W7P75N0ZP/SKl9rxbXbyFKqEenPX G9oPMtxXdu9GYA196W33kyfuXY4Dbx+8Eeuq7rxqC/4PcB7nAjhvs1jghcbX9w5xWpWs T05+cDu82xFltHwFwNb312ELW/hVwEZ+B+YLMCpLcJ26VXcvFkJdl6tcmw2PDmtXuhPp e0rboPTKbBwXLuVJEWCZHYpf345cxRWIk7mqA/XKvevt+WUsE3FPKbeIEcA+Y2uEIkVv sRow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=IcUF4U9kThqLRJVI0/en9IMe/SJDzcOxSUlca+iwzXM=; b=J6GmPrHdJxjMFgbg+TpUb530rr+nMus2Dbsm63DeCN8tyGOKOvvC6bxMug1ptk/qNg HvRxIinofTBI8UVM0gTD47HM3j8YwF/AUY3bGh8DUQBiOUbBbku44b+wZZempHQRlYia o2yZirho3JZbztfZRTGFRnH7lToHCQ4esKbqgiVQGOU1xK+6peNueE6wOAojAXPbMSjD 4KfZxy5Oiv7wwKsiQ9ZA5jRLRxiNhGN9DvfrnJf9dFmOMavw5m+sL3pYXaQNRyyhKu8L CzJWrdWC/P1nMh7W9WbCd1cZOrbgU+m0aE2/fMXGfhywfilYPILd+Df5meuvZFfJ5K8F 3f5w== X-Gm-Message-State: AA6/9RmK6npO/xrok4TqAIGM/yIg7WIHkjiai83DTiLOpK+STXcMNwsruCWdM5a8VzdF+o5ZghYiQ/anO3uBvA== X-Received: by 10.55.65.22 with SMTP id o22mr23374202qka.136.1476725621514; Mon, 17 Oct 2016 10:33:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.41.211 with HTTP; Mon, 17 Oct 2016 10:33:40 -0700 (PDT) Received: by 10.140.41.211 with HTTP; Mon, 17 Oct 2016 10:33:40 -0700 (PDT) In-Reply-To: <1476724235885-13818.post@n4.nabble.com> References: <1476679418973-13813.post@n4.nabble.com> <1476724235885-13818.post@n4.nabble.com> From: Josh Tynjala Date: Mon, 17 Oct 2016 10:33:40 -0700 Message-ID: Subject: Re: Mobile Width and Height To: users@flex.apache.org Content-Type: multipart/alternative; boundary=001a114ac49019e6f6053f12faad archived-at: Mon, 17 Oct 2016 17:33:50 -0000 --001a114ac49019e6f6053f12faad Content-Type: text/plain; charset=UTF-8 You should try listening for Event.RESIZE on the stage to see if it resizes again after the application is complete. It is common for the Flash stage to resize multiple times on startup. - Josh On Oct 17, 2016 10:18 AM, "bilbosax" wrote: > When the application is complete, I dispatch a custom event to let the rest > of my components know that the app is loaded so that they can then get the > width and height of the app and lay themselves out appropriately. In my > main app, I have this code: > > protected function appCreationCompleteHandler(event:FlexEvent):void { > // Dispatch an event to the rest of the application that the > application is > complete so that I can calculate all of my layout distances > var e:Event = new Event("appComplete", true); > dispatchEvent(e); > appWidth = stage.stageWidth; > appHeight = stage.stageHeight; > } > > In my application descriptor file, I have the following values set: > > portrait > > false > true > true > pan > > I feel like it has to be something in my descriptor file, because it is > laid > out perfectly in the simulator, just not on the device. The height values > appear to be correct on the device, but the width is just WAY off. > > > > -- > View this message in context: http://apache-flex-users. > 2333346.n4.nabble.com/Mobile-Width-and-Height-tp13813p13818.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > --001a114ac49019e6f6053f12faad--