scrollrect

Multiple viewports of the same DisplayObject

Is it possible to have multiple view of the same display object? (e.g. same-computer multi-player game using split screen) The sample code that failed to work follows: var content: Sprite = new Sprite(); var v1: Sprite = new Sprite(); var v2: Sprite = new Sprite(); with(content.graphics) { lineStyle(2, 0xff0000...

How to get proper value of .contentHeight after scaling? content of s:Group

<?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="creationCompleteHandler(event)" xmlns:mx="library://ns.adobe.com/flex/mx" mouseWheel="mouseWheelHandler(event)" backgroundAlpha="0" width="100%" ...

UIScrollView - scrollRectToVisible - showing a button at the center of the screen?

Hi Forum I have a uiscrollview with tons of buttons in it. What I need to do is show one of these buttons at the center of the screen. When I use scrollRectToVisible (passing the button-frame), the scrollview indeed shows the button - but sometimes at the top-left corner, sometimes at the bottom right corner - apparently depending on w...