Picon

Re: funny mtasc/swfmill/static classes problem

Hey guys!

I have uploaded to my hosting server a precompiled binary version of swfmill, as it would be impossible to compile it on the servers. The problem is the server libraries are older than my up-to-date devel linux machine, so when I first uploaded my SWFMILL I got all sorts of exotic dependency/version problems between libc6, libgpp, etc ... So I recompiled it in an quite old linux machine I have at home.

The versions of the libraries are very old in comparison with one compiled in a contemporary distribution, as you can see:

libxml2-2.6.18
libxslt-1.1.13
libpng-1.2.2
freetype2-2.0.3

What can I expect from this compiled swfmill? Will the old libraries affect its performance or stability? (i know it's more a speculative question, but I'll be glad if someone shares thoughts with me :)



Regards!




On 28 Feb 2009, at 08:24 , Rodolfo Lopez <at> nebular streams wrote:

Hi all!

This is not really a problem related to SwfMill but I post it here because it is quite funny and related to the swfmill 'cousins' and I hope it can be useful for people. Sorry for the people that may found it off-topic, although I think it may be interesting for some of you guys that work with these tools together.

I'm working in sort of an app-generator, that uses SWFMILL to compile resources, then MTASC to inject a 'stub' class with a "static main" function so I initialize the application.

All works OK.

The scenario is as follows: I generate two applications. I run one application, then at some point launch the other one, but unloading the first one before (unloadMovie). Well... what happens is quite funny: this second application loads correctly, but the stub executed is the stub from the first (unloaded) application. These stubs are also generated dynamically, so as the stubs are different, the second application fail, as it is a "megamix" of the first stub and the second application :)

I have solved it generating a random name for the class stub. Anybody has a clue on how can the stub class survive an unloadMovie? And not being replaced by the freshly loaded one?

Cheers,
Rodolfo.





_______________________________________________
swfmill mailing list

rodolfo lopez pintor
nebular streams



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

Statically linking libswft.so and libswfmillxslt.so

Hi all!

Due tu surreal chroot issues I need a swfmill with the libraries  
libswft.so and libswfmillxslt.so statically linked into swfmill  
binary. Is this very hard to accomplish? can anyone please point me  
in the right direction? thanx in advance!
Thomas Williams | 9 Mar 18:16 2009

Building from source

Hi chaps,

I was attempting to compile the head version on OSX and debian linux today. Does anybody know if the makefiles in the trunk of the repository are kept up to date? They don't seem to work any more (I assume they worked at some point!), so does anyone know where I can get a recent compiled binary?

Many thanks,
Tom
--
Thomas Williams
Java Programmer
Dubit Limited
+44 1133 947920
www.dubitlimited.com
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Thomas Williams | 10 Mar 10:37 2009

Re: Building from source

JJ,

Wow! Thanks! I'd all but given up on getting swfmill to build, this did the job just fine! Specifically (for anyone else who's encountering similar problems) this resolved a problem where strangely once ./autogen.sh had run there was no Make file output.

Once I'd installed this library ./autogen.sh finished with the lines:

config.status: creating src/swft/Makefile
config.status: creating src/xslt/Makefile
config.status: executing depfiles commands


Then make finished with the somewhat misleading lines:

make[1]: Nothing to be done for `all-am'.

Which looks like an error, but isn't

Finally make install had some misleading output towards the end as well:

make[4]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.

But successfully installed swfmill into /usr/local/bin/swfmill.

Additionally I had to install two extra packages pkgconfig, libxml2 (though I had alot of the graphics manipulation libraries already installed)

And finally I had to follow this post: http://osflash.org/pipermail/swfmill_osflash.org/2007-May/001330.html. Otherwise ./autogen.sh failed with:

./configure: line 19236: syntax error near unexpected token `XML,'
./configure: line 19236: `PKG_CHECK_MODULES(XML, libxml-2.0)'

Thanks for the help JJ, hope this comes in useful for someone else!

Tom

2009/3/10 JJ S <jjsil2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi Thomas,

Below is a copy of an email I sent to the list a few weeks ago, when I managed to compile swfmill from HEAD in OS X. Let me know if these instructions work for you. If they don't I could recompile in my machine and send you the binary.

Cheers,
JJ

PS: the SVN repository changed recently, here's the new location: http://svn.swfmill.org/swfmill/




Hi everyone,

I managed to compile Swfmill for Mac OS X! :D

You need to install Fink (http://www.finkproject.org/) to get the necessary tools.

Here are the steps I followed, it's possible that I had some necessary tools pre-installed in my machine from previous development, let me know if it doesn't work for you:

# Get libtool
fink install libtool14  # Not the default libtool, it doesn't work for this.
# Make a directory
mkdir swfmill
cd swfmill
# Get the source
cd trunk
# Configure
./autogen.sh
# Build!
make
# Check that it worked
ls -l src/swfmill

You should have a nice ~4Mb file there.

Things to look out for when running ./autogen.sh:
configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
This is pretty tricky because it doesn't show up as an error at the end of the run, it's a bit higher up.  It means you don't have libtool installed properly.

release-mac.sh doesn't work in my machine because it has hardcoded paths to dan's home directory in an extra linking step. However, that step doesn't seem necessary, I commented it out and the rest of the script run just fine (with the wget and scp lines commented out too).

I copied the resulting tar to a clean machine and ran the tests and everything seems Ok. :D

Please try to reproduce and let me know if you encounter any problems.

Cheers,
JJ



On Mon, Mar 9, 2009 at 5:16 PM, Thomas Williams <thomas.williams-OhYsZGG4/MatonT6r0GpFQ@public.gmane.org> wrote:
Hi chaps,
I was attempting to compile the head version on OSX and debian linux today. Does anybody know if the makefiles in the trunk of the repository are kept up to date? They don't seem to work any more (I assume they worked at some point!), so does anyone know where I can get a recent compiled binary?

Many thanks,
Tom
--
Thomas Williams
Java Programmer
Dubit Limited
+44 1133 947920
www.dubitlimited.com

_______________________________________________
swfmill mailing list
swfmill-AOfRjkeVuXrF2uMehF1BdA@public.gmane.orgg
http://osflash.org/mailman/listinfo/swfmill_osflash.org



_______________________________________________
swfmill mailing list
swfmill-AOfRjkeVuXpAfugRpC6u6w@public.gmane.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org




--
Thomas Williams
Java Programmer
Dubit Limited
+44 1133 947920
www.dubitlimited.com
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Juan Delgado | 16 Mar 15:01 2009
Picon

Re: Building from source

There was some discussion on the topic "maintainer, anyone?". I tried
to compile from trunk in Ubuntu but was having a problem with
automake. I gave up :(

On Tue, Mar 10, 2009 at 9:59 AM, Eric Priou <erixtekila@...> wrote:
>> Thanks for the help JJ, hope this comes in useful for someone else!
>
> Maybe you'd consider hosting the osx release somewhere in the swfmill.org
> site in order to share it.
> Thanks.
> ----
> Eric Priou aka erixtekila
> Articles : http://www.v-i-a.net/inprogress
>
>
> _______________________________________________
> swfmill mailing list
> swfmill@...
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>

--

-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv
Jean Christophe DA COSTA | 21 Mar 01:09 2009
Picon

Problem with SWFMill and MovieClip.

Hello everyone.

So, I try to create a MovieClip composed of numbers from 0 to 9. When I 
import it into Haxe, it's okay. The .nextframe() works fine, but not 
..prevframe(). It's the same thing when I use the gotoAndStop. If I'm in 
the frame number 4 and I go to 6, it works. But if I am at 6 and I go to 
4, it does not. I think my XML file is wrong. Who can help me? Thank you 
very much.
Here is my XML file.

<movie version="9">
    <clip id="0" import="police/0.png"/>
    <clip id="1" import="police/1.png"/>
    <clip id="2" import="police/2.png"/>
    <clip id="3" import="police/3.png"/>
    <clip id="4" import="police/4.png"/>
    <clip id="5" import="police/5.png"/>
    <clip id="6" import="police/6.png"/>
    <clip id="7" import="police/7.png"/>
    <clip id="8" import="police/8.png"/>
    <clip id="9" import="police/9.png"/>
    <clip id="bouton_jouer_libre" import="pencarte/btn_libre.png"/>
    <frame>
        <library>
            <clip id="Score">
                <frame name="score_0">
                    <place id="0" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_1">
                    <place id="1" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_2">
                    <place id="2" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_3">
                    <place id="3" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_4">
                    <place id="4" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_5">
                    <place id="5" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_6">
                    <place id="6" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_7">
                    <place id="7" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_8">
                    <place id="8" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
                <frame name="score_9">
                    <place id="9" name="mcScore" depth="1"/>
                    <stop/>
                </frame>
            </clip>
            <clip id="bouton_jouer_libre">
                <place id="bouton_jouer_libre" depth="1"/>
            </clip>
        </library>
    </frame>
</movie>

Best regards,
JCDC.
Icey Shard | 30 Mar 20:01 2009
Picon

Re: Problem with SWFMill and MovieClip.

> Hello everyone.
>
> So, I try to create a MovieClip composed of numbers from 0 to 9.
>[...]
>I think my XML file is wrong.
I'm not sure, but it may be similar problem to what I encountered before:
http://osflash.org/pipermail/swfmill_osflash.org/2008-October/001945.html
Namely, incorrect(?) handling of the "morph" tag in placeobject in the
simple dialect. It can be fixed by using custom xslt... but that may
cause another problem, because as far as I can tell, the handling of
some fonts is broken in the xslt mode...

Hope that helps.
Daniel Turing | 31 Mar 01:01 2009

Re: Problem with SWFMill and MovieClip.

Hey Jean Christophe,

On Sat, 2009-03-21 at 01:09 +0100, Jean Christophe DA COSTA wrote:
> <movie version="9">
>     <clip id="0" import="police/0.png"/>
[...]
>     <clip id="bouton_jouer_libre" import="pencarte/btn_libre.png"/>
>     <frame>
>         <library>
>             <clip id="Score">
>                 <frame name="score_0">
>                     <place id="0" name="mcScore" depth="1"/>
>                     <stop/>
>                 </frame>
...

a more logical structure would be a la:
<movie>
	<library>
		<clip>
			<frame/>
		</clip>
	</library
	<frame>
		<clip/>
	</frame>
</movie>

have you tried that?

-dan

Gmane