Skip to content

Instantly share code, notes, and snippets.

@codeinvain
Created July 22, 2010 06:18
Show Gist options
  • Save codeinvain/485641 to your computer and use it in GitHub Desktop.
Save codeinvain/485641 to your computer and use it in GitHub Desktop.
<s:BorderContainer verticalCenter="0" horizontalCenter="0" borderColor="0x99ffcc" width="800" height="400" borderWeight="3" backgroundColor="0x1a1a1a" cornerRadius="8" id="border" mouseMove="world_mouseMoveHandler(event)" >
<b2d:SkinnablePhysicsContainer width="794" height="394" setBoundries="true" debugInFront="true" debug="false" id="worldUIContainer" autoStartPhysicsEngine="true" >
<s:BorderContainer id="p1" borderColor="0x99ffcc" width="30" height="80" borderWeight="3" backgroundColor="0x99ffcc" cornerRadius="3" x="30" y="170" >
</s:BorderContainer>
<s:BorderContainer id="p2" borderColor="0x99ffcc" width="30" height="80" borderWeight="3" backgroundColor="0x99ffcc" cornerRadius="3" x="740" y="170" mouseDown="p2_mouseDownHandler(event)" mouseUp="p2_mouseUpHandler(event)" >
<s:Label text="DRAG ME" rotation="90" x="15" y="9"/>
</s:BorderContainer>
<s:BorderContainer id="p1Goal" borderColor="0xffffff" width="5" height="300" borderWeight="3" backgroundColor="0xffffff" cornerRadius="1" x="0" y="50" filters="{[goalFilter]}" />
<s:BorderContainer id="p2Goal" borderColor="0xffffff" width="5" height="300" borderWeight="3" backgroundColor="0xffffff" cornerRadius="1" x="789" y="50" filters="{[goalFilter]}" />
<s:Graphic y="185" x="375" id="ball" mouseDown="ball_mouseDownHandler(event)">
<s:Ellipse width="30" height="30" >
<s:fill>
<s:SolidColor color="0x99ffcc"/>
</s:fill>
</s:Ellipse>
</s:Graphic>
</b2d:SkinnablePhysicsContainer>
</s:BorderContainer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment