예제 #1
0
		// pretty print a SwfLoaded statement to the console
		internal virtual void  dumpSwfLoadedLine(SwfLoadedEvent e)
		{
			// now rip off any trailing ? options
			int at = e.path.LastIndexOf('?');
			String name = (at > - 1)?e.path.Substring(0, (at) - (0)):e.path;
			
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(LocalizationManager.getLocalizedTextString("linePrefixWhenSwfLoaded")); //$NON-NLS-1$
			sb.Append(' ');
			sb.Append(name);
			sb.Append(" - "); //$NON-NLS-1$
			
			System.Collections.IDictionary args = new System.Collections.Hashtable();
			args["size"] = e.swfSize.ToString("N0"); //$NON-NLS-1$
			sb.Append(LocalizationManager.getLocalizedTextString("sizeAfterDecompression", args)); //$NON-NLS-1$
			output(sb.ToString());
		}
예제 #2
0
		/// <summary> Called when a swf has been loaded by the player</summary>
		/// <param name="e">event documenting the load
		/// </param>
		internal virtual void dumpSwfLoadedEvent(SwfLoadedEvent e)
		{
			// now rip off any trailing ? options
			int at = e.path.LastIndexOf('?');
			String name = (at > -1) ? e.path.Substring(0, (at) - (0)) : e.path;
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(TextHelper.GetString("Info.LinePrefixWhenSwfLoaded"));
			sb.Append(' ');
			sb.Append(name);
			sb.Append(" - "); //$NON-NLS-1$
			System.Collections.IDictionary args = new System.Collections.Hashtable();
			args["size"] = e.swfSize.ToString("N0"); //$NON-NLS-1$
			sb.Append(replaceInlineReferences(TextHelper.GetString("Info.SizeAfterDecompression"), args));
			TraceManager.AddAsync(sb.ToString());
		}
예제 #3
0
		/// <summary> Called when a swf has been loaded by the player</summary>
		/// <param name="e">event documenting the load
		/// </param>
		internal virtual void  handleSwfLoadedEvent(SwfLoadedEvent e)
		{
			// first we dump out a message that displays we have loaded a swf
			dumpSwfLoadedLine(e);
		}