problem exporting to swf

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

problem exporting to swf

Post by DominiqueBray »

Hello

I have a problem exporting to swf.

Here is my AS file : silly_spider.anme

Export to swf and see what happens. At the begining everything goes well and suddently the spider is split in several objets...

Does anybody has a trick to make it work ?

I know I should not use bones and groups to export to swf, but it works at the beginning, it should work all the way or not at all.

Another strange thing is the swf is very big for such a simple animation. :shock: Why is it so big ? As usual swf files are small.

Please help.
________
Canary Islands Cooking
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
User avatar
heyvern
Posts: 7045
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

It exported as SWF perfectly for me. No problems.

the size of the SWF is based on how "optimized" it is. If layers don't have that "red dot" the layer isn't optimized. This means that each frame is exported as a separate piece of art and the whole thing becomes exponentially larger as an SWF.

None of your vector layers are "optimized". The only way to get an optimized vector layer is to use layer binding. "Cut out" style or "puppet" style animation. This will then export to SWF using "instances" that animate instead of hundreds of individual frames.

-vern
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

It exported as SWF perfectly for me. No problems.
Strange. :? Here is what I got : 082.swf (5.7Mo)
If layers don't have that "red dot" the layer isn't optimized
Oh yes I remember now, I did read this a few months ago.
The only way to get an optimized vector layer is to use layer binding.
Ok, I'll try this way and let you know.
________
EXTREME VAPORIZER
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

It works ! Thank you heyvern !
________
IOLITE PORTABLE VAPORIZER
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
chucky
Posts: 4650
Joined: Sat Jan 27, 2007 7:24 pm

Post by chucky »

I use layer binding all the time for swf export and point motion, it works fine.

Point motion is a tricky one, it could be the way the shape is closed that causes weirdness, the number of points, I'm not sure ,but it can go sideways at some point.
Here is a work in progress on the first example you will see point binding and point animation working just fine.

Shrappy

In the second example, (which was the original) you will see how the tongue is causing swf problems.
Crappy

The tongue was the only point animated layer, but I just remade that shape, as you saw in the first example (shrappy) added point animation and it all works fine with variable line widths and a gradient on top.

Don't be daunted, it's all possible with some perseverance. 8)

What I would like to know though is how to render an swf at the anime project output proportions even when the shapes extend further that the output field. :?
User avatar
slowtiger
Posts: 6302
Joined: Thu Feb 16, 2006 9:53 am
Location: Berlin, Germany
Contact:

Post by slowtiger »

What I would like to know though is how to render an swf at the anime project output proportions even when the shapes extend further that the output field.
That's a tricky one. I assume you are watching your SWFs from AS directly in your browser? In that case, the browser doesn't know the dimensions of your project, or better, the browser ignores that info. But this is an SWF issue as it will happen with SWF files from Flash as well.

In order to get the portion inside the project window only, you need to embed your SWF properly into an HTML page. Search for the code, it's an easy copy&paste job.

If you import your SWF into Flash, it will contain all elements, even those outside the project frame, but everything will be positioned on 0, 0, you just have to set your Flash movie deimensions to the same value as your AS project and everything fits perfectly.
chucky
Posts: 4650
Joined: Sat Jan 27, 2007 7:24 pm

Post by chucky »

Thanks slowtiger, unfortunately I don't have flash- bit expensive, I only have swish and that hates the anime swfs.
.....
edit... ok I got an update on swish and it does it (with a little patience), plus makes a smaller file, weirdly though it plays at a chunkier frame rate at full size.Still there it is.
Fun to see the swish file going ip past 270,00 k in the task manager while anime is still only 2,000 even with all the extra unused image files. Good old anime, it just refuses to choke. :)
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

Wow. So you just used layer binding and moved some points in keyframes to get such a good looking animation ?

By the way, I deleted the previous online files so here is just the working result :
silly-spider.swf
It is a silly spider that will randomly appear at the bottom of my website.
What I would like to know though is how to render an swf at the anime project output proportions even when the shapes extend further that the output field. Confused
Yes I just noticed this problem too. My spider comes from the right, outside of the output field, and after her funny show, she goes to the left and gets outside again. When I read the swf with MediaPlayerClassic or directly in a browser, it looks like in AS, but when I put it in a web page with

Code: Select all

<embed src="1.swf" type="application/x-shockwave-flash" width="100%" bgcolor="" wmode="transparent"/>
I see the spider from the start to the end. I don't have Flash or Swish so I am still looking for a solution for that problem. :?
________
Honda cbx750
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
chucky
Posts: 4650
Joined: Sat Jan 27, 2007 7:24 pm

Post by chucky »

Hey, Domonique. that spider was not bad at at , very cute and good leg movement too.
I probably wasn't clear though about the binding I use.
It isn't layer binding at all, it is point binding, only the tongue has point animation, the rest is skeletally controlled.
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

Thanks. :)

Ok. I'll learn to use point binding right now, it looks more acurate than just region binding I use as usual.
________
MARIJUANA
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

I'm still with this annoying problem of output field.

I don't want to buy a software just to solve this problem. I searched for a free swf editor but there is not any one.

Does anybody know how to solve this problem without Flash or Swish ?
________
SIMCA VEDETTE
Last edited by DominiqueBray on Mon Feb 28, 2011 5:32 am, edited 1 time in total.
chucky
Posts: 4650
Joined: Sat Jan 27, 2007 7:24 pm

Post by chucky »

In the past , out of desperation, I have made a frame shape around the animation.
The flash player or web page will only play the furthest object to the edge.
So... the frame shape could be a compound shape made of two rectangles, (like a big white oblong doughnut).
The outer vector cuts off the objects outside the desired viewing area and the inner one reveals.
I hope this makes sense. :?
User avatar
DominiqueBray
Posts: 100
Joined: Sun Sep 17, 2006 6:32 am
Location: France

Post by DominiqueBray »

You mean masking the spider with white squares outsides of the view so the masked part will be cut ?
Image
I already tried it, the squares appear :
http://dom-productions.ovh.org/temp/essai-swf/2.htm

I used to let the scale parameter to default value but if I set it to "exactFit" it is almost good :
http://dom-productions.ovh.org/temp/essai-swf/1.htm
It just has a bad height, I just have to solve that.
________
WIKI VAPORIZER
Post Reply