I believe the format for setClip is setClip([t,r,b,l]). Just put brackets
around the values and you should be good.

-bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of wes currier
Sent: Sunday, January 14, 2001 2:10 AM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] I need help with the Clip and Wipe Functions


I am trying to use the wipe.js script to change the clip of a layer.
Initially i tried to setClip(t,r,b,l) but it does not seem to work.
Could someone let me know what i am doing wrong. I have tried to look
for some examples that use setClip, but have not found any. I anyone
knows where i might find some examples to view, please let me know.

I have included the setClip file below:
*****************************************************************
<html>
<head>
<title>DynAPI Distribution: setClip example</title>

<script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">

DynAPI.setLibraryPath('../src/lib/')

//DynAPI.include('dynapi.api.*');

DynAPI.include('dynapi.api.dynlayer.js')
DynAPI.include('dynapi.api.browser.js')
DynAPI.include('dynapi.api.dyndocument.js')
DynAPI.include('dynapi.api.events.js');

DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');



DynAPI.onLoad=function() {
        myLayer = new DynLayer()
        myLayer.setSize(350,350)
        myLayer.setBgColor('#c0c0c0')

        myLayer.setClip(100,0,0,100)

        myLayer.moveTo(50,50)

        myChild=new DynLayer(null,25,25,50,50,'#ffffff')
        myLayer.addChild(myChild)
        this.document.addChild(myLayer)
}



</script>
</head>

<body>
</body>
</html>

****************************************************


wes currier
[EMAIL PROTECTED]

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to