Thema: Movieclip
Beiträge zum Thema "Movieclip"
| Prototype: Movieclip.Prototyp.ll_fills [Flash 8]Bitmap-Füllung aus Bibliothek auf mc anwenden (einfach)
MovieClip.prototype.ll_fills = function(BitmapDataItem) {
this._bdi = BitmapDataItem;
var tile:BitmapData = BitmapData.loadBitmap(this._bdi);
this.beginBitmapFill(tile);
this.moveTo(0 [...]
|
| Prototype: Movieclip.Prototyp.ll_fill [Flash 8]Bitmap-Füllung aus Bibliothek auf mc anwenden
MovieClip.prototype.ll_fill = function(GlobalMarginLeft, GlobalMarginTop, GlobalMarginRight, GlobalMarginBottom, BitmapDataItem, BitmapDataAlpha, debug) {
this._gml = GlobalMarginLeft;
this._gmt = [...]
|
| Prototype: Movieclip.Prototyp.ll_pos [Flash 8]Positions- und Eiganschaftswerte "fließend" ändern
MovieClip.prototype.ll_pos = function(newHeight, newWidth, newX, newY, newSP, newSPD, newSPK, newAlpha, round, callback, debug) {
this._dx = newX;
this._dy = newY;
this._dh = newHeight;
t [...]
|
| Prototype: rotateTo [Flash 8]Drehung mit Angabe des Zielwinkels, der Drehrichtung und der easing-Funktion
// === dir ===
// short: den kurzen weg
// long: den langen weg
// ccw: gegen den uhrzeigersinn
// cw: mit dem uhrzeigersinn
MovieClip.prototype.rotateTo = function(e [...]
|
| Prototype: smoothToMouse [Flash 8]Mausverfolgung mit Angabe der maximalen Geschwindigkeit und Abbremsen am Ende
MovieClip.prototype.smoothToMouse = function(maxSpeed, brakeDist) {
this.onEnterFrame = function() {
var difX:Number = this._parent._xmouse - this._x;
[...]
|
| Prototype: Movieclip.Prototyp.Pause [Flash 8]MC auf seiner Zeitleite pausieren lassen
MovieClip.prototype.kaffeepause= function(dur) {
this.stop();
this.clearduration= function() {
clearInterval(this.newduration);
delete this.newduration;
delete this.clear [...]
|
| Prototype: Movieclip.Prototyp.FadeOut [Flash 8]MC ausblenden (_alpha)
MovieClip.prototype.fadeOut = function(speed) {
this.onEnterFrame = function() {
this._alpha -= speed;
if (this._alpha<=0) {
delete this.onEnterFrame;
this._visible = false;
}
};
};
mein_mc.fadeOut(3); [...]
|
| Prototype: Movieclip.Prototyp.FadeIn [Flash 8]MC einblenden (_alpha)
MovieClip.prototype.fadeIn = function(speed) {
this.onEnterFrame = function() {
this._alpha += speed;
ac._visible = true;
if (this._alpha>=100) {
delete this.onEnterFrame;
}
};
};
mein_mc.fadeIn(3);
[...]
|
| Prototype: Movieclip.Prototyp._SHELL [Flash 8]Variablenwerte global schreiben und lesen
// Um aus JEDER Zeitleiste oder Objektaktion heraus eine globale Variable zu definieren, setze ich auf den Prototype _SHELL.
// Vorteil liegt darin, dass die Werte einer Variable ohne Pfadangaben erreichba [...]
|
| Prototype: Movieclip.Prototyp.MoveObject [Flash 8]Object-Positionswechsel bei Ereignis
// in einen frame der Hauptzeitleiste schreiben
MovieClip.prototype.moveobject = function() {
dest = _root.xnew;
pos = this._x;
vel = (dest-pos)/1.5;
this._x += vel;
};
// das auf den mc der sich [...]
|
| Prototype: patternFill [Flash 8]MC mit Hintergrundbild füllen und repeaten
//
// MovieClip.patternFill(tile:String, width:Number, height:Number):Void
//
// author: Tobias Friese
// date: 26.01.2006
//
///// requirements //
//
// » import flash.display.BitmapData;
// » [...]
|
| Prototype: createRectangleMC [Flash 8]schnell einen MC mit Rechteck erstellen
//
// MovieClip.createRectangleMC = function(instanceName:String, width:Number, height:Number, color:Color, alpha:Number, origin:String, depth:Number):MovieClip
//
// author: Tobias Friese
// date: 25.01. [...]
|
| Prototype: MovieClip.fitInto [Flash 8]MC auf Bereich skalieren
// MovieClip.fitInto(width:Number, height:Number):Void
//
// Author: Tobias Friese
// Date: 20.01.2006
//
MovieClip.prototype.fitInto = function(width:Number, height:Number):Void
{
var targetRatio = width / height [...]
|
| Prototype: MovieClip.setzeMauszeiger [Flash 8]Benutzerdefinierter Mauszeiger
// Benutzerdefinierte Mauszeiger
MovieClip.prototype.setzeMauszeiger = function (unsichtbar)
{
if (unsichtbar)
{
Mouse.hide ();
}
this.onMouseMove = function ()
{
this._x = _xmouse;
this._y = _ymo [...]
|
| Prototype: MovieClip.setzeMausverfolger [Flash 8]Benutzerdefinierte Mausverfolger
// Benutzerdefinierte Mausverfolger
MovieClip.prototype.setzeMausverfolger = function (tempo)
{
this.onEnterFrame = function ()
{
this._x += (_xmouse - this._x) / tempo;
this._y += (_ymouse - this._y) / [...]
|
| Prototype: MovieClip.fpsmeter_extended [Flash 8]Bildrate (im Trace oder Textfeld)
MovieClip.prototype.fpsmeter_extended = function (aktion, ausgabe)
{
if (aktion == "start")
{
this.zaehler = 0;
this.onEnterFrame = function ()
{
this.zaehler++;
};
this.anzeigen = function [...]
|
| Prototype: changeParam [Flash 8]smoothe Parameterveränderung
MovieClip.prototype.changeParam = function(fps, step, param, aim, tol, mround) {
/* create unique object: */
this = new Object();
this.mc = this;
this.step = step;
this.param = param;
this.aim = aim;
this [...]
|
| Prototype: MovieClip.prototype.ZoomIntDiv [Flash 8]Zoom-Effekt (IntDiv-Variante)
MovieClip.prototype.ZoomIntervalDiv = function (pDim, pTempo, pBps)
{
var obj = this;
clearInterval(obj.iv);
obj.zoom = function ()
{
if (obj._xscale < pDim - 1 / pTempo)
{
obj._xscale = obj._xs [...]
|
| Prototype: MovieClip.prototype.ZoomInt [Flash 8]Zoom-Effekt (Interval-Variante)
MovieClip.prototype.ZoomInterval = function (pOption, pDim, pTempo, pBps)
{
var obj = this;
clearInterval(obj.iv);
if (pOption)
{
obj.zoomIn = function ()
{
if (obj._xscale < pDim)
{
[...]
|
| Prototype: MovieClip.prototype.ZoomAdd [Flash 8]Zoom-Effekt (Add-Variante)
MovieClip.prototype.ZoomAdd = function (pOption, pDim, pTempo)
{
if (pOption)
{
this.onEnterFrame = function ()
{
if (this._xscale < pDim)
{
this._xscale = this._yscale += pTempo;
}
else
[...]
|
| Prototype: MovieClip.prototype.ZoomPulsar [Flash 8]Zoom-Effekt (Pulsar-Variante)
MovieClip.prototype.ZoomPulsar = function (pDim, pTempo)
{
this.onEnterFrame = function ()
{
if (this._xscale < pDim)
{
this._xscale = this._yscale += pTempo;
}
else if (this._xscale > pDim)
{
[...]
|
| Prototype: MovieClip.prototype.ZoomDiv [Flash 8]Zoom-Effekt (Div-Variante)
MovieClip.prototype.ZoomDiv = function (pDim, pTempo)
{
this.onEnterFrame = function ()
{
if (this._xscale < pDim - 1 / pTempo)
{
this._xscale = this._xscale + (pDim - this._xscale) / pTempo;
this._ysca [...]
|
| Prototype: Movieclip.leseTiefen [Flash 8]Hiermit können die belegten Tiefen ausgegeben werden
// leseTiefen Funktion
// - pMax bis zu welcher Tiefe soll analysiert werden
// - Gibt die belegten Tiefen aus + MocieClip Namen
MovieClip.prototype.leseTiefen = function(pMax) {
var liste [...]
|
| Prototype: Movieclip.atmosphere [Flash 8]Atmosphere - Effekt
MovieClip.prototype.atmosphere = function(pObj, pAnzahl, pBreite, pHoehe) {
for (var i = 0; i<=pAnzahl; i++) {
this.attachMovie(pObj, "flocke"+i, i);
this._x = Math.round(Math.random()*pBreite);
this._y = Math.round(M [...]
| |
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News
Regeln & Bedingungen
|