Sie sind nicht angemeldet.

1

Mittwoch, 23. April 2014, 20:12

compile embeddedfonts.swf...

Hi Klaus!

after downloading http://krpano.com/plugins/textfield/sour…_sourcecode.zip
i've try to compile (as Windows-Admin!) embeddedfonts.swf with this as code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
	krpano font embedding
*/
package
{
	import flash.display.Sprite;
	import flash.text.Font;

	[SWF(width="0", height="0", backgroundColor="#000000")]
	public class embeddedfonts extends Sprite
	{

		// embed a font files
		[Embed(source="fonts/PTsN.ttf",   fontName="myFont", fontWeight="normal", fontStyle="normal", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansNormal     : Class;
		[Embed(source="fonts/PTsNb.ttf", fontName="myFont", fontWeight="bold",   fontStyle="normal", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansBold       : Class;
		[Embed(source="fonts/PTsi.ttf",  fontName="myFont", fontWeight="normal", fontStyle="italic", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansItalic     : Class;
		[Embed(source="fonts/PTsib.ttf", fontName="myFont", fontWeight="bold",   fontStyle="italic", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansBoldItalic : Class;

		public function registerplugin(krpano:Object, pluginfullpath:String, plugin:Object):void
		{
			krpano.trace(1,"registering fonts...");

			// register all embedded fonts here
			Font.registerFont(embeddedfont_PTsansNormal);
			Font.registerFont(embeddedfont_PTsansBold);
			Font.registerFont(embeddedfont_PTsansItalic);
			Font.registerFont(embeddedfont_PTsansBoldItalic);
		}
	}
}

i've got this

Zitat

compile embeddedfonts.swf...
Der Befehl "mxmlc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Drücken Sie eine beliebige Taste . . .


What am i doing wrong?

Greetz
mil

2

Donnerstag, 24. April 2014, 07:55

Have you moved any files out of that folder or deleted anything?

3

Donnerstag, 24. April 2014, 13:26

No!
I've just unziped edited embeddedfonts.as and started compile_embeddedfonts.bat

btw. on old WinXP i've got this:

Zitat

compile embeddedfonts.swf...
defaults: Error: unable to open 'D:\Eigene Dateien\krpano_textfield_plugin_flash
_sourcecode\flex_sdk_4.1\frameworks/winFonts.ser'

Drücken Sie eine beliebige Taste . . .


Grüße
mil

4

Donnerstag, 24. April 2014, 14:58

Maybe it's a XP specific problem (I must admit I never tested mxmlc on XP)...
Try using a path without blanks/spaces... (related to 'Eigene Dateien').

5

Donnerstag, 24. April 2014, 15:32

Hi,
generaly i am working on Win7/64 machine wchich gives the error first mentioned, i've just testet it on an old XP machine.

6

Donnerstag, 24. April 2014, 16:12

Sorry, but no I have idea what could be wrong there, on all my computers this is working fine...

The compile batch files are pretty simple, first the path to the flex sdk will be set and the mxmlc compiler called...

I have really no idea how an error message like 'Der Befehl "mxmlc" ist entweder falsch geschrieben oder' could happen in this situation...

7

Donnerstag, 24. April 2014, 16:31

I have Flex_SDK 4.6 on this machine ...

Ähnliche Themen