<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>FLASH</title>
	
	<link>http://flash.lillegutt.com</link>
	<description>- for developers and designers</description>
	<lastBuildDate>Wed, 27 Jan 2010 23:24:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/lillegutt/qbIF" /><feedburner:info uri="lillegutt/qbif" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Flash as video container getting political competition</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/i7Zc8bF73TQ/</link>
		<comments>http://flash.lillegutt.com/?p=105#comments</comments>
		<pubDate>Wed, 27 Jan 2010 23:14:25 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[flash container]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[html5 flash]]></category>
		<category><![CDATA[video tag]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=105</guid>
		<description><![CDATA[Video support in browsers has been even better with the new HTML5 standard. They added a video tag for playing one or a list of videos which will give flash as video container some competition. I&#8217;ve allways looked at flash to be the only good solution for presenting video on web but with the new [...]]]></description>
			<content:encoded><![CDATA[<p>Video support in browsers has been even better with the new HTML5 standard. They added a video tag for playing one or a list of videos which will give flash as video container some competition. I&#8217;ve allways looked at flash to be the only good solution for presenting video on web but with the new tag the developers get the possibility to use the browsers video codec to render videos.</p>
<p>Read the <a href="http://diveintohtml5.org/video.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/diveintohtml5.org');">great post from Mark Pilgrim</a> at O&#8217;Reilly Media presenting the use of the video tag, explaining the browsers supported codecs and applications that can convert your videos.</p>
<p>Also have a look at <a href="http://theflashblog.com/?p=1698" onclick="javascript:pageTracker._trackPageview('/outbound/article/theflashblog.com');">Lee Brimelows post</a> on this matter where he states and I quote: &#8220;..Flash video will continue to evolve&#8221;</p>
<p>I really hope that HTML5 does not make a negative impact on peoples intrest in flash or makes flash a non-desireble video container. As Lee Brimelow states, the flash library gives the opportunities like embedded cue points and alpha channels. Remember that there are a lot of good free open source flash video solutions out there</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/i7Zc8bF73TQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=105</feedburner:origLink></item>
		<item>
		<title>Design repainted</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/D2gq1pR_JJY/</link>
		<comments>http://flash.lillegutt.com/?p=82#comments</comments>
		<pubDate>Tue, 12 May 2009 21:31:29 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=82</guid>
		<description><![CDATA[
flash.lillegutt.com has been redesigned with a fresh new purple design which I cooked up late this weekend. I was looking for a more professional look to stay up to date with the current standard, but
I´m not sure I reached the goal. It would be super nice if you guys could give me some hints or [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://flash.lillegutt.com/wp-content/freshpurple.png" alt="freshpurple" align="left" /></p>
<p>flash.lillegutt.com has been redesigned with a fresh new purple design which I cooked up late this weekend. I was looking for a more professional look to stay up to date with the current standard, but</p>
<p>I´m not sure I reached the goal. It would be super nice if you guys could give me some hints or pointers on design and/or changes you see.</p>
<p>Any positive remarks is much appreciated!</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/D2gq1pR_JJY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=82</feedburner:origLink></item>
		<item>
		<title>Editable Multi-TextFields container</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/gQaGLZEUmYM/</link>
		<comments>http://flash.lillegutt.com/?p=79#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:20:00 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[gskinner]]></category>
		<category><![CDATA[selecting in textfields]]></category>
		<category><![CDATA[textfield columns]]></category>
		<category><![CDATA[textfields]]></category>
		<category><![CDATA[textflowpro]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=79</guid>
		<description><![CDATA[gskinner has reveiled a library that lets you create several textfields and make them &#8220;interact as one&#8221; when selecting and/or changing the aspect height. Even though he describes his code to be bugsy and not to the quality standard of what he wants, it seems to work great. Think about the areas where flash has [...]]]></description>
			<content:encoded><![CDATA[<p>gskinner has reveiled a library that lets you create several textfields and make them &#8220;interact as one&#8221; when selecting and/or changing the aspect height. Even though he describes his code to be bugsy and not to the quality standard of what he wants, it seems to work great. Think about the areas where flash has been lacking when talking about text on the web. When Google and Adobe for many months ago started working out the little hicks on searching inside flash content, the <span><a href="http://www.gskinner.com/blog/archives/2009/01/editable_multif.html" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gskinner.com');">TextFlowPro</a> is a great supplement to the flash world. Hands in the air for gskinner. Head on over to <a href="http://www.gskinner.com/blog/archives/2009/01/editable_multif.html" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gskinner.com');">gskinner&#8217;s blog and get your hands on the source code</a>.</span></p>
<p align="center"><a href="http://flash.lillegutt.com/?attachment_id=80" rel="attachment wp-att-80" title="TextFlowPro" ><img src="http://flash.lillegutt.com/wp-content/textflowpro.JPG" alt="TextFlowPro" /></a></p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/gQaGLZEUmYM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=79</feedburner:origLink></item>
		<item>
		<title>FLARToolKit(as3) with Papervision3D = Awesome application</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/lupHQXLB-_g/</link>
		<comments>http://flash.lillegutt.com/?p=78#comments</comments>
		<pubDate>Sun, 01 Feb 2009 22:58:18 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[ARToolKit]]></category>
		<category><![CDATA[FLARToolKit]]></category>
		<category><![CDATA[MAX Japan]]></category>
		<category><![CDATA[NyARToolKit]]></category>
		<category><![CDATA[Spark Project]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=78</guid>
		<description><![CDATA[I just found a demo on Ryan Stewart&#8217;s blog from MAX in Japan about a Augmented Reality application library ported to actionscript 3. Really impressive stuff. FLARToolKit is a library in the SPARK Project and is basically a shape recognizer with the video camera as input. The toolkit is ported from the java based NyARToolKit [...]]]></description>
			<content:encoded><![CDATA[<p>I just found a demo on <a href="http://blog.digitalbackcountry.com/2009/02/awesome-flash-demo-from-japan/" onclick="javascript:pageTracker._trackPageview('/outbound/article/blog.digitalbackcountry.com');">Ryan Stewart&#8217;s blog</a> from MAX in Japan about a Augmented Reality application library ported to actionscript 3. Really impressive stuff. FLARToolKit is a library in the SPARK Project and is basically a shape recognizer with the video camera as input. The toolkit is ported from the java based <a href="http://nyatla.jp/nyartoolkit/wiki/index.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/nyatla.jp');">NyARToolKit</a> which accordingly to the <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.libspark.org');">Spark Prokject website</a> executes much faster then the original C version.</p>
<p align="center"><object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3039134&#038;server=vimeo.com&#038;show_title=1&#038;show_byline=1&#038;show_portrait=0&#038;color=&#038;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3039134&#038;server=vimeo.com&#038;show_title=1&#038;show_byline=1&#038;show_portrait=0&#038;color=&#038;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object><br /><a href="http://vimeo.com/3039134" onclick="javascript:pageTracker._trackPageview('/outbound/article/vimeo.com');">FLARToolKit Demo</a> from <a href="http://vimeo.com/user442597" onclick="javascript:pageTracker._trackPageview('/outbound/article/vimeo.com');">Ryan Stewart</a> on <a href="http://vimeo.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/vimeo.com');">Vimeo</a>.</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/lupHQXLB-_g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=78</feedburner:origLink></item>
		<item>
		<title>Creating a product viewer</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/4xcI1jFwPZE/</link>
		<comments>http://flash.lillegutt.com/?p=76#comments</comments>
		<pubDate>Sun, 26 Oct 2008 23:44:13 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=76</guid>
		<description><![CDATA[When you want to create an animation to view your products, the flash player can give you a dynamic and excellent approach to achieving this. This little tutorial will show you the basics of creating an XML-based product viewer which can be reused by changing the content of the XML(of course). I refer to my [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://flash.lillegutt.com/wp-content/phone_flash_selector.png" alt="flash phone selector" align="left" height="108" width="84" />When you want to create an animation to view your products, the flash player can give you a dynamic and excellent approach to achieving this. This little tutorial will show you the basics of creating an XML-based product viewer which can be reused by changing the content of the XML(of course). I refer to my post <a href="http://flash.lillegutt.com//?p=55" target="_blank" >Loading external resources in Actionscript 3</a> in order to load images and <a href="http://flash.lillegutt.com//?p=63" target="_blank" >How to load XML in Actionscript 3</a> before reading further. Below you will see the final result of the product viewer and the code to complete this tutorial.<span id="more-76"></span></p>
<p>Please <a href="http://flash.lillegutt.com/wp-content/ex3.zip" onclick="javascript:pageTracker._trackPageview('/downloadsflash./wp-content/ex3.zip');">download the full result</a> to see the usage of components/symbols in the library.</p>

<object	type="application/x-shockwave-flash"
			data="http://flash.lillegutt.com/wp-content/uploads/mobile_selector_xml/mobile_selector.swf"
			width="650"
			height="400">
	<param name="movie" value="http://flash.lillegutt.com/wp-content/uploads/mobile_selector_xml/mobile_selector.swf" />
</object>
<p>The XML-structure is as follows:</p>
<pre name="code" class="csharp">

package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.xml.XMLDocument;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.MouseEvent;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import caurina.transitions.Tweener;

public class MobileSelector extends MovieClip
{
private var imageHolder:Sprite;
private static var smallScale:Number 	= 0.7;
private static var normalScale:Number = 1.0;
private var num:int = 0;
private var _selected:int = 0;
private var currentSelected:Sprite;
private var leftButton:LeftButton;
private var rightButton:RightButton;
private var loader:URLLoader;
private var items:Array;

public function MobileSelector()
{
//create the holder for images and add images
imageHolder = new Sprite();

items = new Array();
this.addEventListener(&quot;onComplete&quot;, onComplete);

loader = new URLLoader();
loader.load(new URLRequest(&quot;http://flash.lillegutt.com/wp-content/uploads/mobile_selector_xml/SE_mobile.xml&quot;));
loader.addEventListener(Event.COMPLETE, handleXMLLoaded);

imageHolder.y = 50;
imageHolder.alpha = 0;
addChild(imageHolder);

//prepare and add the left button
leftButton = new LeftButton();
leftButton.x = 10;
leftButton.y = (stage.stageHeight/2) - (leftButton.height/2);
leftButton.addEventListener(MouseEvent.CLICK, previous);
leftButton.alpha = 0.5;
addChild(leftButton);

//prepare and add the right button
rightButton = new RightButton();
rightButton.x = stage.stageWidth - rightButton.width - 10;
rightButton.y = (stage.stageHeight/2) - (leftButton.height/2);
rightButton.addEventListener(MouseEvent.CLICK, next);
addChild(rightButton);

//add keyboard events to stage
stage.addEventListener(KeyboardEvent.KEY_UP,checkKeyboardEvent);
}

public function onComplete(e:Event):void
{
setFocusedElement();
}

public function handleXMLLoaded(e:Event):void
{
var xml:XMLDocument = new XMLDocument();
xml.ignoreWhite = true;
xml.parseXML(loader.data);
for(var i:int = 0; i &lt; xml.firstChild.childNodes.length; i++){
var o:Object = xml.firstChild.childNodes[i].attributes;
var item = new MobileItem(o.image, o.name, o.title, o.description);
if(i == 0)
item.addEventListener(&quot;onComplete&quot;, onComplete);
items.push(item);
addItemToStage(items[i], i*800, -1);
}

}

/*
* Animate to the next focused element
*/
public function setFocusedElement(){
if(currentSelected == null) {
currentSelected = imageHolder.getChildAt(_selected) as Sprite;
Tweener.addTween(currentSelected, {alpha:1, time:1, transition:&quot;easeOut&quot;});
}
else {
//Tweener.addTween(currentSelected, {scaleX:smallScale, scaleY:smallScale, time:1, transition:&quot;easeOut&quot;});
}
currentSelected = imageHolder.getChildAt(_selected) as Sprite;

Tweener.addTween(imageHolder,
{
x:(stage.stageWidth/2) - currentSelected.x - (currentSelected.width/2) ,
alpha:1,
time:1,
transition:&quot;easeIn&quot;
});
if(_selected == num-1)
rightButton.alpha = 0.3;
else if(_selected == 0)
leftButton.alpha = 0.3;
else
{
leftButton.alpha = 1;
rightButton.alpha = 1;
}
}

/*
* Handle the received keyboard event
*/
public function checkKeyboardEvent(e:KeyboardEvent) :void
{
if(e.keyCode == Keyboard.LEFT)
previous();
else if(e.keyCode == Keyboard.RIGHT)
next();
}

public function next(e:MouseEvent = null) :void
{
if(_selected+1 == num)
return;
_selected++;
setFocusedElement();
}
public function previous(e:MouseEvent = null) :void
{
if(_selected-1 &lt; 0)
return;
_selected--;
setFocusedElement();
}

private function addItemToStage(item:MobileItem, x:Number, y:Number):void
{
var s:Sprite = item.getImage();
//get the ContentHolder from the library, which I created using design view
var info:ContentHolder = new ContentHolder();
info.x = 200;
//set the dynamic textfield with the content
info._name.text = item.getName();
//set the dynamic textfield with the content
info._title.text = item.getTitle();
//set the dynamic textfield with the content
info._description.text = item.getDescription();
s.addChild(info);
s.x = x;
s.y = y;
imageHolder.addChild(s);
num++;
}
}
}
</pre>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/4xcI1jFwPZE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=76</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=76</feedburner:origLink></item>
		<item>
		<title>Flash Player 10 finally released</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/a7_-qz1gI9M/</link>
		<comments>http://flash.lillegutt.com/?p=74#comments</comments>
		<pubDate>Tue, 21 Oct 2008 19:30:27 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash player 10]]></category>
		<category><![CDATA[flash player released]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=74</guid>
		<description><![CDATA[
Flash player 10 has finally been released with new and funky stuff. Here is a summery of the new top features from on of their release pages:

 3D effects
 Custum filters and effects
 Advanced text support
 Dynamic sound generation
 Vector data type
 Dynamic streaming
 Speex audio codec

Really looking forward to getting the new Flash CS4 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://flash.lillegutt.com/wp-content/icon_flash_lg.png" alt="icon_flash_lg.png" align="right" /></p>
<p>Flash player 10 has finally been released with new and funky stuff. Here is a summery of the new top features from on of their <a href="http://www.adobe.com/products/flashplayer/features/?promoid=DXLUF" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.adobe.com');">release pages</a>:</p>
<ul>
<li> 3D effects</li>
<li> Custum filters and effects</li>
<li> Advanced text support</li>
<li> Dynamic sound generation</li>
<li> Vector data type</li>
<li> Dynamic streaming</li>
<li> Speex audio codec</li>
</ul>
<p>Really looking forward to getting the new Flash CS4 in the mail soon&#8230;</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/a7_-qz1gI9M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=74</feedburner:origLink></item>
		<item>
		<title>Error handling in actionscript 3</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/HvAs8Vn69HQ/</link>
		<comments>http://flash.lillegutt.com/?p=72#comments</comments>
		<pubDate>Wed, 15 Oct 2008 18:58:30 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[1009 Cannot access a property]]></category>
		<category><![CDATA[1046: Type was not found or was not]]></category>
		<category><![CDATA[as3 error]]></category>
		<category><![CDATA[compile-time constant]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[runtime error as3]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=72</guid>
		<description><![CDATA[When writing actionscript you allways forget to add some lines of code which are necessary on either syntax level or runtime level. Once you get the hand of it, you will understand what went wrong even before it happened. Sometimes you can struggle with the one-liner for many hours when the error only was an [...]]]></description>
			<content:encoded><![CDATA[<p>When writing actionscript you allways forget to add some lines of code which are necessary on either syntax level or runtime level. Once you get the hand of it, you will understand what went wrong even before it happened. Sometimes you can struggle with the one-liner for many hours when the error only was an error so simple. Thats why this little post could come handy. If you should experience errors not described below, please post a comment and I´ll add it to the post. Hope this will help you a bit when pulling your hair.</p>
<p><strong>1009: Cannot access a property or method of a null object reference.</strong><br />
This is a runtime error stating that an object has not been initialized. You can find where the error occurred if you look at the output below the error line. Here is an example of what you might experience:</p>
<blockquote><p>TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
at ThumbHolder()<br />
at ThumbsContainer()<span id="more-72"></span><br />
at index/init()<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at XMLParser/onComplete()<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at flash.net::URLLoader/onComplete()</p></blockquote>
<p>If you look at the second line, that states which method the error is located. You are trying to access properties in a variable that is not initialized. Try initializing the variable you are using. Example:</p>
<pre name="code" class="csharp">

public function ThumbHolder() : void
{
yourGlobalVariable = new ObjectOfYourChoice();
...
</pre>
<p><strong>1046: Type was not found or was not a compile-time constant: &#8220;SomeClass&#8221;.</strong><br />
This is an import error. The class &#8220;SomeClass&#8221; is undefined for the current context. Try importing the class on top of the class like this:</p>
<pre name="code" class="csharp">

package
{
import thepackage.subpackage.SomeClass;
...
</pre>
<p><strong>1065: Variable SomeClass is not defined. </strong><br />
This is a runtime error displayed in the output window.</p>
<blockquote><p>ReferenceError: Error #1065: Variable ThumbsContainer is not defined.</p></blockquote>
<p>The error states that there is access permission denied on a &#8220;Variable SomeClass&#8221;. This refers often to the class SomeClass rather than a variable. Check the class SomeClass and see if the class does have an access specifier(public/private/internal). If the class does not have a access specifier this error will occur because some code can´t access the class. If no access specifier is not defined, the class is default private. This means no class can use the &#8220;SomeClass&#8221; class. Try putting &#8220;public&#8221; in front of class and recompile/rebuild like this:</p>
<pre name="code" class="csharp">

/* before */
package
{
class SomeClass
...
/* after */
package
{
public class SomeClass
...
</pre>
<p><strong>1119: Access of possibly undefined property heigh through a reference with static type somepackage.subpackage.SomeClass.</strong><br />
This is a syntax error. This error line states that you are trying to access a property &#8220;<em>heigh</em>&#8221; from the SomeClass. SomeClass does not have a property called heigh. Have a look at the source column in the error console. The source column states what line of code the syntax error is located. If the SomeClass actually where Sprite or MovieClip, the property should have been height and not heigh.Try to change the line to the actual property and recompile/rebuild.</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/HvAs8Vn69HQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=72</feedburner:origLink></item>
		<item>
		<title>Creating symbols and associative classes</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/MLeXKuANJD0/</link>
		<comments>http://flash.lillegutt.com/?p=67#comments</comments>
		<pubDate>Tue, 14 Oct 2008 21:09:52 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[as3 symbol class]]></category>
		<category><![CDATA[associative symbol class]]></category>
		<category><![CDATA[class symbol]]></category>
		<category><![CDATA[symbol class]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=67</guid>
		<description><![CDATA[When you create symbols in Flash CS3 and export them to Actionscript in the standard way, Flash generates a class representing the symbol. This is great when you want to access the symbol from the code. Every symbol you have created and is located in the library view can be exported to actionscript. If this [...]]]></description>
			<content:encoded><![CDATA[<p>When you create symbols in Flash CS3 and export them to Actionscript in the standard way, Flash generates a class representing the symbol. This is great when you want to access the symbol from the code. Every symbol you have created and is located in the library view can be exported to actionscript. If this is new to you, please recap on the article <a href="http://flash.lillegutt.com/?p=37" target="_blank" >Understanding the use of designer objects in seperate as-file(class)</a>.</p>
<p style="text-align: center"><img src="http://flash.lillegutt.com/wp-content/linkage_ass.png" alt="linkage_associative_class2" height="277" width="649" /></p>
<p> When you want to manipulate the symbol at runtime you would want to create your own class for the symbol. <span id="more-67"></span>When you press &#8220;Export for ActionScript&#8221;, the class name is generated from the name of the symbol. On the right side of the Class input field, there is a green &#8220;check&#8221; and an edit symbol. If you press the edit symbol, this popup will appear:</p>
<p><img src="http://flash.lillegutt.com/wp-content/swf_generated.png" alt="swf_generated" /></p>
<p>Press OK and Cancel.</p>
<p>Now, create a new Actionscript file an name it the same as your symbol e.x. &#8220;ThumbHolder&#8221;. Try to &#8220;Export for Actionscript&#8221; again press the edit button on the right side of the class input field. It opens up the class you have created. Good! If the class does not appear, your name of the class in the input field is not the same as the actual class.</p>
<p>Accessing objects in your symbol is now the easiest part. If you have created a textfield with the instance name &#8220;titleBar&#8221;, the only line of code to set the content in the textfield is this:</p>
<pre name="code" class="csharp">

titleBar.text = &quot;This is the content of the textfield titleBar&quot;;
</pre>
<p>The class representing the ThumbHolder will then be the following:</p>
<pre name="code" class="csharp">

package
{
import flash.display.MovieClip;
public class ThumbHolder extends MovieClip
{
public function ThumbHolder()
{
titleBar.text = &quot;This is the content of the textfield titleBar&quot;;
}
}
}
</pre>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/MLeXKuANJD0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=67</feedburner:origLink></item>
		<item>
		<title>How to load xml in Actionscript 3</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/SVZT2wgAQKY/</link>
		<comments>http://flash.lillegutt.com/?p=63#comments</comments>
		<pubDate>Sun, 21 Sep 2008 12:44:53 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Students]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[load xml flash]]></category>
		<category><![CDATA[xml as3]]></category>
		<category><![CDATA[xml flash]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=63</guid>
		<description><![CDATA[If you have content stored in a database or in xml that is suitable for presenting in flash, then XML is one of many ways to give flash the content. Information stored in XML can be similar to this example:


&#60;mobiles&#62;
&#60;mobile image=&#34;images/C905_product_quality_image_1.png&#34; name=&#34;C905&#34; /&#62;
&#60;mobile image=&#34;images/G502_product_quality_image_1.png&#34; name=&#34;G502&#34; /&#62;
&#60;mobile image=&#34;images/T650i_product_quality_image_1.png&#34; name=&#34;T650i&#34; /&#62;
&#60;mobile image=&#34;images/W302_product_quality_image_1.png&#34; name=&#34;W302&#34; /&#62;
&#60;mobile image=&#34;images/W350_product_quality_image_1.png&#34; name=&#34;W350&#34; /&#62;
&#60;mobile [...]]]></description>
			<content:encoded><![CDATA[<p>If you have content stored in a database or in xml that is suitable for presenting in flash, then XML is one of many ways to give flash the content. Information stored in XML can be similar to this example:</p>
<pre name="code" class="xml">

&lt;mobiles&gt;
&lt;mobile image=&quot;images/C905_product_quality_image_1.png&quot; name=&quot;C905&quot; /&gt;
&lt;mobile image=&quot;images/G502_product_quality_image_1.png&quot; name=&quot;G502&quot; /&gt;
&lt;mobile image=&quot;images/T650i_product_quality_image_1.png&quot; name=&quot;T650i&quot; /&gt;
&lt;mobile image=&quot;images/W302_product_quality_image_1.png&quot; name=&quot;W302&quot; /&gt;
&lt;mobile image=&quot;images/W350_product_quality_image_1.png&quot; name=&quot;W350&quot; /&gt;
&lt;mobile image=&quot;images/W902_product_quality_image_1.png&quot; name=&quot;W905&quot; /&gt;
&lt;mobile image=&quot;images/X1_product_quality_image_1.png&quot; name=&quot;X1&quot; /&gt;
&lt;mobile image=&quot;images/z770i_product_quality_image_1.png&quot; name=&quot;Z770i&quot; /&gt;
&lt;/mobiles&gt;
</pre>
<p>In order to get the XML content in flash you have to create a URLLoader and load the url where the XML is located. Here is an example how to get the attributes in the mobile node<span id="more-63"></span>:</p>
<pre name="code" class="csharp">

//create a array holding the items
var items:Array = new Array();
//create the urlloader object
var loader:URLLoader = new URLLoader();
//set the loaders listener function that gets the event when the xml is loaded
loader.addEventListener(Event.COMPLETE, handleXMLLoaded);
//load the xml file from it's location
loader.load(new URLRequest(&quot;http://yourdomain.com/yourdataholder.xml&quot;));

//the listener that gets the load complete event
function handleXMLLoaded(e:Event):void
{
//create a new flash.xml.XMLDocument object
var xml:XMLDocument = new XMLDocument();
//ignore the white spaces in the file
xml.ignoreWhite = true;
//parse the content and create a xml structure in the XMLDocument
xml.parseXML(loader.data);
//firstchild represents first node, childNodes represent the nodes in the firstChild
for(var i:int = 0; i &lt; xml.firstChild.childNodes.length; i++){
var o:Object = xml.firstChild.childNodes[i].attributes;
//creating a new item of MobileItem with the image url and name received from xml
var item = new MobileItem(o.image, o.name);
//pushing the item to the items array holding the mobiles
items.push(item);
}
}
</pre>
<p>You may want to create a class representing the content in flash like the code above includes. In this example you should create a class called MobileItem with the attributes image and name. Here is a class representing the mobile object:</p>
<pre name="code" class="csharp">

package
{
public class MobileItem extends Sprite
{
private var _imageUrl:String = &quot;&quot;;
private var _name:String = &quot;&quot;;
private var _image:Sprite;

public function MobileItem(imageUrl:String, name:String)
{
_imageUrl = imageUrl;
_name = name;
//use the LoadExternal class from http://flash.lillegutt.com/?p=55 to load the image, remember to remove the '//'
//_image = new LoadExternal(imageURL);
}

public function getImage() : Sprite
{
return _image;
}
public function getName() : String
{
return _name;
}
}
}
</pre>
<p>There you go. Have fun!</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/SVZT2wgAQKY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=63</feedburner:origLink></item>
		<item>
		<title>AMFPHP – Server interaction with ActionScript</title>
		<link>http://feedproxy.google.com/~r/lillegutt/qbIF/~3/Ah941WQn0l0/</link>
		<comments>http://flash.lillegutt.com/?p=56#comments</comments>
		<pubDate>Wed, 20 Aug 2008 23:55:59 +0000</pubDate>
		<dc:creator>lillegutt</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[actionscript server]]></category>
		<category><![CDATA[amf]]></category>
		<category><![CDATA[data as3]]></category>
		<category><![CDATA[interaction as3]]></category>
		<category><![CDATA[server as3]]></category>

		<guid isPermaLink="false">http://flash.lillegutt.com/?p=56</guid>
		<description><![CDATA[All of the blogs i follow concerning flash, actionscript and future web technologies have now looked into AMFPHP so why should`nt I. AMFPHP is a open source implementation of the Actionscript Message Format(AMF). This message format lets you send native types and object to and from a server because the AMF allows for binary serialization. [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><a href="http://flash.lillegutt.com/?p=56" title="http://flash.lillegutt.com/?p=56" ><img src="http://flash.lillegutt.com/wp-content/amfphp_logo.gif" alt="AMFPHP logo" align="right" height="66" width="224" /></a>All of the blogs i follow concerning flash, actionscript and future web technologies have now looked into AMFPHP so why should`nt I. AMFPHP is a open source implementation of the Actionscript Message Format(AMF). This message format lets you send native types and object to and from a server because the AMF allows for binary serialization. What this means is that you can have a folder on your server with AMF installed, create some PHP-files with your request methods and your server is done. The only thing now is to write a few lines of actionscript to connect to your server and your server interaction is done.</p>
<p>I will be back to write a tutorial on this matter so you hold on&#8230; or just go to <a href="http://www.gotoandlearn.com/player.php?id=79" title="http://www.gotoandlearn.com/player.php?id=79" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gotoandlearn.com');">Lee Brimelow`s second part of his AMFPHP video tutorial</a>. Also check out <a href="http://www.amfphp.org/" target="_blank" title="http://www.amfphp.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.amfphp.org');">their site</a>.</p>
<p>Have fun!</p>
<img src="http://feeds.feedburner.com/~r/lillegutt/qbIF/~4/Ah941WQn0l0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.lillegutt.com/?feed=rss2&amp;p=56</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.lillegutt.com/?p=56</feedburner:origLink></item>
	</channel>
</rss>
