Thursday, November 03, 2011
Wednesday, September 29, 2010
A Client Cheated me long back
Tuesday, September 28, 2010
Easiest XML Slideshow Creator
SOURCE : http://www.flashmadblog.com/2010/09/25/easiest-xml-slideshow-creator/
Hi this is one of my class files i usually use. Just 3 lines of code makse an xml slideshow/fadeshow with editable speed and delay. What you need to do is import my class and write the code as below
import com.flashmadlab.imgFader;
var m:MovieClip = new imgFader(“images.xml”,2,3);
addChild(m);
And your as3 xml slideshow is ready if you have the images.xml is set in the below format
flash_images/1.jpg
flash_images/2.jpg
Below is the documented code and You can download the source files here : 3lineSlider_src
import com.flashmadlab.*;
var m:MovieClip = new imgFader(“images.xml”,2,5,{type:”slide”,width:null,height:null,preloader:null}); // type:”fade” or “slide” or “pngFade”
addChild(m);
//imgFader(xmlName:String,fadeDuration:Number,delayBetweenSlides:Number,[params]);
//type:”slide” can have 3 values
//type:”fade” for fading images instead sliding
//type:”pngFade” for png file fadeshow
//width:null can be replaced with a number ie:width:300 height can also be a number
//preloader:specify a movieClip name and it will scale on imageLoade Prgress.
And The demo here http://flashmadblog.com/preview_src/slideshow/
Wednesday, August 27, 2008
Saturday, October 21, 2006
Object Acceleration (Game Making)
xspeed=1;
yspeed=1;
acc=1;
_root.onEnterFrame=function()
{
if(Key.isDown(Key.LEFT))
{
xspeed-=acc;
}
else if(Key.isDown(Key.RIGHT))
{
xspeed+=acc;
}
if(Key.isDown(Key.UP))
{
yspeed-=acc;
}
else if(Key.isDown(Key.DOWN))
{
yspeed+=acc;
}
ball_mc._x+=xspeed;
ball_mc._y+=yspeed;
}
Tuesday, October 17, 2006
Jugglor
http://www.flashjester.com
Jugglor is a Flash Stand alone Projector Creating Software. It Helps to avoid Fscommand folder and able to oen any File type From Flash
It also makes borderless and Custom shaped Projectors.
Monday, October 16, 2006
PARTICLE EFFECT
Create a new flash document, press Ctrl+J on the keyboard (Document Properties) and set Width to 300 and Height to 200px. Frame rate set to 65fps.
Step 2
Take the Oval Tool (O), Stroke Color must be switched off, under Fill Color choose any color and draw a "circle" like it is shown on the picture below.
Step 3
Open the Color Mixer Panel (Shift+F9), and set the options from the picture below.
Step 4
Select the "Particle" and Press F8 on the keyboard to convert it into a Movie Clip.
Step 5
Double click on a new made Movie Clip ("Particle) to go in its inside.
Step 6
While your "Particle" is still selected press again F8 on the keyboard to convert it into a Graphic.
Step 7
Click on the first frame, open the Action Script Panel (F9), and paste this script:
xMin = 0;
xMax = 300;
yMin = 0;
yMax = 200;
minSize = 10;
maxSize = 50;
easeFactor = 10;
randomX = Math.random () * ( xMax - xMin ) + xMin;
randomY = Math.random () * ( yMax - yMin ) + yMin;
randomSize = Math.random () * ( maxSize - minSize ) + minSize;
Step 8
Click on the second frame and press F5.
Step 9
Click on the third frame and press F6. After that open the Action Script Panel (F9), and paste this script:
distance = Math.sqrt(Math.pow(this._x-randomX, 2)+Math.pow(this._y-randomY, 2));
if (Math.abs(this._width-maxSize)>1) {
this._width += (randomSize-this._width)/2;
this._height += (randomSize-this._height)/2;
}
if (distance>1) {
this._x += (randomX-this._x)/easeFactor;
this._y += (randomY-this._y)/easeFactor;
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
We're done!
Test your Movie (Ctrl+Enter).