Results 1 to 7 of 7
  1. StaticFX's Avatar
    CrackBerry Genius

    Posts
    2,309 Posts
    Global Posts
    2,641 Global Posts
    Thread AuthorThread Author   #1  

    Default [RESOLVED] reset button issue - svg

    ok, i have 4 sliding docks.

    on focus in of each dock it slides the others in... so if dock 1 is out and i focus on dock 2, it slides dock 1 back in. all that works fine.

    I have one large invisible button behind the 4 docks that when clicked (focusin) it slides an docks back in. this works fine IF there is a dock already showing.

    if all 4 docks are slid back, and you click, the previous dock showing pops out, then slides back in again. How can I stop this?

    image shows a click after all docks are back... dock jumped out and is sliding back in...
    (this is in the simulator...)


    code for the reset button.
    Code:
    <animateTransform xlink:href="#MEDIA" id="_anim_r1" attributeName="transform" type="translate" 
    to="0,0" dur="0.5s"	
    fill="freeze"
    begin="reset_Button.focusin" />
    <animateTransform xlink:href="#MSGS" id="_anim_r2" attributeName="transform" type="translate" 
    to="0,0" dur="0.5s"	
    fill="freeze"
    begin="reset_Button.focusin" />
    <animateTransform xlink:href="#CONTACTS" id="_anim_r3" attributeName="transform" type="translate"
    to="0,0" dur="0.5s"	
    fill="freeze"
    begin="reset_Button.focusin" />
    <animateTransform xlink:href="#FAV" id="_anim_r4" attributeName="transform" type="translate"
    to="0,0" dur="0.5s"	
    fill="freeze"
    begin="reset_Button.focusin" />
    Last edited by StaticFX; 12-17-2009 at 12:14 PM.
  2. HaTeRbyNaTUrE's Avatar
    CrackBerry User

    Posts
    32 Posts
    #2  

    Default

    Static,

    I may be very stupid here but I will try, I am looking at your code and I notice you dont have 2 lines of code for each button

    (Media,Msg,and the others)

    first line tells it where to stop((Up,down,left,right-in pixels)),the other tells it to go back.




    <animateTransform xlink:href="#MEDIA" id="_anim_r1" attributeName="transform" type="translate"
    to="0,0" dur="0.5s" ((change here to tell the button where to stop)) 1 stays at zero,the other moves it left and right
    fill="freeze"
    begin="reset_Button.focusin"
    />



    <animateTransform xlink:href="#MEDIA" id="_anim_r2" attributeName="transform" type="translate"
    to="0,0" dur="0.5s" (( leave this 0,0 ))
    fill="freeze"
    begin="reset_Button.focusin" ((try putting focusout))
    />


    If this doesnt fix the problem let me know.
    You may also need to create a reset button for MEDIA button,MSGS button,CONTACTS button and FAV button....

    Example- reset1_Button
    reset2_Butoon
    reset3_Button
    reset4_Butoon
  3. BBThemes's Avatar
    CrackBerry Genius

    Posts
    4,457 Posts
    #3  

    Default

    hi there, its so much simpler than that, just set it so that on a bar sliding out the button is visible (but behind the bars of icons) and then when the bar slides back in the the button hides itself, that way the button is only `active` when a bar is out

    so for example the button that shows media would have a focusin property of `show reset button` and hide media would have a focusin property of `hide reset button`

    to be fair i dont know the code for it as its dead simple to link it in composer, youd also have to make it hidden at frame 1

    Thorsten said ZED 10. deal with it
    My Apps in BlackBerry World
    My Platinum 9900


    For all my themes - BBThemes.co.uk and follow me on @BBThemes1
  4. StaticFX's Avatar
    CrackBerry Genius

    Posts
    2,309 Posts
    Global Posts
    2,641 Global Posts
    Thread AuthorThread Author   #4  

    Default

    @daveastra - great idea! i will just hide it on the reset and show on the focusin

    @HaTeRbyNaTUrE - the only code i posted was for the reset button, and its not 2 lines per button. its 4 lines, each effecting a layer. so when the reset is clicked, it sets all 4 layers back to 0,0. I did not post the code that slides the docks out because thats a ton of code and i didnt think it was needed.

    THANKS!
  5. HaTeRbyNaTUrE's Avatar
    CrackBerry User

    Posts
    32 Posts
    #5  

    Default

    I really need to stop looking at forums. When I'm sleepy!Lmao.... Nuff said.
    Last edited by HaTeRbyNaTUrE; 12-17-2009 at 09:26 AM.
  6. StaticFX's Avatar
    CrackBerry Genius

    Posts
    2,309 Posts
    Global Posts
    2,641 Global Posts
    Thread AuthorThread Author   #6  

    Default

    lol been there, done that...
  7. StaticFX's Avatar
    CrackBerry Genius

    Posts
    2,309 Posts
    Global Posts
    2,641 Global Posts
    Thread AuthorThread Author   #7  

    Default

    ok, just tested the solution daveastra gave. worked perfectly. but editing the animation was not needed. I just set focusin of the rest to hide the reset button, and focusin on the four docks to show it. Worked like a charm. THANK YOU.

Posting Permissions