My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
GettingStarted  
getting started with fnfo
Featured, GettingStarted, Phase-Implementation
Updated Apr 6, 2010 by nomiadc...@gmail.com

Basic Usage

import com.guavestudios.fnfo.Fnfo;
Fnfo.initialize(this); 

Play your build now and right click on stage. There will be a new MenuItem called fnfo. Click it and you will get following output. Rightclick fnfo again in context menu and it will hide.

Output:

ProjectName: promicam 
VersionNumber: 1.0.0.54-130 
BuildTime: 17.03.2010 18:12:42,61 
BuildComputer: NOMIAD-WORK/nomiad 
PlayerVersion: WIN 10,0,42,34
PlayerDebug: true
PlayerType: PlugIn
ExternalInterface: true
ExternalInterfaceObject: flashobject
ReportTime: Tue Apr 6 17:10:14 GMT+0200 2010
ReportExecution: 00:00:01:406
LastError: none
LoadUrl: http://domainname.com/my.swf
BytesTotal: 221935
StageParam: language = de-de

Plugins

You can display more information using additional plugins. For example the versioninfo Plugin.

Version Info

Fnfo.initialize(this, { versioninfo:FnfoVersion_spfront.VERSION_FILE } );

The versionfile included here is generated as txt file with version.bat. Additionally a class with format FnfoVersion(projectname).as is generated in your default src folder.

//DONT MODIFY THIS FILE IS GENERATED BY VERSION.BAT (FNFO) 
package { 
	public class FnfoVersion_spfront { 
		[Embed(source='../scripts/version.txt',mimeType='application/octet-stream')] 
		public static const VERSION_FILE:Class; 
	} 
} 

Version.txt includes following information an can be extended with your custom information.

ProjectName: fnfo
VersionNumber: 0.0.1.0-2 
BuildTime: 31.03.2010 11:05:38.20 
BuildComputer: NOMIAD-WORK/nomiad

The VersionNumber is currently formatted as {major}.{minnor}.{build}.{svnrevision}-{localbuild}

  • {major}.{minnor}.{build} is read from {projectswf}.productversion file in the same dir as version.bat is.
  • {svnrevision} is read from WCRev util packed with TortoiseSVN, else its 0
  • {localbuild} is incremented each time you build the swf and stored in {projectswf}.buildnr

StageInformation

This plugin is currently activated as default. It will give information about stage parameters given to the swf.

StageParam: language = de-de

Todo: add information about all plugins ;-)


Sign in to add a comment
Powered by Google Project Hosting