ACTIONSCRIPT font global ändern 
Actionscript
Schriftart für alle Textboxen egal ob "statisch" "dynamisch" oder "input" ändern.

in Library gewünschten Font anlegen und mit "FontExportName" für Actionscript ins erste Frame exportieren.

AS in frame 1 / layer 1:

sFormat = new TextFormat();
sFormat.font = "FontExportName";
sFormat.bold = true;
sFormat.align = "center";

for(var i in _level0)
{
if (typeof(_level0)== "object")
{
_level0.setTextFormat(sFormat);
_level0.embedFonts = true;
}
}


[ 22 Kommentare ] ( 165 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink
flying carpet 
Actionscript
select your teppich and start the journey: omar this is some actionscript combined with css fun and music

..let it fly...in another window

this experiment uses css alpha transparency, the "kreisDimension"-Flash is just four vector wheels, each with the following code:

onClipEvent (enterFrame) {
_root.symbol._rotation -=16;
_root.symbol._x -= (_x-_root._xmouse)/6;
_root.symbol._y -= (_y-_root._ymouse)/6;
_root.symbol._xscale -= (_x-_root._xmouse)/6;
_root.symbol._yscale -= (_y-_root._ymouse)/6;
}


[ 5 Kommentare ] ( 67 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink
actionscript experiment fractal dancer 
Actionscript
fractal dancer

layer 0 / frame 0:

onClipEvent (mouseDown) {
r = g = b = random(255)+1
perc = 100
_root.main.setTint(r, g, b, perc);

}



--------------------------------------------------


actionscript auf dem MovieClip (z.b. ein tween):

mc / frame 0:

duplicateMovieClip("main", "x0", 1);
x0._alpha=i+50;
i=i+1;
x0._x=_xmouse;
x0._y=_ymouse;
count=0;



mc / frame 5:

stop();
removeMovieClip("x0");


[ 8 Kommentare ] ( 64 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink
mal mal was 
Actionscript
flash write pad

[ 7 Kommentare ] ( 144 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink
ActionScript Preloader 
Actionscript
-> create new first scene,
-> create "Dynamic Text" with var: "preloader"
-> Actionscript in Frame 1 / Layer 1:

-------------------------------------------------------------------------------
stop();
_root.onEnterFrame = function() {
TotalBytes = getBytesTotal();
BytesLoaded = getBytesLoaded();
PercentLoaded = Math.round(BytesLoaded / TotalBytes * 100);

preloader = "Loading: " + PercentLoaded +
"%\n" + BytesLoaded + " Bytes\n(Percent: " +
Math.round(TotalBytes/1024) + "kb)";

if (BytesLoaded >= TotalBytes) {
delete this.onEnterFrame;
gotoAndPlay("Scene 2",1);
}
};

[ 22 Kommentare ] ( 1863 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink
ActionScript Movie ProgressBar 
Actionscript
show progress of movie:

copy snippet to first frame. Create a text field called "blk_txt".

--------------------------------------------------------
var BarSize = 0;
_root.onEnterFrame=function(){
Prozent = 100 / ( _root._totalframes / _root._currentframe);
BarSize = Prozent;
blk_txt = "Progress: " + Math.round(Prozent) + "%";
}
--------------------------------------------------------

[ 15 Kommentare ] ( 187 mal angeschaut )   |  [ 0 Trackbacks ]   |  Permalink