Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 09-12-2003, 17:59   #1 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
set mask problem

kaum ist das eine problem gelöst kommt auch schon das nächste (gell pius)


in meiner HZL:

ActionScript:
  1. m=_root.attachMovie('maske', 'maske'+ic, ic+1, {_x:0,_y:0,zielX:ic*100});
  2.         b=_root["maske"+ic].attachMovie("bild","bild"+id,id,{_x:xpos,_y:0});
  3.         m.setMask(b);


nur funzt das setMask nicht... wenn ich "bild" von root attachen lassen geht´s ... ich brauche bild aber IN maske...weil die danach noch per AS getweent werden sollen....

nur wie... ?

_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 09-12-2003, 18:47   #2 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
ActionScript:
  1. ic=0
  2. id=0
  3. m=_root.attachMovie('maske', 'maske'+ic, ic+1, {_x:0,_y:0,zielX:ic*100});
  4. b=m.attachMovie("bild","bild"+id,id,{_x:xpos,_y:0});
  5. m.setMask(b);
  6. for(var i in m)
  7. {
  8.     trace(i)
  9. }

funzt und instanz wird erstellt.
warrantmaster ist offline   Mit Zitat antworten
Alt 09-12-2003, 19:39   #3 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
sorry warrant, aber es funzt nicht
meine maske wird immernoch nomal und nicht als maske angezeigt...und mein bild ist dafür komplett wech...

ActionScript:
  1. _root.speed = 5;
  2. ic = 0;
  3. id=0;
  4. xpos=_root["maske"+ic]._x-100;
  5. addTweeningMC = function(){
  6.     if(ic<=6){
  7.         m=_root.attachMovie('maske', 'maske'+ic, ic+1, {_x:0,_y:0,zielX:ic*100});
  8.         b=m.attachMovie("bild","bild"+id,id,{_x:xpos,_y:0});
  9.         m.setMask(b);
  10.         _root['maske'+ic].onEnterFrame = function(){
  11.                 if(Math.round(this._x-this.zielX)!=0){
  12.                         this._x += (this.zielX - this._x)/_root.speed;
  13.                 }else{
  14.                         this._x = this.zielX;
  15.                         delete this.onEnterFrame;
  16.                 }
  17.         }
  18.         ic++;
  19.         id++;
  20.         xpos-=100;
  21.     }
  22.     else {
  23.         clearInterval(t);
  24.         //trace("intervall cleared");
  25.     }
  26. }
  27. t = setInterval(addTweeningMC, 100);
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 09-12-2003, 21:34   #4 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
ok - ich habs hinbekommen! man sollte wohl erst das bild und dann die maske die rein soll attachen ... nicht umgekehrt...


gruß

_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 06:37 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele