Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 25-07-2004, 13:53   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2002
Ort: MUC
Beiträge: 96
Question wie zum...code->ergänzen...bitte

Hallo Flasher!

kann mir bitte jemand dieses Script ergänzen..

monmenu = new Array("1", "2", "3", "5");
//
var speed = 50;
//
fondmenu = 0xFFFFFF;
//
couleurtypo = 0x000000;
//
fondmenuroll = 0xCED0FF;
//
var finalSpeed = String(speed/100);
positionmenu = 100;
//
taillepolice = 12;
//
xtext = 200;
//
ytext = 16;
//
espacement = 16;
//
nbrerub = (monmenu.length);
monformat = new TextFormat();
with (monformat) {
font = "standard 07_53";
color = couleurtypo;
size = 8;
align = "center";
// blockIndent = 10;
}
// ************************************************** *********************************
//
// ************************************************** *********************************
_root.createEmptyMovieClip("menuconteneur", 0);
for (i=0; i<nbrerub; i++) {
// /////////////////
//
// /////////////////
var c = _root.menuconteneur.createEmptyMovieClip("Clip"+i, i);
c._x = 0;
// 130+73*i;
c._y = 16*i;
c.createTextField("theme", 1, 0, 0, xtext, ytext);
// ////////////////////////////////
//
// ////////////////////////////////
c.onRollOver = function() {
this.theme.backgroundColor = fondmenuroll;
};
// //////////////////////////////////////////
//
// //////////////////////////////////////////
c.onRollOut = function() {
this.theme.backgroundColor = fondmenu;
};
with (_root.c) {
theme.background = true;
theme.backgroundColor = fondmenu;
theme.border = true;
theme.selectable = false;
theme.setTextFormat(monformat);
}
}
_root.createEmptyMovieClip("menu", 1);
_root.menu.createTextField("menutxt", 1, 0, 0, xtext, ytext), _root.menu.menutxt.text="MENU";
with (_root.menu.menutxt) {
background = true;
backgroundColor = fondmenu;
border = true;
selectable = false;
setTextFormat(monformat);
}
//
_root.menu.onEnterFrame = function() {
if (_root.menuconteneur._x == -250) {
this.suivre(_xmouse, _ymouse);
}
};
_root.menu.onRelease = function() {
if (_root.menuconteneur._x == _root.menu._x) {
_root.menuconteneur._x = -250;
} else {
_root.menuconteneur._y = _root.menu._y+espacement;
_root.menuconteneur._x = _root.menu._x;
}
};
.............hier fehlen die links für die einzelnen dynamisch erzeugten buttons...

Dieses Script ist von flashkit.com, ich versuche krampfhaft AS zu erlernen, leider bisher nur mit kleinen Fortschritten...

.............kann mir bitte jemand dieses script ergänzen...DANKE!



//
// _root.c.theme.setTextFormat(monformat);
with (_root.menuconteneur) {
CLIP0.theme.text = monmenu[0];
Clip0.theme.setTextFormat(monformat);
CLIP1.theme.text = monmenu[1];
Clip1.theme.setTextFormat(monformat);
CLIP2.theme.text = monmenu[2];
Clip2.theme.setTextFormat(monformat);
CLIP3.theme.text = monmenu[3];
Clip3.theme.setTextFormat(monformat);
CLIP4.theme.text = monmenu[4];
Clip4.theme.setTextFormat(monformat);
CLIP5.theme.text = monmenu[5];
Clip5.theme.setTextFormat(monformat);
CLIP6.theme.text = monmenu[6];
Clip6.theme.setTextFormat(monformat);
CLIP7.theme.text = monmenu[7];
Clip7.theme.setTextFormat(monformat);
CLIP8.theme.text = monmenu[8];
Clip8.theme.setTextFormat(monformat);
CLIP9.theme.text = monmenu[9];
Clip9.theme.setTextFormat(monformat);
CLIP10.theme.text = monmenu[10];
Clip10.theme.setTextFormat(monformat);
}
CLIP0.onRollOver = function() {
CLIP0.theme.backgroundColor = fondmenuroll;
};
_root.menuconteneur._x = -250;
_root.menu._x = positionmenu;
__________________
Flash, Flash Builder, Flash Lite, Flash AIR ;)
OMOMO ist offline   Mit Zitat antworten
Alt 08-08-2004, 05:25   #2 (permalink)
-
 
Benutzerbild von pape
 
Registriert seit: Jan 2004
Beiträge: 3.002
Zitat:
Zitat von OMOMO
Hallo Flasher!

kann mir bitte jemand dieses Script ergänzen..
was soll passieren?
bisl wenig infos würde ich sagen..
wo liegt das problem?
//edit habs gefunden nachdem ich das script so lesen konntte

btw: habe das mal leserlich geschrieben:
ActionScript:
  1. monmenu = new Array("1", "2", "3", "5");
  2. //
  3. var speed = 50;
  4. //
  5. fondmenu = 0xFFFFFF;
  6. //
  7. couleurtypo = 0x000000;
  8. //
  9. fondmenuroll = 0xCED0FF;
  10. //
  11. var finalSpeed = String(speed/100);
  12. positionmenu = 100;
  13. //
  14. taillepolice = 12;
  15. //
  16. xtext = 200;
  17. //
  18. ytext = 16;
  19. //
  20. espacement = 16;
  21. //
  22. nbrerub = (monmenu.length);
  23. monformat = new TextFormat();
  24. with (monformat) {
  25.     font = "standard 07_53";
  26.     color = couleurtypo;
  27.     size = 8;
  28.     align = "center";
  29.     // blockIndent = 10;
  30. }
  31. // ***********************************************************************************
  32. //
  33. // ***********************************************************************************
  34. _root.createEmptyMovieClip("menuconteneur", 0);
  35. for (i=0; i<nbrerub; i++) {
  36.     // /////////////////
  37.     //
  38.     // /////////////////
  39.     var c = _root.menuconteneur.createEmptyMovieClip("Clip"+i, i);
  40.     c._x = 0;
  41.     // 130+73*i;
  42.     c._y = 16*i;
  43.     c.createTextField("theme", 1, 0, 0, xtext, ytext);
  44.     // ////////////////////////////////
  45.     //
  46.     // ////////////////////////////////
  47.     c.onRollOver = function() {
  48.         this.theme.backgroundColor = fondmenuroll;
  49.     };
  50.     // //////////////////////////////////////////
  51.     //
  52.     // //////////////////////////////////////////
  53.     c.onRollOut = function() {
  54.         this.theme.backgroundColor = fondmenu;
  55.     };
  56.     with (_root.c) {
  57.         theme.background = true;
  58.         theme.backgroundColor = fondmenu;
  59.         theme.border = true;
  60.         theme.selectable = false;
  61.         theme.setTextFormat(monformat);
  62.     }
  63. }
  64. _root.createEmptyMovieClip("menu", 1);
  65. _root.menu.createTextField("menutxt", 1, 0, 0, xtext, ytext), _root.menu.menutxt.text="MENU";
  66. with (_root.menu.menutxt) {
  67.     background = true;
  68.     backgroundColor = fondmenu;
  69.     border = true;
  70.     selectable = false;
  71.     setTextFormat(monformat);
  72. }
  73. //
  74. _root.menu.onEnterFrame = function() {
  75.     if (_root.menuconteneur._x == -250) {
  76.         this.suivre(_xmouse, _ymouse);
  77.     }
  78. };
  79. _root.menu.onRelease = function() {
  80.     if (_root.menuconteneur._x == _root.menu._x) {
  81.         _root.menuconteneur._x = -250;
  82.     } else {
  83.         _root.menuconteneur._y = _root.menu._y+espacement;
  84.         _root.menuconteneur._x = _root.menu._x;
  85.     }
  86. };
  87. .............hier fehlen die links für die einzelnen dynamisch erzeugten buttons...
  88.  
  89. Dieses Script ist von flashkit.com, ich versuche krampfhaft AS zu erlernen, leider bisher nur mit kleinen Fortschritten...
  90.  
  91. .............kann mir bitte jemand dieses script ergänzen...DANKE!
  92.  
  93.  
  94.  
  95. //
  96. // _root.c.theme.setTextFormat(monformat);
  97. with (_root.menuconteneur) {
  98.     CLIP0.theme.text = monmenu[0];
  99.     Clip0.theme.setTextFormat(monformat);
  100.     CLIP1.theme.text = monmenu[1];
  101.     Clip1.theme.setTextFormat(monformat);
  102.     CLIP2.theme.text = monmenu[2];
  103.     Clip2.theme.setTextFormat(monformat);
  104.     CLIP3.theme.text = monmenu[3];
  105.     Clip3.theme.setTextFormat(monformat);
  106.     CLIP4.theme.text = monmenu[4];
  107.     Clip4.theme.setTextFormat(monformat);
  108.     CLIP5.theme.text = monmenu[5];
  109.     Clip5.theme.setTextFormat(monformat);
  110.     CLIP6.theme.text = monmenu[6];
  111.     Clip6.theme.setTextFormat(monformat);
  112.     CLIP7.theme.text = monmenu[7];
  113.     Clip7.theme.setTextFormat(monformat);
  114.     CLIP8.theme.text = monmenu[8];
  115.     Clip8.theme.setTextFormat(monformat);
  116.     CLIP9.theme.text = monmenu[9];
  117.     Clip9.theme.setTextFormat(monformat);
  118.     CLIP10.theme.text = monmenu[10];
  119.     Clip10.theme.setTextFormat(monformat);
  120. }
  121. CLIP0.onRollOver = function() {
  122.     CLIP0.theme.backgroundColor = fondmenuroll;
  123. };
  124. _root.menuconteneur._x = -250;
  125. _root.menu._x = positionmenu;
pape 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 15:19 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele