Als eerst de code:
Het inladen gebeurt via xml en de eigenschappen van xml staan daarvan in de array objStaticList.
Het probleem is dat het niet op de stage komt. De plaatjes komen overigens wel in de score terecht.
objStaticList[i][2] = naam
objStaticList[i][3] = url plaatje
objStaticList[i][8 en 9] = width en height
code:
Ik wil dus met director ervoor zorgen dat images meteen op de stage gezet worden als ik ze inlaad.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| on MaakWereld me
repeat with i = 1 to objStaticList.count
tempNummer = 100+i
myimage = image(80,80,32)
tempURL = the moviePath & objStaticList[i][3]
bitmap1 = new(#bitmap, member tempNummer)
bitmap1.image = myimage
bitmap1.importFileInto(tempURL)
bitmap1.name = objStaticList[i][2]
bitmap1.regpoint = point(0,0)
_movie.stage.image.copyPixels(member(tempNummer).image, objStaticList[i][8], objStaticList[i][9])
end repeat
end |
Het inladen gebeurt via xml en de eigenschappen van xml staan daarvan in de array objStaticList.
Het probleem is dat het niet op de stage komt. De plaatjes komen overigens wel in de score terecht.
objStaticList[i][2] = naam
objStaticList[i][3] = url plaatje
objStaticList[i][8 en 9] = width en height