Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED0CB19562 for ; Tue, 1 Mar 2016 08:11:19 +0000 (UTC) Received: (qmail 99466 invoked by uid 500); 1 Mar 2016 08:11:19 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 99428 invoked by uid 500); 1 Mar 2016 08:11:19 -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 99412 invoked by uid 99); 1 Mar 2016 08:11:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 08:11:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D8977C006D for ; Tue, 1 Mar 2016 08:11:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.429 X-Spam-Level: ** X-Spam-Status: No, score=2.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id szUNq_vwG6tT for ; Tue, 1 Mar 2016 08:11:18 +0000 (UTC) Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com [209.85.213.49]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 9CAC65FAC8 for ; Tue, 1 Mar 2016 08:11:17 +0000 (UTC) Received: by mail-vk0-f49.google.com with SMTP id k196so160894372vka.0 for ; Tue, 01 Mar 2016 00:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=WOWAIc24DdvWo7zYaEShcLluyEe3HJky8rHDDIIfpwE=; b=vgV2i3Nc7Gd6jt80jDfjWaXOSZhIiFSEU5X7Zc1ETS5E6YN1d8LXV64RvkoxXMw6bD 5yMfy6NER7SuOkDbICazffcMP4KHP9x7kyMPPvOVoOvx8yeufxhwg1JRIT0+NU962GT6 xEXXM6+PdwL96rUU6WmKmCG4SBW0NBQW/1veiIKI4VKxxNzfDl1eslwZL9kSgMUE+8y9 AA93Lmq+Ury813Eu0/3IAJRml8chR+F5leYBb0JGGpEukKZwuTpDN63TmFzyKa9m1h/k gsaKtTNeO7fn4PH+YyxXhO1rF7gBytSjOM7xDdHnjvkXl06j5zRqiWYpQau4L4jo4wlT 9qqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=WOWAIc24DdvWo7zYaEShcLluyEe3HJky8rHDDIIfpwE=; b=WI/pphvXycKQwmnS+Qxxj5ljR/WohK+GoK7vM/+EgZLCZDoWhwjTyH8OiiYdInaODP ISQu6wOClouyzRKPR3HrsIJ/8paqSxThMJNUx81oTEXq4i59hynFNlcf89RjiESkr3Um wL9RBy3ngigD3nNuPtffdnrJmC/CxzJwQMOyJg5C/KfszRrXJiqWswBQZzwaCljVpEtd mn3ALmDJVTyV2t7kvxg+nyVALyTGYBTI6Vmpnj97TYuN7o7b0Om3/YM9yM7DPPq20AXH /IiBA3h6a1qGECYv0bft3FAKTUVyZfQqVG0SyD1VXz98C8W8WR2B1AVWCU1+2Msc4Srw FEng== X-Gm-Message-State: AD7BkJKQ4HGpFqVf0yASaa0Q6fV2drn+TTCUlibdK+8lFbGUpmRvBwjfyxvAFXOvp6BPNEw0knmhFkStM7tjvw== X-Received: by 10.31.170.196 with SMTP id t187mr14272560vke.66.1456819877101; Tue, 01 Mar 2016 00:11:17 -0800 (PST) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.31.194.148 with HTTP; Tue, 1 Mar 2016 00:10:47 -0800 (PST) In-Reply-To: References: <1456577474458-12068.post@n4.nabble.com> <1456672997481-12076.post@n4.nabble.com> From: OmPrakash Muppirala Date: Tue, 1 Mar 2016 00:10:47 -0800 X-Google-Sender-Auth: jpp-juh9MKiKl6bmaAcipcHFRXA Message-ID: Subject: Re: Error #2006: The supplied index is out of bounds To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=001a114325ec46c680052cf84f47 --001a114325ec46c680052cf84f47 Content-Type: text/plain; charset=UTF-8 You are right. There is more to this. Let me take a look at the math again... Thanks, Om On Mon, Feb 29, 2016 at 9:07 PM, Alex Harui wrote: > > > On 2/29/16, 6:37 PM, "omuppi1@gmail.com on behalf of OmPrakash Muppirala" > wrote: > > > > >This piece of code is calculating the StageText object's global viewport > >rectangle wrt stage co-ordinates. Viewport is defined as: 'The area on > >the > >stage in which the StageText object is displayed. The default is the zero > >rect.' > > > >This viewport is used to capture a bitmap of the stagetext and replace the > >image the place of the stagetext object while scrolling. So, any viewport > >bounds that is outside the stage can be safely clipped to the bounds of > >the > >stage. > > I don't know this code at all, but isn't the goal to make sure no part of > the viewport extends out past 8192 pixels? > It seems to me that if the globalRect.x was -1000 and width was 500, this > change would set globalRect.x = 0 and thus set the viewport to 500 visible > pixels. > > IOW, by setting globalRect.x, you are moving the left edge of the viewport > to either the right edge of the stage or the left edge of the stage. > Moving it to the left edge of the viewport to the left edge of the stage > results in visible pixels. Did you intend to move the right edge of the > viewport to the left edge of the stage when the StageText is off-screen to > the left? > > Of course, I could be wrong again... > > -Alex > > --001a114325ec46c680052cf84f47--