The following example shows how you can use JSFL to save the contents of the Flash Output panel to an external file using the fl.outputPanel.save() command.
Full code after the jump.
// JSFL var OUTPUT_FILE = "file:///c:/outputPanel.txt"; var arr = ["PAGEFAULTCOUNT", "PEAKWORKINGSETSIZE", "WORKINGSETSIZE", "QUOTAPEAKPAGEDPOOLUSAGE", "QUOTAPAGEDPOOLUSAGE", "QUOTAPEAKNONPAGEDPOOLUSAGE", "QUOTANONPAGEDPOOLUSAGE", "PAGEFILEUSAGE", "PEAKPAGEFILEUSAGE"]; fl.outputPanel.clear(); for (var i = 0; i < arr.length; i++) { fl.trace(i + ") " + arr[i] + ": " + fl.getAppMemoryInfo(i)); } fl.outputPanel.save(OUTPUT_FILE, false);
Running this JSFL command displays the following information in the Output panel, as well as saving it to the specified file:
0) PAGEFAULTCOUNT: 489076
1) PEAKWORKINGSETSIZE: 177864704
2) WORKINGSETSIZE: 27672576
3) QUOTAPEAKPAGEDPOOLUSAGE: 487204
4) QUOTAPAGEDPOOLUSAGE: 438692
5) QUOTAPEAKNONPAGEDPOOLUSAGE: 32432
6) QUOTANONPAGEDPOOLUSAGE: 30160
7) PAGEFILEUSAGE: 146759680
8) PEAKPAGEFILEUSAGE: 152084480
Recent Posts
- Getting started with the TLFTextField class in ActionScript 3.0 and Flash CS5
- Adding tick marks to a Slider control in Flash using ActionScript 3.0
- Creating a vertical Slider control in Flash using ActionScript 3.0
- Creating a custom context menu item in Flash using ActionScript 3.0
- Rotating a Sprite object around its x-axis in Flash using ActionScript 3.0 and Flash Player 10
- Detecting when the user changes the color in a ColorPicker control in Flash using ActionScript 3.0
- Getting the currently selected color as a hexadecimal value on a ColorPicker control in Flash using ActionScript 3.0
- Toggling the text field on the ColorPicker control in Flash using ActionScript 3.0
- Creating a vertical Slider control in Flash using ActionScript 3.0
- Setting the number of columns on a ColorPicker control in Flash using ActionScript 3.0
Categories
- Bitmap (1)
- Components (72)
- Button (19)
- CheckBox (2)
- ColorPicker (6)
- ComboBox (1)
- DataGrid (8)
- FLVPlayback (7)
- Label (9)
- ProgressBar (2)
- Slider (3)
- TextArea (1)
- TextInput (7)
- UILoader (7)
- ContextMenu (1)
- Embed (4)
- ExternalInterface (2)
- Flex (7)
- Font (2)
- General (5)
- Graphics (2)
- JSFL (14)
- Loader (3)
- LoadVars (3)
- Microphone (1)
- migration (12)
- MovieClip (1)
- MovieClipLoader (1)
- Sound (2)
- TextField (1)
- TLFTextField (1)
- TransitionManager (1)
- Tween (1)
- Uncategorized (1)
- URLLoader (4)
- URLVariables (1)
- Video (1)
- XML (2)
Advertising
" RT @OReillyMedia: #Ebook Deal/Day: Learning JavaScript Design Patterns -
$11.99
(Save 50%)
http://t.co/ilcmSDv6 " — pdehaan

