Dodona gives you answers

Archive for December 2009

How do I generate an EPS or a vector based PDF from an SWF?

leave a comment »

Well, you don’t. Nowadays it’s very well possible to generate a JPG or other pixel-based format with an SWF, and with some server-side scripting to turn it in to a PDF. But all the images will still be pixel-based.

But after some surfing, I found out the way to vectors is SVG (Scalable Vector Graphics). And after some more surfing, I found Degrafa. This is an open source declarative graphics framework in Flex. And with it, it looks relatively easy to generate a SVG image from Flex (example). And an SVG image can be converted to a PDF serverside or clientside, or edited in programs like Adobe Illustrator.

So, no (vector based) PDF from an SWF, but an SVG from Flex; that’s pretty close.

Status: Didn’t test it yet, but looks promising
Link: http://www.degrafa.org/

Advertisements

Written by lutsen

December 29, 2009 at 10:16 am

Posted in Actionscript, DTP, Web

Where can I find free reliable browser statistics?

leave a comment »

If you design a website, it’s important to know how your audience will view it. What browser will they use, what size will their monitor be? Although this differs from website to website, it’s always nice to have some global information.

Clicky is a web analytics tool which also provides free global information gathered by all their individual trackers. You can view it as a whole, or separated by country (nice!):
http://getclicky.com/marketshare/global/web-browsers/

W3 schools is a web building tutorials website, and gives an insight in the statistics of their own site:
http://www.w3schools.com/browsers/browsers_stats.asp

Extensive statistics about Flash, Silverlight and Java (Rich Internet Applications so to speak) can be found on riastats.com:
http://www.riastats.com/

Written by lutsen

December 28, 2009 at 3:06 pm

Posted in Uncategorized

Happy christmas!

leave a comment »

This is our offical HoverKraft christmas website (our design agency).

Happy christmas everybody!

Written by lutsen

December 22, 2009 at 9:00 am

Posted in Web

How do I redirect a non www address to a www address?

leave a comment »

In my case, I built a Flash site with SWFAddress to allow deeplinking. The downside to this was the site didn’t work well if a user used a URL like exaple.com instead of www.example.com.

If your site runs on an Apache server, you can use .htaccess to redirect all users visiting a example.com URL (without the www) to a www.example.com URL (with the www). This is the code you need:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Put it in a file named .htaccess, upload it to the root directory of your website, and your good to go.

Link:
www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect

Written by lutsen

December 9, 2009 at 2:13 pm

Posted in Actionscript, Web

How do I program a random value of either 1 or -1?

leave a comment »

In in my case actionscript or any other programming language, you might want to code a random value to be either 1 or -1, for example to randomly have an object rotate clockwise or counter-clockwise. This is how you can get this value in actionscript:

var randomDirection:Number = Math.round(Math.random())*2-1;

Now the randomDirection variable will always be either 1 or -1.

Written by lutsen

December 8, 2009 at 11:34 pm

Posted in Actionscript