 Thread Author
# 1

07-28-2010, 10:34 AM
|
| | CrackBerry User Device(s): 9700 (Bold) Carrier: AT&T/Cingular Pin: PM me | | Location: Philadelphia, PA Join Date: Apr 2010 Posts: 54 Likes Received: 0
Thanked 4 Times in 4 Posts
| |
Sliding Dock Fiasco
I'm literally pulling my hair out over this dock thing. Its literally driving me crazy.
Ok so I have an dock on the top that is sliding in and out via accessKeys. The first issue was that when I pressed the space bar to fly the dock out, the animation would repeat when I hit the spacebar again. I've been trying to figure out how to disable the spacebar activation once the dock is out, but then enabling it again once it has been hidden.
I solved half the issue recently. used the <set> command to set the "display" to "none" after the ESCAPE key is used to fly the dock away. However, the issue still exists with the space bar. Here is my code: Code: <animateTransform xlink:href="#Top_Dock" id="_anim_l6" attributeName="transform" type="translate"
to="0,0" dur="0.5s"
fill="freeze"
begin="accessKey( )" />
<animateTransform xlink:href="#Top_Dock" id="_anim_d6" attributeName="transform" type="translate"
to="0,-99" dur="0.5s"
fill="freeze"
begin="accessKey(ESCAPE) />
<set xlink:href="#Top_Dock" attributeName="display" to="inline" begin="_anim_l6.begin" />
<set xlink:href="#Top_Dock" attributeName="display" to="none" begin="_anim_d6.end" /> Any help would be greatly appreciated!
|