Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: Questions on Generator
From: Mike Thompson
Date: Tue, 9 Jun 1998 08:13:43 +0100

Hi Andrew,

>Hi all, I have been playing around with Generator for about 2 days after
>finally getting version 4 of PWS.
>My tests and quick examples etc work fine locally when tested through
>Flash but as soon as I try access them through the PWS server then they
>don't work.
>I have looked at the samples at http://www.flash.com/generator and
>looked at the source code for the files shown there. They reference the
>template like this "/servlet/FlashGenerator/tattoo/tattoo.swt" which to
>me says that in the root of the server there must be something like that
>but after I installed Generator I didn't have any directories like that.
>Is there something wrong with my install or do you have to manually add
>files and create directories?

Let's assume that you have created a template named:

sample.swt

Place this sample in the root directory of your web server,
typically in the folder named C:\InetPub\WWWRoot. This
should give you a full file system path to the file as:

C:\InetPub\WWWRoot\sample.swt

When you reference this file from a browser, use a URL in
the following form:

http://yourserver/FlashGenerator/sample.swt

The "FlashGenerator" portion does not indicate a directory within
C:\InetPub\WWWRoot, but rather is a flag to PWS to invoke the
Flash Generator, using sample.swt located in the root folder
of your we server.

If you were to place the template into a subdirectory of
your web server so that it's full file system path is:

C:\InetPub\WWWRoot\SubDir\sample.swt

The URL to reference the template would be:

http://yourserver/FlashGenerator/SubDir/sample.swt

Does this clear things up regarding URL paths for the
Generator.

>One other thing, is the whole template actually sent down on request
>because I am ending up with templates of about 300K for simple
>replacement of text. Is this normal?

With regards to template size, your template is probably large
because you are using a variety of fonts -- each English
font (and style like bold, italic, etc...) is typically
between 25K to 50K in size. This is because when exporting
a template, we cannot predict what character shapes to
include in the template so we include them all. When the
Generator runs, it will only include the font shapes that
are actually used by the template, therefore what is sent
down the wire to the browser is still a minimally sized
Flash file. The Generator is very efficient when it comes
to tossing out the unused character shapes.

I hope this information helps.

Mike Thompson
Sr. Software Engineer
Flash Generator



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Questions on Generator, Andrew Vester

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]