So, nochmal ich...
Wenn ich die Funktion hier einbaue
PHP-Code:
private function initLoader ()
{
mlLoader = new MovieClipLoader ();
mlListener = new Object ();
mlListener.onLoadInit = function (mcPicLoaded: MovieClip)
{
mcPicLoaded._x = 0;
mcPicLoaded._y = 0;
function init()
{
for(var n=1; n<imageCount; n++)
{
_root.holder["clip"+n]._x = _root.holder["clip" + (n-1)]._x + _root.holder["clip" + (n-1)]._width + abstand;
}
}
/*
if(mcPicLoaded._width > 425){
mcPicLoaded._height = mcPicLoaded._height * 425/ mcPicLoaded._width;
mcPicLoaded._width = 425;
}
*/
if(mcPicLoaded._height > 425){
mcPicLoaded._width = mcPicLoaded._width * 425/ mcPicLoaded._height;
mcPicLoaded._height = 425;
}
button_width = mcPicLoaded._width;
//public var test = button_width;
trace (button_width);
}
}
Bekomme ich natürlich 2 Fehlermeldungen das die Eigenschaften abstand und imagecount nicht vorhanden sind.
Die erste Fehlermeldung habe ich durch
var abstand = 0;
wegbekommen.
Muss ich für imagecount nochmals eine Funktion schreiben? Oder kann ich das aus einer variable in dem Script schon auslesen?
Dann macht mir ebenfalls die referenzierung Probleme.
_root.holder["clip"+n] wäre in meinem Fall _level0.yugopRahmen_mc_button_mc?
wie gesagt kenn mich mit Flash leider noch nicht so gut aus...
Gruß
Jim