Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 22-11-2007, 11:01   #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;
};
exit_no ist offline   Mit Zitat antworten
Alt 22-11-2007, 12:46   #2 (permalink)
Der Wunderhund
 
Benutzerbild von gaspode
 
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
Und wie läuft das hier ab? Was hat »ENDLOS« für einen Wert?
Code:
looping = ENDLOS;
gruß, gaspode
gaspode 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 05:24 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele