<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>jasonbejot - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-dee535e9" type="application/json"/><link>http://jasonbejot.disqus.com/</link><description></description><atom:link href="http://jasonbejot.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 16 May 2012 06:25:13 -0000</lastBuildDate><item><title>Re: Generate a Random Number within a Range</title><link>http://jasonbejot.com/generate-a-random-number-within-a-range#comment-530119120</link><description>&lt;p&gt;should be&lt;br&gt;return Math.floor(Math.random() * (high - low + 1)) + low;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Panel</dc:creator><pubDate>Wed, 16 May 2012 06:25:13 -0000</pubDate></item><item><title>Re: Create Terrain in Away3D</title><link>http://jasonbejot.com/create-terrain-in-away3d#comment-488678685</link><description>&lt;p&gt;Great stuff, thanks for sharing! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">stefblog</dc:creator><pubDate>Fri, 06 Apr 2012 06:59:51 -0000</pubDate></item><item><title>Re: Normalizing Angles</title><link>http://jasonbejot.com/normalizing-angles#comment-469765411</link><description>&lt;p&gt;That will normalize to [-360...360] (or [-2Pi...2Pi]), i.e. 720-degree sweep. So, you'll have to add 360/2Pi and normalize again:&lt;br&gt;((angle % 360) + 360) % 360;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmitry</dc:creator><pubDate>Tue, 20 Mar 2012 01:27:13 -0000</pubDate></item><item><title>Re: Resizing BitmapData without scaling</title><link>http://jasonbejot.com/resizing-bitmapdata-without-scaling#comment-417849271</link><description>&lt;p&gt;BTW Kim, "resizing" is actually the correct term for this. This code changes the number of BitmapData pixels on the x and y axes. Therefore, it is actually resizing. This code resizes the canvas, not the image. The reason that you get a black border is that you have resized a 400x400 canvas to a 600x600 canvas, but the image is still 400x400 - hence the black border. &lt;/p&gt;

&lt;p&gt;This may seem stupid to you, but there are (rare) cases, where you are writing to a BitmapData object dynamically and you need to resize the canvas. The black border will go away as soon as you write new pixels to the enlarged canvas.&lt;/p&gt;

&lt;p&gt;Before you try to troll on someone's blog, you may want to make sure you know what you're talking about.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Sat, 21 Jan 2012 22:37:53 -0000</pubDate></item><item><title>Re: Resizing BitmapData without scaling</title><link>http://jasonbejot.com/resizing-bitmapdata-without-scaling#comment-417845715</link><description>&lt;p&gt;Hey,&lt;br&gt;Thanks so much for this! It's exactly what I was looking for! &lt;/p&gt;

&lt;p&gt;And for all the commenters who are complaining about how this doesn't scale the image... The post is titled "Resizing BitmapData WITHOUT SCALING." Duh!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Sat, 21 Jan 2012 22:28:38 -0000</pubDate></item><item><title>Re: Load and Animate an MD2 Model in Away3D</title><link>http://jasonbejot.com/load-and-animate-an-md2-model-in-away3d#comment-404839809</link><description>&lt;p&gt;Need Md2 example for Away3D 4 Molehill&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nickxonsumallo</dc:creator><pubDate>Sun, 08 Jan 2012 05:41:06 -0000</pubDate></item><item><title>Re: Papervision3D + Google SketchUp</title><link>http://jasonbejot.com/papervision3d-google-sketchup#comment-395943822</link><description>&lt;p&gt;Hi very interesting, pls can you share the project file.&lt;br&gt; I have this : "undefined function SketchUpView"&lt;/p&gt;

&lt;p&gt;I need your help !&lt;br&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yassine DARDOUR</dc:creator><pubDate>Wed, 28 Dec 2011 14:54:08 -0000</pubDate></item><item><title>Re: The Precocious QR Code</title><link>http://jasonbejot.com/the-precocious-qr-code#comment-340767119</link><description>&lt;p&gt;You'd think AS3 QR readers should work without any problems. Just look at the augmented reality libraries, their detection algorithms are similar (definitely more intensive) and they've been really finely tuned.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jasonbejot</dc:creator><pubDate>Fri, 21 Oct 2011 11:53:27 -0000</pubDate></item><item><title>Re: The Precocious QR Code</title><link>http://jasonbejot.com/the-precocious-qr-code#comment-340763110</link><description>&lt;p&gt;Totally agree. While I'm sure there have been some really cool uses of QR codes, you never hear about them. It seems that the mass use of QR codes have been haphazard with little understanding of the tool on any level.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jasonbejot</dc:creator><pubDate>Fri, 21 Oct 2011 11:46:41 -0000</pubDate></item><item><title>Re: The Precocious QR Code</title><link>http://jasonbejot.com/the-precocious-qr-code#comment-340722863</link><description>&lt;p&gt;QR Codes are simply a tool to allow one person to get passed some set of data.  When people think negatively about them it feels to me  like someone complaining that drink glasses suck because they don't like orange juice.&lt;/p&gt;

&lt;p&gt;Use of QR Codes for web sites in my mind is extremely short sighted and the cause for the distain and confusion.  They've been abused as an advertising vehicle giving value only to marketing firms and taking advantage of users.&lt;/p&gt;

&lt;p&gt;If I see a QR Code on a poster there are generally two options&lt;br&gt;1) I can scan it and get something *awesome*&lt;br&gt;2) I can scan it and get more advertising (movie trailer, bad web site, etc).&lt;/p&gt;

&lt;p&gt;Guess what?  It's almost always option #2 that comes to fruition because it's advertisers who made the poster.&lt;/p&gt;

&lt;p&gt;I'm looking forward to people using QR Codes for all kinds of awesome things in the future.  None of these awesome things include redirecting me to a mysterious web site and making me feel like I just wasted my time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gabe Kangas</dc:creator><pubDate>Fri, 21 Oct 2011 10:57:42 -0000</pubDate></item><item><title>Re: The Precocious QR Code</title><link>http://jasonbejot.com/the-precocious-qr-code#comment-340299057</link><description>&lt;p&gt;I entirely agree. I've really wanted to incorporate QR codes in my AIR applications, but I haven't had much luck with performance with the AS3 QR readers. that seems to be my only thing holding me back.&lt;br&gt;I'm curious how difficult a native extension of ZXing would be to create.&lt;/p&gt;

&lt;p&gt;Mike&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mikeciz</dc:creator><pubDate>Thu, 20 Oct 2011 19:58:29 -0000</pubDate></item><item><title>Re: Normalizing Angles</title><link>http://jasonbejot.com/normalizing-angles#comment-331159463</link><description>&lt;p&gt;Why not just angle % 360?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Whatever</dc:creator><pubDate>Mon, 10 Oct 2011 15:42:42 -0000</pubDate></item><item><title>Re: Instant Website Game Mechanics</title><link>http://jasonbejot.com/instant-website-game-mechanics#comment-329459368</link><description>&lt;p&gt;&lt;br&gt;  &lt;a href="http://puffgame.info/" rel="nofollow"&gt;Puffgames&lt;/a&gt;-Puff mean smoke&lt;br&gt;  exhale strongly, there are many different types of Puffgames which available&lt;br&gt;  now online and some available in CD�s with little cost.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">waseem786</dc:creator><pubDate>Sat, 08 Oct 2011 01:28:20 -0000</pubDate></item><item><title>Re: Mobile Web Design: A Crash Course</title><link>http://jasonbejot.com/mobile-website-design-a-crash-course#comment-328148815</link><description>&lt;p&gt;but if we want to design a site for universal device compatibility then?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">website development</dc:creator><pubDate>Thu, 06 Oct 2011 13:37:05 -0000</pubDate></item><item><title>Re: Color Programming in Flash</title><link>http://jasonbejot.com/color-programming-in-flash#comment-302765496</link><description>&lt;p&gt;Thanks man! awesome digestible info . any more posts?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">n00b_iBought</dc:creator><pubDate>Mon, 05 Sep 2011 02:19:49 -0000</pubDate></item><item><title>Re: Normalizing Angles</title><link>http://jasonbejot.com/normalizing-angles#comment-294009657</link><description>&lt;p&gt;angle = atan2(sin(angle, cos(angle)) &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Voight</dc:creator><pubDate>Tue, 23 Aug 2011 17:33:40 -0000</pubDate></item><item><title>Re: What&amp;#8217;s that? AR without markers?</title><link>http://jasonbejot.com/whats-that-ar-without-markers#comment-219861365</link><description>&lt;p&gt;dude, ur link is broken&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Squall Loneheaert</dc:creator><pubDate>Tue, 07 Jun 2011 06:06:26 -0000</pubDate></item><item><title>Re: Superscript and Subscript in Actionscript</title><link>http://jasonbejot.com/superscript-and-subscript-in-actionscript#comment-211805855</link><description>&lt;p&gt;Thanks for GG Superscript! :D&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dima Pilipenko</dc:creator><pubDate>Wed, 25 May 2011 20:48:47 -0000</pubDate></item><item><title>Re: Resizing BitmapData without scaling</title><link>http://jasonbejot.com/resizing-bitmapdata-without-scaling#comment-200594620</link><description>&lt;p&gt;wow you really made kim mad lol &lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sksk</dc:creator><pubDate>Mon, 09 May 2011 22:09:06 -0000</pubDate></item><item><title>Re: Normalizing Angles</title><link>http://jasonbejot.com/normalizing-angles#comment-194704154</link><description>&lt;p&gt;Indeed it won't work if the angle value is too great, but it can be solved by substituting that if() statement for a while() so it keeps subtracting the value over and over until you have normalized the angle. Just place the return statement after the while loop.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kim Lindblom</dc:creator><pubDate>Sat, 30 Apr 2011 07:50:02 -0000</pubDate></item><item><title>Re: Resizing BitmapData without scaling</title><link>http://jasonbejot.com/resizing-bitmapdata-without-scaling#comment-194702471</link><description>&lt;p&gt;You seem to have seriously misunderstood what's going on here. The image isn't actually made smaller in the sense that the motive on the bitmapdata is smaller on your screen. All you are doing is cutting away the edges around to make it fit into a smaller space, an action known as cropping, not resizing.&lt;/p&gt;

&lt;p&gt;To demonstrate the flaw of your technique, try going from a 400px sized bitmapdata up to a 600px sized bitmapdata and see what happens. All you get is a black border around the image, because you are not actually resizing.&lt;/p&gt;

&lt;p&gt;Your last statement is also a bit ironical. Because this is actually a very fast method, but it does not get the job done. I feel you should really have tested out your own code before you make a statement like that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kim Lindblom</dc:creator><pubDate>Sat, 30 Apr 2011 07:39:43 -0000</pubDate></item><item><title>Re: Resizing BitmapData without scaling</title><link>http://jasonbejot.com/resizing-bitmapdata-without-scaling#comment-179545141</link><description>&lt;p&gt;Thanks I will try this. :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tait Pollack</dc:creator><pubDate>Wed, 06 Apr 2011 17:57:13 -0000</pubDate></item><item><title>Re: Color Programming in Flash</title><link>http://jasonbejot.com/color-programming-in-flash#comment-165113745</link><description>&lt;p&gt;thank you for this very useful blog hope to see it grow bigger soon&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommy lamont ishop</dc:creator><pubDate>Sun, 13 Mar 2011 12:40:14 -0000</pubDate></item><item><title>Re: What&amp;#8217;s that? AR without markers?</title><link>http://jasonbejot.com/whats-that-ar-without-markers#comment-155428059</link><description>&lt;p&gt;very nice. what framework/app you're using? is it open source and usable? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petar Ducic</dc:creator><pubDate>Thu, 24 Feb 2011 12:17:59 -0000</pubDate></item><item><title>Re: Create a Skybox in Away3D</title><link>http://jasonbejot.com/create-a-skybox-in-away3d#comment-139422427</link><description>&lt;p&gt;Hi Jason, What if I wanted to change the texture at runtime? I just started using away3D and have been trying to figure this out for sometime now...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roh26it</dc:creator><pubDate>Thu, 03 Feb 2011 04:22:18 -0000</pubDate></item></channel></rss>
