dcsimg
A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: OOP fight!

  1. #1
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779

    Smile

    LOL, I've coded so many handlers and listeners to react on all posible user reaction on my texteditor I'm working on at the moment ... all the handlers startet to fight each other right now and my task is to bring some structure into that fight. LOL

    Anyone else had a similar problem? I don't hate the handlers and listeners, but if there are too much it is very difficult to follow the actions.

    Especially the ComboBox handler - a reaction on every click and you have to filter it out.

    Fredi

  2. #2
    Senior Member
    Join Date
    Mar 2002
    Posts
    334

    Smile

    Maybe you should make a handler to handle this

    Can't wait to see your final product

  3. #3
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    Originally posted by Squareball2
    Maybe you should make a handler to handle this

    Can't wait to see your final product
    LOL!
    Something like:

    onBug function(){
    killBug();
    }

    Fredi


  4. #4
    Senior Member
    Join Date
    Mar 2002
    Posts
    334

    Smile

    lol see that was easy


    One can only dream eh?

  5. #5
    cre8ive
    Guest
    Hey,

    I tried the onBug function() and it worked!!

    You are a fricken genius!!!

  6. #6
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779


    Fredi

  7. #7
    cre8ive
    Guest
    Wow, I found some more secrets with the onBug function.

    onBug.typo function(){
    punctuationCheck.killBug();
    //or
    spellCheck.killBug()
    }

    onBug.userError function(){
    killBug("user")
    ;

    onBug.windowsXP function() {
    killBug("Bill Gates")
    }



  8. #8
    Senior Member
    Join Date
    Mar 2002
    Posts
    334
    One more

    if(this == pathetic)
    {
    killBug(this);
    }

  9. #9
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    There's a non documented extension of it:

    onAnyBug = function(){
    killAnyBug();
    return theBug();
    }

    or for all windows users

    onWindowsBug = function(){
    recolorBlueScreen(#ff0000);
    sendUltimateVirusTo("bill.gates@microsoft.com");
    }

    Fredi


  10. #10
    Hey!

    How strange my help doesn't show the onBug function. What object includes it? MovieClip?

    Damn, Where did you find it? If it's undocumented? Are there any special sites that has undocumented features?

    God this OnBug event should be very usefull. Can be as simple as that?
    onBug=function(){
    killBug();
    }

    What does exactly killBug() do?

    Can we expect a tutorial on this function Fredy - sorry Fredi?

    Thanks alot guys!
    [Edited by Damir Secki on 03-21-2002 at 04:03 AM]

  11. #11
    oh btw, is onWindowsBug gojng to work on Macs to? Or there is no such event in MAC version?

  12. #12
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    ROTFL!

    sorry, Fredi

  13. #13
    sorry Fredi

  14. #14
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    Originally posted by Damir Secki
    sorry Fredi
    Why sorry to me? I have still a big smile on my face. You just maked my morning hours a lot funnier.

    Fredi

  15. #15
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Wow, I finally got a WinXP BOF (Blue screen of Death), I feel priviledged

    By the way, to anyone wondering why the onBug function doesn't work, it's because itself has the slight bug of shocking Mac users that have clear keyboards, so the function often kills itself.

  16. #16
    Junior Member
    Join Date
    Sep 2000
    Posts
    5

    BSOD

    Originally posted by Ed_Mack
    Wow, I finally got a WinXP BOF (Blue screen of Death), I feel priviledged

    By the way, to anyone wondering why the onBug function doesn't work, it's because itself has the slight bug of shocking Mac users that have clear keyboards, so the function often kills itself.
    Actually, the correct acronym is BSOD for Blue Screen of Death- just ask anyone. BOFH would be Bastard operator from Hell, etc, etc...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center