[swfmill] Font import patch

2007-04-08 Thread Ralf Fuest
I tried to use swfmill together with the font DejaVuSans-ExtraLight
(dejavu.sf.net), but at least 2 glyphs (p and d) are imported
incorrectly.
While I was trying to understand the code I found an interesting
function in the FreeType API Reference (FT_Outline_Decompose) that
allows to simplify the importing. All fonts I have testet seem to work
with the new code. I've also testet the MSGOTHIC glyphs that showed
similar errors some time ago and they also work fine.

I had an problem understanding the ShapeMaker code. Does the R in
lineToR, setupR,... stand for relative? This would be misleading,
because setupR is absolute and not relative. I temporarily added my own
setup function (setup2), but someone who knows this code should look
into it again.

An comparison between the new and old code is available at:
http://pep-mp.de/swfmill/import_ttf.png
The patch: http://pep-mp.de/swfmill/import_ttf.patch

I also made another unrelated little patch, that fixed a segfault while
importing an SVG file: http://pep-mp.de/swfmill/css.patch

Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [ Font import patch

2007-04-10 Thread Ralf Fuest
Hello Tobias,
when you don't want to wait until Daniel has time to apply the patch and
you know how to compile the source code you can do the following steps:

1. After you extracted the swfmill source code, copy the patch in the
swfmill-0.2.12.3 directory
2. Apply the patch by executing "patch -p0 < import_ttf.patch"
3. Compile as normal

Ralf


Am Dienstag, den 10.04.2007, 12:31 +0200 schrieb Tobias Hinz:
> Hey. 
> 
> How to apply this patch? 
> Im really working a lot with fonts and swfmill. 
> 
> Cheers, tobias
> 
> SKYCO GmbH, Process and Workflow Management
> 
> Schliemannstr. 5  I  10437 Berlin
> 
> Tel. +49 30 55009711  I  Fax +49 30 48494771
> 
> email: [EMAIL PROTECTED]   http://www.skyco.de
> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
> Auftrag von Ralf Fuest
> Gesendet: Sonntag, 8. April 2007 14:30
> An: swfmill@osflash.org
> Betreff: [swfmill] Font import patch
> 
> I tried to use swfmill together with the font DejaVuSans-ExtraLight
> (dejavu.sf.net), but at least 2 glyphs (p and d) are imported
> incorrectly.
> While I was trying to understand the code I found an interesting
> function in the FreeType API Reference (FT_Outline_Decompose) that
> allows to simplify the importing. All fonts I have testet seem to work
> with the new code. I've also testet the MSGOTHIC glyphs that showed
> similar errors some time ago and they also work fine.
> 
> I had an problem understanding the ShapeMaker code. Does the R in
> lineToR, setupR,... stand for relative? This would be misleading,
> because setupR is absolute and not relative. I temporarily added my own
> setup function (setup2), but someone who knows this code should look
> into it again.
> 
> An comparison between the new and old code is available at:
> http://pep-mp.de/swfmill/import_ttf.png
> The patch: http://pep-mp.de/swfmill/import_ttf.patch
> 
> I also made another unrelated little patch, that fixed a segfault while
> importing an SVG file: http://pep-mp.de/swfmill/css.patch
> 
> Ralf
> 
> 
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
> 
> 
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bitmap filter effects on buttons

2007-04-10 Thread Ralf Fuest
Hello Brian,
the current swfmill version doesn't support filters and blend modes for
buttons. I've written a patch to add support for this features.
Converting your sample swf to xml and back again worked.

When you want to compile it yourself you'll need an SVN version of the
source code, to get the codegen directory.

Ralf
Index: src/codegen/source.xml
===
--- src/codegen/source.xml	(revision 209)
+++ src/codegen/source.xml	(working copy)
@@ -358,7 +358,14 @@
 
 
 
-	
+	
+	
+		
+	
+	
+		
+		
+	
 	
 	
 	
@@ -370,6 +377,13 @@
 		
 			
 		
+		
+
+
+		
+		
+			
+		
 	
 
 
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] prerelease 0.2.12.4

2007-04-10 Thread Ralf Fuest
Hello dan,
I just tried 0.2.12.4 and it fails to compile. You have removed the
const keywords in swft_import_ttf.cpp and now gcc 4.1.2 on ubuntu 7.04
complains that there is an invalid conversion in these lines. After
adding the consts it compiled again.

Ralf

--

Errors:

swft_import_ttf.cpp:52: error: invalid conversion from 'int
(*)(FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)'
swft_import_ttf.cpp:52: error: invalid conversion from 'int
(*)(FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)'
swft_import_ttf.cpp:52: error: invalid conversion from 'int
(*)(FT_Vector*, FT_Vector*, void*)' to 'int (*)(const FT_Vector*, const
FT_Vector*, void*)'
swft_import_ttf.cpp:52: error: invalid conversion from 'int
(*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)' to 'int (*)(const
FT_Vector*, const FT_Vector*, const FT_Vector*, void*)'


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] prerelease 0.2.12.4

2007-04-11 Thread Ralf Fuest
I'm using freetype 2.2.1.
After searching on the freetype-devel mailinglist I found a thread about
this problem and it seems that they changed the API in Version 2.2.0. So
we need to do some conditional compiling, when we want to support both
APIs.

Ralf

> heh- i had the exact opposite-- that's why i removed the consts. Seems we 
> have some conflicting freetype versions? I'm using 2.1.10 here, what's yours?
> 
> -dan
> 
> 



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] Ticket #11

2007-04-11 Thread Ralf Fuest
Hello,
i've fixed the problem described in ticket #11. The problem was that the
isSetup bit wasn't preserved during the conversion of empty TextRecords,
so every empty TextRecord is interpreted as the end of the records list.

Ralf
Index: src/codegen/source.xml
===
--- src/codegen/source.xml	(Revision 214)
+++ src/codegen/source.xml	(Arbeitskopie)
@@ -214,7 +214,7 @@
 
 
 
-	
+	
 	
 		
 		
@@ -245,7 +245,7 @@
 
 
 
-	
+	
 	
 		
 		
@@ -276,7 +276,7 @@
 
 
 
-	
+	
 	
 	
 	
@@ -308,7 +308,7 @@
 
 	
 	
-	
+	
 	
 	
 	
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bitmap filter effects on buttons

2007-04-11 Thread Ralf Fuest
Hello,
there was an error in the parsing code for color filters, it should work
after the attached patch is applied. And your decision to send in the
file is right, because nobody can fix a bug that isn't known.

More technical stuff:
The end-condition for reading the ColorMatrix was wrong, so 21 instead
of 20 floats were read and that screwed up everything after the matrix.
I decided to add a size attribute to the list tag to make the source.xml
file look less confusing. size==19 for an list with 20 elements doesn't
look right ;). The Convolution filter also uses such a matrix and had a
similar end-condition, so i changed this attribute to an size attribute.
I couldn't check if this works because i don't have flash or an swf file
that contains this filter, but i think so.

Ralf

> Thanks!  I tried out 0.2.12.4 and it works for many of my buttons, but
> I found one which it doesn't like.  I've attached a sample swf and
> fla, and the output from the parsing.  The difference is that this
> button has an adjust color filter on it.  
> 
> I can probably work around this, but I thought I'd send it along.
> Maybe it's another quick fix.
> 
> Thanks again.
> 
> --Brian
Index: src/codegen/source.xml
===
--- src/codegen/source.xml	(revision 216)
+++ src/codegen/source.xml	(working copy)
@@ -541,7 +541,7 @@
 	
 	
 	
-	
+	
 	
 	
 	
@@ -549,7 +549,7 @@
 
 
 
-	
+	
 
 
 
Index: src/codegen/parser.xsl
===
--- src/codegen/parser.xsl	(revision 216)
+++ src/codegen/parser.xsl	(working copy)
@@ -149,6 +149,12 @@
 		item = NULL;
 	}
 
+
+	if(item && (.size() ==  - 1)) {
+		.append( item );
+		item = NULL;
+	}
+
 			}
 		}
 	}
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] xml2swf (advanced mode)

2007-04-13 Thread Ralf Fuest
It is possible to do rotation in simple mode using the skew parameters,
as Mark said, but you need an current version of swfmill. I've attached
a example of colored rotated text in simple (test.xml). When you need a
textfield with different colors in it you can use HTML markup inside the
text attribute (test_html.xml).

I've also written a patch to add a rotation attribute to the place tag
that makes rotating objects easier. The angle is in degrees, because i
think it is easier to use. test_rotation.xml is the same as test.xml,
but it uses the rotation attribute and only works after the patch is
applied.

Ralf

> On 4/13/07, Christian Giordano <[EMAIL PROTECTED]> wrote:
> > Hi guys, I would need to generate a swf with embedded an image and
> > rotated/colored texts. I presume the latter is not possible to do in
> > simple mode (I read about the rotation patch but I would need also to
> > set some text formatting, and I never compiled swfmill).
> > Where could I then find some instructions to learn the xml api to
> > obtain what I would need?
> 
> I think this actually is possible in simple. There's  with
> attributes scalex, scaley, skewx and skewy. If I'm not mistaken, this
> is a normal 2D transformation matrix.
> 
> As a 2D matrix, a rotation would be:
> 
> cos(a) -sin(a)
> sin(a) cos(a)
> 
> where 'a' is the angle in radians. The two cos' are scalex and scaley,
> I suspect the other two are skew. Maybe try it and see if it works.
> 
> You can find  in the xslt that transforms swfml-s to swfml-l here:
> 
> 
> If that doesn't work, the easiest way to get the proper swfml-l is to
> find (or create) an example of what you want to do and convert it with
> swf2xml to see how it works.
> 
> HTH,
> Mark
> 
> ___
> swfmill mailing list
> [EMAIL PROTECTED]
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


test.xml
Description: application/xml


test_html.xml
Description: application/xml


test_rotation.xml
Description: application/xml
Index: src/xslt/simple-elements.xslt
===
--- src/xslt/simple-elements.xslt	(Revision 214)
+++ src/xslt/simple-elements.xslt	(Arbeitskopie)
@@ -174,12 +174,14 @@
 
 
 
+
 0
 
 
 
 
 
+
 0
 
 
@@ -187,6 +189,7 @@
 
 
 
+	
 1
 
 
@@ -194,6 +197,7 @@
 
 
 
+
 1
 
 
___
swfmill mailing list
[EMAIL PROTECTED]
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] unable to compile swfmill-0.2.12

2007-04-16 Thread Ralf Fuest
Hello sub, 
did you download a source code package or did you use an svn version?
When you are using a source code package you normally don't need to run
autogen.sh at all, an simple ./configure should be enough.

The errors show that some of the libxml include files are missing. Do
you have the "libxml2-dev" package installed?

Ralf

> hi @all,
> 
> on a debian box i downloaded the source code from http://swfmill.org/.
> but when i try to build the software, i run into several problems:
> 
> 1.) one of the several processes run by autogen.sh seems to modify the
> $VERSION string in a way which ./configure will complain. i had to
> reset the value by hand.
> 
> 2.) a call to make produces the following list of error messages. in
> short: the package is un-compilable.
> 
> since nobody will publish a software that buggy, i must be doing something 
> wrong. 
> but what? gcc is from version 3.3.6.
> 
> sincerely
> sub


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Actions in button not working

2007-04-20 Thread Ralf Fuest
Hello Juan,
which swfmill version did you use?
It would be easier to fix the problem when we have access to the swf
file. Can you provide the file for debuging?

Ralf

> Hello all,
> 
> 
> 
> I've spent some time using swfmill and I found that it's a great tool. I just 
> decompiled a flash file (original.swf) to "output.xml" with swf2xml command 
> and then compiled again with swfmill xml2swf to new-movie.swf. The result was 
> an almost identical movie but with a problem: The buttons don't work.



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Actions in button not working

2007-04-20 Thread Ralf Fuest
Hello Juan,
thanks for the sample movie. I found the bug in the xml to swf
conversion, that caused the error and wrote a patch that should fix the
problem.

Ralf

> Hello Ralf,
> 
> I tested first with 0.2.12 version and later I get the same behavior with 
> swfmill 0.2.12.4. A sample movie is attached, is not the same movie I was 
> working in, but it reproduce the bug(?).
> 
> Thanks for the quick response, I hope this help to improve such a great tool.
> 
> Juan

Index: src/codegen/source.xml
===
--- src/codegen/source.xml	(Revision 216)
+++ src/codegen/source.xml	(Arbeitskopie)
@@ -39,8 +39,8 @@
 		
 	
 	
-	
-	
+	
+	
 	
 
Index: src/codegen/parsexml.xsl
===
--- src/codegen/parsexml.xsl	(Revision 216)
+++ src/codegen/parsexml.xsl	(Arbeitskopie)
@@ -154,6 +154,7 @@
 			
 int b = SWFBitsNeeded( , true );
 b -= ;
+if( b <  ) b = ;
 if( b >  )  = b;
 			
 		
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] svg colors?

2007-04-24 Thread Ralf Fuest
Hello,
i'm working on the svg support at the moment and supporting color names
is only one of the things i've fixed or will fix in the near future. I
don't know exactly when i'll be finished with the work but i hope that
i'll get it done this week.

Ralf


> I know the svg import is considered borked but.
> 
> I just tried testing some import from inkscape since it would be
> useful if I could draw some layout stuff in there and import.
> 
> The colors seem to be coming out totally screwy?
> 
> More or less random, I'm attaching a few very very small test files,
> just 3 blobs of red green blue so you can see what I mean.
> 
> Is anyone actually trying to use inkscape?
> 
> am I doing something wrong?
> 
> It looks pretty close to being usable for my needs so I'll probably
> try and setup a dev environment and squish any issues that get in my
> way :)


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] wrong tar.gz download link?

2007-04-25 Thread Ralf Fuest
Hello Gerrit,
you said that you downloaded the source to work on svg again. I think
you should wait a couple of days to let me finish my work, i've changed
many things in the code so the chance is high that there will be
conflicts between our changes.

My new code doesn't have many new features yet. But it is more stable
and i hope it is easier to add new features. Most of the bugs in ticket
#12 are fixed. There are other features too, but i don't wont to promise
anything before i've tested everything and cleaned up the code.

Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Mp3 in swf-problem: No sound, no errors

2007-04-25 Thread Ralf Fuest
Hello Jonas,
i haven't used swfmill mp3 import yet, but i think it only supports
stereo mp3s and no mono or joint stereo mp3s. Have you tried using a
stereo mp3?

Ralf

> Hi!
> 
> I'm trying to create a swf containing mp3s, but obviously something's
> wrong.
> I'm using a 128Kbit mono mp3 (later I want to use stereo).



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] Improved SVG support

2007-05-02 Thread Ralf Fuest
Hello,
I've recently worked on swfmill's SVG import feature. I attached a first
version of the patch to this email. In my tests it was pretty stable and
produced good results with many SVG files. Here is a list of some of the
new features and bugfixes:
- the transform attribute now accepts more than one transformation
- circles, ellipses, lines and rounded rects are supported
- painting styles defined in a g-node are used in its child nodes
- color names and rgb(r, g, b) colors work
- stroke caps and stroke joins (flash 8 only)
- linear and radial gradients
- strokes with gradients (flash 8 only)
- multiple svg files with the same ids should work (ticket #14)
- most of the problems in ticket #12

There are still some things that need to be fixed (like the text
support), but I hope it is an improvement. I would like to get some
feedback if it works for your SVG files.

Here are some small demo swfs:
http://pep-mp.de/swfmill/swfmill.html (I'm not an artist ;) )
http://pep-mp.de/swfmill/icons.html (some svg icons)

@Gerrit:
I also experienced a lot of flashplayer crashes during the development,
but they all happened during the development of the gradient support.
The crashes were caused by false values in a transformation matrix, the
player didn't crash after I fixed that problem.
The black fill stretching to the sides of the stage is caused by strokes
that aren't closed, so that the fill can "escape" at the left and right
side where the shape isn't closed. When you need a open shape, that is
filled, you need to close it using a invisible stroke. 

Ralf



svg.patch.bz2
Description: application/bzip
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Installing Latest Trunk

2007-05-09 Thread Ralf Fuest
Hello,
here is a little how-to:

1. svn co http://swfmill.org/svn/trunk
2. cd trunk
3. I don't know why the next step is necessary but it can't compile
without creating this file:
   touch ChangeLog
3. ./autogen.sh
4. (optional) run ./configure with custom parameters
5. make
6. make install
7. enjoy the working svn build
   
Ralf

> Hey, 
> 
>  
> 
> maybe stupid question but: how to install the latest trunk using svn? 
> 
>  
> 
> - downloaded the latest trunk using: “svn co
> http://swfmill.org/svn/trunk/ swfmill218” >> “Ausgecheckt, Revision
> 218.”
> 
> - …and now im pretty lost hehe ;) tried “aclocal” & “autoconf”
> but im not 100% sure what I did ;) 
> 
>  
> 
> Could someone help me out with a little how-to maybe? 
> 
>  
> 
> 
> Mit freundlichen Grüßen,
> 
>  
> 
> Tobias Hinz



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Installing Latest Trunk

2007-05-09 Thread Ralf Fuest
Hello Tobias,
the fixes in trunk only fix glyphs that are deformed. When you mail me
your files and describe your problem a bit more, I'll try to fix the
problem.

Ralf

> Hey Ralf,
> 
> 
> Thanks for the quick reply.
> 
> It works now! 
> Without the touch ChangeLog I had the following error again and again:
> 
> "autoheader: error: AC_CONFIG_HEADERS not found in configure.ac"
> 
> Was running the update to the latest trunk because I read that there are
> fixes for the font import. 
> 
> 
> But it seems I still have problems to use some imported fonts: 
> 
> Its really weird because I can use those fonts in regular windows
> applications without errors but in flash they don’t appear on the screen but
> they seem to get imported correctly.
> 
> If u like I can describe the problem a bit more clear and send the necessary
> fonts and flash files. Dunno if the Fonts are broken or if it’s a flash or
> swfmill problem... O_o 
> 
> Cheers, Tobias!


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] stdin & stdout

2007-05-09 Thread Ralf Fuest
Hello Steve,
i just tried using stdin and stdout mode and it works.

Whats your problem with it? Does it show any errors?

Ralf

> Has anyone used the stdin and stdout mode successfully?
> 
>  
> 
> Such as:
> 
>  
> 
> Swfmill simple stdin stdout
> 
>  
> 
> Thanks!!!



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Help with mask and bitmaps

2007-05-17 Thread Ralf Fuest
Hello Sebastian,
I tried to reproduce your bug, but swfmill didn't crash with any of your
images. Can you provide the xml file wich causes the crash?

Ralf

> Hi again,
> 
> I've to put several images into the library but some of this images
> crashes swfmill.
> 
> For example:
> http://delsilucas.googlepages.com/test_clip_14_bug.png
> http://delsilucas.googlepages.com/test_clip_20_bug.png
> 
> Crash swfmill.
> 
> But:
> http://delsilucas.googlepages.com/test_clip_13_right.png
> 
> Works fine.
> 
> Any idea?
> 
> Thanks,


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Help with mask and bitmaps

2007-05-17 Thread Ralf Fuest
Hello Sebastian,
does swfmill still crash with the corrected version?
When it does you need to give more information. Which swfmill version do
you use? Do you use win, mac or linux? Does it also crash when you only
import one buggy png file? Perhaps you can provide an archive of the
project that makes swfmill crash (xml + all pngs).

Ralf

> Whoops!
> 
> Please, notice the "  "
> it sould be "  ".
> 
> And with the 20 too.
> 
> Sorry,




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-27 Thread Ralf Fuest
Hello Richard,
you need to install pkg-config to get support for PKG_CHECK_MODULES in
autoconf.

Ralf


> Hi there,
> 
> 
> I'm trying to build the svn version and read the earlier thread from
> this month on installing it. I have run configure but I get the
> following error:
> 
> 
> ./configure: line 18836: syntax error near unexpected token `XML,'
> ./configure: line 18836: `PKG_CHECK_MODULES(XML, libxml-2.0)'
> 
> 
> Any ideas?
> 
> 
> Rich




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-27 Thread Ralf Fuest
Hello Richard,
I think pkg-config and pkgconfig are the same.

Ralf

> Hi Ralf,
> 
> 
> I installed pkgconfig using macports command: port install pkgconfig 
> 
> 
> Everything went well and no errors were generated.
> 
> 
> Is pkg-config something different to pkgconfig?
> 
> 
> Thanks,
> 
> 
> Rich
> 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-28 Thread Ralf Fuest
Hello Mark,
you don't need to copy Makefile.in from a pre-release, this can cause
problems when Makefile.am is changed. The build system requires a
ChangeLog file to work correctly, it should be added to SVN to make
compiling easier. Also running ./configure isn't necessary, because it's
run by ./autogen.sh. My SVG patch also includes a changed version of
autogen.sh that allows you to specify the configure parameters when
calling autogen.sh (e.g. ./autogen.sh --prefix=/usr).

Here is an updated version of the build instructions:

$ mkdir swfmill
$ cd swfmill
$ svn co http://swfmill.org/svn/trunk
$ cd trunk
$ mv ~/Desktop/svg.patch.bz2 .
$ bunzip2 -d svg.patch.bz2
$ patch -p0 < svg.patch
$ touch ChangeLog
$ ./autogen.sh
$ make
$ su
# make install

Ralf

> Below is what I have to do, on Gentoo. That means I don't have to deal
> with dependencies, because it's close to impossible to have a working
> system without having everything swfmill needs already... lucky me. :)
> What you do need, apart from the dependencies, is (of course) Ralf's
> patch and Makefile.in (I took the one out of the latest pre-release).
> I assume both are on the desktop, just adjust the paths if you have
> them somewhere else.
> 
> $ mkdir swfmill
> $ cd swfmill
> $ svn co http://swfmill.org/svn/trunk
> $ cd trunk
> $ mv ~/Desktop/svg.patch.bz2 .
> $ bunzip2 -d svg.patch.bz2
> $ patch -p0 < svg.patch
> $ mv  ~/Desktop/Makefile.in .
> $ ./autogen.sh
> $ ./configure
> $ make
> $ su
> # make install
> 
> So, that's what works for me -- your mileage may vary. If somebody
> succeeds in building a statically linked mac/win binary, why not
> upload it somewhere so the others can play, too?
> 
> HTH,
> Mark


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-28 Thread Ralf Fuest
Hello Martin,
I don't own a mac, so I can't test if this works:

Try to change this line in autogen.sh:
aclocal -I autoconfig/m4
to this:
aclocal -I /opt/local/share/aclocal -I /usr/share/aclocal

When this doesn't work change it back to the original and search for a
file with the name "pkg.m4" on your harddisk and copy (or link) it into
the autoconfig/m4 directory inside the swfmill trunk folder.

Ralf


> i still have problems with autogen on mac osx
> 
> - - installed pkgconfig (port install pkgconfig)
> - - i checked out swfmill/trunk with eclipse
> - - applied the patch with eclipse
> - - touched ChangeLog
> - - started ./autogen.sh
> 
> the error
> > checking for pkg-config... yes
> > ./configure: line 18836: syntax error near unexpected token `XML,'
> > ./configure: line 18836: `PKG_CHECK_MODULES(XML, libxml-2.0)'
> is still appearing
> 
> regards Martin


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-30 Thread Ralf Fuest
Hello Martin,
this problem seems to be related to static linking on OS X. Try to
remove the lines between "if IS_OSX" and "endif" in src/Makefile.am and
rebuild everything.

Ralf

> Martin Ficzel schrieb:
> 
> sorry the quotin is unreadable
> 
> my current automake-mac file
> 
> > #!/bin/sh
> >
> > set -x
> > aclocal -I autoconfig/m4
> > glibtoolize --force --copy
> > autoheader
> > automake --add-missing --copy
> > autoconf
> > cd src
> > xsltproc codegen/mk.xsl codegen/source.xml
> > cd ..
> > export CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386
> > -arch ppc"
> > export CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386
> > -arch ppc"
> > export LDFLAGS="-arch i386 -arch ppc"
> > ./configure --disable-dependency-tracking
> the current make error
> > //usr/bin/ld: for architecture ppc
> > /usr/bin/ld: can't locate file for: -lcrt0.o
> > usr/bin/ld: forcollect2:  ld returned 1 exit status
> > architecture i386
> > /usr/bin/ld: can't locate file for: -lcrt0.o
> > collect2: ld returned 1 exit status
> > lipo: can't open input file: /var/tmp//ccBI3buv.out (No such file or
> > directory)
> > make[3]: *** [swfmill] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all-recursive] Error 1
> 
> 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building svn version

2007-05-30 Thread Ralf Fuest
Hello Martin,
doing a build without static linking wasn't intended as a permanent
solution, but a test if it works without it.

Sorry, but I think I can't help you, because it's an mac specific
problem. Perhaps someone who owns a mac and reads this mailing list can
help.

Ralf

> Ralf Fuest schrieb:
> > Hello Martin,
> > this problem seems to be related to static linking on OS X. Try to
> > remove the lines between "if IS_OSX" and "endif" in src/Makefile.am
> and
> > rebuild everything.
> hmm but static linking is necessary for win and osx because we cannot
> be
> shure that all users habve the libs installed
> 
> but nevertheless it solved this problem but created the next one
> > collect2: ld returned 1 exit status
> > lipo: can't open input file: /var/tmp//ccQMkJ9u.out (No such file or
> > directory)
> > make[3]: *** [swfmill] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all-recursive] Error 1
> regards Martin ... confused
> 
> 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] bitmap tag

2007-06-06 Thread Ralf Fuest
Hello Christopher,
the bitmap tag has the following attributes:
- id
  linkage id

- import
  image file, supports jpg and png

- mask
  8bit grayscale png used as alpha channel
  This only works together with a jpg image, because pngs already
support alpha natively.

There is no name attribute in the bitmap tag.

Ralf

> Hi everybody,
> After short discussion on haXe mailing list ( 
> http://lists.motion-twin.com/pipermail/haxe/2007-June/009485.html ) I 
> wanted to clarify the proper usage of  tag in swfmill. What are 
> the possible attributes ? ( id, name, import ), what image format does 
> it accepts ? I'm probably going to add some information about this tag ( 
> cause it's pretty hard to find ) on osflash wiki - that's why I wanted 
> to make sure I use it properly like:
> 
>  import="bitmap.jpg"/>
> 
> Thanks,
> Christopher


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] bitmap tag

2007-06-06 Thread Ralf Fuest
Hello Christopher,
I don't know where I first heard about the mask attribute. But I looked
at the source code, before I wrote the mail, to make sure I don't forget
any attribute.
The mask attribute is also supported in the clip tag, so when you update
the osflash wiki and you mention this attribute, it would be good if
also add this information to the clip tag.

Ralf

> Hello Ralf,
> Thanks for the answer. I thought that name attribute is somehow used to 
> bind bitmap with class when compiling haXe to falsh9 but You are right - 
> no name needed. It is all made be id, I have just tested this. I didn't 
> know about the mask attribute - where did You find this?
> 
> Thanks again,
> Christopher


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] SWFMILL error: using gradient fill, DefineShape

2007-06-13 Thread Ralf Fuest
Hello Roxlu,
I noticed that there is a error in the handling of gradients while I was
writing my svg patch. But I didn't have time to fix it yet and I wasn't
sure if the error is inside the swf read or write code (or both).
Which type of gradient did you use? I only experienced a error while
using a stroke with a gradient and not a fill gradient.
Did you create the gradient in the original Flash IDE? If you did, it
would be good if you can send me this file, because I need a correct
reference swf to locate the error and I'm not sure if my swfs containing
gradients made with swfmill are 100% correct.

Ralf

> Hi everyone!
> 
> I'm using FlashDevelop which uses swfmill to create the swf files.
> Though when I create a gradient in
> Flash I get an error like:
> 
> swfmill WARNING: end of tag DefineShape is @, should be @
> 
> 
> Does someone knows if there is a fix for this? If not where in the code
> of swfmill do I need to look to fix it myself?
> 
> Gr. Roxlu



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] SWFMILL error: using gradient fill, DefineShape

2007-06-14 Thread Ralf Fuest
Hello Roxlu,
I wrote a patch that should fix your gradient problem. I still noticed a
bug while using it, but I think it was caused by the new svg code, I'll
have to look into this later.

This patch also replaces a old patch I wrote some time ago, called
filters.patch, so make sure this isn't applied when you or someone else
wants to try it.

Ralf

PS: I've asked Dan for SVN access, so I hope there will be an updated
SVN version soon.

> Hello Roxlu,
> I noticed that there is a error in the handling of gradients while I was
> writing my svg patch. But I didn't have time to fix it yet and I wasn't
> sure if the error is inside the swf read or write code (or both).
> Which type of gradient did you use? I only experienced a error while
> using a stroke with a gradient and not a fill gradient.
> Did you create the gradient in the original Flash IDE? If you did, it
> would be good if you can send me this file, because I need a correct
> reference swf to locate the error and I'm not sure if my swfs containing
> gradients made with swfmill are 100% correct.
> 
> Ralf
> 
> > Hi everyone!
> > 
> > I'm using FlashDevelop which uses swfmill to create the swf files.
> > Though when I create a gradient in
> > Flash I get an error like:
> > 
> > swfmill WARNING: end of tag DefineShape is @, should be @
> > 
> > 
> > Does someone knows if there is a fix for this? If not where in the code
> > of swfmill do I need to look to fix it myself?
> > 
> > Gr. Roxlu
Index: src/codegen/source.xml
===
--- src/codegen/source.xml	(Revision 218)
+++ src/codegen/source.xml	(Arbeitskopie)
@@ -96,7 +96,7 @@
 
 
 
-
+
 
 
 
@@ -541,7 +541,7 @@
 	
 	
 	
-	
+	
 	
 	
 	
@@ -549,7 +549,7 @@
 
 
 
-	
+	
 
 
 
@@ -578,19 +578,40 @@
 
 
 	
-	
+	
+		
+	
+	
+		
+		
+	
+	
 	
 
 
 
 	
-	
+	
+		
+	
+	
+		
+		
+	
+	
 	
 
 
 
 	
-	
+	
+		
+	
+	
+		
+		
+	
+	
 	
 	
 
Index: src/codegen/parsexml.xsl
===
--- src/codegen/parsexml.xsl	(Revision 218)
+++ src/codegen/parsexml.xsl	(Arbeitskopie)
@@ -200,7 +200,7 @@
 	node2 = node->children;
 	while( node2 ) {
 		if( !strcmp( (const char *)node2->name, "" ) ) {
-			
+			
 =0;
 			
 			
@@ -211,7 +211,7 @@
 	if( item ) {
 		item->parseXML( child, ctx );
 		.append( item );
-		
+		
 			++;
 		
 	}
Index: src/codegen/dumper.xsl
===
--- src/codegen/dumper.xsl	(Revision 218)
+++ src/codegen/dumper.xsl	(Arbeitskopie)
@@ -102,4 +102,8 @@
 
 
 
+
+	ctx-> = ;
+
+
 
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org



Re: [swfmill] Bounding boxes for glyphs bug?

Hello Huub,
I changed some things in SWFShapeMaker.cpp in my SVG patch. A quick test
showed that the bottom values of 'o' and 'e' in Vera.ttf are almost
equal with the patch applied. You can try to apply the patch and check
if it works for you. Although I'm not sure if the bounding box
calculation in my version is correct, because I haven't tested if the
values it produces are accurate.

You can download the patch at:
http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001274.html

Ralf

> Hello
> 
> I used swfmill to generate a swf library containing just a few glyphs from a 
> font. Wanting to use swftools to build the final swf animiation I used 
> swfextract to build a font library swftools would understand. Defining 
> textfields containing just one glyph in swftools I found that some of those 
> glyphs would have some parts chopped of.
> 
> Trying to fix this I uses swfmill swf2xml to look at the bounding boxes in 
> the swfmill output, I changed the values, used swfmill xml2swf and then 
> swfextract again to finally get a correct looking animation.
> 
> Having used several tools, the source of the issue was obvious of course, 
> but looking at the xml after unsing swfmill swf2xml on a swf file made by 
> swfmill simple using plain old 
> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf I found that for 
> instance the bottom of the 'o' was significantly lower then the bottom of 
> the 'e'. Which corresponded with the 'o' being chopped of at the bottom.
> 
> Looking at the code in SWFShapeMaker.cpp I found that if a CurveTo is 
> include in the shape then only the second point is used to find the bounding 
> box. This does not seem to a problem since in sequences of CurveTo's it 
> seems that the first point of a CurveTo is almost equal to the second point 
> in the previous CurveTo. But the first CurveTo in any sequence does have a 
> first point which is never used to find the bounding box.
> 
> I added the line
>   minmax( cx+(lastx*factorx), cy+(lasty*factory) );
> to the end of SWFShapeMaker::CurveToR and found that the problem was gone, 
> looking at the xml again, the 'e', 'o' and 'u' had the same bottom as they 
> should (I included only a few glyphs).
> 
> I'm guessing that it would be nice to have that extra minmax call included 
> only in the first CurveTo in a sequence, but I don't know enough about 
> TrueType files to be sure.
> 
> Best Regards
> Huub


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Yesterday I setup a msvc6 build of swfmill, today I have questions :)

Hello Kriss,
you are right, swfmill isn't normally built with MSVC. The windows
builds are compiled with MinGW.

The delete in swft_import_ttf.cpp is wrong, the string should be freed
with xmlFree. I've committed this change to the SVN, this should fix the
problem.

Another Windows user also had problems with PNGs some time ago. He found
a "solution", that solved his problem:
http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001318.html .
Perhaps this also works for you. It would be nice if you can find the
cause of this crash. I wasn't able to reproduce it using the Linux
binary or the windows binary with Wine.

Ralf

> using a copy of the current trunk, There where a number of standard
> msvc problems that lead me to believe that this code is not normally
> built with msvc, yes?
> 
> Apart from fixing those obvious things and of course sorting out
> versions of the required libs and a gadzillian warnings, I only found
> one tiny problem.
> 
> this line here...
> https://trac.xixs.com/wet/cgi-bin/trac.cgi/browser/pc/_src/swfmill/mytrunk/src/swft/swft_import_ttf.cpp#L313
> 
> The delete asserts and looking at the code I suspect you might not
> have to delete that string? But I know nothing of the libs involved so
> thought I would ask. Commenting out the line works and it is only a
> small string so... :)
> 
> The reason I went to this trouble is I've been getting random crashes
> on reading pngs, very annoying, slight changes to the pngs or even
> using another machine cause it to go away so it is one of _those_
> bugs. I figure if I have a debug build to hand I might be able to spot
> whats going wrong while it is happening.
> 
> Its been getting worse recently as I've been building swfs with more
> and more pngs in them but it has been happening randomly with the last
> few builds.
> 
> At the moment just building my own trunk version seems to have fixed
> everything, maybe you've been linking with a bad png library for the
> windows builds?
> 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bounding boxes for glyphs bug?

Hello Huub,
several people had problems building the svn version recently. Some of
this problems were caused by a missing ChangeLog file. I've just fixed
this in svn. When this doesn't solve your problems you should provide
the error messages generated by autogen.sh.

Ralf

> Hello Ralf
> 
> Sorry for not responding any earlier; I've been busy and lacked the energy 
> to dig into this. I seemed to have trouble building your patched swfmill but 
> today it turns out that I cannot even build the plain swfmill svn.
> The autogen.sh script spits out a few warnings and error messages and that's 
> it.
> I'm not familiar with building stuff from svn, so I might be making some 
> rather obvious mistakes here.
> What version of which tools should I be using?
> 
> regards Huub



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] SWFMILL error: using gradient fill, DefineShape

Hello Quentin,
thanks for your test file. But I think you are using an older version of
swfmill that doesn't support radial gradients with a focal point. Any
version since 0.2.12.3 should support this. When you still have problems
with a current build, just send another test swf.

Ralf

> Hi there!
> I'm also having issues with some gradients (these gradients could be
> called 'advanced gradients' and are the consequence of moving the
> 'focal point' you'll see here :
> http://livedocs.adobe.com/flash/8/main/0474.html#71556), I didn't
> apply the patch you sent, but I've attached to this mail a very simple
> SWF file that SwfMill won't handle so it may help you...




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bounding boxes for glyphs bug?

Hello Roxlu,
I have svn access since yesterday. I've already fixed some things in svn
and committed the gradient patch a few minutes ago.

Ralf

> Hi Ralf,
> 
> I was wondering if you already had access to the svn?
> 
> gr. Roxlu



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [Fwd: Linking swfmill-produced MovieClip fails on Haxe Flash9 API]

Hello Christos,
after reading Nicolas Cannasse's reply on your mail on the haXe mailing
list, I found a bug in swfmill. All place tags without a name attribute
had the same instance name (an empty string). The bug is fixed in the
SVN version.

Ralf

> This one has definitely happened before :), but I have yet to found a
> satisfactory answer on either swfmill and haxe mailing lists, so I'm
> posting to both.
> 
> 
> I'm trying to construct a MovieClip consisting of 3 frames with swfmill and
> import it to haxe, using Flash9 API.



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Help grokking SWFML basic (newbie)

Hello Emmet,
OpenOffice seems to produce corrupted SWF files, it forgets a byte at
the end of the file. I've updated swfmill to handle corrupted SWF files
better and produce a XML file anyway. This works with the OpenOffice
SWFs.
Your description of the XML tags seems mostly correct and I don't want
to comment that in detail now. But feel free to ask if you have any
further questions about it.
The  can be caused by a corrupted SWF file, but
shouldn't cause problems as long as the tags after the UnknownTag are
correct.

I think you should do the whole project in a different way:
- Create a SWF containing the slides using OpenOffice or pdf2swf
  This file contains each slide in a separate frame

- Create a swfmill simple XML that imports the slide SWF
  e.g. 

- You can now control the slide SWF with Actionscript.
  e.g. gotoAndStop(slideNr)

This way you don't have to mess with the basic profile.

I hope I haven't forgotten any questions in your long mail ;).

Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Restoring broken bounding boxes?

Hello edA-qa,
there is no build-in function in swfmill to recalculate the bounding
boxes.
But this shouldn't be hard to do in an external program using the way
you described (swf2xml, correct bounds, xml2swf). The program needs to
recalculate the bounding boxes by looking at the edges inside the
DefineShape Tags. Perhaps this could also be done using XSLT.

Ralf

> I have a problem: the Corel SWF exporter I'm using, while setting the
> correct size in the output files, is creating a bounding box larger than
> desired.  I see no option to fix this in Corel (Ver11).
> 
> Now, using swfmill I can easily get at the original size, but I also
> notice the various  items.  These bounds are larger than they
> need to be to contain the items.
> 
> Is there any way in which I can automatically calculate the correct
> bounds?  (Thus I would convert the SWF to XML, calculate correct bounds,
> modify the XML, convert back to SWF).
> 
> 
> NOTE: Having this additional bounding box makes using the width/height
> variables of a DisplayObject in Flash9 virtually useless.  I also see no
> way in actionscript to modify the bounding box of loaded clips.


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Restoring broken bounding boxes?

Hello edA-qa,
swfmill's XML format is closely modeled on the SWF file format, so you
should look at a SWF reference (e.g.
http://sswf.sourceforge.net/SWFalexref.html )

All coordinates in flash are in twips. The ShapeSetup tag with x and y
coordinates moves the current drawing position to this coordinates
(absolute values). The x and y values in all other tags are relative to
the current drawing position. This also means that the x2 and y2 values
in a CurveTo tag are relative to the curves control point described by
the x1 and y1 values and not to the current drawing position before the
tag.

Ralf

> Okay, now my next question is for the format of the XML.  Is there a
> reference as to what the various elements and attributes mean?
> 
> That is, what does the x,y of ShapeSetup imply, or of CurveTo?  So far
> I'm guessing the units are twips, but either I'm totally confused on
> these elements or Corel is truly writing arbitrary bounds information
> (regardless of how I add the various CurveTo/LineTo I don't get anything
> near what the bounds is written as).



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Have a install problem with swfmill-0.2.3 on Linux

Hello Matthias,
libexslt seems to depend on libgcrypt. Your problem should be fixed if
you install the libgcrypt11-dev package.

Ralf

> Hello all,
> 
> I thought I'd pick up this old post, as it seems to be the exact problem 
> I have.
> 
> My config.log can be found here:
> http://typeofundefined.com/stuff/config.log.swfmill
> 
> Regards
> Matthias
> 
> 
> On 6/5/05, Nikolay Nedev  wrote:
>  > When use a "make" command see error message
>  >
>  >  /usr/bin/ld: cannot find -lgcrypt
>  >  collect2: ld returned 1 exit status
>  >  make[2]: *** [swfmill] Error 1
>  >
>  >  With swfmill-0.2.2 I haven't this problem
>  >
>  >  Nikolay Nedev
>  >  nn at uncubic.net


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] StaticText

Hello Axel,
you can create static text with swfmill, just look at the swfmill page
in the osflash.org wiki (Importing Fonts). I think you'll additionally
need to add useOutlines="1" to the textfield tag, when you want to use
an imported font.

Ralf

> Hi,
> is it possible to generate static text from ttf solely with swfmill
> without
> to use any  swf library file?
> 
> Axel



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] SVG support committed

Hello,
I've just committed the new SVG support to the SVN. It's a huge change
to the swfmill code and I hope I haven't broke anything, so please test
as much as you can.

There are some improvements to my older patch:
- polyline and polygon tags are supported
- spreadMethod is supported
- radial gradients with focal point
- added a "-n" parameter to swfmill wich disables libxml network access.
  This speeds up svg conversion, because libxml doesn't fetch the DTDs
over the net anymore.

Ralf



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Problem with space char in font import

Hello David,
this problem doesn't occur with the current SVN version. But it still
happens in the latest prerelease, so you'll have to wait until the next
prerelease or build the SVN version yourself.

Ralf

> Hi,
> 
> I am trying to make font for sIFR with swfmill (as described here:
> http://www.hyperlogos.org/blog/drink/sifr).
> 
> I was create simple XML file (stub.xml ):
> 
> 
> 
>  
> 
> 
> 
> Note for the space char in glyphs="123 ": problem occurs only if it
> present! 
> 
> Then I run following two commands (using swfmill-0.2.12-win32):
> 
> swfmill simple stub.xml tmp.swf
>  - it's OK
> 
> swfmill swf2xml tmp.swf font.xml
>  - it's making message "WARNING: end of tag DefineFont2 is @413,
> should be @391" and font.xml doesn't created.
> 
> Swfmill can't parse his own swf file???
> 
> When I'm adding "-V" to second command, it produced VERY large output
> (~4 lines), mostly (from #400 to #4 lines) consists of: 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] SVG support committed

Hello Mark,
the current SVN version of SWFShapeMaker.cpp is only 399 lines long and
your compile log shows that your file is at least 481 lines long, so
there seems to be a problem with your source files.  Try to do a fresh
checkout to fix this.

Ralf

> Hi Ralf,
> 
> I tried to test, but got errors during compilation:
> 
> SWFShapeMaker.cpp:317: error: expected unqualified-id before '<<' token
> SWFShapeMaker.cpp:398: error: expected unqualified-id before '==' token
> SWFShapeMaker.cpp:408: error: 'ShapeMaker' has not been declared
> ...
>
> Mark


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Problem with haXe SWF9 library

Hello Mark,
I've just did a bit of research myself, but I'm not a SWF9 expert.
I was able to use a SVG file in the library with some manual
manipulation of the SWF file generated by swfmill. I've removed all the
export tags of all paths, this removed all the "ReferenceError: Error
#1065: ..." errors. I think an option to do this automatically (as you
suggested) would be a good idea. I suggest a attribute to the clip tag,
wich is used to specify whether swfmill creates symbols for all paths
(the current behavior), for the groups or only one toplevel symbol. Do
you think this is a good solution?
The other error "ReferenceError: Error #1056: Cannot create property foo
on bar" can be fixed by removing the linkage identifier (name attribute)
from the toplevel sprite's PlaceObject2 tag. I'm not sure whats the best
solution for this problem. But I think this linkage identifier could be
removed completely, because you'll normally don't have to refer to this.
I didn't really understand what you wrote about the bounding boxes. The
SVG import calculates the bounding boxes to fit the paths (at least I
hope it does correctly).

Ralf


> OK, I researched this a bit, which leads me to a feature request.
> 
> The problem:
> If I want to use an SVG as a library asset for SWF9, I have to create
> classes not just for the asset, but for each of it's descendants. For
> example, if the SVG consists of a group Foo that contains another
> group Bar, which itself contains a group Baz, I have to declare
> classes for each of them. Not just that, class Bar must have a
> property Baz, and Foo must have a property Bar. Plus, if it's haXe,
> all the group names must be capitalized (because haXe rightfully
> enforces capitalized class names).
> 
> My idea to deal with this by rather inelegantly applying 'grep -v id'
> on my SVG file (and manually naming the main group) unfortunately made
> it invisible. The MovieClip hierarchy seems to be intact, though -- I
> can cast children of the main group to MovieClip and traverse deeper
> down the tree. It's just not visible.
> 
> I guess that can be partially dealt with by writing a tool that
> creates the necessary class files with the child clips as properties,
> but it would be cool if Swfmill could, at least optionally, take care
> of the capitalization of the group IDs. Also, it would remove clutter
> in the code if it could turn generic paths (i.e., "path2345") into
> shapes instead of symbols (so that they don't require a class). A huge
> load of sugar on the top would be if it could (optionally) calculate
> the bounding rectangles and position the symbols, even if the group is
> positioned at 0,0 with the visible part being somewhere else (or does
> it even do that already? I didn't manage to display anything yet, so I
> don't know).
> 
> Maybe I'm just doing something wrong, I don't know.
> 
> Mark


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] SVG support committed

Hello Mark,
I've added a attribute to the clip tag that allows to define which
elements are exported (turned into symbols).


Creates a foo symbol only.


Creates a foo symbol and symbols for all groups.


or 
Creates symbols for everything.

Does this fulfill your feature request or did you think about something
else?

Ralf

> Sorry, it seems like it really is my file. Inside the groups were
> paths, which are turned into symbols, too.
> So, as a feature request, could we have an option to only turn (named)
> groups into symbols, and paths and such into shapes?
> 
> Mark



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Problem with haXe SWF9 library

Hello Mark,
yes, this makes sense now.
I'm not sure how easy it is to fix this, because the bounding box is
calculated while the shape edges are written, but the bounding box is
already necessary at this time to shift the shapes to the origin.
I have to finish some other projects, but I'll try to fix this soon.

Ralf

> Hi Ralf,
> 
> > I didn't really understand what you wrote about the bounding boxes. The
> > SVG import calculates the bounding boxes to fit the paths (at least I
> > hope it does correctly).
> 
> it seems like the size of the bounding box is calculated correctly,
> however, the reference point isn't. Sub-groups have their origin at
> 0,0 on the screen, but the actual graphics wherever they were in the
> SVG. Ideally, they would have the reference point at the top-left
> corner of the visible graphics and their containing symbol placed at
> the correct position.
> 
> I hope this makes sense.
> 
> Mark



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building from svn

Hello Izak,
you don't have to run release.sh, use autogen.sh instead. aclocal is
included in the automake package and libtoolize in libtool. You'll also
have to install autoconf.

Ralf

> Hi
> 
> I am very glad to hear that SVG support has been improved and am eager
> to try this new feature! Thanks for the great work.
> 
> I previously built swfmill on ubuntu dapper from the source download
> using "./configure, make, make install" as the readme recommends.
> However the files in the latest svn are config.ac which I can't get to
> work. I've tried running release.sh which gives output:
> "
> ./release.sh
> cat: .version: No such file or directory
> --
> autogen
> --
> + aclocal -I autoconfig/m4
> ./autogen.sh: line 4: aclocal: command not found
> + libtoolize --force --copy
> ./autogen.sh: line 5: libtoolize: command not found
> + autoheader
> ./autogen.sh: line 6: autoheader: command not found
> + automake --add-missing --copy
> ./autogen.sh: line 7: automake: command not found
> + autoconf
> ./autogen.sh: line 8: autoconf: command not found
> + cd src
> + xsltproc codegen/mk.xsl codegen/source.xml
> + cd ..
> + ./configure
> ./autogen.sh: line 12: ./configure: No such file or directory
> ./release.sh: line 36: automake-1.6: command not found
> + aclocal -I autoconfig/m4
> ./autogen.sh: line 4: aclocal: command not found
> + libtoolize --force --copy
> ./autogen.sh: line 5: libtoolize: command not found
> + autoheader
> ./autogen.sh: line 6: autoheader: command not found
> + automake --add-missing --copy
> ./autogen.sh: line 7: automake: command not found
> + autoconf
> ./autogen.sh: line 8: autoconf: command not found
> + cd src
> + xsltproc codegen/mk.xsl codegen/source.xml
> + cd ..
> + ./configure
> ./autogen.sh: line 12: ./configure: No such file or directory
> --
> configure
> --
> ./release.sh: line 39: ./configure: No such file or directory
> --
> make dist
> --
> make: *** No rule to make target `dist'.  Stop.
> make dist failed.
> "
> 
> I can't find aclocal or libtoolize the package manager. Aclocal was
> mentioned in the libguile-dev package which I installed, but this did
> not install an aclocal binary.
> 
> What should I do?
> 
> Izak Marais


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Inkscape svg import problem in swfmill 0.2.12.5

Hello Izak,
swfmill doesn't show a message when importing a svg file (yet).
I've tested your file and it worked.
What are the dimensions of your movie? The svg file is pretty big (744px
x 1052px) and it didn't show up in my swf because it was outside the
frame. After I changed the place tag's x and y attributes I was able to
see it.

Ralf

> Hi
> 
> I've tried using the newly improved svg support to import an svg created
> in Inkscape, but I can't get it to work. Am I doing something wrong or
> is inkscape to blame? I've attached the xml file, shell output and svg
> file.
> 
> Thanks for the excellent software.
> 
> Izak



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] Flash9 support

Hello,
I just want to write a short update about the things I worked on for the
past days.

I've added support for some flash 9 tags to swfmill. This includes the
DoABC and DoABCDefine tags and the ABC format that is used to represent
the AS3 code in swf files. 

Another feature, that might be more useful for the majority of users, is
embedding binary data into swf files in simple mode. You can access this
data using AS3 or haXe.

The syntax is similar to the clip tag:




Ralf




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Objects and Vars

Hello Metteo,
swfmill doesn't support the creation of objects in simple mode.
A possible solution is to compile the json in a external swf file and
include this into your swfmill project.

Ralf

> Hi,
> perhaps yesterday I wrote something extremely unclear.
> I'm wondering how I can declare some objects or variables.
> 
> I've read the docs and I know how to import a swf in the library and 
> then instantiate it on the stage, but I can't understand how could I 
> declare some objects in the action panel on the first frame (and set or 
> understand their scope).



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Objects and Vars

Hello Matteo,
it is possible to do this in basic mode, but it isn't easy and you'll
need some understanding of the swf file format. When you want to see how
such a object is represented in basic mode, you can create a swf file
containing an example object and convert it to xml using swfmills
swf2xml command.
But I still don't think its necessary to do this. You can automate the
compilation of the object's json code using a actionscript compiler like
mtasc.

Ralf

> Hi Ralf, thank you.
> The problem is that I really need to create programmatically the object...
> Is it possible in some way with the basic mode?



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Flash9 support

Hello Mark,
I'm sorry to render your tool obsolete. ;)
I hope you like the swfmill internal solution.

Ralf

> I was going to release a tool to embed binary data in an SWF by the
> end of this week. :|
> 
> Mark



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Flash9 support

Hello Mark,
you are right. You just use "class Foo extends BytaArray {}". At least
it works in haXe this way, I don't know about AS3.

Ralf

> Yeah, swfmill doesn't even use a hack. My approach was to abuse
> DefineBitsLossless2 and to turn it into a ByteArray on the client. I
> had no idea there was something like DefineBinaryData.
> Writing that tag seems straight forward, but what will it be on the
> client? How do I use it? MyBinaray extends ByteArray?




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Objects and Vars

Hello Matteo,
do you want to import an external xml file containing swfmill tags or
data for use in actionscript?
I don't think the first is possible without external tools.
Storing xml data in a sting variable is possible with some basic tags
inside your simple mode xml file. 

Ralf

> Hi Ralf,
> I found a way to generate a class and compile it with mtasc. Then I can 
> merge the two swf with swfmill.
> So, in some ways, I can do the job.
> 
> Now, just for information, I was wandering if I can import some external 
> xml files with swfmill using simple dialect.
> Thank you,
> Matteo



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Hi all and Newbie asking for Help! =D

Hello Gustavo,
to export a clip in simple mode you just need to wrap the clips in a
library tag ( http://osflash.org/swfmill#a_simple_library ).

Ralf

> First: Nice to meet you all!
> 
> "Warning: English is my 2nd language, take it easy! =D"
> 
> I just found today SWFMill, and i think that will save me a lot of
> time, but something confuses me, can you help me? 
> 
> My objective is to use the processor to create a swf (1) with some
> bitmaps in the library marked for export, so i can import them at
> runtime in the Main movie (2), the visible and complex one, created in
> a regular Flash 8 environment. 
> 
> But in practice, the swfmill processor accepts two kind of xml input:
> the "simple" one, and the complete "basic" SWFML. the use of one or
> the other one depends on the "command" parameter 
> 
> Now:
> 
> - The "simple" approach have the  element with the attribute
> @import, so i can embed my jpg directly on the resulting swf, but
> doesnt have the posibility to mark them as EXPORT
> 
> - The SWFML approach have the magic  tag, but the embedding of
> the image isnt possible as in simple
> 
> I'm trapped!
> 
> I think to embed the images with the "simple" method to swf, convert
> back to xml, and then tranfsorm (xslt) that xml to a new SWFML
> conformant with the needed , and convert that back to swf, as
> i need 
> 
> What do you think? Can you imagine another solution?
> 
> Thanks!
> 
> -- 
> Gustavo Verón
> [EMAIL PROTECTED] 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] bug: DeclareFunction2 flags

Hello Benjamin,
thanks for the bug report. The flags were in the wrong order, I've fixed
this in SVN.

Ralf

> Hi,
> 
> I think I've found a bug in swfmill's encoding of DeclareFunction2
> flags. The attached file demonstrates the problem. The supposed trace
> output when running the SWF generated from this file should be like
> this:
> 42
> 42
> But the output is:
> 42
> _level0
> 
> It looks to me like the order of the flags is reversed. Could that be true?
> 
> Benjamin
> 
> PS: I haven't looked at the order when doing swf2xml



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Yesterday I setup a msvc6 build of swfmill, today I have questions :)

Hello Kriss,
I also had some problems with filenames some time ago and fixed this
problem three weeks ago. Sorry that I didn't mention it in the changelog
or wrote a reply to your mail and caused you additional work. But at
least it works now ;).
I can apply your vc6 changes when you provide a patch against the
current svn version and it doesn't break anything, when compiling with
gcc.

Ralf

> Finally had it crash on me again :)
> 
> The png crash is a string null termination problem.
> 
> swft_import.cpp needs to have a buffer allocation and copy fixed, like so...
> 
>   l = strlen(basename);
>   name = new char[l+1];
>   strncpy( name, basename, l+1 );
> 
> Which explains why strange filename adjustments fixed it before...
> 
> 
> Also I'd quite like to merge all my vc6 code fixes in at some point as
> well, they where nothing major just mild adjustments to make the
> compiler happy.
> 
> https://trac.xixs.com/wet/cgi-bin/trac.cgi/browser/pc/_src/swfmill/mytrunk
> 
> Is all my changes based on trunk from a few months back but I'm not
> sure if there is an easy svn way of merging that back in :)
> 
> Cheers,
> 
> -- 
>
> Kriss


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] haxe+swfmill

Hello Franco,
I think you already know the basic things to take care about like
capitalization of ids.
When you define clips that contain place tags with a name attribute you
need to define them as variables inside the haXe class, otherwise the
flashplayer will show an error. You can than access this movieclips from
haXe. An example:












class Image1 extends flash.display.MovieClip {}
class Image2 extends flash.display.MovieClip {}
class Image3 extends flash.display.MovieClip {}
class Images extends flash.display.MovieClip {
var foo : Image1;
var bar : Image2;
}

function test() {
var imgs = new Images();
imgs.foo.x = 100;
imgs.bar.y = 150;
flash.Lib.current.addChild(imgs)
}

I haven't tested the code but you should get the idea, if you didn't
already knew this.

There are some more things to consider, when you use new features of the
svn version, like SVG import. The svn version also supports importing
arbitrary binary data in a swf9 file. I don't know when the book is
coming out, so I don't know if these are available in a stable release
then, but most of this is nearly ready for a release.

Ralf

> Hi list,
> I am new here and I would like to receive your opinion. I am the
> co-author of the next coming book about haXe. I would really like to
> introduce some examples about using assets with haxe+swfmill; have you
> any advice? are there knwon incompatibilities or hacks to make the
> things work? what about f9? 
> Thank you very much,
> Franco.


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] haxe+swfmill

Hello Franco,
I don't have a compiled windows binary, but I'm planing to install a
toolchain to cross compile windows binarys from linux in the next days.
I'll write a mail, when I have a windows build.
There are still some bugs to fix until a new stable version can be
released, but it should be no problem to get this finished until
september.

Ralf

> First of all thank you for your answer. I will try to make some
> experiments and know you about possible questions ...
> The book will be completed by the end of september; so I presume that
> it will be published 2 or 3 monthes later. 
> SVG feature is really great ... have you a win compiled binary of the
> svn version?



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] Windows build

Hello,
I promised to compile a windows binary of the current svn version a few
days ago. Setting up a cross compile toolchain took longer than
expected.

I hope the binary is working in windows, because I only tested it using
wine.

Here is the link:
http://pereluk.de/swfmill/swfmill-0.2.12.5-win32.zip

Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] swfmill and sounds

Hello Mickael,
you need to set lame to produce stereo (not joint stereo), cbr mp3s. I
don't know the exact command line switches you need to set. But this
shouldn't be hard to find out.
If you did the correct settings and it still doesn't work you can send
me a test mp3 and I'll check if it's an problem inside swfmill.

Ralf

> Hi,
> 
> After a lot of try, I don't understand how convert mines mp3 for then
> eating by swfmill !
> 
> Some MP3 works, and some not.
> 
> If anyone knows the command line lame with exact paramters...
> please :)
> 
> Another way is use Sound Object and LoadSoud() because it's works with
> all.
> 
> So I want prefer to use swfmill.
> 
> Mickael



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Jing like application

Hello John,
when you insert all pngs inside a library tag you'll need to use AS or
haXe to play them. I think it might better to do this inside the swf
file using different frames for your png files. Something like this
should work:








This way the flashplayer does all the work necessary to playback your
png files. You can also load this swf file with loadMovie or the
MovieClipLoader and use the normal commands, like gotoAndPlay, to
control the playback.
I don't think it's easy to get the code, necessary to write such a swf
file, out of the swfmill source. But it shouldn't be too hard to write a
swf writer with the features you need for your project. 
There also is a library called ming, that can create swf files. I
haven't used it or looked at it, but it might work for your project.

Ralf

> I'm developing an application that needs to do something similar to
> Jing (http://jingproject.com/).  Basically, the application
> records/captures a window and generates an SWF file that's posted on a
> web site.  The resulting SWF files actually has small rectangular
> segments, rather than the entire frame, but you could think of it as
> embedding hundreds of png images to the SWF file. 
> 
> This is something I think swfmill could handle.  If I understand it
> right, I could create the image library with something like:
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
>   
> 
> and then create my movie player application that uses this swf image
> library to play the video.
> 
> Am I right in what I'm thinking here?
> 
> I assume I'd be able to load this image library into flash application
> using loadMovie or the MovieClipLoader class to then access the
> resources.  Ideally, I'd write the player once and have it dynamically
> load the image sequence swf file to play. 
> 
> It'd also be nice to integrate this functionality with my own
> application.  Rather than writing out hundreds of intermediate png
> files, I'd like to write it to the swf file directly.  I've started to
> look at the source code for swfmill a bit.  I would think it'd be easy
> to factor out this limited section of the library. 
> 
> Any thoughts on what I'm trying to do?   Am I heading in the right
> direction?
> 
> Thank you
> John


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] swfmill and sounds

Hello Mickael,
I found a bug in swfmill, that caused the mp3 files to become corrupted
during the import. This should be fixed in svn now.
I've also added support for mono mp3 files. Joint stereo mp3s also seem
to work.

Ralf

> Not woking again :(
> 
> I think a good lame configuration can be:
> lame ./original/0.mp3 --cbr -m s ./converted/0.mp3
> 
> However I've tried with -b 128 and -b 256 and a lot of exotics
> options.
> 
> swfmill don't cry: 
> Importing MP3: './sound/converted/0.mp3'
> 
> but in my application this doesn't work (still with some sound only).
> 
> I joints an unworking sound (a space invader sound). I you want more
> samples (ie base wav), I can give it you. 
> 
> thanks,
> 
> Mickael



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] swfmill and sounds

Hello Mickael,
you need to run autogen.sh instead of release.sh.

Ralf

> Hi Ralf,
> 
> Thanks you.
> 
> Another think : to compile svn , I didn't see configure file :(
> 
> Instead of I execute release.sh...
> 
> ~/devel/swfmill/trunk$ ./release.sh 
> ./release.sh: 8: Syntax error: "(" unexpected 
> 
> What I must doing ?
> 
> Mickael



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] swfmill and sounds

Hello Mickael,
the missing file is created in autogen.sh. You might have to install the
tool, that is used to do this. It is called xsltproc.

Ralf

> Again me,
> 
> now ./autogen.sh appear works fine
> ./configure too
> but make exit immediately :
> 
> $ make
> Making all in src
> make[1]: entrant dans le répertoire
> « /home/mickro/devel/swfmill/swfmill-svn/trunk/src » 
> make[1]: *** Pas de règle pour fabriquer la cible « gSWFParseXML.cpp
> », nécessaire pour « all ». Arrêt.
> make[1]: quittant le répertoire
> « /home/mickro/devel/swfmill/swfmill-svn/trunk/src »
> make: *** [all-recursive] Erreur 1 
> 
> in english :
> $ make
> Making all in src
> make[1]: entering to directory
> « /home/mickro/devel/swfmill/swfmill-svn/trunk/src »
> make[1]: *** No rules to make target « gSWFParseXML.cpp », depends for
> « all ». Stop. 
> make[1]: exiting to directory
> « /home/mickro/devel/swfmill/swfmill-svn/trunk/src »
> make: *** [all-recursive] Error 1
> 
> I've checked for any dependencies without find anything.
> 
> if I compile swfmill-0.2.12 , it's work fine. I don't understand how
> resolve problem.
> 
> Mickael



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] static vs dynamic swf library linking

Hello Ryan,
it's currently not possible to do this in swfmill's simple mode. The
imported swf files have their own "namespace" and you cannot refer to
this in the xml file.

Ralf

> Hey Folks,
> 
> I'm trying to "statically" link a swf library like this:
> 
> 
> 
>   
>   
>   
>   
> 
>   
> 
>   
> 
>   
>   
> 
>depth="1001"/>
> 
>   
> 
> 
>   
> 
> 
> The location_btn is a movie clip in library.swf.  When I run the
> resulting compiled swf, I don't see my location_btn instance.  However,
> if I change:
> 
> 
> 
> ...to
> 
> 
> 
> ...location_btn appears!  It seems that dynamic linking is working but
> not static linking.  Ideas?


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] unable to generate swf displaying image

Hello Tuneer,
I didn't understand what you are trying to achieve. What do you mean by
"XML containing media data"? Do you use simple or basic mode?
Please try to describe your problem more clearly.

Ralf

> i m new to swf mill ,trying basic xml for generation of swf containing images
> 
> i m facing an issue in using  SWFMILL for generation of  SWF from 
> XML  data  ,when i pass  XML containing media data through   SWFMILL
> ,it generates   SWF   containing both text and media info  ,  but it
>  displays only text.
> 
>  (how i know there is media data  in swf created through swfmill
> when i convert  that SWF  file back toXML(SWFML)
> that XML contains   info corresponding to that media data)
> 
> for generation of  SWF   fromXML  i m using standard format for
> creating  XML defined in the SWFMILL tutorial,
> 
> 
>  I have converted  SWF (already running )to XML its schema and
> structure were same  as XML(SWFML)  i obtained on converting back SWF
>  (created by me) to XML
>  , What i feel ,the problem is because of some missing parameter
>  (defining image location or size), i am looking for that.
> 
> 
> moreover i am able to to extarct back the image from swf file( which i 
> created )
> 
> one more thing i did:
> i  took a SWF file  created its xml(swfml),replaced  its jpeg string with 
> jpeg string data from my swfml file
> then created  swf from modified swfml ,then the image was getting displayed 


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] unable to generate swf displaying image

Hello Tuneer,
your images aren't displayed because they aren't placed on the stage.
You need to place all objects, that should be displayed, on the stage
with a unique depth value.

Try to insert something like this after your existing place tag:



This will place all images in the upper left corner of the stage, so you
might only see the "jpegpic". To move the images on the stage you need
to add x="..." and y="..." attributes to the place tag.

Ralf

> 
> Dear Ralf
> 
> i m trying to generate a swf file using swfmill ,which should display 
> images and text
> 
> i create xml ,pass it through swfmill ,then i obtain a swf file
> swf file displays just text and not image
> 
> 
> *
> * NB* : i converted swf back to xml(SWFML) i found that xml (SWFML) 
> comtains information about the jpeg image
>
> 
> thanks



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Build svn HEAD for OSX

Hello Eric,
there was a thread about building the svn version on OS X some time ago
and the same problem occurred there. Try the solution I posted here:
http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001330.html
Perhaps you need fink's aclocal directory.

Ralf


> Hi,
> 
> 
> 
> I try to build the osx version of swfmill.
> When I checkout the last version, there is no configure file.
> I assume I have to use autogen.sh
> 
> But, it fails at finding libxml-2.
> I've installed it from macport and try to add it to the environment  
> variables. No luck.
> 
> Any help ?
> 
> I know that there is a release-mac.sh script, but it is not for  
> direct svn build.
> I tried to hack it a little, but no luck either :/
> 
> Here is some attempt :
> (I've remove all the unecessary variables)
> $ env
> LDFLAGS=-L/usr/local/lib -L/opt/local/lib
> SHELL=/bin/bash
> CPPFLAGS=-I/usr/local/include -I/opt/local/include -L/usr/local/lib - 
> L/opt/local/lib
> PATH=/sw/bin:/sw/sbin:/opt/local/bin:/usr/local/bin:/bin:/sbin:/usr/ 
> bin:/usr/sbin:/usr/X11R6/bin
> CFLAGS=-I/usr/local/include -I/opt/local/include -L/usr/local/lib -L/ 
> opt/local/lib
> 
> /sw is dedicated for fink
> /opt is dedicated for macport
> Each of them are a kind of apt-get utility.
> 
> When I run autogen.sh, I get, the process stops at :
> checking for pkg-config... yes
> ./configure: line 18836: syntax error near unexpected token `XML,'
> ./configure: line 18836: `PKG_CHECK_MODULES(XML, libxml-2.0)'
> 
> I've installed libxml2 from macports and it is located in the /opt/ 
> local/lib folder.
> libxml2.2.6.27.dylib
> libxml2.2.dylib
> libxml2.dylib
> libxml2.la
> 
> It seems to me that the env vars are good for configure to find the  
> libxml libs.
> Can someone provide me some help please ?


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Build svn HEAD for OSX

Hello Eric,
the static linking of crt0.o problem is mac specific and I don't own a
(new) mac, so I can't test if this works:
There is a "manual" call to g++ in release-mac.sh wich is a workaround
to the crt0.o problem. But you'll need to adjust this line to the
current svn version and your build environment. I think the g++ call is
the same as failing call during make, so you might be able to copy this,
remove the -lcrt0.o and execute it again, instead of changing the one in
release-mac.sh.

Ralf

> Thanks ! Nice help.
> I followed that thread and took another way.
> 
> I have added pkg.m4 file in the swfmill/autoconfig/m4 folder.
> Then I ran autogen.sh, but I modified it before :
> I changed libtoolize by glibtoolize (seems to be os x equivalent).
> 
> The make process unfortunatly failed at :
> /usr/bin/ld: can't locate file for: -lcrt0.o
> collect2: ld returned 1 exit status
> make[3]: *** [swfmill] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
> 
> Any idea on that ?
> I was so near…



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] how to remmove blinking effect from sliding text

Hello Tuneer,
you need to use different depth values for the two textfields. Try to
change all depths, in place tags with the id hellobox1, to 4.
I don't know if it is desired that the two textfields don't move
simultaneously but if they should move at once you'll need to put both
place tags inside one frame.
You don't need to use a separate frame for the textfield tags, just put
them inside the same frame as the first place tags.

Ralf


> I am trying to slide a particular text string horizontally in my flash 
> file , for this in my xml  i am
> continuously changing  X and Y coordinates of the text  id ,here is the 
> code segment

> the text is  slidinfg but it is producing blinking effect, i dont want 
> the text to blink what should  i do please advice.



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Unicode Support and Windows Binary

Hello Prashanth,
swfmill supports xml files containing Japanese glyphs. I've tested this
some time ago using Linux and a UTF-8 xml file. Perhaps you can send me
your xml file, that doesn't work, so I can test if there is a problem in
your file or in swfmill.
I haven't tried building swfmill in windows, but it should work using
mingw and msys. After building all the dependencies you can compile
swfmill using the normal ./configure, make, make install. When you use
the svn version of swfmill you need to run autogen.sh instead of
configure.

Ralf

> I was doing some Proof of Concept on a Japanese
> Windows XP Machine with SWFMill. SWFMill could not
> generate SWF Output if the library.xml is in UNICODE
> format.I am using 'simple' parameter along with
> swfmill command.
> Can anyone tell me whether swfmill supports UNICODE
> data in the xml. Can I use SWFMill on a Japanese XP
> PC.
> How do I build a windows binary if I have to make
> changes for Unicode support in the source code. I have
> downloaded all the source code including libxml2,
> freetype, libpng, zlib and libsxlt.
> 
> Thanking in advance,
> Prashanth.



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] MP3 import

Hello Carl,
I've uploaded a new windows build, wich includes my recent changes to
the mp3 import. This should fix the truncated beginnings of your sounds.

http://www.pereluk.de/swfmill/swfmill-0.2.12.5-win32.zip

Ralf

> Hello,
> 
> First of all, thank you all for working on that tool that has helped me a lot!
> 
> I'm trying to import MP3 files in a swf library, and it works OK if I have the
> right encoding, but I have a problem : I cannot hear the beginning of the
> sound. The first second is not played and it loops weirdly at the end of the
> sound.
> Globally, the sound has the right duration, but it doesn't play correctly.
> 
> This is a big problem to me because I need to play really short sounds.
> 
> Have you ever had this problem ?
> Is this due to the file encoding, or the way I load and play the sound in 
> Flash
> ?
> 
> I tried the latest pre-relase available on swfmill.org, which is 0.2.12.4 and 
> I
> still have the same problem.
> 
> I saw that some bugs concerning MP3 imports have been fixed recently, but the
> latest version available (0.2.12.4) is not that recent, and I have no idea of
> how to compile the project for windows...
> 
> Thank you very much for your help !
> Carl CHRISTENSON


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] support for advanced antialiased fonts

Hello Victor,
support for the DefineFont3 tag is already on my TODO list. I'm not sure
when this feature will be added, because some work on other parts of
swfmill is required to implement this. I hope that I'm able to add
support for the DefineFont3 tag in the next week.

Ralf

> The Player 8 tags definefont3 and definefontalignzones provide support
> for crisp embeded font in small sizes. In the current version (for
> player7) of our project (www.cabanova.com) we use PHP Turbine to
> generate flash content.
> We are working now on the next version designed for Player 8.
> As Turbine, although not a cheap product, has released no update with
> support for new font definitions, we are looking to switch to another
> swf generating tool.
>  
> Question:
> When do you expect to add support for new font definitions in swfmill?




___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] WARNING: this file is not a valid MP3

Hello Ryan,
you need to use an MP3 file with 44100Hz sampling rate. This seems to be
the only rate, that is common between MP3 and the flash file format.

Ralf

> Hi Mickael,
> 
> Thanks for your response.
> 
> On 9/25/07, mickael foucaux <[EMAIL PROTECTED]> wrote:
> >
> > So, what's mind -c 2 sox's option ?
> 
> The sox option -c is supposedly the number of channels, so -c 2 is
> stereo, I guess.
> 
> > And what version of swfmill do you use ?
> >
> > About version, Ralf Fuest is this post :
> > http://www.mail-archive.com/swfmill@osflash.org/msg01183.html
> >  have making a new cvs version. Maybye you can try the last
> > cvs version.
> 
> Yeah, I saw that post and hoped that using the latest version from svn
> would solve my problem, but it still doesn't seem to work. I've tried
> 0.2.12, 0.2.12.4, and the latest in subversion with no luck.
> 
> ~ryan


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] building from svn

Hello Axel,
using 0.2.12 might be a temporary solution, but you won't be able to
build any new releases, not only the svn version. The gSWFBasics.cpp
file has grown rapidly since the 0.2.12 release and is nearly twice as
big as before, wich causes g++ to use much memory. Some vServers have a
very limited amount of memory, so you'll need to build swfmill on
another machine, as Mark suggested.

Ralf

> Ok 4 now I use the 0.2.12 release which builds without problems
> on my vserver. Its runnig on OpenSuse - if anybody succeded in
> building >from svn - let me know.
> Cordially,
> Axel


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] support for advanced antialiased fonts

Hello Victor and Tobias,
I didn't have much time to work on the improved font support. I've
implemented the DefineFont3 and DefineFontAlignZones tags in swfml
basic, but I still need to make sure everything works right, so I didn't
commit these changes yet. I'm not sure when I have time to work on the
swfml simple font import and if it's possible to implement the
DefineFontAlignZones properly.

@Tobias:
Can you send me some test files, that would help me fix the font import?
I need some reference files, that are created in flash and are exported
for fp8 and fp7. The files should contain glyphs of a font that is
freely available, so I can test swfmill's font import with the same font
file.

Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Splitting simple dialect in several files

Hello Michael,
the function you described didn't exist in swfmill. But I think it is a
useful feature, so I implemented it and now the svn version supports
this feature.
The syntax is equal to your proposal. The included files need to have
the same format as any other swfml simple file. All tags inside the root
movie tag are include. The attributes of the movie tag in the included
files are ignored.

Ralf

>   I am sorry if this is a newbie question, but I didn't find anything
>   on the net yet. Is there a way to split a simple dialect XML file
>   into several ones? I'd like to have something like include
>   functionality, so you can write it like
> 
>   and another.xml would be processed as a part of main file.
> 
>   The reason for this is easy support for different themes in my
>   application: I'd like some resources to be theme-specific and others
>   to be shared.



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Tag Fields, Types & swfmill simple tags...

Hello,
you can't mix a custom DefineFont2 tag and the swfml simple font import.
The only solution is to create a swf file, containing the font you want
and decompile it using swf2xml. Then you can copy the whole DefineFont2
tag (including the glyph shapes) and change the DefineFont2 tag
attributes.
Why do you need to change the DefineFont2 tag manually?
There is no way to automatically create the DefineFontInfo tag, but I'm
currently working on the font import, so this might change in the
future.
You can't include actionscript inside the xml file. You need to compile
it externally and import it using a clip tag.

Ralf



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Tag Fields, Types & swfmill simple tags...

Version 0.2.12 is the latest official release. But there are more
current prereleases. You can find them here: http://swfmill.org/pre/
(or http://pereluk.de/swfmill/swfmill-0.2.12.5-win32.zip if you use
windows)

Ralf
   
> Using latest? 0.2.12



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Tag Fields, Types & swfmill simple tags...

Which version of swfmill do you use? I haven't experienced this error in
current versions.

Ralf


> > But when try go SWF2XML I get :
> > WARNING: end of tag DefineFont2 is @25327, should be @25322
> >   
> Actually I am finding this a recuring issue with a lot of fonts 
> especially when I dont specify glyphs.
> So far I have yet to come across 1 .ttf that completly / succesfully 
> compiles and then decompiles via swfmill.
> Initially I thought this may be a font issue however it doesnt seem so 
> since I even tried compiliant fonts.
> 
> Any suggestions would be much appreciated - I really dont feel like 
> reverting back / testing another compiler (ming et al).
> Thanks.


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Tag Fields, Types & swfmill simple tags...

Do you mean a general release strategy or a strategy for the upcoming
release?
I think we should try to release a 0.2.13 soon, so that people, that
don't read the mailing list or know the prereleases, don't think swfmill
is dead. But there are still some things that need to be fixed/checked
on my list, that I want to finish before the release. I don't have much
time to work on swfmill at the moment, but I hope I get this things done
until the end of October.

Ralf

> Ralf: we'll need to get some release strategy going. Any suggestion?
> 
> -dan



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Compiling as Win32 DLL

It isn't swfmill's goal to be a library that can be included in other
applications, so I don't think it makes sense to release a dll version
of swfmill.
Building swfmill with VS2005 isn't possible without changes to the code,
because swfmill is normally build with gcc and isn't tested with VS.
Someone on this list posted a link to his code changes for MSVC some
time ago, so you may use this to get started, when you still want to use
VS.

Ralf

> hello all,
>  
> i'm looking to compile Swfmill as win32 dll to use in my application.
> and export only one function like
> SwfMill("swf2xml", "myswf.swf")
> converting commandline arguments as function parameters.
>  
> i would also suggest as feature request to also release binary dll of
> each release, so in some situations where exe cannot be used,
> developer can use the dll library.
>  
> can anyone help me setting up the build environment with VS2005?
>  
> at this time, i have downloaded latest stable source code, created new
> empty Win32 DLL project in VS. and added all the files in project. i
> get lot of error messages when i compile.
>  
> i'd appreciate if anyone can guide me in right direction.
>  
> many thanks in adv.
>  
> // chall3ng3r //



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Ttf font style embedding when there arent multiple fonts

You are right, swfmill ignores fonts with multiple faces. Perhaps I can
implement a feature to select the imported faces, when I do the other
work on the font import.

Ralf

> Hello,
> 
> In a swfmill source file "swft_import_ttf.cpp" I found the following
> snippet:
> 
>   if( face->num_faces > 1 ) {
> fprintf( stderr, "WARNING: %s contains %i faces, but only the
> first is imported.\n", filename, face->num_faces );
>   }
> 
> This implies, I think, that the swfmill imports only the first font face in
> a ttf file even if the ttf bundles multiple faces (bold,oblique, etc..).
> 
> How about dividing your ttf file into multiple individual ttf files using
> some font tools. Which tool to use? --- sorry, I do not know.
> 
> 
> 
> MATSUHASHI,kazuaki
> QUICK Corp. Japan


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Building from Source

I get the same error when I run autogen.sh, but swfmill builds anyway.
When the build still doesn't work there might be another reason.

Ralf

> Ok, so more problems. I'm having an issue with the following error
> that I can't seem to resolve:autoheader: 
> 
> error: AC_CONFIG_HEADERS not found in configure.ac
> 
> I searched through the archives again and found this thread:
> http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001279.html.
> I tried the whole touch ChangeLog thing and that didn't work. Any
> suggestions?
> 
> -- Joel


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Accessing frames in AS3

The compression uses zlib to make the resulting SWF file smaller.
Compressed files, generated by swfmill, seem to have a different header
in the compressed part of the file, so they aren't 100% binary identical
to the original, but the uncompressed versions should normally be equal.
I haven't tested your files, but there shouldn't be any difference
between compressed and uncompressed files.

Ralf

> Hm. I'll have to do a check out and compile it. I take it that the
> latest binaries are pretty old then. Does this only work in the
> non-compressed version? I suppose I can always try it and see if it
> works :) What does compression do anyways? 
> 
> -- Joel



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Accessing frames in AS3

I added support for the allowABC and supressCrossDomainCaching
attributes some month ago, together with the abc format support.

Ralf

> To be sure, it seems that you're using a svn version of swfmill.
> Can Ralf precise if the allowABC and suppressCrossDomainCaching  
> attributes have been added lastly to swfmill ?


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Impossible to compile from sources

The error you mention is a warning, so just ignore it ;). When swfmill
doesn't build, there has to be an other error. What happens if you
execute make?

When you try to compile swfmill I suggest, that you use the svn version.
It isn't much harder. Just execute autogen.sh before the normal build
procedure.

I don't know when the next version of swfmill will be released.

Ralf

> Hi list!
> 
> First post here although i've been using swfmill for quite a while
> now. Anyway, i'm trying to compile from sources (Ubuntu Gutsy) and i'm
> getting this error:
> 
> "config.status: WARNING:  Makefile.in seems to ignore the --datarootdir 
> setting"
> 
> Also tried to compile from SVN but to no avail. Any chance there's a
> new official release or at least getting this problem fixed?
> 
> Thanks a lot!
> 
> Juan



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Impossible to compile from sources

There are some problems regarding a new release.
Dan asked me about a release strategy some time ago on the list, but
didn't respond to my mail. So I'm not sure what he thinks about a
release.
I would like to see a release in the near future, but I don't have much
time to work on swfmill at the moment. There are some issues I'd like to
solve before the new official (0.2.13) release. But at least a new
prerelease should be done soon, because not all users, who want to test
the new features, are able to do a svn build themselves.
After the 0.2.13 release it might be a good idea to drop the prereleases
in favor of more frequent "normal" releases.
Another problem is the mac version. The build system seems to be
unflexible and does only work on one mac, that was used by dan to build
swfmill. I'm not sure if he currently has access to a mac or if there is
another problem on the mac, but at least he didn't provide a mac version
of the latest prereleases. But I hope this problem will be solved in the
near future, because I bought a mac and will use it for swfmill
development. So I will be able to build all 3 versions when my mac
arrives.

Ralf

> Regarding releases, I think the problem is that there is currently no
> official build infrastructure, right?
> 
> Mark



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Impossible to compile from sources

I need to think about this for a while, because I'm not sure how much
time I can spend on swfmill in the next months.

Ralf

> So would you step up as maintainer? That'd rock.
> 
> -dan



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Impossible to compile from sources

You (and all other mac users) might get a new build as a christmas
present ;). Perhaps even earlier.

Ralf

> I would be interested also to get a fresh build :P


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] How to use swfmill to check the duration of a swf

There is no movie tag in swfml basic. The frames attribute in the Header
tag isn't always reliable. You need to count the "ShowFrame" tags, that
are direct children of the Headers "tags" tag. But don't count all
"ShowFrame" tags, because there might be more tags than frames in the
swf.

Ralf

> But there is no movie tag.
> 
> So does that mean this swf should only take 1/25 of a second?


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] How to use swfmill to check the duration of a swf

You simply divide the frame count by the framerate value in the header
to get the duration in seconds.
To get the number of frame in the main timeline of your swf file you
need to count all ShowFrame tags, wich aren't embedded in another tag
(e.g. in an DefineSprite tag).

Ralf

> Thank you.
> 
> But after I cont the 'ShowFrame' tags, how can I find out what is the
> duration of the swf file?
> And how to decide which 'ShowFrame' tag should be counted?


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] useNetwork bug?

You need to install the libxml2 development files. The package you need
to install is called libxml2-dev or something similar.

Ralf


> Well, I tried lots of things and I'm stuck with errors...
> First weird thing (when running ./autogen.sh or ./configure) I get
> this (amongst lots of found things), but no explicit error :
> 
> checking for working makeinfo... missing
> 
> And then the make command brings lots of errors... Here are the first
> lines :
> 
> Making all in src
> make[1]: Entering directory `/var/swfmill-svn/src'
> Making all in swft
> make[2]: Entering directory `/var/swfmill-svn/src/swft'
> /bin/sh ../../libtool --mode=compile g++ -DPACKAGE_NAME=
> \"swfmill\" -DPACKAGE_TARNAME=\"swfmill\" -DPACKAGE_VERSION=\"
> 0.2.12.5\" -DPACKAGE_STRING=\"swfmill\ 0.2.12.5\"
> -DPACKAGE_BUGREPORT=\"[EMAIL PROTECTED] \" -DPACKAGE=
> \"swfmill\" -DVERSION=\"0.2.12.5\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_DLFCN_H=1  -I. -I.  -g -O2 -c swft.cpp
>  g++ -DPACKAGE_NAME=\"swfmill\" -DPACKAGE_TARNAME=\"swfmill\"
> -DPACKAGE_VERSION=\"0.2.12.5\" "-DPACKAGE_STRING=\"swfmill
> 0.2.12.5\"" "-DPACKAGE_BUGREPORT=\" [EMAIL PROTECTED] \""
> -DPACKAGE=\"swfmill\" -DVERSION=\"0.2.12.5\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -Wp,-MD,.deps/swft.pp -c
> swft.cpp  -fPIC -DPIC -o .libs/swft.o
> In file included from swft.cpp:1:
> /usr/include/libxslt/extensions.h:14:26: libxml/xpath.h: No
> such file or directory
> In file included from /usr/include/libxslt/extensions.h:16, 
>  from swft.cpp:1:
> /usr/include/libxslt/xsltInternals.h:16:25: libxml/tree.h: No
> such file or directory
> /usr/include/libxslt/xsltInternals.h:17:25: libxml/hash.h: No
> such file or directory
> /usr/include/libxslt/xsltInternals.h:18:26: libxml/xpath.h: No
> such file or directory 
> /usr/include/libxslt/xsltInternals.h:19:29: libxml/xmlerror.h:
> No such file or directory
> /usr/include/libxslt/xsltInternals.h:20:25: libxml/dict.h: No
> such file or directory
> /usr/include/libxslt/xsltInternals.h:21:30:
> libxml/xmlstring.h: No such file or directory 
> In file included from /usr/include/libxslt/xsltInternals.h:22,
>  from /usr/include/libxslt/extensions.h:16,
>  from swft.cpp:1:
> /usr/include/libxslt/xslt.h:13:25: libxml/tree.h: No such file
> or directory 
> In file included from /usr/include/libxslt/xsltInternals.h:24,
>  from /usr/include/libxslt/extensions.h:16,
>  from swft.cpp:1:
> /usr/include/libxslt/numbersInternals.h:13:25: libxml/tree.h:
> No such file or directory 
> In file included from /usr/include/libxslt/xsltInternals.h:24,
>  from /usr/include/libxslt/extensions.h:16,
>  from swft.cpp:1:
> /usr/include/libxslt/numbersInternals.h:29: error: parse error
> before `*' token 
> /usr/include/libxslt/numbersInternals.h:30: error: declaration
> of `const int
>_xsltNumberData::xmlChar'
> 
> And so on...
> If you guys have any clue, It'd be nice!
> Quentin.


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] embedding as3/flash9 swf problem

Can you send me the two swf files you try to import? Then I can try to
find the error.

Ralf

> Hi
> 
> so I am having some trouble with embedding .swf files made from .as 
> files. I have a simple .as .fla combo with the .fla file using the .as 
> class as the base class. from this I get a swf which runs as expected, 
> it displays a textfield on a color background.
> 
> when I import this into swfmill and try to place it to confirm its 
> existence it does not show up.
> 
> my swfml:
> 
> 
> 
>  
>  
>
> 
> 
>
> 
> 
> 
> If however I build a flash9 swf from just a timeline .fla then it embeds 
> into swfmill just fine.
> 
> any ideas why this might be? I hope I am simply overlooking something.
> 
> Thanks!
> Will


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] the list of allowable tags allowable in swfml-basic

There isn't any current documentation of swfml-basic. When you want to
use it you should look at a reference of the swf file format [1],
because swfml-basic is very closely modeled after that format.
The only place to find infos about the swfml-basic format is the
source.xml file, which you can find in the svn [2]. I think you'll get
the idea of what is described in there when you compare it with the swf
reference. 
To get test files you can simply convert swf files to swfml-basic with
the swf2xml command.

Ralf

[1] http://sswf.sourceforge.net/SWFalexref.html
[2] http://swfmill.org/svn/trunk/src/codegen/source.xml


> hi all,
> just discovered swfmill, and quite excited in finally being able to
> generate flash. (avoiding using flash altogether because refused to
> hand-craft swf files). i would like to avoid using swfml-simple, and
> would like to generate that using my own xslt. however, i have not
> been able to locate any documentation of what is allowed in
> swfml-basic, or even test swfml files. that would be most helpful, and
> i will promise to then update the sparse online documentation of
> swfmill with it. 
> thanks for any help offered!
> 
> kind regards,
> jim



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] embedding as3/flash9 swf problem

Thanks for sending me the files. Your problem was caused by a wrong
FileAttributes tag, wich was discussed in the useNetwork bug thread some
days ago. I've applied dan's patch from this thread, wich fixes this
problem.
There was an additional problem with your files, because swfmill didn't
recognize that the swf files contain as3. So I've added a new parameter
to the movie tag called as3, that needs to be set when you import as3
files.

Here is a corrected version of your test file, wich works with a svn
build:




  
  

  



  


Ralf


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] embedding as3/flash9 swf problem

I haven't tried that and I'm not sure if it works. Just try it ;). You
need to set the as3 parameter to one when there is any as3 in your swf.
This should be independent of as2 code in your file.

Ralf

> thanks sweet! I'll have to check out from svn.
> 
> just one question, will things work if trying to combine as3 files with 
> non-as3 files? for like compiling a library swf of other swfs and 
> assets, some as3 some not?



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Impossible to compile from sources

Building swfmill on OS X doesn't seem to be easy, because the build
system isn't optimized for it. I would really like to do a new OS X
build and try to make building swfmill easier, but I don't own a mac any
more.
It should be possible to do a non static OS X build. You can find a
solution to the error you posted in the may thread
(http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001330.html).

Ralf

> Hi - so I just checked out trunk from svn on OSX 10.4 so I can get the 
> latest patches, I ran ./autogen.sh but hit the ./configure: line 18836: 
> syntax error near unexpected token `XML,'
> 
> I've read through the old mailing list thread of compiling on OSX from 
> May 2007 and that seemed to end inconclusively as did the recent Nov 
> thread of "Impossible to compile from sources". Is there a known 
> technique for doing so? Is the May thread the way to go?
> 
> thanks
> Will



___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


  1   2   >