Archive

Archive for July, 2009

Create Fireworks in Flash

July 3rd, 2009 No comments

This article was submitted by Enric Godes, project manager at Vasava, a design studio. Godes and Vasava were commissioned by Adobe Software to create this tutorial.

Today we’re going to develop a virtual fireworks display in Flash.

To follow along, you’ll need:

How to Proceed

Step 1: Change the Flash movie to 800×600 and 65 fps.

today1

Step 2: Draw a 4 px circle and transform it on symbol by pushing F8.

Step 3: Edit the MovieClip and animate it from left to right on a straight line. These are the sparks eminating from the center of the individual fireworks.

We used a shape interpolation for this. Later, you can also try varying animation types and change the timing to create different results. Insert a stop on the last frame.

today

Step 4: Find the MovieClip on the library and right click to open the properties window on the class field and change it to “Particle"

today2

Step 5: Make a new symbol and put it on the scene. On the properties window, change it to "nightSky." This is where we will put the fireworks.

Step 6: And now the coding. First, import the classes we are going to use

import caurina.transitions.Tweener;
import flash.events.*;

Step 7: Next, define the movie vars.

var fwParticlesCount:uint=200; // particles in each explosion
var fwTimer:uint=2000; // time between explosions
var timer:Timer = new Timer(fwTimer);
// this adds a timer, in each step of the timer it will call fire() function
timer.addEventListener(TimerEvent.TIMER, fire);
timer.start();

Step 8: We want to use a lot of random numbers, so we created the following function to save some time.

function randRange(min:Number, max:Number):Number {var randomNum:Number = Math.random() * (max – min + 1) + min;    return randomNum;}

Step 9: And now the main function, which is putting the particles in a circle, animating them and setting their opacity and position.

function fire(event:TimerEvent){

    // the origin coordinate for the firework
    var x0:uint=randRange(100,700);
    var y0:uint=randRange(100,500);
    // now i’m going to create and define the properties of each particle in the firework
    for(var i:uint=0;i<fw Particles Count;i++){
           var tempParticle:Particle=new Particle();
           tempParticle.x=x0;
           tempParticle.y=y0;
           tempParticle.rotation=randRange(0,360)
           tempParticle.scaleX=tempParticle.scaleY=randRange(.3,1)
           //add to the stage
           nightSky.addChild(tempParticle)
           //the particle is going to start with the animation you prepared on the Movie Clip
           //then with a little delay the Tweener animates the y an opacity,
           //onComplete remove the mc from stage and deletes the particle
    Tweener.addTween(tempParticle,{y:y0+200+randRange(50,50),alpha:0,delay:1,time:2,transition:"easeInSine",onComplete:function(){nightSky.remove Child(this);delete this}});

                                  
  today3

That’s all you need to do. Now just sit back and enjoy the show!

  Enric Godes is a project manager at Vasava. Started in Barcelona in 1997, Vasava is a   communication studio with 18 young designers who specialize in cross-media projects: print, web, motion, 3D animation, and video. To unleash creativity and meet the deadline-driven demands of clients, Vasava relies on the integrated, cross-discipline tools found in Adobe Creative Suite Master Collection software.

Twenty Five Impressive Portfolio Web Designs

July 3rd, 2009 No comments

30-01_45royale

Portfolios are a great way for web designers to show off their work and present to prospective employers what they can do. But with so many portfolios out there, it is hard to make yours stand out from rest.

In this showcase, you will see a few excellent examples of beautiful web designs which we hope will help inspire you.

V7N Offers Ten Tickets to Affiliate Summit East

July 3rd, 2009 No comments

A great new offer provided by the lovely people over at V7N. They are giving away 10 tickets to the Affiliate Summit East where you can see and meet some of the top names in today’s web industry.

For the official announcement and entry rules, please head on over to the announcement on the V7N forums:

Kyle Bean Tech Cardboard Artwork Is Awe-inspiring!

July 2nd, 2009 No comments

Most of us have grown up making nondescript shapes out of cardboard in the art clagalleryss, and perhaps, it was the desire to create something eclectic, one that stands out among insipid, mundane works of juvenile creativity. Or, was it an inherent understanding that in every discarded piece of paperboard was a masterpiece waiting to be unlocked? Well, Kyle Bean, the author of ‘The Future off Books’ has no qualms admitting this rather apparent fact. With ample evidence, at that! Laptop boxes manifest into tiny lifeless cardboard laptops; while camera boxes get a shape makeover, replicating the object that they once housed. Simply amazing electronic art.

One of the most striking aspects of Kyle’s creations is the compactness in design. Each paperboard object seems to have been chiseled out of cardboard; not cut, bent and shaped into the designs that we are completely in awe of. Logic dispels doubts about the latter and this greatly magnifies the dexterity of this designer.

Categories: Designing Tags: , ,

GChart 2.5: Faster, Sharper, Canvas-rendered, Pie, Line, and Area Charts

July 2nd, 2009 No comments

John Gunther has released GChart 2.5, a client-side library that adds a new canvas-rendering option for sharper, better looking, alpha-transparent, pie, line, and area charts.

gchart25

John told us:

    Canvas-rendering corrects GChart’s most serious visual quality limitations (including the most often mentioned problem by its users: the banded-filled pie slice).

    Coupled with its existing feature set and ease of GWT integration, the canvas-rendering option makes GChart an excellent choice for those who want to add basic charts to a GWT application without a lot of fuss.

    To access these features, you’ll need to plug an external canvas library into GChart (GWTCanvas in the gwt-incubator is reccommended) as described in detail in the setCanvasFactory method.

    With the external canvas in place, the next step is to tell GChart you want a curve to be “continuously filled” by invoking setFillSpacing(0).

    With each such continuously filled curve, GChart automatically exploits your external canvas library to improved the quality and speed of that curve’s rendering. Specifically, banded-filled pie slices become solid filled, dotted connecting lines become continuously connected, and (the biggest stretch) bar charts become area charts. See the setFillSpacing method’s javadocs for a detailed description of how each existing symbol type implements this new “continuously-filled”, canvas-powered, rendering option.

    Note that GChart’s previous HTML-only rendering is still available, and is the default rendering mode if you don’t bother to plug in an external canvas.

Categories: Others, Social Media Tags:

Tips to Succeed with Adsense

July 1st, 2009 No comments

As you use Google’s AdSense for more and more time you begin to learn from the mistakes of the past, and you slowly begin to realize which of your actions kept your site from reaching its full potential.

But an important part to making a mistake is telling people about it and teaching them how to avoid making the same mistake. So this is a list of the top five mistakes people using AdSense make.

You should read them well, and see if any of them is applicable to your contents. If it is, you must stop and attempt to fix such errors as quickly as possible.

The first major no-no that everyone seems to be hitting at one point or another has to do with breaking the rules. Google’s AdSense is a great program but it relies on you respecting a few set rules.

The most important thing is not to create “artificial clicks” through any means possible. Never click your own links, never ask your friends or close ones to click the links and never, by any means have your content encouraging the visitors to click the links. You run the risk of being permanently banned, and that will definitely damage your revenue.

Failing to comply with Google’s terms could have your AdSense account suspended. And this is why this rule is by all means the most important one of all. It’s because this is the difference between life or death.

The second thing users get wrong a lot of time is having a bad color palette for ads. Many times this happens because the publishers aren’t knowledgeable enough to change default color palettes.

Others just can’t seem to spend enough time in changing those defaults. Having bad ads that stand out is sure to push people away from clicking; whilst having something which is clearly visible yet distinctive will.

Third, of course, the position of the ads is probably the key element you should get right if you want to maximize your profits with AdSense. This is noted in a lot of places on the web and Google talks about this as well. Google can provide you with statistics which illustrate what positions work particularly well on your website.

Fourthly, banner ads are also a very bad idea if you’re using AdSense. 480×60 type ads are a sure way to drive many people away as most Internet surfers have developed a natural resistance to such means of advertising.

And last, but clearly not least, is not taking care of the site running the ads. Because ultimately it doesn’t matter how cool the site is itself. If it doesn’t have updated contents and a lot of daily visitors it will probably never earn you any serious AdSense revenues.

So these are the most important five things people get wrong while using the AdSense program. But of course if you don’t like this means of expressing the issues, here are the top five things you should do to ensure your AdSense ads are constantly bringing in that revenue.

Never break Google’s policy. Don’t make visitors create “artificial clicks” on your website regardless of the person doing so or the reason. Make sure your ads have the right colors that blend in with your site, and make sure they’re positioned in the right places to attract as many customers as possible. Always try to avoid using banner-like (480×60) adds unless you really know what you’re doing and constantly keep your site fresh and up to date.

So with that in mind you should be raising your AdSense revenues in no time.

MySpace Open Sources Advanced Browser Performance Tool For IE

July 1st, 2009 No comments

Developers tend to tease MySpace for its look, but the insiders are incredibly impressed by some of the engineering behind the scenes (e.g. their internal monitoring tools are said to be second to none).

They have surprised us again with their new tool MSFast which is "a browser plugin that help developers to improve their code performance by capturing and measuring possible bottlenecks on their web pages."

The IE 8 tools are getting better, but in general no one has been able to touch Firebug (and the new WebKit Inspector improvements) but this tool is actually plugin for IE! It captures a lot:

  • Measure the CPU hit and memory footprint of your pages as they render on the client’s browser
  • Review screen shots of the page while it renders
  • Review the rendered HTML on each point of the page’s lifecycle
  • Measure and show estimates of the time it takes to render each section of the page in different connection speeds
  • Validate the content of your page against a set of proven “best practice” rules of web development
    Review downloaded files and show download time estimation on different bandwidths

ss1

That is some impressive data, and great to be able to test on IE where it has been SO hard to do so in the past.

Firefox 3.5: The Fastest Fox Has Landed

July 1st, 2009 No comments

fire_fox

It is great to feel the good vibes at Mozilla HQ today as we launch Firefox 3.5! It is always an interesting ride to see a browser develop, and realize how complex and large the work is.

Congrats to the browser developers out there who are working hard to make the Web better. With final versions of Firefox 3.5, Safari 4, and Chrome 2 out in the wild…. things are picking up nicely.

The Firefox 3.5 release is exciting for me because it really benefits the developers. We get Open Video, @font-face, cross site XHR, Geo Location APIs, CSS Media Queries, Native JSON, Offline support, Web Workers, and so much more.

And, the world keeps moving. I have seen some very cool things in the nightly tree, and look forward to beign around as the team works on the next great Firefox.

Updates

firefox_davinci

Steve Souders has posted on Firefox 3.5 getting 10 out of 11 in his UA Profiler tests.

Watch the downloads come in with this cool download tracker that uses Canvas and SVG, all thanks to Justin Scott. The stats so far show that if the current rate trends hold we will beat the Firefox 3.0 download day, which is a surprise to all.

Top 15 Internet Countries Internet Population

July 1st, 2009 No comments

Internet usage measurement and marketing service providers Com Score recently reported that total global Internet users aged 15 and older who access the internet from home and work computers surpassed 1 billion for the first time in December 2008 based on data accumulated by them.

webmaster

Top 15 countries ranked by Internet population:

  1. China: 179.7 million
  2. United States: 163.3 million
  3. Japan: 60.0 million
  4. Germany: 37.0 million
  5. United Kingdom: 36.7 million
  6. France: 34.0 million
  7. India: 32.1 million
  8. Russia: 29.0 million
  9. Brazil: 27.7 million
  10. South Korea: 27.3 million
  11. Canada: 21.8 million
  12. Italy: 20.8 million
  13. Spain: 17.9 million
  14. Mexico: 12.5 million
  15. Netherlands: 11.8 million
Categories: Others, Webmasters Resources Tags: