[ascoders] flashVars
- From: Christian Weingaertner <Christian.Weingaertner@xxxxxxxxxxxxxxxxx>
- To: ascoders@xxxxxxxxxxxxx
- Date: Wed, 22 Dec 2004 11:34:44 +0100
Hallo alle!
übergebe eine var "startvideo=5" per flashVars.
Diese soll je nach nummer ein bestimmtes video laden.
das ist das script:
function loadStart(was) {
this.w = was;
if(w != undefined){
_root.chooseVideoMc._visible = 0;
_root.wert = w+1;
_root.sx = 65-(w*120);
_root.bilder.orangeMc._visible = 1;
ref = _root.bilder["film"+(w+1)]; <------
trace("ref " +ref);
_root.bilder.orangeMc._x = ref._x+ref._width/2; <------
_root.aktTitel = titelArr[w][0];
titelTf.text = aktTitel;
this.ladeUrl = _root.pfad+titelArr[w][1]+_root.bb+".swf";
_root.contMc.loadMovie(this.ladeUrl);
tf.text = this.ladeUrl;
//_root.bilder["film"+this.was]._alpha = 100;
testTf.text = ref;
auswahl = _root.bilder["film"+(w+1)];
}
else{
_root.sx = 65;
}
}
loadStart(_root.startvideo);
wenn ich die variable direkt einbinde funzt alles,
wenn sie jedoch vom html kommt gibts probleme mit den gekennzeichneten
zeilen.
weiss jemand rat?
Grüsse,
christian weingaertner
christian weingärtner
- Follow-Ups:
- [ascoders] Re: flashVars
- From: Timo Stamm
Other related posts:
- » [ascoders] flashVars
- » [ascoders] Re: flashVars
- » [ascoders] Re: flashVars
- [ascoders] Re: flashVars
- From: Timo Stamm