[Papervision3D] FPSMonitor for flex
Anselm
knowledge at lunotrobe.com
Tue Apr 17 22:11:47 EDT 2007
I thought I would share this with the list as someone may find it useful
for their papervision projects...
I created a fps monitor based on the one in the PaperCloud example as a
swc file that can be included in the flex library-path compiler option
when compiling an application in flex. To use it wrap your content in a
VBox with the FPSMonitor above your content. Here's a simple example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fps="net.webnth.util.performance.*"
>
<mx:VBox percentWidth="100" percentHeight="100">
<fps:FPSMonitor />
<mx:Panel
percentWidth="100"
percentHeight="100"
>
<mx:Label text="This is where the content is" />
</mx:Panel>
</mx:VBox>
</mx:Application>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FPSMonitor.swc
Type: application/octet-stream
Size: 266959 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070417/041e5a23/FPSMonitor-0001.obj
More information about the Papervision3D
mailing list