| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Nov 2006
Beiträge: 15
| Script will nicht mehr bei Publizierung als Flash 8
Hallo, ich habe ein altes Videocontroller Script aus Flash 6 das als Flash Player 6 publiziert bestens funktioniert. Jetzt möchte ich dieses für den Flash Player 8 publizieren (wegen dem besseren Video Codec) doch da funktioniert das Script nicht mehr. Keine Fehlermeldung aber die Videosteuerung will nicht mehr. Code: //-----------------------------------------------------------------------------------------------
// 2 Parameter definieren (Auomatischer Start Video und Loop
//-----------------------------------------------------------------------------------------------
//myColor = new Color(_parent.MCscreendesign);
//myColor.setRGB(0xFF9900);
myColor = new Color(_parent.MCscreendesign);
myColor.setRGB(Rahmenfarbe);
if (VIDEOautomatisch==true) {
_parent.MCvideo.play();
playing = true;
} else {
_parent.MCvideo.stop();
playing = false;
}
//-----------------------------------------------------------------------------------------------
// Funktionen
//-----------------------------------------------------------------------------------------------
faderbackground._width = width;
looping = ENDLOS;
top = knob._y;
bottom = knob._y;
left = knob._x;
faderWidth = faderbackground._width-knob._width;
segmentWidth = faderWidth/_parent.MCvideo._totalframes;
right = knob._x+faderWidth-segmentWidth+1;
faderbackground._width -= (segmentWidth-1);
_parent.MCvideo.onEnterFrame = function() {
if (_parent.MCvideo._currentframe == _parent.MCvideo._totalframes && !looping) {
playing = false;
_parent.MCvideo.stop();
}
if (dragging) {
playing = false;
_parent.MCvideo.gotoAndStop(Math.ceil(knob._x/segmentWidth));
} else {
knob._x = (_parent.MCvideo._currentframe*segmentWidth)-segmentWidth;
}
//
playhilite._visible = playing;
loophilite._visible = looping;
//
};
//-----------------------------------------------------------------------------------------------
// Abspielkontrolle
//-----------------------------------------------------------------------------------------------
playButton.onPress = function() {
playhilite._alpha = 0;
};
playButton.onRelease = function() {
if (playing==false) {
playhilite._alpha = 100;
playing = true;
_parent.MCvideo.play();
} else {
playing = false;
_parent.MCvideo.stop();
}
};
//-----------------------------------------------------------------------------------------------
playButton.onRollOver = function() {
playhilite.gotoAndStop(2);
};
playButton.onRollOut = function() {
playhilite.gotoAndStop(1);
};
playButton.onDragOver = function() {
playhilite._alpha = 0;
playhilite.gotoAndStop(2);
};
playButton.onDragOut = function() {
playhilite._alpha = 100;
playhilite.gotoAndStop(1);
};
//-----------------------------------------------------------------------------------------------
rewind.onRelease = function() {
playing = false;
_parent.MCvideo.gotoAndStop(1);
};
goToEnd.onRelease = function() {
playing = false;
_parent.MCvideo.gotoAndStop(_parent.MCvideo._totalframes);
};
knob.onPress = function() {
_parent.MCvideo.stop();
startDrag(knob, false, left, top, right, bottom);
dragging = true;
};
knob.onRelease = function() {
stopDrag();
dragging = false;
}; |
| | |
| | #2 (permalink) |
| Der Wunderhund Registriert seit: Jun 2002 Ort: Hattingen
Beiträge: 10.515
|
Du mußt seit Flash7 alle benutzten Variablen vorher definieren. Wo werden die Werte dieser Variablen definiert? Code: VIDEOautomatisch dragging Code: looping = ENDLOS; |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |