BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-17-2009, 12:28 PM   #1 (permalink)
New Member
 
Join Date: Oct 2009
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default svg question - animatetransform

Please Login to Remove!

I've done quite a few sliders with no problems but now am stumped with a problem with a similar scenario. The other sliders had a transparent button on layer 0 which activated the slider and another transparent button on the slider that made it retract. In this case I just want something to "fly across the screen".

I have 2 layers. Layer 1 has a transparent button to activate the slider. upon activation, layer 2 (with image offscreen) translates from 0,0 to -720,0. Every time I touch my hiden button I want the image to fly across. However, the animation runs once upon loading the theme and then will never run again. I'm totally perplexed. Tried everything and this is my last attempt.

Code is shown here:

<animateTransform xlink:href="#Layer_2" id="_anim_dps1" attributeName="transform" type="translate"
from="0,0"
to="-720,0"
dur="2s"
fill="remove"
repeatCount="3"
restart="whenNotActive"
begin="flyBtn.focusin"
/>

Added repeatcount for debugging to make sure image reset to original location and repeated movement. Any ideas as to why transparent button "fylBtn" wouldn't trigger this upon touch.

Thanks in advance.

Kevin

Last edited by kwoodford : 10-17-2009 at 12:30 PM.
Offline  
Old 10-17-2009, 12:38 PM   #2 (permalink)
New Member
 
Join Date: Oct 2009
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out but creates another problem. It seems that the button already has focus so it doesn't see "focusin" occur.

Is there a way to throw focus on another button when animation is complete?

Thanks.
Offline  
Old 10-17-2009, 02:52 PM   #3 (permalink)
New Member
 
Join Date: Oct 2009
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Decided to make it work with .activate instead of .focusin.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New lot of 2pcs ZIP-20 Sockets - 20-pin Zigzag inline package - Amiga 3000
$1.0
New lot of 2pcs ZIP-20 Sockets - 20-pin Zigzag inline package - Amiga 3000 pictureOriginal Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gif
$29.99
Original Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gif picture1x MC68882FN25A MOTOROLA Mac Amiga HCMOS Coprocessor FPU 25MHz 32bit PLCC68 NEW
$32.2
1x MC68882FN25A MOTOROLA Mac Amiga HCMOS Coprocessor FPU 25MHz 32bit PLCC68 NEW pictureCSG/AMIGA 391077-01 PLCC
$14.2
CSG/AMIGA 391077-01 PLCC pictureAmiga Vinyl Banner Sign Garage WorkShop Many Size Logo Dealer
$22.99
Amiga Vinyl Banner Sign Garage WorkShop Many Size  Logo Dealer picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.