Just for testing your script Magnus, try this:

Make a movieScript

global gbildspel

on startMovie
  gbildspel = list(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
end

then make frameScript

global gbildspel

on exitFrame i, x
  repeat with i = 1  to 10
    set the text of member "txt" to string(getat(gbildspel, i))
    set x = the text of member "txt"
    put x
  end repeat
  go to the frame
end

put a fieldMember on the stage named "txt"

hit play button and open message window and watch

it works for me anyway

/Staffan


-----Original Message-----
From: Magnus Ewald [mailto:[EMAIL PROTECTED]]
Sent: den 3 oktober 2000 15:13
To: [EMAIL PROTECTED]
Subject: <lingo-l> repeat question


hey all

Whats wrong with this syntax:

repeat with i = 1  to 10
getat(gbildspel, i)
end repeat

Director doesnt seem to understand the "i"....mmmkay ?


thanx


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to