----- Original Message -----
Sent: Thursday, September 27, 2001 3:17
AM
Subject: [Dynapi-Help] Problems creating
a loader
Hi.
I have problems creating a loader. Pascal's
example on the SourceForge site doesn't seem to work for me. I don't know what
I'm doing wrong.
I've tried to do some code that roughly goes
like this:
pic = new Array(); The
pictures goes in to an array, since I'm using them in an
animation
pic[0] =
DynImage.getImage('../pic0.JPG');
pic[1] =
DynImage.getImage('../pic1.JPG');
DynImage.onLoaderStart=function(){
var
h=DynAPI.document.h
var w=DynAPI.document.w
loader =new
DynLayer(null,0,0,w,h,"red")
DynAPI.document.addChild(loader)
}
DynImage.onLoading=function(){
The "animation" goes in here, where I am supposed to do some
clipping on a layer, each time a picture has been loaded
}
DynImage.onLoaderDone=function(){
loader.deleteFromParent()
Start Play the animation
}
Can anyone please help me on this
one
Yours
Kas
PS. I have just finished a project, where DynApi
2.54 was EXTREMELY useful check it out on www.dipcard.com/create