Because i can re-use them by simple calls as new SingleBevelPanel()
Plus, I can build a Panel through the use of two divs. (outer black border 1px solid aka highlight3D/darkshadow) and (inner: highlight/shadow with face).
More to the point, The rendering aspect is fine, its just how i assumed the calls would be made that was worrying.
Turns out that even though i may have traced 3 draw() calls, according to Erik (from eae.net fame) states that it may appear so, but JS thread will actually make one hard call.
Sometimes traceing debug can confuse the matter.
Scott.
Steve Onnis wrote:
why are you making it difficult for yourself by usind layer drawings ans so on
why not just use CSS?
<div style="border-style:outset">some stuff</div> <br> <div style="border:3px outset">some stuff</div> <br> <div style="border:2px outset">some stuff</div> <br> <div style="border:1px outset">some stuff</div>
Steve
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Scott Barnes Sent: Monday, April 26, 2004 12:46 AM To: CFAussie Mailing List Subject: [cfaussie] Q. DHTML onEnterFrame?
I have a component made in DHTML which basically draws a 2 DIV bevel effect, kind of short cutting some graphic work. Problem I have faced is how do you invalidate with dhtml? In ActionScript we could basically add a series of method calls to a que and then on the next frame/interval it basically processes that que.
The cool part about this technique is it can reduce method calls. An example of such would be say I generate a DoubleBevel Panel (ie 2 panels ontop of eachother). Now to build this I need to size each panel? so basically in my layoutChildren() method, I have two calls per Bevel (SetSize,moveTo). This is i guess ok, but sadly the setSize and moveTo each have a draw() call within their methods, resulting in the draw method for a SingleBevelPanel object being called twice?
Instead It would be great to be able to add the draw method to a que, and if another request for draw is requested, it then checks the que and if it already exists, basically continues on. This results in 1 draw call vs many. Of course if you wanted to request the draw method be called twice or more you can over-ride the que.
How do people out there do this style of technique with DHTML. The only way I can think of is using a SetInterval style approach? but is that a good idea?
--
Regards, Scott Barnes - http://www.mossyblog.com http://www.bestrates.com.au
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
--
Regards, Scott Barnes - http://www.mossyblog.com http://www.bestrates.com.au
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
