<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>invassive.blog</title>
	<atom:link href="http://blog.invassive.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.invassive.com</link>
	<description>actionscript, flash, flex, AIR,...</description>
	<pubDate>Thu, 29 May 2008 06:38:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Embeding fonts in flash to display bold the right way</title>
		<link>http://blog.invassive.com/2008/05/26/embeding-fonts-in-flash-to-display-bold-the-right-way/</link>
		<comments>http://blog.invassive.com/2008/05/26/embeding-fonts-in-flash-to-display-bold-the-right-way/#comments</comments>
		<pubDate>Mon, 26 May 2008 08:58:43 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[bold]]></category>

		<category><![CDATA[embed]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[font]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=47</guid>
		<description><![CDATA[In order to use the &#60;b&#62; tag within html text in flash and have Flash automatically detect the right font to use for bold, you must embed both character sets and specify the fontWeight of both.
Sounds more complicated than it is. Just use the following code when embedding fonts:


&#91;Embed&#40;mimeType='application/x-font', source='fonts/myFont-Medium.ttf', fontName='myfont'&#41;&#93;
private var font:Class;
&#91;Embed&#40;mimeType='application/x-font', source='fonts/myFont-Bold.ttf', fontName='myfont', [...]]]></description>
			<content:encoded><![CDATA[<p>In order to use the &lt;b&gt; tag within html text in flash and have Flash automatically detect the right font to use for bold, you must embed both character sets and specify the fontWeight of both.</p>
<p>Sounds more complicated than it is. Just use the following code when embedding fonts:</p>
<div class="syntax_hilite">
<div id="actionscript-2">
<div class="actionscript"><span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>mimeType=<span style="color: #ff0000;">'application/x-font'</span>, source=<span style="color: #ff0000;">'fonts/myFont-Medium.ttf'</span>, fontName=<span style="color: #ff0000;">'myfont'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">font</span>:<span style="color: #000000; font-weight: bold;">Class</span>;</p>
<p><span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>mimeType=<span style="color: #ff0000;">'application/x-font'</span>, source=<span style="color: #ff0000;">'fonts/myFont-Bold.ttf'</span>, fontName=<span style="color: #ff0000;">'myfont'</span>, fontWeight=<span style="color: #ff0000;">'bold'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> fontBold:<span style="color: #000000; font-weight: bold;">Class</span>;</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/05/26/embeding-fonts-in-flash-to-display-bold-the-right-way/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HTML tags and CSS properties available in Flash 9</title>
		<link>http://blog.invassive.com/2008/05/14/css-properties-available-in-flash-9/</link>
		<comments>http://blog.invassive.com/2008/05/14/css-properties-available-in-flash-9/#comments</comments>
		<pubDate>Wed, 14 May 2008 19:36:04 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[stylesheet]]></category>

		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=46</guid>
		<description><![CDATA[
HTML tags supported



Tag
Description


Anchor tag
The &#60;a&#62; tag creates a hypertext link and supports the  following attributes:

target: Specifies the name of the target window where you load  the page. Options include _self, _blank,  _parent, and _top. The _self option  specifies the current frame in the current window, _blank specifies  a new window, [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>HTML tags supported</li>
<table border="1" cellspacing="0" cellpadding="15">
<tbody>
<tr>
<th>Tag</th>
<th>Description</th>
</tr>
<tr>
<td>Anchor tag</td>
<td>The <code>&lt;a&gt;</code> tag creates a hypertext link and supports the  following attributes:</p>
<ul>
<li><code>target</code>: Specifies the name of the target window where you load  the page. Options include <code>_self</code>, <code>_blank</code>,  <code>_parent</code>, and <code>_top</code>. The <code>_self</code> option  specifies the current frame in the current window, <code>_blank</code> specifies  a new window, <code>_parent</code> specifies the parent of the current frame,  and <code>_top</code> specifies the top-level frame in the current window.</li>
<li><code>href</code>: Specifies a URL or an ActionScript <code>link</code> event.The URL can be either absolute or relative to the location of the SWF file  that is loading the page. An example of an absolute reference to a URL is  <code>http://www.adobe.com</code>; an example of a relative reference is  <code>/index.<span class="searchhilite">html</span></code>. Absolute URLs must be  prefixed with http://; otherwise, Flash treats them as relative URLs. You can  use the <code>link</code> event to cause the link to execute an ActionScript  function in a SWF file instead of opening a URL. To specify a <code>link</code> event, use the event scheme instead of the http scheme in your <code>href</code> attribute. An example is <code>href="event:myText"</code> instead of  <code>href="http://myURL"</code>; when the user clicks a hypertext link that  contains the event scheme, the text field dispatches a <code>link</code> TextEvent with its <code>text</code> property set to "<code>myText</code>". You  can then create an ActionScript function that executes whenever the link  TextEvent is dispatched. You can also define <code>a:link</code>,  <code>a:hover</code>, and <code>a:active</code> styles for anchor <span class="searchhilite">tags</span> by using style sheets.</li>
</ul>
</td>
</tr>
<tr>
<td>Bold tag</td>
<td>The <code>&lt;b&gt;</code> tag renders text as bold. A bold typeface must be  available for the font used.</td>
</tr>
<tr>
<td>Break tag</td>
<td>The <code>&lt;br&gt;</code> tag creates a line break in the text field. You  must set the text field to be a multiline text field to use this tag.</td>
</tr>
<tr>
<td>Font tag</td>
<td>The <code>&lt;font&gt;</code> tag specifies a font or list of fonts to  display the text.The font tag supports the following attributes:</p>
<ul>
<li><code>color</code>: Only hexadecimal color (<code>#FFFFFF</code>) values are  supported.</li>
<li><code>face</code>: Specifies the name of the font to use. As shown in the  following example, you can specify a list of comma-delimited font names, in  which case Flash Player selects the first available font. If the specified font  is not installed on the user's computer system or isn't embedded in the SWF  file, Flash Player selects a substitute font.</li>
<li><code>size</code>: Specifies the size of the font. You can use absolute  pixel sizes, such as 16 or 18, or relative point sizes, such as +2 or -4.</li>
</ul>
</td>
</tr>
<tr>
<td>Image tag</td>
<td>The <code>&lt;img&gt;</code> tag lets you embed external image files (JPEG,  GIF, PNG), SWF files, and movie clips inside text fields. Text automatically  flows around images you embed in text fields. To use this tag, you must set the  text field to be multiline and to wrap text.The <code>&lt;img&gt;</code> tag supports the following attributes:</p>
<ul>
<li><code>src</code>: Specifies the URL to an image or SWF file, or the linkage  identifier for a movie clip symbol in the library. This attribute is required;  all other attributes are optional. External files (JPEG, GIF, PNG, and SWF  files) do not show until they are downloaded completely.</li>
<li><code>width</code>: The width of the image, SWF file, or movie clip being  inserted, in pixels.</li>
<li><code>height</code>: The height of the image, SWF file, or movie clip being  inserted, in pixels.</li>
<li><code>align</code>: Specifies the horizontal alignment of the embedded image  within the text field. Valid values are <code>left</code> and  <code>right</code>. The default value is <code>left</code>.</li>
<li><code>hspace</code>: Specifies the amount of horizontal space that surrounds  the image where no text appears. The default value is 8.</li>
<li><code>vspace</code>: Specifies the amount of vertical space that surrounds  the image where no text appears. The default value is 8.</li>
<li><code>id</code>: Specifies the name for the movie clip instance (created by  Flash Player) that contains the embedded image file, SWF file, or movie clip.  This is useful if you want to control the embedded content with ActionScript.</li>
<li><code>checkPolicyFile</code>: Specifies that Flash Player will check for a  cross-domain policy file on the server associated with the image's domain. If a  cross-domain policy file exists, SWF files in the domains listed in the file can  access the data of the loaded image, for instance by calling the  <code>BitmapData.draw()</code> method with this image as the <code>source</code> parameter. For more information, see the "Flash Player Security" chapter in  <em>Programming ActionScript 3.0</em>.</li>
</ul>
<p>Flash displays media embedded in a text field at full size. To specify the  dimensions of the media you are embedding, use the <code>&lt;img&gt;</code> tag's <code>height</code> and <code>width</code> attributes.</p>
<p>In general, an image embedded in a text field appears on the line following  the <code>&lt;img&gt;</code> tag. However, when the <code>&lt;img&gt;</code> tag  is the first character in the text field, the image appears on the first line of  the text field.</td>
</tr>
<tr>
<td>Italic tag</td>
<td>The <code>&lt;i&gt;</code> tag displays the tagged text in italics. An  italic typeface must be available for the font used.</td>
</tr>
<tr>
<td>List item tag</td>
<td>The <code>&lt;li&gt;</code> tag places a bullet in front of the text that it  encloses. <strong>Note:</strong> Because Flash Player does not recognize ordered and  unordered list <span class="searchhilite">tags</span> (<code>&lt;ol&gt;</code> and  <code>&lt;ul&gt;</code>, they do not modify how your list is rendered. All lists  are unordered and all list items use bullets.</td>
</tr>
<tr>
<td>Paragraph tag</td>
<td>The <code>&lt;p&gt;</code> tag creates a new paragraph. You must set the  text field to be a multiline text field to use this tag. The  <code>&lt;p&gt;</code> tag supports the following attributes:</p>
<ul>
<li>align: Specifies alignment of text within the paragraph; valid values are  <code>left</code>, <code>right</code>, <code>justify</code>, and  <code>center</code>.</li>
<li>class: Specifies a CSS style class defined by a flash.text.StyleSheet  object.</li>
</ul>
</td>
</tr>
<tr>
<td>Span tag</td>
<td>The <code>&lt;span&gt;</code> tag is available only for use with CSS text  styles. It supports the following attribute:</p>
<ul>
<li>class: Specifies a CSS style class defined by a flash.text.StyleSheet  object.</li>
</ul>
</td>
</tr>
<tr>
<td>Text format tag</td>
<td>The <code>&lt;textformat&gt;</code> tag lets you use a subset of paragraph  formatting properties of the TextFormat class within text fields, including line  leading, indentation, margins, and tab stops. You can combine  <code>&lt;textformat&gt;</code> <span class="searchhilite">tags</span> with the  built-in <span class="searchhilite">HTML</span> <span class="searchhilite">tags</span>.The <code>&lt;textformat&gt;</code> tag has the following attributes:</p>
<ul>
<li><code>blockindent</code>: Specifies the block indentation in points;  corresponds to <code>TextFormat.blockIndent</code>.</li>
<li><code>indent</code>: Specifies the indentation from the left margin to the  first character in the paragraph; corresponds to <code>TextFormat.indent</code>.  Both positive and negative numbers are acceptable.</li>
<li><code>leading</code>: Specifies the amount of leading (vertical space)  between lines; corresponds to <code>TextFormat.leading</code>. Both positive and  negative numbers are acceptable.</li>
<li><code>leftmargin</code>: Specifies the left margin of the paragraph, in  points; corresponds to <code>TextFormat.leftMargin</code>.</li>
<li><code>rightmargin</code>: Specifies the right margin of the paragraph, in  points; corresponds to <code>TextFormat.rightMargin</code>.</li>
<li><code>tabstops</code>: Specifies custom tab stops as an array of  non-negative integers; corresponds to <code>TextFormat.tabStops</code>.</li>
</ul>
</td>
</tr>
<tr>
<td>Underline tag</td>
<td>The <code>&lt;u&gt;</code> tag underlines the tagged text.</td>
</tr>
</tbody>
</table>
<li>CSS properties</li>
<p>These are all the CSS properties that can be manipulated from an external style sheet and with actionscript.</p>
<table border="1" cellspacing="0" cellpadding="15">
<tbody>
<tr>
<th><span class="searchhilite">CSS</span> property</th>
<th>ActionScript property</th>
<th>Usage and supported values</th>
</tr>
<tr>
<td><code>color</code></td>
<td><code>color</code></td>
<td>Only hexadecimal color values are supported. Named colors (such as  <code>blue</code>) are not supported. Colors are written in the following  format: <code>#FF0000</code>.</td>
</tr>
<tr>
<td><code>display</code></td>
<td><code>display</code></td>
<td>Supported values are <code>inline</code>, <code>block</code>, and  <code>none</code>.</td>
</tr>
<tr>
<td><code>font-family</code></td>
<td><code>fontFamily</code></td>
<td>A comma-separated list of fonts to use, in descending order of desirability.  Any font family name can be used. If you specify a generic font name, it is  converted to an appropriate device font. The following font conversions are  available: <code>mono</code> is converted to <code>_typewriter</code>,  <code>sans-serif</code> is converted to <code>_sans</code>, and  <code>serif</code> is converted to <code>_serif</code>.</td>
</tr>
<tr>
<td><code>font-size</code></td>
<td><code>fontSize</code></td>
<td>Only the numeric part of the value is used. Units (px, pt) are not parsed;  pixels and points are equivalent.</td>
</tr>
<tr>
<td><code>font-style</code></td>
<td><code>fontStyle</code></td>
<td>Recognized values are <code>normal</code> and <code>italic</code>.</td>
</tr>
<tr>
<td><code>font-weight</code></td>
<td><code>fontWeight</code></td>
<td>Recognized values are <code>normal</code> and <code>bold</code>.</td>
</tr>
<tr>
<td><code>kerning</code></td>
<td><code>kerning</code></td>
<td>Recognized values are <code>true</code> and <code>false</code>. Kerning is  supported for embedded fonts only. Certain fonts, such as Courier New, do not  support kerning. The kerning property is only supported in SWF files created in  Windows, not in SWF files created on the Macintosh. However, these SWF files can  be played in non-Windows versions of Flash Player and the kerning still  applies.</td>
</tr>
<tr>
<td><code>leading</code></td>
<td><code>leading</code></td>
<td>The amount of space that is uniformly distributed between lines. The value  specifies the number of pixels that are added after each line. A negative value  condenses the space between lines. Only the numeric part of the value is used.  Units (px, pt) are not parsed; pixels and points are equivalent.</td>
</tr>
<tr>
<td><code>letter-spacing</code></td>
<td><code>letterSpacing</code></td>
<td>The amount of space that is uniformly distributed between characters. The  value specifies the number of pixels that are added after each character. A  negative value condenses the space between characters. Only the numeric part of  the value is used. Units (px, pt) are not parsed; pixels and points are  equivalent.</td>
</tr>
<tr>
<td><code>margin-left</code></td>
<td><code>marginLeft</code></td>
<td>Only the numeric part of the value is used. Units (px, pt) are not parsed;  pixels and points are equivalent.</td>
</tr>
<tr>
<td><code>margin-right</code></td>
<td><code>marginRight</code></td>
<td>Only the numeric part of the value is used. Units (px, pt) are not parsed;  pixels and points are equivalent.</td>
</tr>
<tr>
<td><code>text-align</code></td>
<td><code>textAlign</code></td>
<td>Recognized values are <code>left</code>, <code>center</code>,  <code>right</code>, and <code>justify</code>.</td>
</tr>
<tr>
<td><code>text-decoration</code></td>
<td><code>textDecoration</code></td>
<td>Recognized values are <code>none</code> and  <code>underline</code>.</td>
</tr>
<tr>
<td><code>text-indent</code></td>
<td><code>textIndent</code></td>
<td>Only the numeric part of the value is used. Units (px, pt) are not parsed;  pixels and points are equivalent.</td>
</tr>
</tbody>
</table>
</ul>
<div class="si-left">
<div class="si-center">This content is straight out of the documentation in the Flash help files, but it's always a pain to find.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/05/14/css-properties-available-in-flash-9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SWFAddress 2.1 supports Google Analytics</title>
		<link>http://blog.invassive.com/2008/05/03/swfaddress-21-supports-google-analytics/</link>
		<comments>http://blog.invassive.com/2008/05/03/swfaddress-21-supports-google-analytics/#comments</comments>
		<pubDate>Fri, 02 May 2008 22:11:30 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[Google Analytics]]></category>

		<category><![CDATA[SWFAddress]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=39</guid>
		<description><![CDATA[And it does it out of the box.
SWFAddress 2.1 is out and it supports Google Analytics with no extra effort. No code necessary except for the usual SCRIPT tags code provided by Google.
If you are like me and don't like to read all the fine print, keep in mind that you'll have to remove the [...]]]></description>
			<content:encoded><![CDATA[<p>And it does it out of the box.</p>
<p><a href="http://www.asual.com/blog/swfaddress/2008/04/09/swfaddress-21.html" onclick="javascript:pageTracker._trackPageview ('/outbound/www.asual.com');">SWFAddress 2.1</a> is out and it supports Google Analytics with no extra effort. No code necessary except for the usual <code>SCRIPT</code> tags code provided by Google.</p>
<p>If you are like me and don't like to read all the fine print, keep in mind that you'll have to remove the following code</p>
<div class="syntax_hilite">
<div id="javascript-5">
<div class="javascript">pageTracker._trackPageview<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p>
from the HTML, because SWFAddress tracks the page view automatically for you. If you don't remove you'll end up with double page visits.</p>
<p>Pages are ready to be tracked. So now to track events:</p>
<div class="syntax_hilite">
<div id="actionscript-6">
<div class="actionscript"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> track<span style="color: #66cc66;">&#40;</span>event:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"pageTracker._trackPageview('"</span>+event+<span style="color: #ff0000;">"')"</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p>
And you are all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/05/03/swfaddress-21-supports-google-analytics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspiration: Publicis &#038; Hal Riney</title>
		<link>http://blog.invassive.com/2008/05/02/inspiration/</link>
		<comments>http://blog.invassive.com/2008/05/02/inspiration/#comments</comments>
		<pubDate>Thu, 01 May 2008 21:59:28 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[inspiration]]></category>

		<category><![CDATA[actionsdript]]></category>

		<category><![CDATA[advertising]]></category>

		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=40</guid>
		<description><![CDATA[Publicis &#038; Hal Riney is probably the first site I've navigated leaning back on my seat without touching my mouse or keyboard, and for that they deserve fame, recognition, and free beer.
You'll need a webcam or you'll totally miss the point.


Innovative with the cam, slightly confusing with the keyboard.

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hrp.com/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.hrp.com');">Publicis &#038; Hal Riney</a> is probably the first site I've navigated leaning back on my seat without touching my mouse or keyboard, and for that they deserve fame, recognition, and free beer.<br />
You'll need a webcam or you'll totally miss the point.</p>
<div class="si-left">
<div class="si-center">
Innovative with the cam, slightly confusing with the keyboard.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/05/02/inspiration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Avoid crossdomain.xml restrictions</title>
		<link>http://blog.invassive.com/2008/04/30/avoid-crossdomainxml-restrictions/</link>
		<comments>http://blog.invassive.com/2008/04/30/avoid-crossdomainxml-restrictions/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 17:02:18 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[crossdomain]]></category>

		<category><![CDATA[crossdomain.xml]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[sandbox violation]]></category>

		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=38</guid>
		<description><![CDATA[Let's go with a little bit of hacking for the masses. Adobe implementation of security relies in some cases on the crossdomain.xml file hosted at the server that holds the data. You can access that data, generally, with your browser, but you can't with the Flash Player if the crossdomain file doesn't allow you. Actionscript [...]]]></description>
			<content:encoded><![CDATA[<p>Let's go with a little bit of hacking for the masses. Adobe implementation of security relies in some cases on the crossdomain.xml file hosted at the server that holds the data. You can access that data, generally, with your browser, but you can't with the Flash Player if the crossdomain file doesn't allow you. Actionscript will throw a Sandbox violation error.</p>
<p>In many cases we want access to data that is available to us by other means but restricted to Flash by this file. In my case I was trying to access Google Geolocation API from actionscript:<br />
<code>http://maps.google.com/maps/geo?q=...</code><br />
This is the content of <code>http://maps.google.com/crossdomain.xml</code> :</p>
<div class="syntax_hilite">
<div id="xml-11">
<div class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;cross</span>-domain-policy<span style="font-weight: bold; color: black;">&gt;</span></span><br />
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;site</span>-control <span style="color: #000066;">permitted-cross-domain-policies</span>=<span style="color: #ff0000;">"by-content-type"</span><span style="font-weight: bold; color: black;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/cross</span>-domain-policy<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</div>
</div>
<p>
I have yet to figure out if there is a workaround in actionscript, but I come across a nifty php that will let you overpass those crossdomain restrictions. Here it goes:</p>
<p><strong><code>crossdomain-proxy.php</code></strong></p>
<div class="syntax_hilite">
<div id="php-12">
<div class="php"><span style="color:#000000; font-weight:bold;">&lt;?php</span><br />
<span style="color:#0000FF;">$post_data</span> = <span style="color:#0000FF;">$HTTP_RAW_POST_DATA</span>;<br />
<span style="color:#0000FF;">$header</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#FF0000;">"Content-type: text/xml"</span>;<br />
<span style="color:#0000FF;">$header</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#FF0000;">"Content-length: "</span>.<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post_data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<a href="http://www.php.net/preg_match"><span style="color:#000066;">preg_match</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"/url=(.*)/"</span>,<span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'REQUEST_URI'</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#0000FF;">$ch</span> = curl_init<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>; <br />
curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color:#CC66CC;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_TIMEOUT, <span style="color:#CC66CC;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_HTTPHEADER, <span style="color:#0000FF;">$header</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post_data</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;<span style="color:#CC66CC;">0</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_POSTFIELDS, <span style="color:#0000FF;">$post_data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#0000FF;">$response</span> = curl_exec<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; &nbsp; &nbsp;<br />
<span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>curl_errno<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> curl_error<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; &nbsp; curl_close<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"Content-type: text/xml; Content-length: "</span>.<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$response</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> <span style="color:#0000FF;">$response</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</div>
</div>
<p>
This code was extracted from <a href="http://yoppa.org/rsd.php?itemid=691" onclick="javascript:pageTracker._trackPageview ('/outbound/yoppa.org');">Yoppa blog</a> where he goes into detail explaining how to use it. In case your Japanese is rusty here's how it goes.<br />
Instead of requesting the url:</p>
<div class="syntax_hilite">
<div id="actionscript-13">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"http://maps.google.com/maps/geo?q=..."</span>;</div>
</div>
</div>
<p>
we are going to request:</p>
<div class="syntax_hilite">
<div id="actionscript-14">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"crossdomain-proxy.php?url=http://maps.google.com/maps/geo?q=..."</span>;</div>
</div>
</div>
<p>
This bypasses the security error and retrieves the exact same content as the original url. </p>
<p>Now I have to admit that I don't understand every bit of code in that php file, but I checked it first to make sure that my server wasn't going to explode with it, and it works really well..</p>
<div class="si-left">
<div class="si-center">
<strong>Php n00bies, beware.</strong></p>
<p>If I were you, I would restrict the calls to this php to my own domain only. </p>
<p>Just to make sure that those smart-ass hackers out there won't use my php's url to retrieve their content.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/04/30/avoid-crossdomainxml-restrictions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspiration: Get out and Play</title>
		<link>http://blog.invassive.com/2008/04/22/inspiration-get-out-and-play/</link>
		<comments>http://blog.invassive.com/2008/04/22/inspiration-get-out-and-play/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 03:17:43 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=41</guid>
		<description><![CDATA[FarFar is at it again, this time with a funky site for N-Gage. 
So don't you Get out and Play but stay in and click.





via: ThatBasqueGirl

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.farfar.se/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.farfar.se');">FarFar</a> is at it again, this time with a funky site for N-Gage. </p>
<p>So don't you <strong>Get out and Play</strong> but <a href="http://www.get-out-and-play.com/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.get-out-and-play.com');">stay in and click</a>.</p>
<p><img src="http://blog.invassive.com/wp-content/uploads/2008/05/get-out-and-play-01.jpg" alt="Get out and Play" title="get-out-and-play-01" width="500" height="246" class="alignnone size-full wp-image-42" /></p>
<p><img src="http://blog.invassive.com/wp-content/uploads/2008/05/get-out-and-play-02.jpg" alt="Get out and Play" title="get-out-and-play-01" width="500" height="246" class="alignnone size-full wp-image-43" /></p>
<p><img src="http://blog.invassive.com/wp-content/uploads/2008/05/get-out-and-play-03.jpg" alt="Get out and Play" title="get-out-and-play-01" width="500" height="246" class="alignnone size-full wp-image-43" /></p>
<div class="si-left">
<div class="si-center">
via: ThatBasqueGirl</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/04/22/inspiration-get-out-and-play/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ActionScript Security: About Flash Pirates and Swf Hackers</title>
		<link>http://blog.invassive.com/2008/04/17/actionscript-security-about-flash-pirates-and-swf-hackers/</link>
		<comments>http://blog.invassive.com/2008/04/17/actionscript-security-about-flash-pirates-and-swf-hackers/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 09:31:38 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[decompilers]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[flash pirates]]></category>

		<category><![CDATA[hakers]]></category>

		<category><![CDATA[obfuscators]]></category>

		<category><![CDATA[pirates]]></category>

		<category><![CDATA[swf]]></category>

		<category><![CDATA[swf hackers]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=29</guid>
		<description><![CDATA[The very basis of Flash security that concern many content creators is the protection of the intellectual property around websites and other flash powered RIAs. The most common security breach is the easiness to "steal material" from the web (note the quotes). 


If it's digital it can't be "stolen"
and it for sure can't be called [...]]]></description>
			<content:encoded><![CDATA[<p>The very basis of Flash security that concern many content creators is the protection of the intellectual property around websites and other flash powered RIAs. The most common security breach is the easiness to "steal material" from the web (note the quotes). </p>
<div class="si-left">
<div class="si-center">
If it's digital it can't be "stolen"<br />
and it for sure can't be called "material".
</div>
</div>
<ul>
<li>Flash Pirates</li>
<p>Ok, so this is your common guy. Stealing for them can be as easy as checking their browser cache, or fiddling with FireBug and download SWF files or other assets that might be dynamically loaded from the flash (swf files, images, xmls, mp3s, ....). We all know them, and -let's be honest- we all have been there.</p>
<div class="si-left">
<div class="si-center">
We all have a hacker inside.<br />
It's the size what makes the difference</div>
</div>
<p>Then again, nosing around your computer cache can hardly be called "stealing", and in many circumstances keeping a file at one's computer for personal use doesn't harm its author either.<br />
On the other hand one example comes to my mind: Flash Game developers. I have read through the years how some of this developers have seen their games stolen reposted on other sites, and appropriated by others. Something one doesn't want to deal with specially when the intent for the piece of work was freeware software and the copies are being monetized. In this case we are dealing with more than "stealing" we are dealing with "appropriation".</p>
<p>Flash pirates are numerous, but they lack in many cases further technological knowledge. They can steal but they can't modify. That is the labor of other guys...</p>
<li>SWF Hackers</li>
<p>These are the clever guys. They will bypass any trick you've set up, and successfully download your SWFs. Then, if they so desire, they will expose your creations inner core. There are out there a handful of decompilers that will do the trick and they keep up to date with their counterpart the obfuscators. </p>
<p>Sometimes it is a very useful tool for content creators. I'll explain. I recently found about a set of components that an individual was selling on his web when I opened a SWF file in FlashDevelop. I would have never been exposed to this creations if it wasn't for the fact that I check the classes involved on the application. This particular SWF file was nothing but a clever use of Google APIs, PaperVision and some commercial components from this site. If you have released a component or other code, you know that once an author encapsulates their flash there is no easy way to claim that some of your code might be there. </p>
<div class="si-left">
<div class="si-center">
You can rest assured that, for the hackers, you will always get some credit.
</div>
</div>
<li>So what can you do?</li>
<p>OpenSource is a great idea, and probably unavoidable, but for content creators, programmers and artist (they are all the same) this might be a hard road. </p>
<p>Ask yourself first: <i>Do I have to do something?</i></p>
<p>Flash Pirates can be more or less deceived. Protect your work to a minimum and you will be saving yourself from 95% of your work appropriation. Still worried about the rest 5%? It's futile. SWF Hackers can be as persistent and methodological as your browser is. If your content is open to be read and interpreted by a browser, it can be too be read and interpreted by a human given enough time.</p>
<div class="si-left">
<div class="si-center">
If they want it <b>bad enough</b><br />
they will have it.
</div>
</div>
<p>"Bad enough" is the key here, and I will be posting some tools and techniques to test how far those hackers are eager to go to open your code. But in the end, remember, you learned from other's code. Be generous and let other learn from you. Spend your time coding the next thing, not protecting what you've already finish!.</p>
<div class="si-left">
<div class="si-center">
Amen
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/04/17/actionscript-security-about-flash-pirates-and-swf-hackers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EasingAround tween equations Cheatsheet</title>
		<link>http://blog.invassive.com/2008/04/13/easingaround-cheatsheet/</link>
		<comments>http://blog.invassive.com/2008/04/13/easingaround-cheatsheet/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 15:30:45 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[EasingAround]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[around]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[easing]]></category>

		<category><![CDATA[tween]]></category>

		<category><![CDATA[Tweener]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=27</guid>
		<description><![CDATA[


Download
EasingAround.zip v.1.0.2




After discovering the cheatseet available for the Tweener API, I've adapted it to display the equations from the EasingAround classes.
It is helpful to compare this graphs with the ones from the original equations, so I've included the original cheatseet created by the Tweener team.





 
And this is the original cheatsheet from the Tweener project.








Tweener [...]]]></description>
			<content:encoded><![CDATA[<div class="download-left">
<div class="download-right">
<div class="download-center">
Download<br />
<a href="/downloads/EasingAround.zip">EasingAround.zip</a> v.1.0.2<br />
</a>
</div>
</div>
</div>
<p>After discovering the <a href="http://hosted.zeh.com.br/tweener/docs/en-us/misc/transitions.html" onclick="javascript:pageTracker._trackPageview ('/outbound/hosted.zeh.com.br');">cheatseet</a> available for the <a href="http://code.google.com/p/tweener/" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">Tweener API</a>, I've adapted it to display the equations from the <a href="http://blog.invassive.com/2008/04/11/easingaround-equations-simple-easing-back-and-forth/">EasingAround</a> classes.</p>
<p>It is helpful to compare this graphs with the ones from the original equations, so I've included the original cheatseet created by the Tweener team.</p>
<p>
<object type="application/x-shockwave-flash" width="550" height="620">
<param name="movie" value="http://blog.invassive.com/wp-content/uploads/2008/04/easingaroundcheatsheet.swf" />
<embed src="http://blog.invassive.com/wp-content/uploads/2008/04/easingaroundcheatsheet.swf" type="application/x-shockwave-flash" width="550" height="620" >
</object>
 </p>
<p>And this is the original cheatsheet from the Tweener project.</p>
<p>
<object type="application/x-shockwave-flash" width="550" height="620">
<param name="movie" value="http://blog.invassive.com/wp-content/uploads/2008/04/tweenertransitioncheatsheet.swf" />
<embed src="http://blog.invassive.com/wp-content/uploads/2008/04/tweenertransitioncheatsheet.swf" type="application/x-shockwave-flash" width="550" height="620" >
</object>
</p>
<div class="si-left">
<div class="si-center">
<a href="http://code.google.com/p/tweener/" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">Tweener</a> is a popular framework for creating tweens in actionscript 2 and 3.
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/04/13/easingaround-cheatsheet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EasingAround equations: simple easing back and forth</title>
		<link>http://blog.invassive.com/2008/04/11/easingaround-equations-simple-easing-back-and-forth/</link>
		<comments>http://blog.invassive.com/2008/04/11/easingaround-equations-simple-easing-back-and-forth/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 05:35:36 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[EasingAround]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[around]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[downloads]]></category>

		<category><![CDATA[easing]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[tween]]></category>

		<category><![CDATA[Tweener]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=22</guid>
		<description><![CDATA[

That should be "forth and back".


EasingAround is a class to simplify even more very basic tweens. The idea behind this class is to provide a means to create a tween that starts and ends at the same value.



Download
EasingAround.zip v.1.0.2




If your regular Easing function [from 1 to 10] behaves as follows:
   1 . . [...]]]></description>
			<content:encoded><![CDATA[<div class="si-left">
<div class="si-center">
That should be "forth and back".
</div>
</div>
<p>EasingAround is a class to simplify even more very basic tweens. The idea behind this class is to provide a means to create a tween that starts and ends at the same value.</p>
<div class="download-left">
<div class="download-right">
<div class="download-center">
Download<br />
<a href="/downloads/EasingAround.zip">EasingAround.zip</a> v.1.0.2<br />
</a>
</div>
</div>
</div>
<p>If your regular Easing function [from 1 to 10] behaves as follows:</p>
<pre><code>   1 . . . . 5 . . . . 10</code></pre>
<p>then, an EasingAround function with the same parameters behaves as:</p>
<pre><code>   1 . .5. . 10 . .5. . 1</code></pre>
<p>in the same amount of time.</p>
<p>These equations come in handy when we want to create some quick animation -like button rollovers- with the shortest code, without having to "chain" two consecutive tweens.</p>
<p>Example (rollover the icon or click the stage to tween):<br />

<object type="application/x-shockwave-flash" width="300" height="300">
<param name="movie" value="http://blog.invassive.com/wp-content/uploads/2008/04/easingaround.swf" />
<embed src="http://blog.invassive.com/wp-content/uploads/2008/04/easingaround.swf" type="application/x-shockwave-flash" width="300" height="300" >
</object>
</p>
<p>This is the code for the rollover tween:</p>
<div class="syntax_hilite">
<div id="actionscript-16">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">new</span> Tween<span style="color: #66cc66;">&#40;</span>box, <span style="color: #ff0000;">"scaleX"</span>, EasingAround.<span style="color: #006600;">easeInOutSine</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">0</span>.<span style="color: #cc66cc;">3</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #000000; font-weight: bold;">new</span> Tween<span style="color: #66cc66;">&#40;</span>box, <span style="color: #ff0000;">"scaleY"</span>, EasingAround.<span style="color: #006600;">easeInOutSine</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">0</span>.<span style="color: #cc66cc;">3</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span></div>
</div>
</div>
<p></p>
<p>This class contains only the easing equations and should be compatible with any AS3 tween engine out there (e.g. <a href="http://code.google.com/p/tweener/" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">Tweener</a>) or with code that uses <code>fl.motion.easing.*</code> or <code>fl.transitions.easing.*</code></p>
<p>The functions are named as follows:</p>
<pre><code>EasingAround.<b>easeNone</b>

EasingAround.<b>easeInQuad</b>
EasingAround.<b>easeOutQuad</b>
EasingAround.<b>easeInOutQuad</b>
EasingAround.<b>easeOutInQuad</b>

EasingAround.<b>easeInCubic</b>
EasingAround.<b>easeOutCubic</b>
EasingAround.<b>easeInOutCubic</b>
EasingAround.<b>easeOutInCubic</b>

etc...</code></pre>
<p>Note: EasingAround uses the original <a href="http://www.robertpenner.com/easing/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.robertpenner.com');">easing equations</a> by <a href="http://www.robertpenner.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.robertpenner.com');">Robert Penner</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2008/04/11/easingaround-equations-simple-easing-back-and-forth/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AIF Toolkit</title>
		<link>http://blog.invassive.com/2007/10/07/aif-toolkit/</link>
		<comments>http://blog.invassive.com/2007/10/07/aif-toolkit/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 07:11:54 +0000</pubDate>
		<dc:creator>Omar</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[Adobe Image Foundation]]></category>

		<category><![CDATA[AIF]]></category>

		<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://blog.invassive.com/?p=14</guid>
		<description><![CDATA[For those of you that have done some pixel shading programming, Adobe is bringing into Flash a very interesting project:
Adobe Image Foundation (AIF) Toolkit preview , codenamed Hydra.
Now, if only my card was supported...
]]></description>
			<content:encoded><![CDATA[<p>For those of you that have done some pixel shading programming, Adobe is bringing into Flash a very interesting project:</p>
<p><a href="http://labs.adobe.com/wiki/index.php/AIF_Toolkit" onclick="javascript:pageTracker._trackPageview ('/outbound/labs.adobe.com');">Adobe Image Foundation (AIF) Toolkit preview </a>, codenamed Hydra.</p>
<p>Now, if only my card was supported...</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.invassive.com/2007/10/07/aif-toolkit/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

