<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7284620852667330602</id><updated>2011-11-27T16:57:20.423-08:00</updated><title type='text'>Haxing Flex</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7284620852667330602.post-4494188620364709188</id><published>2008-06-13T13:28:00.001-07:00</published><updated>2008-06-13T13:47:46.171-07:00</updated><title type='text'>An update?</title><content type='html'>Yep. An update. Something I whipped up in Flex. Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="yorapsplayer" width="400" height="85" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&gt; &lt;param name="movie" value="http://www.yoraps.com/AudioPlayer.swf?title=R.%20Kelly%20-%20Body%20Body&amp;type=audio&amp;url=aHR0cDovL3d3dy55b3JhcHMuY29tL211c2ljL3Jfa2VsbHktYm9keV9ib2R5Lm1wMw==&amp;autoplay=false" /&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;param name="quality" value="high" /&gt;&lt;param name="bgcolor" value="transparent" /&gt;&lt;param name="allowScriptAccess" value="sameDomain" /&gt;&lt;embed src="http://www.yoraps.com/AudioPlayer.swf?title=R.%20Kelly%20-%20Body%20Body&amp;type=audio&amp;url=aHR0cDovL3d3dy55b3JhcHMuY29tL211c2ljL3Jfa2VsbHktYm9keV9ib2R5Lm1wMw==&amp;autoplay=false" quality="high" bgcolor="transparent" width="400" height="85" name="yorapsplayer" align="middle" play="true" loop="false" quality="high" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7284620852667330602-4494188620364709188?l=haxd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/4494188620364709188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7284620852667330602&amp;postID=4494188620364709188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/4494188620364709188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/4494188620364709188'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/2008/06/update.html' title='An update?'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7284620852667330602.post-9076156036033953364</id><published>2008-05-15T08:58:00.000-07:00</published><updated>2008-05-15T09:28:28.909-07:00</updated><title type='text'>Heh</title><content type='html'>So obviously I've abandoned some ideas I've had lately in lieu of sitting around and doing nothing for a while.&lt;br /&gt;&lt;br /&gt;Ever been having a conversation with someone, and you find you're having two different conversations at once? It would look confusing to the outside world I imagine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7284620852667330602-9076156036033953364?l=haxd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/9076156036033953364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7284620852667330602&amp;postID=9076156036033953364' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/9076156036033953364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/9076156036033953364'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/2008/05/heh.html' title='Heh'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7284620852667330602.post-5826554766036977825</id><published>2008-04-13T02:28:00.001-07:00</published><updated>2008-04-13T02:30:15.380-07:00</updated><title type='text'>Some ideas</title><content type='html'>So I've got a little bit of free time today, and I've already slept as much as I can and it's only 10am.&lt;br /&gt;&lt;br /&gt;I've decided to see if I can remake the OSX Dock in Flex, which should be interesting. When I've produced something meaningful I'll post it here with the source for other people to learn from :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7284620852667330602-5826554766036977825?l=haxd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/5826554766036977825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7284620852667330602&amp;postID=5826554766036977825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/5826554766036977825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/5826554766036977825'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/2008/04/some-ideas.html' title='Some ideas'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7284620852667330602.post-5549670173426616366</id><published>2008-04-10T08:15:00.001-07:00</published><updated>2008-04-16T17:18:01.641-07:00</updated><title type='text'>I'll have you for breakfast!</title><content type='html'>&lt;embed src="http://smacktube.com/Player/Player.swf" wmode="transparent" quality="high" width="421" height="328" play="true" name="main" align="middle" FlashVars="autoplay=false&amp;husky=true&amp;idstring=15&amp;RootSite=http://smacktube.com&amp;Type=youtube&amp;RequestString=KCil-kLGkvc" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/flashplayer"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;br /&gt;Coded entirely in Flex 3&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Smoothing&lt;/li&gt;&lt;li&gt;Deblocking&lt;/li&gt;&lt;li&gt;Aspect Ratio Preservation&lt;/li&gt;&lt;li&gt;Post Roller&lt;/li&gt;&lt;li&gt;Special Effects&lt;/li&gt;&lt;li&gt;Full Screen&lt;/li&gt;&lt;li&gt;Volume Control&lt;/li&gt;&lt;li&gt;Fully Skinnable&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;I win&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7284620852667330602-5549670173426616366?l=haxd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/5549670173426616366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7284620852667330602&amp;postID=5549670173426616366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/5549670173426616366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/5549670173426616366'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/2008/04/ill-have-you-for-breakfast.html' title='I&apos;ll have you for breakfast!'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7284620852667330602.post-6645764757906621391</id><published>2008-04-10T07:44:00.001-07:00</published><updated>2008-04-10T07:49:16.327-07:00</updated><title type='text'>What you're ACTUALLY supposed to do instead of eval()</title><content type='html'>I recently came across an article on the intertubes, a helpful individual with good intentions offered the following information (&lt;a href="http://www.colettas.org/?p=17"&gt;here's the original post&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;ActionScript 2.0 had eval(), which allowed you to execute arbitrary ActionScript. ActionScript 3.0 doesn’t have it. I’m accustomed to being able to execute arbitrary JavaScript generated at runtime. It’s a pretty powerful feature, and it’s hard to give it up. I think I understand the rationale for getting rid of it (mostly for performance), but what to do instead?&lt;/p&gt; &lt;p&gt;Well, it turns out that one thing you can do that is really better in some ways is to call a method whose name is generated as a string at runtime. This gets you the same sort of dynamic execution, but it’s a lot more predictable and less chaotic.&lt;/p&gt; &lt;p&gt;To do this, you need to include the keyword “dynamic” as part of your class declaration, e.g., public dynamic class Foo. Then to make the call, just say:&lt;/p&gt;&lt;pre&gt;var functionName:String = "foo" + bar;&lt;br /&gt;if (this.hasOwnProperty(functionName))&lt;br /&gt;this[functionName]();&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;Now this is all well and good friends, but not &lt;span style="font-style: italic;"&gt;entirely&lt;/span&gt; accurate. As happens, things get updated and things often change.&lt;br /&gt;&lt;br /&gt;I saw this code and instantly thought: "If Flex has the functions as part of the this[] array, then it's most likely that it stored all the other variables and objects as well."&lt;br /&gt;&lt;br /&gt;Well folks, I was right. If you're trying to access Controls, Objects, Variable &lt;span style="font-style: italic;"&gt;or&lt;/span&gt; Functions, They are all accessable through this. Like so:&lt;br /&gt;&lt;br /&gt;playlist = XML(event.target.data);&lt;br /&gt;videosXML = playlist.video;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;for (var xml:String in videosXML) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    var url:String = videosXML[xml].@url;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    var img:String = videosXML[xml].@img;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    var txt:String = videosXML[xml].@txt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    this['plug'+xml+'url'] = url;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    this['t_plug'+xml+'img'] = img;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    this['l_plug'+xml] = txt.length &gt; 14 ? txt.substr(0,12)+'...' : txt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Most interesting ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7284620852667330602-6645764757906621391?l=haxd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haxd.blogspot.com/feeds/6645764757906621391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7284620852667330602&amp;postID=6645764757906621391' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/6645764757906621391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7284620852667330602/posts/default/6645764757906621391'/><link rel='alternate' type='text/html' href='http://haxd.blogspot.com/2008/04/what-youre-actually-supposed-to-do.html' title='What you&apos;re ACTUALLY supposed to do instead of eval()'/><author><name>Haxd</name><uri>http://www.blogger.com/profile/14175054838346688678</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
