Ever wonder how to make a quick glass button using Illustrator? Click on my button below to go to Bittbox to learn how. It’s helpful and easy.
myContainer.loadMovie("myExternalMovie.swf");
or
this._parent.loadMovie("home.swf")
}
//load into a container and resize the file.
//it doesn't work with levels.
stop(); // ActionScript 2.0 var mcl:MovieClipLoader = new MovieClipLoader(); // you first create a MovieClipLoader object var picListener:Object = new Object(); //
…
//AS3 button code going to a url
//btWhatever is the instance name of the the images that I want to make a button
btWhatever.addEventListener(MouseEvent.CLICK,onMouseClick);
// if you…
This is one of my favorite pieces of code, and it get used often.
Frame one of your movie
stop();
var millis:Number=3000;
var Tim:Timer = new Timer(millis, 1);
Tim.addEventListener(TimerEvent.TIMER, playit);
function playit(e:TimerEvent):void {
play();
}
Tim.start();
…
Add a keyframe to the position in your movie where you’d like the timeline to pause. Any layer will do, but if you like to be organized, create a dedicated scripts layer. Click into this…
I use this code over and over, and always have to look for it to make sure I am entering it correctly.
import mx.transitions.Tween;…
import mx.transitions.easing.*;
new Tween(mc_name, "_alpha", Strong.easeIn, 100, 0, 3, true);