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

Yeah, that's correct.
I put up an example here anyway.
http://www.resass.f2s.com/?menu=examples&node=1
called dynlayer-clip.html

Cheers,
Richard  :o

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)

> 
> -----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
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from      
> Namezero.com. New!  Namezero Plus domains now available.    
> Find out more at: http://www.namezero.com                   
> 


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

Reply via email to