Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Flash Farbe der Arbeitsbühne dynamisch ändern

Empfohlene Antworten

Veröffentlicht

Hallo,

kann mir jemand sagen wie ich die Hintergrudfarbe der Arbeitsbühne dynamisch ändern kann ? Irgendwie sehe ich den Wald vor lauter Bäumen nicht mehr. Ich finde einfach nicht die richtigen Variablen.

Gruß Joerg

Die Farbe der Arbeitsbühne lässt sich nicht ändern.

Setze doch einfach ein rechteck in die unterste ebene

und lass dieses die farbe ändern.

Gruß Pascal

grüße dich.

ganz einfach.

erstelle nen movie auf die größe deines doks. entweder via as oder manuell in der bibliothek. bennene die instanz zb hintergrund.

nun kannst zb n weiteres movie erstellen mit farbschaltflächen für die jeweilige farbe.

in der hauptzeitleiste musst du nun die transformfunktion einfügen.

habe mal was hier....

Color.prototype.fadeTransform = function (goalTrans, milSecs, func)

{

if (this.v)

{

if (this.transObjSame(goalTrans, this.v.goalTrans))

{

trace ("text");

return;

}

else

{

clearInterval(this.v.intrvl);

} // end if

} // end else if

var getTrans = this.getTransform();

if (this.transObjSame(goalTrans, getTrans))

{

trace ("text");

return;

} // end if

this.v = {};

this.v.goalTrans = goalTrans;

this.v.milSecs = milSecs;

if (typeof(func) == "function")

{

this.v.func = func;

} // end if

this.v.startTime = getTimer();

this.v.startTrans = getTrans;

this.v.change = {};

for (var i in goalTrans)

{

this.v.change = goalTrans - this.v.startTrans;

} // end of for...in

this.transShift();

if (milSecs)

{

this.v.intrvl = setInterval(this, "transShift", 1);

} // end if

};

Color.prototype.transShift = function ()

{

var ratio = (getTimer() - this.v.startTime) / this.v.milSecs;

if (ratio < 1)

{

var newTrans = {};

for (var i in this.v.change)

{

newTrans = this.v.startTrans + ratio * this.v.change;

} // end of for...in

this.setTransform(newTrans);

}

else

{

this.setTransform(this.v.goalTrans);

clearInterval(this.v.intrvl);

var myFunc = this.v.func;

delete this.v;

if (myFunc)

{

myFunc();

} // end if

} // end else if

};

transArray = [];

transArray[0] = {ra: 0, rb: 255, ga: 0, gb: 255, ba: 0, bb: 255, aa: 100, ab: 0};

transArray[1] = {ra: 0, rb: 229, ga: 0, gb: 229, ba: 0, bb: 229, aa: 100, ab: 0};

transArray[2] = {ra: 0, rb: 204, ga: 0, gb: 204, ba: 0, bb: 204, aa: 100, ab: 0};

transArray[3] = {ra: 0, rb: 179, ga: 0, gb: 179, ba: 0, bb: 179, aa: 100, ab: 0};

transArray[4] = {ra: 0, rb: 153, ga: 0, gb: 153, ba: 0, bb: 153, aa: 100, ab: 0};

transArray[5] = {ra: 0, rb: 128, ga: 0, gb: 128, ba: 0, bb: 128, aa: 100, ab: 0};

transArray[6] = {ra: 0, rb: 102, ga: 0, gb: 102, ba: 0, bb: 102, aa: 100, ab: 0};

transArray[7] = {ra: 0, rb: 77, ga: 0, gb: 77, ba: 0, bb: 77, aa: 100, ab: 0};

transArray[8] = {ra: 0, rb: 51, ga: 0, gb: 51, ba: 0, bb: 51, aa: 100, ab: 0};

transArray[9] = {ra: 0, rb: 26, ga: 0, gb: 26, ba: 0, bb: 26, aa: 100, ab: 0};

transArray[10] = {ra: 0, rb: 0, ga: 0, gb: 0, ba: 0, bb: 0, aa: 100, ab: 0};

lastTransArray = 0;

hintergrund = new Color(hintergrund);

stop();

mit den buttons rufst du den jeweiligen farbarray auf

on (release)

{

_root.hintergrund.fadeTransform(_root.transArray[4], 800, traceDone);

}

bei fragen ....

der neuling

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.