Post Reply 
[Blog] I hate learning programming languages
Author Message
Ge64
Former Admin ;)

Posts: 3,163.4170
Threads: 295
Joined: 3rd Feb 2007
Reputation: 0.38918
E-Pigs: 108.4795
Offline
Post: #6
RE: [Blog] I hate learning programming languages
oh god oh god oh god

22:44 < Ge64> hiya
(22:45 <+ikea_> what if you need to take home two chicks?)
(22:45 <+ikea_> just take one and do the grandma as well?)
22:45 < Ge64> Is there a way I can wait for an event's default actions to
              finish before doing something?
22:46 <@Sighs> create a callback function?
22:46 < Ge64> how does that work? I'm a newb
22:48 <@Sighs> function doAsEventIsFired(event:Event):void { /* do this() and
               do that */} something.addEventListener("someEventName",
               doAsEventIsFired)
22:49 < Ge64> isn't that just normal event handling
22:51 <+Ramone_> what do you mean by 'default actions'?  events don't have
                 actions themselves
22:51 < Ge64> yeah, but in that case doAsEventIsFired() will be finished, and
              then the event's default actions will be executed afterwards.
              e.g. for a KeyboardEvent in a TextField pressing an arrow key, it
              will finish the event listener function first then perform the
              arrow key on the textfield. is there a way to wait with some
              actions until the default actions (eg the cursor moves) is
              finished?
22:52 <+Ramone_> ahhh
22:52 < Ge64> i tried .preventDefault but it says the event isn't cancelable
22:52 <+Ramone_> sounds like you just want keyup instead of keydown
22:52 < Ge64> omfg that makes sense
22:52  * Ge64 HEADDESK
22:53 <+ikea_> hehehe
22:53 <+ikea_> Ge64++
22:53 <@DarthTatr> Increasing points. Ge64's combined score is: 1


about at 12:00 i got this problem and have been looking into all sorts of spoon to get it done. I nEED A KEYUP EVENT INSTEADOF  KEYDOWN, dumb dumb dumb ooooohhhhhh goooodod its sooooo stuuppiddddd :P

ah well :D am happy now

[Image: ub1985584.jpg]
15/03/2008 07:58 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Blog] I hate learning programming languages - Ge64 - 15/03/2008 07:58 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: