I bet lots of people will be interested in this.
I haven't been able to create an swf file. I use your example code:
Code: Select all
FlashInit(400, 400, 255, 255, 255, 20)
;Here you init the Flashlib and set the image and backgroundcolor of the final swf file and the frane rate
;remember that swf are like movies, has some frame rate
FlashLoadPhoto(1, 100, 100, 1, "pic.jpg", 0);load one pic (i think it must be jpeg), you can load up to 100
For i = 1 To 100
Delay(0)
FlashMoveImage(1, i, i*1, i*5, 10*i, 1, 1, i+10, i)
Next
FlashLoadPhoto(2, 100, 100, 1, "pic2.jpg", 0)
For i = 1 To 200
Delay(0)
Cont+1
If Cont =< 25
FlashMoveImage(2, i, i*5, i*5, Cont*3, 2, 0, 0, 0)
ElseIf Cont>25 And Cont<50
FlashMoveImage(2, i, i*5, i*5, Cont*3, 1, 0, 0, 0)
Else
FlashMoveImage(2, i, i*5, i*5, Cont*3, 1, 0, 0, 0)
Cont = 0
EndIf
Next
FlashGenerate("look")
Beep_(1000, 100)
All the files in the same folder. Ran "reg.bat" file before, success. Put swfobjs.dll in %system% just in case. No swf created.
My advice would be: make your functions return some value (if it has itself a meaning, better), so you can check if it has succeeded. Maybe they already do, but it's not in your docs.
Waiting for your help, regards,