|
From: Jack_Speranza <jsp...@gr...> - 2000-10-25 21:17:48
|
Hello gang --
I've been continuing to play around with trying to create and
manipulate DynLayers between frames, and was starting making some headway.
Unfortunately, after downloading the most recent release from SourceForge,
I've encountered an error that I'm simply not smart enough to untangle. I'm
loading my DynAPI code into a menu frame and creating all my DynLayers from
there. On load, my target frame invokes functions sitting resident in my
menu frame that make the target a DynDocument and add my layers accordingly.
This was all working fine under the previous release.
In my current experiment, I'm simply looking to add a DynLayer to my
target frame that I can drag around (nothing fancy at all!). My code
relating to this is as follows:
target = new DynDocument(parent.main)
lyrHelp = new DynLayer(null,390,65,150,150)
target.addChild(lyrHelp)
DragEvent.setDragBoundary(lyrHelp)
DragEvent.enableDragEvents(target,lyrHelp)
Everything loads OK, but as soon as I move my mouse anywhere over my target
frame, I bomb out. The api.events.js code I had been using is drastically
different from what is in the new release. The new release bombs out in the
DynDocument.EventMethod at -- "if (!src) {
src=DynAPI.getDocument(realsrc.elm)" (the error message is that the object
doesn't support this property or method). I've looked through the various
files, and cannot find the DynAPI.getDocument() method in this new release.
Does it exist? Is this even my problem? I'm really looking forward to the
day when I know this API (and JavaScript and OOP) as well as the rest of you
:-) Thanks for your help!
******************************
Jack Speranza
Web Developer
Gryphon Networks
(781) 255-0444 x129
jsp...@gr...
<www.gryphonnetworks.com>
|