archive-com.com » COM » K » KENNYBUNCH.COM

Total: 200

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Modified as2API source and binary posted | Kenny Bunch
    a comment Cancel reply Comment You may use the following HTML a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite s strike strong pre lang line escaped cssfile Name required Email required will be kept a secret Website Project Poor Bear Update 3 posted Collision Detection and Poor Bear subscribe Search for Archives Archives Select Month October 2013 December 2010 September

    Original URL path: http://www.kennybunch.com/2009/04/modified-as2api-source-and-binary-posted/ (2016-04-28)
    Open archived version from archive


  • Project Poor Bear Update 3 posted | Kenny Bunch
    Posted in Uncategorized Post a comment Cancel reply Comment You may use the following HTML a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite s strike strong pre lang line escaped cssfile Name required Email required will be kept a secret Website Project Poor Bear designs posted Modified as2API source and binary posted subscribe Search for Archives Archives Select Month October

    Original URL path: http://www.kennybunch.com/2009/03/project-poor-bear-update-3-posted/ (2016-04-28)
    Open archived version from archive

  • Uncategorized | Kenny Bunch | Page 2
    wanted However when looked to see if the calls were going to the server with a packet sniffer no dice Nothing was going through I checked my code about 500 times looked to see if trackEvents were just beta and tried to find out if I wasn t setting something for production DEBUGGING I couldn t find anything It wasn t until I switched the call to trackPageview that it started to go through That worked I decided to take the numeric value out of the call for the trackEvent call since that was a variant between trackEvent and trackPageview Ching ching little winner Everytime I added it back in it failed silently and didn t call the server I then noticed that the number was a fraction and not a Integer even though the call s signature has it as Number Therefore I decided to round the fraction everytime and triple ching we had the final winner CAUSE The bug turned out to be that trackEvent can only take Integers as the numeric value in it s call If you make calls using trackEvent you must round all numbers going in or the calls will not be sent out to the server Hope this helps with some folks headaches Also if you ever have a bug with no details follow the example above and work backwards Looking at variants and testing multiple inputs you can find the root Written by kbunch No comments Posted in Uncategorized February 18 2009 Event type naming qualifying vs simple I have put a lot of thought into event naming recently In my research I ve seen a few developers fully qualifying their event type names This is something I actually debated myself when writing our Media Framework but opted not to do The subject is debatable so let me describe what I mean by fully qualified names and why I decided not to use them Based on the points I outline you can make your own decision of whether to use them yourself What is a fully qualified event type name ActionScript 3 has a formal event framework where objects dispatch events and others subscribe to them and react accordingly Each event dispatched is represented by an event object All of the native AS3 event objects follow a formal convention of defining the types of events they can be dispatched as This convention places a static constant representing the type name directly on their class to allow for strict typing For example Event RESIZE denotes an event type of resize for the flash events Event object The property value itself equates to a simple string In all native AS3 objects these strings are simple and only represent the action ex resize Some programmers are actually fully qualifying these strings Instead of Event RESIZE representing the string resize it is equal to flash events Event RESIZE Now why do this Well say you had another event ComponentEvent which had a resize event If you

    Original URL path: http://www.kennybunch.com/category/uncategorized/page/2/ (2016-04-28)
    Open archived version from archive

  • Event type naming: qualifying vs simple | Kenny Bunch
    Instead of Event RESIZE representing the string resize it is equal to flash events Event RESIZE Now why do this Well say you had another event ComponentEvent which had a resize event If you fully qualified it as well you would have ComponentEvent RESIZE equating to com dreamsocket events ComponentEvent RESIZE Notice that now both events could be thrown from the same object and subscribed to distinctly If they both represented the string resize then you would run into cases where you thought you subscribed to one event but would potentially receive both Why I chose not to use full qualifed names Even though fully qualifying the string that represents the event type resolves subscription conflicts for the most part you can resolve them just by prepending your event s name to the type ComponentEvent RESIZE could be componentResize In a sense this allows you to qualifying it without having a very long unique string This is what I opted to do One of the reasons I did this was for less advanced users and for code spiking Simply if you want to do things fast it is easier just to type in a short magic string when listening to an event vs actually importing in the class and typing it out statically foo addEventListener componentResize this onEvent vs import com dreamsocket events ComponentEvent RESIZE foo addEventListener ComponentEvent RESIZE this onEvent Yes this is kind of the lazy approach and one might also say its bad practice since without strict typing it could result in a magic error However I do it when I m trying to spike an idea real fast and I know others do it as well I d even venture to say designer developer hybrids are especially prone to use it since it serves as a

    Original URL path: http://www.kennybunch.com/2009/02/event-type-naming-qualifying-vs-simple/ (2016-04-28)
    Open archived version from archive

  • Importance of Event.clone | Kenny Bunch
    your event subclass those properties will not have the correct values when listeners handle the redispatched event After yesterday I feel like I don t pay attention well because for some reason I was thinking that clone only got called by the player when bubbling an event in the display list Yet as clear as it is stated in the docs this occurs in non display objects which subscribe to an event then redispatch it using their own dispatchEvent method In these cases if you don t implement clone then your custom event will cast to the base Event class and will not contain any of it s properties This will in turn throw runtime errors I always implement the clone method in my Event sub classes but somehow missed it in one and was wondering why it was casting to Event Though it confused me for a minute at least it opened my eyes to a simple concept I overlooked Hopefully this post opens anyone else s who didn t realize the player s behavior with clone Written by kbunch Posted in ActionScript Flash Post a comment Cancel reply Comment You may use the following HTML a href title

    Original URL path: http://www.kennybunch.com/2009/01/importance-of-eventclone/ (2016-04-28)
    Open archived version from archive

  • Event type naming: Tense | Kenny Bunch
    Close there are actually different event states Closing and Closed By using just Close you have no idea of what state that truly represents What impact does this tense have If you look at the function that is creating the Close event where does it emmit it Is it at the top of the function or at the bottom If the event is cancellable and that cancel has effects like it stops executing the rest of the function then tense is very important to know For example you may have a dialog closing but if you haven t saved information in it yet you want to stop it from closing If it is ok to close then you may want to allow it to close but clean up information on close In this case you want detailed information of the Event breakdown The present tense Close does not denote that Therefore it is better to use Closing which gives you the option of an additional Closed to represent the same event in a latter state This holds true with all Event types There is a lot of power in just how you name things so give it a little thought

    Original URL path: http://www.kennybunch.com/2009/01/event-type-naming/ (2016-04-28)
    Open archived version from archive

  • ActionScript | Kenny Bunch | Page 2
    t get me wrong this is great and I m happy for the shift to this medium I love and want content to continue to be put up in this way I personally push for it and try to make it happen However it ignores the strength of the medium beyond just supplying on demand viewing Interactive Video Enter the concept of interactive video What does this mean Well a lot of people are doing variant things with video now so it could mean different things Some use video as a highlight element and not the driver of the experience In my case video is the content it tells the story From a content creator s perspective you have to go beyond providing just a video view You have to provide the ability to dig into that story That experience then becomes a driver beyond just the video s view I ve heard many discussions about how video interlaced with related content should tell a story and implementations that attempt it but I ve always walked away feeling empty I ve always wanted to put my own stamp on it The Struggle Funny thing is I ve had the current AS project idea design and implementation in my head for over 3 years aka Flash6 but never had the approval to do it This was due to having to convince people that video on the web is a viable thing and that it doesn t take away from their viewership but only adds to it I have had a strategy that I employed this year to overcome this By slowly introducing video to some companies and helping them understand it I first used this to get their video out there then used that to change their technologies and I m now using it to open doors for my ideas I would be lying if I didn t say that without YouTube scaring the pants off them they probably would have held tight to their beliefs of protecting and not releasing their content To that all I can say is thanks YouTube Project Concept Anyways enough talk right What is the concept Simply this particular project seeks to take DVD style experiences to the web with a twist Taking a video show and the related content images audio video or written articles that would be associated with a DVD I seeked to merge both into a linear narrative All of the related content is time coded to the video where the video serves as the linear driver story teller As you watch the content you are given subtle alerts for the associated content which you can then use to jump to and view In addition if you wish to browse those content elements you can do so and jump directly to them via a menu The video is then synced to the content The point is that you are always looking at content in context On top of that your context

    Original URL path: http://www.kennybunch.com/category/flash/actionscript/page/2/ (2016-04-28)
    Open archived version from archive

  • Flash | Kenny Bunch | Page 2
    s view I ve heard many discussions about how video interlaced with related content should tell a story and implementations that attempt it but I ve always walked away feeling empty I ve always wanted to put my own stamp on it The Struggle Funny thing is I ve had the current AS project idea design and implementation in my head for over 3 years aka Flash6 but never had the approval to do it This was due to having to convince people that video on the web is a viable thing and that it doesn t take away from their viewership but only adds to it I have had a strategy that I employed this year to overcome this By slowly introducing video to some companies and helping them understand it I first used this to get their video out there then used that to change their technologies and I m now using it to open doors for my ideas I would be lying if I didn t say that without YouTube scaring the pants off them they probably would have held tight to their beliefs of protecting and not releasing their content To that all I can say is thanks YouTube Project Concept Anyways enough talk right What is the concept Simply this particular project seeks to take DVD style experiences to the web with a twist Taking a video show and the related content images audio video or written articles that would be associated with a DVD I seeked to merge both into a linear narrative All of the related content is time coded to the video where the video serves as the linear driver story teller As you watch the content you are given subtle alerts for the associated content which you can then use to jump to and view In addition if you wish to browse those content elements you can do so and jump directly to them via a menu The video is then synced to the content The point is that you are always looking at content in context On top of that your context is never lost You are never driven completely away from the story and have to dive back to it The story always exists right there in visual sight As you move through the application you can shift your focus to what you want to pay attention to and the UI will visually shift around to let you know where you are going The application is completely dynamic so I can apply it to any linear video that I want Thanks and the Future For this project I can t thank my friend Chris enough for letting me run with the idea and providing me with such great input He started the game I showed him the ball and everyone involved rolled it It has been well received with my favorite comment being You just created the Flux capacitor to which AS turned to me and said If you

    Original URL path: http://www.kennybunch.com/category/flash/page/2/ (2016-04-28)
    Open archived version from archive



  •