flash - AS3, scroller #1137 error -


This is an AS3 scroller that I was trying to convert from AS2.

I appreciate the help, but I'm still getting the wrong number of '# 1130 logic arguments' How do I work on this scroller? Thanks,

  // Scrolling Gallery Avant Alisonner (Event .ENTER_FRAME, Master Loop); Function master loop (e: event) {var minin: int = 0; Var Mausaxack: Int = 0; Var button: array = new array (); Button [0] = z1; Button [1] = z2; Button [2] = J3; Button [3] = Z4; Button [4] = z5; (Var i: int = 0; i & lt; 5; i ++) for {var miazax: int = 0; If (mousex> -360 & mounts × 360) {mouseX = Math Cecil (mousex); } Else {mouseX = 20; } If (i & lt; 12) {var menu X: int = 0; Var menu X2: int = 0; Menu X = Math.Syl (button [i], x); // menuX2 = Math.ceil (button [i + 1], x); } Else {// menuX2 = Math.ceil (button [0], x); } If (i  gt; 1060) {diff = Math.ceil (mouse mouse-mousex / / 15); Diff = diff + (menuX - 1060); Button [i], x, (-500 + diff); } If (Mouse X and Mount MX & MXX & G; -500) {diff = (Mousex-Mausaxx) / 20; Button [i], X, Menu X-FIF; } And if (mouse x> = mousaxacks and mxx <= -500) {var diff: int = 0; Diff = Math.ceil ((mouse mouse-mousex / / 15); Diff = diff + (menuX + 500); Button [ii], x, (1060 + difference); }}}}  

As I said in response to your previous question, property Setting x is the button is done as follows:

  button [i] .x = -500 + diff  

Not like this:

  button [i], x, (-500 + diff);  

Edit
Also keep in mind, your lines are i

Edit 2 Also note that the starting value of your array should be outside of the EnterFrame event as the handler, you randomly assign the array on each frame. Restarting


Comments