duplicateMovieClip funktioniert nicht in mc ! [Flash 8]
| 28.06.2009, 20:34 | | Beiträge: 335 Wohnort: niemandsland Registriert: Apr 2004
| duplicateMovieClip funktioniert nicht in mc ! Hey leute ich habe ein script was super funzt solange es im _root ist.
Doch sobald ich es in einen MC einfüge klappt es nicht... natürlich habe ich alles von _root auf _root.mcname umgeschrieben aber irgendwie übersehe ich da was..
Kann mir jmd helfen bitte ??
habe lange dafür gebraucht überhaupt ein dynamisches listing via dublicatemovieclip aufzubauen...
also des ist im _root.
maxi wird von einer php ausgegeben:
ActionScript:| 1 | loadVariablesNum ("listmanager.php?"+mycontent+"&maxi="+maxi, 0);
|
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | if (i>=maxi) {
gotoAndStop(10);
}
_root.loadmc.thetxt.txt.text = _root["thename"+(maxi-i)];
if (_root.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.loadmc.thetxt.txt.text = _root["thename"+(maxi-i)];
if (_root.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.loadmc.thetxt.txt.text = _root["thename"+(maxi-i)];
if (_root.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.loadmc.thetxt.txt.text = _root["thename"+(maxi-i)];
}}
}
duplicateMovieClip("loadmc", "loadmc"+(maxi-i), (maxi-i));
_root["loadmc"+(maxi-i)].thetxt.txt.text = _root["thename"+(maxi-i)];
_root["loadmc"+(maxi-i)]._x = horizontX;
_root["loadmc"+(maxi-i)].thetxt.txt.text = _root["thename"+(maxi-i)];
_root["loadmc"+(maxi-i)].ID = (maxi-i);
_root["loadmc"+(maxi-i)].onRelease = function() {
mytext.text = _root["thetext"+this.ID];
};
_root["loadmc"+(maxi-i)].onRollOver = function() {
this.gotoAndPlay(14);
};
_root["loadmc"+(maxi-i)].onRollOut = function() {
this.gotoAndPlay(19);
};
_root["loadmc"+(maxi-i)]._y = ix*spaceY+startY;
if (_root.loadmc.thetxt.txt.text == "undefined") {
removeMovieClip (_root["loadmc"+(maxi-i)]);
}
if (i<=maxi) {
ix++;
i++;
}
|
und das habe ich nu im mc stehen...
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | if (i>=maxi) {
gotoAndStop(10);
}
_root.events.txt.loadmc.thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
if (_root.events.txt.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.events.txt.loadmc.thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
if (_root.events.txt.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.events.txt.loadmc.thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
if (_root.events.txt.loadmc.thetxt.txt.text == "undefined") {
i++;
_root.events.txt.loadmc.thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
}}
}
duplicateMovieClip(_root.events.txt["loadmc"], _root.events.txt["loadmc"+(maxi-i)], (maxi-i));
_root.events.txt["loadmc"+(maxi-i)].thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
_root.events.txt["loadmc"+(maxi-i)]._x = horizontX;
_root.events.txt["loadmc"+(maxi-i)].thetxt.txt.text = _root.events.txt["thename"+(maxi-i)];
_root.events.txt["loadmc"+(maxi-i)].ID = (maxi-i);
_root.events.txt["loadmc"+(maxi-i)].onRelease = function() {
_root.events.txt.mytext.text = _root.events.txt["thetext"+this.ID];
};
_root.events.txt["loadmc"+(maxi-i)].onRollOver = function() {
this.gotoAndPlay(14);
};
_root.events.txt["loadmc"+(maxi-i)].onRollOut = function() {
this.gotoAndPlay(19);
};
_root.events.txt["loadmc"+(maxi-i)]._y = ix*spaceY+startY;
if (_root.events.txt.loadmc.thetxt.txt.text == "undefined") {
removeMovieClip (_root.events.txt["loadmc"+(maxi-i)]);
}
if (i<=maxi) {
ix++;
i++;
}
|
Was mache ich falsch ?? Bitte helft mir.
Danke im vorraus.
MFG Enigma_Xmhm in entwiklung | |
| 30.06.2009, 10:42 | Re1 | Beiträge: 4906 Wohnort: zuhaus Registriert: Apr 2004
| hi,
wenn das
ActionScript:| 1 | loadVariablesNum ("listmanager.php?"+mycontent+"&maxi="+maxi, 0);
|
in _root steht, werden die daten auch in _root geladen, bzw. in _level0
mit loadVariables(...) kannst du daten auch in einen clip laden.
schau dir dazu auch mal LoadVars an, loadVariables ist veraltet..lieber chips essen und danach voller zweifel sein, als voller zweifel chips essen... | |
| 30.06.2009, 19:12 | Re2 | Beiträge: 335 Wohnort: niemandsland Registriert: Apr 2004
Themenautor/in
| Danke springer, schon 2 gute taten heute :)mhm in entwiklung | |
| | | nicht sichtbar bei eingeloggten Mitgliedern | 
|
| 01.07.2009, 17:30 | Re3 | Beiträge: 335 Wohnort: niemandsland Registriert: Apr 2004
Themenautor/in
| eine Frage hätte ich noch...
ActionScript:| 1 | loadVariables ("listmanager.php?mycontent="+mycontent+"&maxi="+maxi, this);
|
klappt nicht
und
ActionScript:| 1 | loadVariables ("listmanager.php?mycontent="+mycontent+"&maxi="+maxi, _root.events.txt);
|
lässt ein fenster aufpoppen in den meine variablen stehen Oo....
Gibt es NUR die LoadVars Möglichkeit eine php in einem MC zu laden oder mache ich aus prinzip was falsch ?mhm in entwiklung | |
| | Themen Ähnliche Beiträge zum Thema | 12.10.2009 - willyvelo 18.06.2009 - Creatively 07.11.2011 - Ludger Mueller 01.08.2010 - oelbec |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|