<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Webdevils.com Forum &#187; Recent Posts</title>
		<link>http://www.webdevils.com/forum/</link>
		<description>Webdevils.com Forum &raquo; Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sat, 31 Jul 2010 10:52:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.webdevils.com/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.webdevils.com/forum/rss.php" rel="self" type="application/rss+xml" />

		<item>
			<title>ol8482 on "ImageLoader"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=67#post-185</link>
			<pubDate>Thu, 08 Apr 2010 00:46:40 +0000</pubDate>
			<dc:creator>ol8482</dc:creator>
			<guid isPermaLink="false">185@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I've got another question for you.  I'm using your ImageLoader class to create a scrolling image bar.  All of the thumbnail images are loaded dynamically and turned into buttons.  Right now there is an event listener assigned to all of the buttons, but it's the same for each one.  &#60;/p&#62;
&#60;p&#62;My question is, how do I assign unique listeners to each button?  Or, how would I assign different functions to each button?  My goal is to have each thumbnail image load content that is affiliated with that thumbnail.  And I'm stumped on how to set up listeners for each one since they have been loaded dynamically.&#60;br /&#62;
Your help is always appreciated.  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ol8482 on "Load_Content class"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=66#post-184</link>
			<pubDate>Wed, 17 Mar 2010 00:53:50 +0000</pubDate>
			<dc:creator>ol8482</dc:creator>
			<guid isPermaLink="false">184@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Mitch,&#60;/p&#62;
&#60;p&#62;Thanks again for your help in the workshop today.  I've been losing my mind over this issue and as always it was the simplest thing to fix.  If anyone is interested here's how the problem was solved.  &#60;/p&#62;
&#60;p&#62;You just have to add an ADDED_TO_STAGE event prior to the Load_Content class initializing (correct me if I'm wrong), but it's done like this:&#60;/p&#62;
&#60;p&#62;package {&#60;br /&#62;
	import flash.display.*;&#60;br /&#62;
	import flash.events.*;&#60;br /&#62;
	import com.webdevils.Load_Content;&#60;/p&#62;
&#60;p&#62;public class Main extends MovieClip {&#60;/p&#62;
&#60;p&#62;private var main_lc:Load_Content;&#60;/p&#62;
&#60;p&#62;public function Main() {&#60;/p&#62;
&#60;p&#62;addEventListener( Event.ADDED_TO_STAGE, on_stage );&#60;/p&#62;
&#60;p&#62;}//end Main&#60;/p&#62;
&#60;p&#62;private function on_stage( e:Event ):void {&#60;/p&#62;
&#60;p&#62;stage.scaleMode=StageScaleMode.NO_SCALE;&#60;br /&#62;
stage.align=StageAlign.TOP_LEFT;&#60;/p&#62;
&#60;p&#62;var open_obj={x:stage.stageWidth * .5 - 384, y:stage.stageHeight * .5 - 216, z: 0, alpha:1, time:2, transition:&#34;easeIn&#34;};&#60;/p&#62;
&#60;p&#62;var exit_obj={x:stage.stageWidth - stage.stageWidth -8000, y:0, time: 2, transition: &#34;easeInQuart&#34;};&#60;/p&#62;
&#60;p&#62;var start_obj={x:stage.stageWidth * .5 - 384, y:stage.stageHeight * .5 - 216, alpha: 0};&#60;/p&#62;
&#60;p&#62;main_lc=new Load_Content(mycontent_mc,open_obj,exit_obj,start_obj);&#60;/p&#62;
&#60;p&#62;main_lc.add_content(&#34;image.png&#34;);&#60;/p&#62;
&#60;p&#62;}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ol8482 on "Load_Content class"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=66#post-183</link>
			<pubDate>Sat, 13 Mar 2010 01:45:52 +0000</pubDate>
			<dc:creator>ol8482</dc:creator>
			<guid isPermaLink="false">183@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi Mitch,  I've got another question for you.  I'm building a site where I'm using two instances of the Load_Content class.  One instance is to load the individual pages of the site.  The other instance is to load gallery content into the gallery page.  The reason I'm using Load_Content instead of Content_Manager is because I'm loading a lot of video and trying to keep the file size down by not embedding all of the video's into the FLA library.  I'm loading the video's as external SWF's where I have imported the video's automatically through File/Import/Import Video.  &#60;/p&#62;
&#60;p&#62;When I load the gallery page into the site, I get error #1009: Cannot access a method or property of a null object reference.  I'm sure you're familiar with this one...&#60;/p&#62;
&#60;p&#62;First question, can I even use two instances of the Load_Content class?  The reason I ask is because when I get rid of the Load_Content instance on the gallery page the error disappears.&#60;/p&#62;
&#60;p&#62;If it is ok to use two instances of Load_Content, what do I need to instantiate in order to get the error to disappear?  &#60;/p&#62;
&#60;p&#62;If it's a bad idea to use Load_Content twice, can you give me any suggestions on how to build a video gallery where I'm loading the video externally and having them stream from the server?  This might be too much to explain but any direction you can provide is much appreciated.  Thanks again for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ol8482 on "Plane rotation limit"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=65#post-182</link>
			<pubDate>Sat, 13 Mar 2010 01:24:21 +0000</pubDate>
			<dc:creator>ol8482</dc:creator>
			<guid isPermaLink="false">182@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Thanks for your reply, I believe I've tried this already using an EXIT_FRAME event.  I'll give it another shot to see if I can get it to work.  Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Plane rotation limit"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=65#post-181</link>
			<pubDate>Fri, 12 Mar 2010 03:46:37 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">181@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;You need to check for when the mouse leaves the stage and tell the clip to stop or to do something else. Otherwise Flash will think the cursor is at the limit of it's motion and your clip spins accordingly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ol8482 on "Plane rotation limit"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=65#post-180</link>
			<pubDate>Wed, 03 Mar 2010 02:39:35 +0000</pubDate>
			<dc:creator>ol8482</dc:creator>
			<guid isPermaLink="false">180@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi Mitch,&#60;/p&#62;
&#60;p&#62;I'm using your Plane classes in one of my projects.  When the .swf is live and being viewed on the net and I go to another window, the MovieClip that I have set to rotate starts to spin way out of control.  &#60;/p&#62;
&#60;p&#62;Do you know how I would set a limit to prevent this from happening?  I've tried using mouseChildren=false, removeEventListener, and even setting a limit with an if/else statement.  None of them seem to work.  Do you have an idea of what I'm doing incorrectly?  Any help is much appreciated!  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andreas on "problem with fwd/back button in AS3"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=64#post-179</link>
			<pubDate>Sat, 19 Dec 2009 05:22:39 +0000</pubDate>
			<dc:creator>Andreas</dc:creator>
			<guid isPermaLink="false">179@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Thanks Mitch. Working now. One thing though: for the back button, I'd like to 'move' the images in the other direction. Since the opening and exit values are defined, I can't really change those, therefore I thought I just use a second content manager. Which works after I 'clear' the first one with 'content_cm.add_content();'. But the animation looks kind of jerky since the first one is cleared first before the second one loads. Do you have another idea how this nice 'caroussell' effect could be achieved? And, by the way, there's no 'content_cm.remove_content' in your class, right?&#60;/p&#62;
&#60;p&#62;Andreas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "problem with fwd/back button in AS3"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=64#post-178</link>
			<pubDate>Fri, 18 Dec 2009 23:01:50 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">178@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;I think you should be using the Load_Content class rather than the Content_Manager class. The Load_Content class is meant to load external files, where the Content_Manager will get a Symbol out of your library.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andreas on "problem with fwd/back button in AS3"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=64#post-177</link>
			<pubDate>Mon, 14 Dec 2009 04:23:01 +0000</pubDate>
			<dc:creator>Andreas</dc:creator>
			<guid isPermaLink="false">177@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi Mitch,&#60;br /&#62;
I'm trying to do a simple fwd and back button to work, it should load some images out of an array, that's it. Nothing complicated, but I just can't get it to work-&#60;br /&#62;
Instantiation attempted on a non-constructor.&#60;/p&#62;
&#60;p&#62;Here's what I have so far: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;package{
	import flash.display.*;
	import flash.events.*;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import com.webdevils.Button_Group;
	import com.webdevils.Content_Manager;
	import caurina.transitions.Tweener;	

	public class Din2 extends MovieClip {

			private var content_cm:Content_Manager;
			private var theImages:Array=new Array(&#38;quot;web_din1&#38;quot;,&#38;quot;web_din2&#38;quot;,&#38;quot;web_din3&#38;quot;, &#38;quot;web_din4&#38;quot;, &#38;quot;web_din5&#38;quot;);
			private var currentImage:Number=0;

			public function Din2(){

				new Button_Group(  [next_mc, previous_mc]);
				next_mc.alpha = 0;
				Tweener.addTween( next_mc, { alpha:1, time:1 } );

				var o:Object = { y:10, x: 0, time:0.5 };
				var e:Object = { y:10, x: -510, time:0.5 };
				var s:Object = { y:10, x: 510 };
				content_cm = new Content_Manager( content_mc, o, e, s );			

				/*var img_container:Loader = new Loader();
				img_container.x=50.0
				img_container.y=50.0
				addChild(img_container);*/

				//for navigation:
				next_mc.addEventListener( MouseEvent.CLICK, go_next, false, 0, true );
				previous_mc.addEventListener( MouseEvent.CLICK, go_previous, false, 0, true );

				/*img_container.load(new URLRequest(theImages[0] + &#38;quot;.jpg&#38;quot;));*/
				content_cm.add_content(new URLRequest(theImages[0] + &#38;quot;.jpg&#38;quot;));
			}

			private function go_next( e:MouseEvent ):void {
				if (currentImage &#38;lt; (theImages.length-1)){
					currentImage ++;
					content_cm.add_content(new URLRequest(theImages[currentImage] + &#38;quot;.jpg&#38;quot;));
				}
			}		

			private function go_previous( e:MouseEvent ):void {
				if (currentImage &#38;gt; 0){
					currentImage-- ;
					content_cm.add_content(new URLRequest(theImages[currentImage] + &#38;quot;.jpg&#38;quot;));
				}
			}
	}//end class
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you can see, I also tried to build an image container (var img_container:Loader = new Loader()), but no luck with this either. And I thought a content Manager would be nicer anyways, but maybe it doesn't work with this class??&#60;/p&#62;
&#60;p&#62;ANY help appreciated! I just had to trash JavaScript because it does NOT work for the site I'm building (remember last Friday-I found the reason for it and it's not working the way I need it). I found out last night, and the site needs to be up before tomorrow's class... &#60;/p&#62;
&#60;p&#62;Andreas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcabaco on "Load_Content class issue."</title>
			<link>http://www.webdevils.com/forum/topic.php?id=63#post-176</link>
			<pubDate>Tue, 23 Jun 2009 18:42:46 +0000</pubDate>
			<dc:creator>tcabaco</dc:creator>
			<guid isPermaLink="false">176@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Thanks for that one!&#60;/p&#62;
&#60;p&#62;Another thing: How do I make the content exit only after the new load completes?&#60;/p&#62;
&#60;p&#62;I downloaded your updated class files and what I did was comment out:&#60;/p&#62;
&#60;p&#62;else {&#60;br /&#62;
_exit_tween.onCompleteParams = [ _loader ];&#60;br /&#62;
Tweener.addTween( _loader.content, _exit_tween );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;on the add_content function, and added this to the on_complete function:&#60;/p&#62;
&#60;p&#62;if (_host_mc.numChildren&#38;gt;1) {&#60;br /&#62;
_host_mc.removeChildAt(0);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;but when I test the movie out and add the second content I get these two errors showing up repeatedly:&#60;/p&#62;
&#60;p&#62;TypeError: Error #1009: Cannot access a property or method of a null object reference.&#60;br /&#62;
	at MethodInfo-123()&#60;br /&#62;
TypeError: Error #1009: Cannot access a property or method of a null object reference.&#60;br /&#62;
	at MethodInfo-117()&#60;/p&#62;
&#60;p&#62;Any idea what this is? Am I doing it correctly?&#60;/p&#62;
&#60;p&#62;Note: I have a trace(_host_mc.numChildren) and after the first swf comes in I do get the numChildren constantly down to 2, so it is working. But those errors keep showing up.&#60;/p&#62;
&#60;p&#62;Thanks again for your help!&#60;/p&#62;
&#60;p&#62;Tiago
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Load_Content class issue."</title>
			<link>http://www.webdevils.com/forum/topic.php?id=63#post-175</link>
			<pubDate>Fri, 19 Jun 2009 18:13:48 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">175@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;The problem is that the stage.stageWidth and stage.stageHeight are not available when this clip is loaded. They will become available after the clip is added to the display list. &#60;/p&#62;
&#60;p&#62;I'm guessing that the code with the stage.stageWidth is either on the time line in frame 1 or in the constructor of the document class for the loaded file. &#60;/p&#62;
&#60;p&#62;You can defer the execution of this code until the stage is available by adding the code to a function called from listener listening for Event.ADD_TO_STAGE. &#60;/p&#62;
&#60;p&#62;The code below illustrates the idea. &#60;/p&#62;
&#60;p&#62;addEventListener( Event.ADDED_TO_STAGE, on_added );&#60;br /&#62;
function on_added(e:Event):void {&#60;br /&#62;
trace( stage.stageWidth );&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcabaco on "Load_Content class issue."</title>
			<link>http://www.webdevils.com/forum/topic.php?id=63#post-174</link>
			<pubDate>Wed, 17 Jun 2009 01:57:19 +0000</pubDate>
			<dc:creator>tcabaco</dc:creator>
			<guid isPermaLink="false">174@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hey Mitch,&#60;/p&#62;
&#60;p&#62;I was assigned to develop a web site at my summer internship. I'm using your Load_Content class on one of its sections and I seem to have a problem.&#60;/p&#62;
&#60;p&#62;In the *.swf's I'm loading I have these two variables:&#60;/p&#62;
&#60;p&#62;var base_location:Number = stage.stageHeight - 25;&#60;br /&#62;
var start_x:Number = stage.stageWidth - 25;&#60;/p&#62;
&#60;p&#62;The problem is that due to trying to &#34;connect&#34; to the stage I get this error: (if I comment those two variables out, or give them two other values it works)&#60;/p&#62;
&#60;p&#62;TypeError: Error #1009: Cannot access a property or method of a null object reference.&#60;/p&#62;
&#60;p&#62;But here's the thing. If I add it to stage with a regular:&#60;/p&#62;
&#60;p&#62;var loader:Loader = new Loader();&#60;br /&#62;
loader.load( new URLRequest( &#34;assets/some.swf&#34; ) );&#60;br /&#62;
holder.addChild( loader );&#60;/p&#62;
&#60;p&#62;It plays out perfectly. So question:&#60;/p&#62;
&#60;p&#62;What inside the Load_Content class might be conflicting with those two variables? If not, is there any way to have those two variables inside the loaded SWF's so I can place the elements inside these swfs accordingly to the stage?&#60;/p&#62;
&#60;p&#62;Appreciate your help. Thanks in advance,&#60;br /&#62;
Tiago
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "trouble with HEX to RGB conversion"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=62#post-173</link>
			<pubDate>Fri, 08 May 2009 14:26:48 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">173@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;convert your value to a uint. &#60;/p&#62;
&#60;p&#62;Math_Util.hex_to_rgb( uint( _objArray[i].color ) )
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eshieh on "trouble with HEX to RGB conversion"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=62#post-172</link>
			<pubDate>Wed, 06 May 2009 21:39:43 +0000</pubDate>
			<dc:creator>eshieh</dc:creator>
			<guid isPermaLink="false">172@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;you figured this out for me in class, thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eshieh on "trouble with HEX to RGB conversion"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=62#post-171</link>
			<pubDate>Mon, 04 May 2009 04:41:29 +0000</pubDate>
			<dc:creator>eshieh</dc:creator>
			<guid isPermaLink="false">171@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Mitch,&#60;/p&#62;
&#60;p&#62;I'm working on sorting objects based on their color (Color of Stuff project). I've hit a major road block. After figuring out a bunch of stuff about colors, the relationship between RGB through the color spectrum, I'm having trouble getting the RGB values to trace properly!!&#60;/p&#62;
&#60;p&#62;When I send a hex value to Math_Utils.hex_to_rgb(), I trace the RGB values and then the hex values right after. I get this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;for (var i:uint = 0; i &#38;lt; _objArray.length; i++) {
	var o = Math_Util.hex_to_rgb(_objArray[i].color);
	trace(&#38;quot;R:&#38;quot; + o.r + &#38;quot;, G:&#38;quot; + o.g + &#38;quot;, B:&#38;quot; + o.b);
	trace(_objArray[i].color);
}

//output
R:7, G:62, B:123
474747
R:0, G:0, B:0
7B0041
R:0, G:0, B:0
002BCD
R:0, G:0, B:0
F50000
R:0, G:0, B:0
CD3900
R:0, G:0, B:0
F5F5F5
R:0, G:0, B:0
FFEDA3
R:0, G:0, B:0
17007B
R:0, G:0, B:0
0ECD00
R:0, G:0, B:0
FFA751
R:0, G:0, B:0
0015B9
R:0, G:0, B:0
47FFF5
R:0, G:0, B:0
FF51FB
R:0, G:0, B:0
FF1F50
R:0, G:0, B:250
0025E1
R:10, G:66, B:144
672400
R:0, G:0, B:0
7471FF
R:0, G:0, B:0
EB1000
R:2, G:40, B:102
141414
R:0, G:0, B:0
8A8A8A
R:0, G:0, B:0
0042AF
R:0, G:0, B:0
6B6B6B
R:3, G:139, B:131
232323
R:0, G:0, B:0
FFB451&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you notice, a lot of these colors have 0 value for RGB....this just can't be right! I'm not sure what might be causing this...any help is greatly appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dave on "Drop Down Nav in AS3"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=61#post-170</link>
			<pubDate>Fri, 17 Apr 2009 08:56:38 +0000</pubDate>
			<dc:creator>Dave</dc:creator>
			<guid isPermaLink="false">170@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hey Mitch,&#60;/p&#62;
&#60;p&#62;So we talked about this a little today and here's the link to the tutorial and youtube video of the guy explaining how he did it. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.developphp.com/Flash_tuts/AS3_drop_down_menu_examples.php&#34; rel=&#34;nofollow&#34;&#62;http://www.developphp.com/Flash_tuts/AS3_drop_down_menu_examples.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm just having a hard time getting it to work with the way you taught me to use AS3 and such. I think it's more on my part of not getting this to work because this should work.&#60;/p&#62;
&#60;p&#62;Anyways, take a look at it and I'll see you next week and I'll let you know if I can figure it out before then, if that happens.&#60;/p&#62;
&#60;p&#62;Thanks again for the help tonight!&#60;/p&#62;
&#60;p&#62;-Dave
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Cycling through an array of sorts?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=58#post-169</link>
			<pubDate>Sun, 12 Apr 2009 04:45:24 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">169@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Great, come earlier if you can I try and help everyone in the order they show up. If you post the problems you are having here I might be able to help you out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcabaco on "image tilling effect"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=59#post-168</link>
			<pubDate>Sun, 12 Apr 2009 01:09:49 +0000</pubDate>
			<dc:creator>tcabaco</dc:creator>
			<guid isPermaLink="false">168@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Thanks Mitch!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dave on "Cycling through an array of sorts?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=58#post-167</link>
			<pubDate>Sat, 11 Apr 2009 17:17:30 +0000</pubDate>
			<dc:creator>Dave</dc:creator>
			<guid isPermaLink="false">167@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Thanks Mitch! I had problems getting it to implement correctly but I will come in Thursday night and get your help in person. Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "image tilling effect"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=59#post-166</link>
			<pubDate>Sat, 11 Apr 2009 06:09:26 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">166@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;You might be able to scale the effect that you have by placing it within a MovieClip or Sprite. If the code is drawing the effect on the stage itself it might be reading how large the stage is which is preventing you from resizing it. If you could get the effect to draw itself within a MovieClip you could scale that clip. &#60;/p&#62;
&#60;p&#62;If the code has some parameter that sets the host clip, try setting this to another clip on the stage. If it always draws on the stage, you might try making an SWF with only the background effect inside. Then load this swf into your movie and try resizing it. &#60;/p&#62;
&#60;p&#62;Or, you could always try making your version of this effect. It doesn't look that difficult. &#60;/p&#62;
&#60;p&#62;You could also try out one these:&#60;br /&#62;
&#60;a href=&#34;http://webdevils.googlecode.com/files/CircleMask_021509.zip&#34; rel=&#34;nofollow&#34;&#62;http://webdevils.googlecode.com/files/CircleMask_021509.zip&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://webdevils.googlecode.com/files/ImageStreak_021509.zip&#34; rel=&#34;nofollow&#34;&#62;http://webdevils.googlecode.com/files/ImageStreak_021509.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can also bring your questions to the Workshop on Thursday night 7 to 10 PM and I can take a look at your work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "Cycling through an array of sorts?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=58#post-165</link>
			<pubDate>Sat, 11 Apr 2009 05:56:16 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">165@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;I think this is possible. I rewrote your class file. I didn't have your movie to test with so this may or may not work as it is. It should work, if you have any problems bring your files to the workshop on Thursday night and I'll help you out. &#60;/p&#62;
&#60;p&#62;You will need to download the latest version of my class library. There are a bunch of example files:&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/webdevils/downloads/list&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/webdevils/downloads/list&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All of the examples require the class library:&#60;br /&#62;
&#60;a href=&#34;http://webdevils.googlecode.com/files/com_041009.zip&#34; rel=&#34;nofollow&#34;&#62;http://webdevils.googlecode.com/files/com_041009.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Some of them also require Tweener:&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/tweener/&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/tweener/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Note that I wrote this so that it puts the names of the buttons together. You provide the number of buttons at the top. This requires that your buttons be named sequentially. In your example &#34;Thumb_#_mc&#34;, don't pad the number with 0! The same applies to the names of the images in your library &#34;Photo_#&#34;. &#60;/p&#62;
&#60;p&#62;This would have been better implemented using the Load_Content class to load images from outside Flash...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;package classes.pages {
	import flash.display.*;
	import flash.events.*;
	import com.webdevils.Content_Manager;
	import com.webdevils.Button_Group;

	public class Photo_Page extends MovieClip {
		private var my_cm:Content_Manager3;
		private var nav:Button_Group;
		private var photo_index:int;

		public function Photo_Page() {
			var number_of_buttons = 17;
			var photo_index = 0;
			var button_array = new Array();
			for ( var i = 1; i &#38;lt;= number_of_buttons; i++ ) {
				var the_button = this[ &#38;quot;Thumb_&#38;quot; + i + &#38;quot;_mc&#38;quot; ];
				button_array.push( the_button );
				the_button.button_index = i;
				the_button.addEventListener( MouseEvent.CLICK, on_click );
			}

			var my_bg = new Button_Group( button_array );

			var open_tween:Object;
			var close_tween:Object;
			var start_obj:Object;

			// Main content
			start_obj = { alpha:0, x:800, y:0 };
			open_tween = { alpha:1, x:0, y:0, time:1 };
			close_tween = { alpha:0, x:-1500, y:0, time:2 };

			my_cm = new Content_Manager3( content_mc,
										 open_tween,
										 close_tween,
										 start_obj );

			my_cm.add_content( Photo_1 );
			my_bg.select_button( Thumb_1_mc );
		}

		private function on_click( e:MouseEvent ):void {
			photo_index = e.currentTarget.button_index;
			get_photo();
		}

		private function get_photo():void {
			var photo = getDefinitionByName( &#38;quot;Photo_&#38;quot; + photo_index ) as Class;
			my_cm.add_content( e.currentTarget.my_page );
		}

		private function next_photo():void {
			photo_index ++;
			if ( photo_index &#38;gt; number_of_buttons ) {
				photo_index = 0;
			}
			get_photo();
		}

		private function prev_photo():void {
			photo_index ;
			if ( photo_index &#38;lt; 1 ) {
				photo_index = number_of_buttons;
			}
			get_photo();
		}
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>admin on "Error #1007 : Instantiation attempted on a non-constructor."</title>
			<link>http://www.webdevils.com/forum/topic.php?id=60#post-164</link>
			<pubDate>Sat, 11 Apr 2009 04:47:06 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">164@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Looks like you are trying to reference a class with a string. Try this:&#60;/p&#62;
&#60;p&#62;var _currentFont = _font + _style;&#60;br /&#62;
var FontClass = getDefinitionByName( _currentFont ) as Class;&#60;br /&#62;
_fmt.font = new FontClass().fontName;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blainescheidegger on "Error #1007 : Instantiation attempted on a non-constructor."</title>
			<link>http://www.webdevils.com/forum/topic.php?id=60#post-163</link>
			<pubDate>Fri, 10 Apr 2009 23:02:30 +0000</pubDate>
			<dc:creator>blainescheidegger</dc:creator>
			<guid isPermaLink="false">163@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;So here is the deal. I am trying to write the AS to change the fonts on my typography website. I will have two sets of buttons, one for the font (light, bold, black, medium) and another set for the style ( italic, italic small caps, plain small caps and plain). Here is what I have and it is working up to the point of actually changing the type in the input box. I am sure that I am just missing something simple. Any Ideas?&#60;/p&#62;
&#60;p&#62;Blaine&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;import com.webdevils.Button_Group;

var _fmt = new TextFormat();
var _font = &#38;quot;font_2&#38;quot;;
var _style = &#38;quot;_plain&#38;quot;;

new Button_Group( [ bold_mc, plain_mc ] );
new Button_Group( [ font_1_mc, font_2_mc ] );

bold_mc.addEventListener( MouseEvent.CLICK, click_bold );
function click_bold( e:MouseEvent ):void {
	_style = &#38;quot;_bold&#38;quot;;
	changeFont();
}

plain_mc.addEventListener( MouseEvent.CLICK, click_plain );
function click_plain( e:MouseEvent ):void {
	_style = &#38;quot;_plain&#38;quot;;
	changeFont();
}

font_1_mc.addEventListener( MouseEvent.CLICK, click_font_1 );
function click_font_1( e:MouseEvent ):void {
	_font = &#38;quot;font_1&#38;quot;;
	changeFont();
}

font_2_mc.addEventListener( MouseEvent.CLICK, click_font_2 );
function click_font_2( e:MouseEvent ):void {
	_font = &#38;quot;font_2&#38;quot;;
	changeFont();
}

function changeFont(): void {
	var _currentFont = _font + _style + &#38;quot;()&#38;quot;;
	_fmt.font = new _currentFont().fontName; //this is the problem line!!!
	input_txt.setTextFormat( _fmt );
	trace(_currentFont);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>tcabaco on "image tilling effect"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=59#post-162</link>
			<pubDate>Thu, 09 Apr 2009 19:03:51 +0000</pubDate>
			<dc:creator>tcabaco</dc:creator>
			<guid isPermaLink="false">162@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi Mitch,&#60;/p&#62;
&#60;p&#62;I created this web-site where the client wanted a very minimalistic look and feel. It's a company that organizes events so all he wants is that the pictures of the events speak for themselves and how the company works. So basically the main element of the site is a fullscreen background image that expands and contracts as the user resizes the browser. That's pretty basic to do. The problem comes with this:&#60;br /&#62;
After I finished the site I had the images be pulled out randomly from an array and loaded onto the background deleting the previous/bottom one to save process memory. Anyway the transition effect I had was a simple alpha change. He said it was too simple and wanted me to find a script that would make it more contemporary, with one of those tilling transitions. So I did but the problem is that that script doesn't support expansion, the image has to be ONE size only, so I will have to discard it because the images are pretty big and they don't change the size, so it's pretty much unreadable as an image in small screens.&#60;/p&#62;
&#60;p&#62;So my question is:&#60;/p&#62;
&#60;p&#62;After you go to &#60;a href=&#34;http://www.tiagocabaco.com/pp&#34; rel=&#34;nofollow&#34;&#62;http://www.tiagocabaco.com/pp&#60;/a&#62; take a look at the background effect, it's a 'simple' left-to-right tilling effect. It's applied to the picLoader which loads the picture, not even a container, it's directly to the Loader.&#60;br /&#62;
So... Is there any way I can create that effect without using the script I got off of the web? Meaning, is there a way to create that effect dynamically in actionscript with any other toolkit like PixelBender or something like it? If so how?&#60;/p&#62;
&#60;p&#62;Help would be deeply appreciated specially because I'm on a tight schedule with this one.&#60;br /&#62;
Thank in advance,&#60;br /&#62;
Tiago
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dave on "Cycling through an array of sorts?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=58#post-161</link>
			<pubDate>Wed, 08 Apr 2009 23:09:46 +0000</pubDate>
			<dc:creator>Dave</dc:creator>
			<guid isPermaLink="false">161@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;This is kind of hard for me to sum up in the subject line. Anyways, so here's my problem Mitch. I'm trying to make it to where the left and right arrows that are blinking; would go to the other pages that are represented by the thumbnails below.&#60;/p&#62;
&#60;p&#62;The way I have this set up is that the buttons load in on the bottom and call up the first page. So the buttons are their own class and are calling movie clips that are containing the photographs.&#60;/p&#62;
&#60;p&#62;I can select the buttons and go to the other pages that way but I want to be able to just cycle through them back and forth by just using the arrows. I will provide links to my AS3 that is in a text document and a link to the page I'm working on.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.dmkeller.com/test_port/index.html&#34; rel=&#34;nofollow&#34;&#62;http://www.dmkeller.com/test_port/index.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.dmkeller.com/test_port/photo_page.rtf&#34; rel=&#34;nofollow&#34;&#62;http://www.dmkeller.com/test_port/photo_page.rtf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks in advance Mitch!&#60;/p&#62;
&#60;p&#62;-Dave
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-160</link>
			<pubDate>Sat, 28 Mar 2009 14:47:37 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">160@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Triple check your spelling and verify everything is where you think it is. Post the whole error message here so I can read the actual message.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>justin510 on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-159</link>
			<pubDate>Mon, 23 Mar 2009 02:52:10 +0000</pubDate>
			<dc:creator>justin510</dc:creator>
			<guid isPermaLink="false">159@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;That's the thing, they're in the correct places, and spelt correctly.&#60;/p&#62;
&#60;p&#62;even when using examples from class, or my old as3 files.&#60;/p&#62;
&#60;p&#62;But if I create a new file, then copy and paste everything, re-save, then they work.&#60;/p&#62;
&#60;p&#62;I'm going to have to try them on another computer or at school. maybe it's my computer or cs4 that's not hooking up to sub folders correctly when opening up an old flash as3 cs3 file
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "addChild with static methods"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=57#post-158</link>
			<pubDate>Mon, 23 Mar 2009 01:23:10 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">158@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Think about what I was saying about Model View Controller and event listeners. &#60;/p&#62;
&#60;p&#62;Depending on what is going on you may not need to call a function in another class. Instead have your class dispatch an event message, then register to receive the event with your other class. &#60;/p&#62;
&#60;p&#62;For example:&#60;/p&#62;
&#60;p&#62;// Class A&#60;br /&#62;
private function tell_everyone() {&#60;br /&#62;
  dispatchEvent( new Event( Event.CHANGE ) );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// Somewhere else&#60;br /&#62;
var a = new A()&#60;br /&#62;
a.addEventListener( Event.CHANGE, on_change );&#60;br /&#62;
function on_change( e:Event ):void {&#60;br /&#62;
  // Do stuff when class A tells eveyone&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;If a class really needs info from another class or needs to work with a class more closely, either create a custom event that encapsulates data that needs to be passed from one class to the other. Or, pass a reference of a class to the class it will work with, you can use this reference to call public methods of that class from the other class. &#60;/p&#62;
&#60;p&#62;// Class A constructor&#60;br /&#62;
private var my_pal;&#60;br /&#62;
public function A( collaborator ) {&#60;br /&#62;
  my_pal = collaboarator;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;private function call_pal() {&#60;br /&#62;
  my_pal.pals_method();&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// Somewhere else&#60;br /&#62;
var b = new B();&#60;br /&#62;
var a = new A( b ); &#38;lt;--Here we pass a reference of b to a.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-157</link>
			<pubDate>Mon, 23 Mar 2009 01:11:59 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">157@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;These class files are missing. &#60;/p&#62;
&#60;p&#62;This: caurina.transitions:tweener could be caused by misspelling Tweener (note the upper case T).&#60;/p&#62;
&#60;p&#62;The other class FwdBwdPlus is missing. You need to find the file FwdBwdPlus.as and move it into the folder with your FLA.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>justin510 on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-156</link>
			<pubDate>Fri, 20 Mar 2009 19:40:22 +0000</pubDate>
			<dc:creator>justin510</dc:creator>
			<guid isPermaLink="false">156@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;sorry about that Mitch, It's the sub folders, &#60;/p&#62;
&#60;p&#62; like.. caurina.transitions:tweener could not be found,&#60;br /&#62;
base class FwdBwdPlus was not found,&#60;/p&#62;
&#60;p&#62;it's on all old files, and examples from old classes.&#60;/p&#62;
&#60;p&#62;but if i copy and paste everything into a new flash file it works. it's exactly the same.&#60;/p&#62;
&#60;p&#62;dont know why, i think it might be a cs4 problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cesar on "addChild with static methods"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=57#post-155</link>
			<pubDate>Wed, 18 Mar 2009 17:51:22 +0000</pubDate>
			<dc:creator>cesar</dc:creator>
			<guid isPermaLink="false">155@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;I'm using the static method because is the only way that I found to call function from different classes, so this is what I have:&#60;/p&#62;
&#60;p&#62;-A &#34;MainMenu&#34; class that triggers all of the events in the menu.&#60;br /&#62;
-A &#34;Illustration&#34; class that I want it to use some of the &#34;MainMenu&#34; methods.&#60;br /&#62;
-And the &#34;Main&#34; document class where I'm creating an instance of both classes.&#60;/p&#62;
&#60;p&#62;so basically when I use the addChild with the static method on MainMenu I get this error:&#60;br /&#62;
&#34;1180: Call to a possibly undefined method addChild.&#60;/p&#62;
&#60;p&#62;if I don't use the static method it works, but then I can't get &#34;Illusration&#34; class to use &#34;MainMenu&#34; functions..&#60;/p&#62;
&#60;p&#62;What do you recommend that I should do if I want access to functions from different classes?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "addChild with static methods"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=57#post-154</link>
			<pubDate>Wed, 18 Mar 2009 05:00:32 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">154@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;I'm not sure what you are trying to do. It seems like this might work. But it might in some cases. I don't understand why you are using a static method in this case. &#60;/p&#62;
&#60;p&#62;A static method is shared by all instances of a class. This could be a problem in this case, since any new instance of your class would be trying to add box to it's display list. They would all be sharing the same value for the property box. This means that calling the onClick method of one instance of MyClass would add a new instance of Box to it's display list, and all other instances of MyClass would references that same instance of box through the static property box. Since it's a static property they all share it. &#60;/p&#62;
&#60;p&#62;I'm not convinced that this is what you want to do. &#60;/p&#62;
&#60;p&#62;I would be able to give you more info if you could quote the error message you are getting, if any.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cesar on "addChild with static methods"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=57#post-153</link>
			<pubDate>Wed, 18 Mar 2009 04:37:48 +0000</pubDate>
			<dc:creator>cesar</dc:creator>
			<guid isPermaLink="false">153@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hello Mitch,&#60;br /&#62;
I'm trying to access a function from a different class where it was originally created  and everything is working ok except for the addChild() method that apparently is not supported by static methods..&#60;/p&#62;
&#60;p&#62;so how can I addChild within static methods? or even better, how can I access functions from different classes without using the static method?  &#60;/p&#62;
&#60;p&#62;the code looks something like this:&#60;/p&#62;
&#60;p&#62;public class MyClass extends MovieClip{&#60;/p&#62;
&#60;p&#62;	public static var box:Box;&#60;br /&#62;
	private var box2:Box = new Box();&#60;br /&#62;
	addChild(box2);&#60;/p&#62;
&#60;p&#62;	public static function onClick( e:MouseEvent ):void{&#60;/p&#62;
&#60;p&#62;		Tweener.addTween(box2{alpha:1,x:0,y:167,width:499,height:300,time:1,transition:&#34;easeIn&#34;});&#60;br /&#62;
		box = new Box();&#60;br /&#62;
		addChild(box);&#60;/p&#62;
&#60;p&#62;	}&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;//////// this is how I access the class&#60;br /&#62;
MyClass.onClick();&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>admin on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-152</link>
			<pubDate>Tue, 17 Mar 2009 03:20:16 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">152@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Not enough information. What files are you talking about? Is this the complete text of the error message?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>justin510 on "1172 Definition could not be found CS4?"</title>
			<link>http://www.webdevils.com/forum/topic.php?id=56#post-151</link>
			<pubDate>Mon, 16 Mar 2009 16:22:36 +0000</pubDate>
			<dc:creator>justin510</dc:creator>
			<guid isPermaLink="false">151@http://www.webdevils.com/forum/</guid>
			<description>&#60;p&#62;Hi Mitch,&#60;/p&#62;
&#60;p&#62;I'm trying to open past files, and example files, and i get error: 1172 Definition could not be found. &#60;/p&#62;
&#60;p&#62;I got a work around, I create a new file and folder, copy and paste everything into the new flash file, drag subfolders into my new folder, and everything works.&#60;/p&#62;
&#60;p&#62;There both exactly the same. So I don't understand why the original files are not working.&#60;/p&#62;
&#60;p&#62;I'd rather not copy and paste all of my old complex projects into a new one.&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;/p&#62;
&#60;p&#62;-Justin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
