Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

How to suspend program execution in 1 minitues

Hai,

 

          I need to supend my program exection in 1 minitue anybody knows to solve this problem please help me.

 

Thanks

Deepu

Developer
Posts: 426
Registered: ‎04-10-2011
My Device: Z30

Re: How to suspend program execution in 1 minitues

Start a timer, when the timer event for 1 minute is dispatched, stop the execution of whatever code you want to stop (possibly with somethink like a cancel-flag).
-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: How to suspend program execution in 1 minitues

What kind of code are you executing that you want suspended? The method suggested by alopix is basically the way to go.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: How to suspend program execution in 1 minitues

I need to suspend image loading
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to suspend program execution in 1 minitues

setTimeout under flash.utils.* can work as well.
Highlighted
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: How to suspend program execution in 1 minitues

Seems like a better option, thanks I learned something new again.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!