<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>es4 &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/es4/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sat, 19 Jun 2010 16:26:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>es4 &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ActionScript 3 import alias! Where is it?</title>
		<link>https://blog.sephiroth.it/2007/03/16/actionscript-3-import-alias-where-is-it/</link>
					<comments>https://blog.sephiroth.it/2007/03/16/actionscript-3-import-alias-where-is-it/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 16 Mar 2007 09:15:30 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[ecma]]></category>
		<category><![CDATA[es4]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=205</guid>

					<description><![CDATA[<p>working with Flex2/ActionScript 3 sometimes you may find that in different libraries there as classes (always in different packages) with the same name.<br /> Ok, no problem, in fact I remember I've read something in the as3 documentation about the import alias directive..<br /> A quick google search and in fact I come to this page: <a target="_blank" href="http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm?href=as3_specification106.html">http://livedocs.adobe.com/...?href=as3_specification106.html</a></p><p>Cool, I thought. Then I applied the directive in my as3 project (because two 'Location' classes were giving me problems in flex) but when clicked on compile it throws me a syntax error&#160; :(<br /> Strange, it's described in the documentation, but dont work!.. It's also described in the <a title="ES4 specifications" target="_blank" href="http://developer.mozilla.org/es4/spec/chapter_11_packages.html">es4 specs</a>.<br /> fortunately colin gives me the solution: &#34;that single name aliases were indeed dropped for  AS3. even if the plan is that they will go into the ES4 standard,  and if that occurs, they will be added to ActionScript eventually.&#34;<br /> I hope it will happen soon!&#160;</p><p><strong>IMHO</strong>, I would prefer a syntax like the python one about the import alias: <a title="python import directive" target="_blank" href="http://docs.python.org/ref/import.html">http://docs.python.org/ref/import.html</a></p><p>Something like: <strong>import os as somethingelse</strong>, but it's just a stylistic issue for me...</p><p>&#160;</p>
]]></description>
										<content:encoded><![CDATA[<p>working with Flex2/ActionScript 3 sometimes you may find that in different libraries there as classes (always in different packages) with the same name.<br />
Ok, no problem, in fact I remember I&#8217;ve read something in the as3 documentation about the import alias directive..<br />
A quick google search and in fact I come to this page: <a href="http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm?href=as3_specification106.html" target="_blank">http://livedocs.adobe.com/&#8230;?href=as3_specification106.html</a></p>
<p>Cool, I thought. Then I applied the directive in my as3 project (because two &#8216;Location&#8217; classes were giving me problems in flex) but when clicked on compile it throws me a syntax error  🙁<br />
Strange, it&#8217;s described in the documentation, but dont work!.. It&#8217;s also described in the <a title="ES4 specifications" href="http://developer.mozilla.org/es4/spec/chapter_11_packages.html" target="_blank">es4 specs</a>.<br />
Fortunately Colin gives me an answer: &#8220;&#8230; single name aliases were indeed dropped for  AS3. even if the plan is that they will go into the ES4 standard,  and if that occurs, they will be added to ActionScript eventually.&#8221;<br />
I hope it will happen soon!</p>
<p><strong>IMHO</strong>, I would prefer a syntax like the python one about the import alias: <a title="python import directive" href="http://docs.python.org/ref/import.html" target="_blank">http://docs.python.org/ref/import.html</a></p>
<p>Something like: <strong>import os as somethingelse</strong>, but it&#8217;s just a stylistic issue for me&#8230;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/03/16/actionscript-3-import-alias-where-is-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
