 Thread Author
# 3

11-14-2011, 09:27 AM
|
| CrackBerry User Device(s): Blackberry Torch 9800 | | Join Date: Dec 2010 Posts: 24 Likes Received: 2
Thanked 1 Time in 1 Post
| |
Quote:
Originally Posted by Justam home.focusin is a trigger when you bring the focus to that element. If you want an event to be triggered from a click, you need to use home.activate. so.. Code: <animateTransform xlink:href="#Layer_2" id="_anim_l1"
attributeName="transform" type="translate"
to="0,0" dur="0.01s"
fill="freeze"
begin="home.focusin" /> becomes Code: <animateTransform xlink:href="#Layer_2" id="_anim_l1"
attributeName="transform" type="translate"
to="0,0" dur="0.01s"
fill="freeze"
begin="home.activate" /> I am not sure if its neccesary or not as I have always mainted a strict form to my coding however it might be a good idea to keep your naming conventions logical and straight forward. for example : Code: <g id="Layer_1">
<!-- pz:tag type="layer" -->
<g id="home">
<!-- pz:tag type="button" -->
<g id="Rectangle_3_Button-Contents">
<!-- pz:tag type="layer" -->
<rect id="Rectangle_3"
style="fill:#00ff02; stroke:#ffffff; stroke-width:1;"
x="-160" y="155" width="71" height="45"/>
</g>
</g>
</g> becomes, Code: <g id="homeIcon">
<!-- pz:tag type="layer" -->
<g id="home">
<!-- pz:tag type="button" -->
<g id="home-Contents">
<!-- pz:tag type="layer" -->
<rect id="Rectangle_3"
style="fill:#00ff02; stroke:#ffffff; stroke-width:1;"
x="-160" y="155" width="71" height="45"/>
</g>
</g>
</g> also, wat are you trying to acheive with this? Code: <set xlink:href="#home" attributeName="display" to="inline" begin="home.focusin"/> It appears you want home to show when you focus in on home??? is that right? if you use display and to="none" you wont be able to focus in on home to show it, so ...i really dont get the idea of using that line of code... | Work, thanks.
|