Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-10-2004, 20:21   #1 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
movieclip per onPress bewegen

HI!

habe es mittlerweile geschafft, dem ufo per attachMovie eine rakete zu verpassen, und zwar per rollOver

nun sollte noch per onPress des links die rocket in richtung rechts( _x +=30) losdüsen, ich bekomme es aber nicht hin;

hier das script:


MovieClip.prototype.link = function() {
this.onRollOver = function() {
this.T_linktext.textColor = "0xFF9933";
this._xscale = this._yscale=110;
this._x += 3;
this._y -= 1;
this._parent.MC_ufo.attachMovie("rocket", "rocket1", 2);
};
this.onRollOut = function() {
this.T_linktext.textColor = "0x000099";
this._xscale = this._yscale=100;
this._x -= 3;
this._y += 1;
};
this.onPress = function() {
this._parent.MC_ufo.rocket1 = function() {
this._x += 30;
};
};
};
andretti ist offline   Mit Zitat antworten
Alt 11-10-2004, 05:56   #2 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
PHP-Code:
 this.onPress = function() 
{
this._parent.MC_ufo.rocket1.onEnterFrame = function() 
{
this._x += 30;
};
}; 
warrantmaster 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 01:30 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele