1&1 DSL
Flashhilfe.de - Flash Community

duplicateMovieClip funktioniert nicht in mc ! [Flash 8]

Forum > ActionScript 2.0 > duplicateMovieClip funktioniert nicht in mc !

 


AntwortenRegistrieren Seite1  

 28.06.2009, 20:34 
Benutzerbild von Enigma_X
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:
1loadVariablesNum ("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_X
mhm in entwiklung
 30.06.2009, 10:42Re1
Benutzerbild von springerFlashhilfe.de Moderator
Beiträge: 4906
Wohnort: zuhaus
Registriert: Apr 2004

hi,
wenn das
ActionScript:
1loadVariablesNum ("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:12Re2
Benutzerbild von Enigma_X
Beiträge: 335
Wohnort: niemandsland
Registriert: Apr 2004

Themenautor/in

Danke springer, schon 2 gute taten heute :)
mhm in entwiklung
 
nicht sichtbar bei eingeloggten Mitgliedern1&1 Webhosting
 01.07.2009, 17:30Re3
Benutzerbild von Enigma_X
Beiträge: 335
Wohnort: niemandsland
Registriert: Apr 2004

Themenautor/in

eine Frage hätte ich noch...

ActionScript:
1loadVariables ("listmanager.php?mycontent="+mycontent+"&maxi="+maxi, this);


klappt nicht

und

ActionScript:
1loadVariables ("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
 

AntwortenRegistrieren Seite1  

Schnellantwort

Du musst registriert sein, um diese Funktion nutzen zu können.
Partner Webseiten: DesignerInAction.de   Designnation.de   Mediengestalter.info   php-resource.de   phpforum.de   phpwelt.de   Pixelio.de   PSD-Tutorials.de   Tutorials.de

Haftungsausschluss   Datenschutzerklärung   Hier Werben   Impressum
© 1999-2012 Sebastian Wichmann - Flashhilfe.de