<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Webdevils.com Forum: Recent Posts</title>
<link>http://www.webdevils.com/forum/</link>
<description>Webdevils.com Forum: Recent Posts</description>
<language>en</language>
<pubDate>Sat, 06 Sep 2008 16:09:52 +0000</pubDate>

<item>
<title>admin on "move y axis"</title>
<link>http://www.webdevils.com/forum/topic.php?id=27#post-82</link>
<pubDate>Tue, 05 Aug 2008 03:58:40 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">82@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Use the x property of the clip you want to move&#60;/p&#62;
&#60;p&#62;var new_x:Number = e.currentTarget.x + 50;&#60;br /&#62;
Tweener.addTween(e.currentTarget, {x:0, y:new_x, time:.75, transition:&#34;easeoutelastic&#34;});
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "move y axis"</title>
<link>http://www.webdevils.com/forum/topic.php?id=27#post-81</link>
<pubDate>Mon, 28 Jul 2008 21:20:31 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">81@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;How do you increase an objects y value using caurina so that it moves a specified amount of pixels from its current location?&#60;/p&#62;
&#60;p&#62;If you do something like &#60;/p&#62;
&#60;p&#62;Tweener.addTween(e.currentTarget, {x:0, y:50, time:.75, transition:&#34;easeoutelastic&#34;});&#60;/p&#62;
&#60;p&#62;that moves it to a Y coard. of 50, not 50px relative to where it exists. &#60;/p&#62;
&#60;p&#62;I thought it was something like y:+50, but im getting errors. &#60;/p&#62;
&#60;p&#62;Any pointers?
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Access Stage From Subclass"</title>
<link>http://www.webdevils.com/forum/topic.php?id=26#post-80</link>
<pubDate>Sat, 19 Jul 2008 15:21:23 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">80@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;This is one feature of AS3 that is not very easy to work with. Try using parent. &#60;/p&#62;
&#60;p&#62;For example, parent.methodOfParent(); or parent.propertyOfParent = 12;&#60;/p&#62;
&#60;p&#62;You can use parent.parent.method() to look up two levels.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "Access Stage From Subclass"</title>
<link>http://www.webdevils.com/forum/topic.php?id=26#post-79</link>
<pubDate>Fri, 11 Jul 2008 19:07:29 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">79@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;The following example can trace the numChildren of the stage, but it freak out when i try and execute removeChildAt. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//DocClass

package {
	import flash.display.*;

	public class ExampleA extends MovieClip {

		var myShape:Shape = new Shape();
		var myContainer:MovieClip = new MovieClip();
		public function ExampleA():void {

			var callB:ExampleB = new ExampleB(stage);

			stage.addChild( myContainer );

			myShape.graphics.beginFill(0xFF0000);
			myShape.graphics.drawRect(0, 0 , 200, 100);
			myShape.graphics.endFill();
			myContainer.addChild( myShape );

		}
	}
}

package {

	import flash.display.*;
	import flash.events.Event;

	public class ExampleB extends MovieClip {

		var myShape2:Shape = new Shape();

		private var myStage:Stage = null;

		public function ExampleB(_stage:Stage):void {

			myStage = _stage;
			trace(myStage.stage.numChildren);
			myStage.stage.removeChildAt(0);

		}
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>paragonc on "Access Stage From Subclass"</title>
<link>http://www.webdevils.com/forum/topic.php?id=26#post-78</link>
<pubDate>Fri, 11 Jul 2008 18:40:08 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">78@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hey Mitch,&#60;br /&#62;
How do you access  a child of the primary stage through a subclass?&#60;/p&#62;
&#60;p&#62;so if your doc class calls subclass b - how does subclass b removeChildAt to an object on stage from the doc class?
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "draw a triangle in AS 3"</title>
<link>http://www.webdevils.com/forum/topic.php?id=25#post-77</link>
<pubDate>Fri, 20 Jun 2008 05:08:06 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">77@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I don't see what the problem is? This works fine. Of course it's difficult to see a WHITE triangle against a white stage. Try changing the color.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "draw a triangle in AS 3"</title>
<link>http://www.webdevils.com/forum/topic.php?id=25#post-76</link>
<pubDate>Tue, 17 Jun 2008 23:22:32 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">76@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;sorry mitch, my book has a way of making things more complicated than they need to be...&#60;/p&#62;
&#60;p&#62;I was able to figure it out:&#60;/p&#62;
&#60;p&#62;var triangle2:Shape = new Shape();&#60;br /&#62;
		triangle2.graphics.lineStyle(1, 0xFFFFFF);&#60;br /&#62;
		triangle2.graphics.beginFill(0xFFFFFF, 1);&#60;br /&#62;
		triangle2.graphics.moveTo(10, 22);&#60;br /&#62;
		triangle2.graphics.lineTo(50, 0);&#60;br /&#62;
		triangle2.graphics.lineTo(50, 45);&#60;br /&#62;
		triangle2.graphics.lineTo(10, 22);&#60;br /&#62;
		triangle2.graphics.endFill();&#60;br /&#62;
addChild(triangle2);
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "draw a triangle in AS 3"</title>
<link>http://www.webdevils.com/forum/topic.php?id=25#post-75</link>
<pubDate>Tue, 17 Jun 2008 21:17:38 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">75@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hey Mitch,&#60;br /&#62;
Hope your summer is going well. I've been looking at the graphics class, and i can't seem to figure out how to draw a triangle for a play button icon. I've read about using some external classes, (ascb) but i havent had any luck. Any pointers?
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "manual animation problem..."</title>
<link>http://www.webdevils.com/forum/topic.php?id=24#post-74</link>
<pubDate>Tue, 10 Jun 2008 14:20:11 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">74@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hey Russell, your main problem is that you are mixing AS and the timeline. If you set the properties of a MovieClip via AS this &#34;break&#34; the timeline.&#60;/p&#62;
&#60;p&#62;If you want this to work you can either, leave the mouse stuff as it is (that is done via AS) and slide your clips down the stage with AS also. In other words dump the timeline and do it all with AS. Or, you can change your buttons, make scaling effect happen on their tineline. &#60;/p&#62;
&#60;p&#62;Here's another idea. Give each button a CLICK event that activates the slide down for all buttons. all of the buttons would call the same function through this event. Be sure to remove this event when the function is called. You can remove a listener with &#60;/p&#62;
&#60;p&#62;movieclip.removeEventListener( event, handler )
&#60;/p&#62;</description>
</item>
<item>
<title>russellmatsuo on "manual animation problem..."</title>
<link>http://www.webdevils.com/forum/topic.php?id=24#post-73</link>
<pubDate>Sat, 07 Jun 2008 06:05:49 +0000</pubDate>
<dc:creator>russellmatsuo</dc:creator>
<guid isPermaLink="false">73@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hello, I've been trying to make a flash website to practice my actionscripting... and I've come across an interesting problem. &#60;/p&#62;
&#60;p&#62;I've posted my files at &#60;a href=&#34;http://home.comcast.net/~russmatsuo/flashwebsite.zip&#34; rel=&#34;nofollow&#34;&#62;http://home.comcast.net/~russmatsuo/flashwebsite.zip&#60;/a&#62; if you wouldn't mind taking a look at my code and giving me your thoughts on my problem.&#60;/p&#62;
&#60;p&#62;This is a website for a Djay group (fictional, I'm just doing this for fun),  and I wanted to simulate the pads of a drum machine.  I want to make it so once you click on one of the pads they drop to the bottom and become navigation for the website.  If you look you'll see I manually animated the buttons falling down with motion tweens...  there's a stop(); action on the first frame of the &#34;global action&#34; layer, and a stop(); action on the last frame of the top most layer &#34;layer 20&#34;.  Within the actionscript on the first frame I've made it so if you click on any of the buttons, it runs the code play(); (among some other actions).  For some reason, even though it should just play the movie, some of the symbols seem to hang or become fixed in weird positions.&#60;/p&#62;
&#60;p&#62;I have absolutely no clue why this would happen...  I've tried multiple alternatives including converting the motions into actionscript...  no dice :-\&#60;/p&#62;
&#60;p&#62;Thanks for you time!
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Pass Variable to Loader Content"</title>
<link>http://www.webdevils.com/forum/topic.php?id=23#post-72</link>
<pubDate>Thu, 29 May 2008 14:01:00 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">72@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;You can use the Loader.content property to access the root display that you loaded. Think of this as the movie clip that was loaded. Then use dot syntax to get at other clips on it's timeline.&#60;/p&#62;
&#60;p&#62;This is doesn't sound like a very object oriented approach. A better system would have this loaded object be self contained, requiring no outside tinkering. If you really need to get at a property (this includes movie clips) nested within an object, you should call a method of that object and let the object handle it.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "Pass Variable to Loader Content"</title>
<link>http://www.webdevils.com/forum/topic.php?id=23#post-71</link>
<pubDate>Tue, 27 May 2008 18:48:40 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">71@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;If i have a variable in a parent movie clip, how do i access it from within a clip that is loaded using the loader method?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function loadItems(clip:String, xpos:uint, ypos:uint):void {
			var myLoader:Loader = new Loader();
			myLoader.load(new URLRequest(clip));
			myLoader.x = xpos;
			myLoader.y = ypos;
			addChild(myLoader);
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In the following code, how would i make available / access -  &#34;public var foo:String = 'bar'&#34; from the myLoader Loader Object?
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-70</link>
<pubDate>Fri, 23 May 2008 02:12:14 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">70@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I still think this still looks more complex than it needs to be. If you could explain to me what you want to do without any AS I might be able to give you some suggestions.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-69</link>
<pubDate>Wed, 21 May 2008 18:00:39 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">69@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I think i wrote that backwards, if there's primary class A that is accessing objects from Class B - then i'm trying to avoid defining the Object in A and only passing a transition object name to class B, class B being where the Obhject is actuall being defined. &#60;/p&#62;
&#60;p&#62;I think i worked it out with the following:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;var welcome:ObjectTimer = new ObjectTimer(1, 7,    &#38;#39;stills2/Welcome.png&#38;#39;, 0, 0, 0, -0, &#38;#39;ExpandAPrimary&#38;#39;, middle, false);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;ExpandAPrimary is being passed as a string refernce to the ObjectTimer Class. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;package {
//stuff

public class ObjectTimer extends Sprite {

	//Stuff

		protected var ExpandAPrimary:Object={scaleX:1,scaleY:1,time: 1,transition:&#38;quot;easeOutElastic&#38;quot;, _blur_blurX:0, _blur_blurY:0};
		public static const EXPAND_A_PRIMARY:String = &#38;quot;expandAPrimaryType&#38;quot;;

		public function ObjectTimer(_myInTime:Number, _myOutTime:Number, _imageUrl:String, _xStart:Number,_yStart:Number, _xStill:Number,_yStill:Number, transition:String, _direction:String, _scaleTrue:Boolean) {

	// Stuff

	_transitionType = getTransitionType( transition );

	//Stuff 

	}
	protected function getTransitionType( name:String ):Object
        {
            if( !this[name] ) return null;
            else return Object( this[name] );
        }
}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;seems like alot of code just to pass a reference...
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-68</link>
<pubDate>Tue, 20 May 2008 04:42:28 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">68@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I don't recommend that. It seems to me that it is not good OOP design. A class should contain all of the information it needs to do it's job. &#60;/p&#62;
&#60;p&#62;Not to mention, communication between classes in AS3 is a headache. It is not as easy to use as the dot syntax in AS2.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-67</link>
<pubDate>Mon, 19 May 2008 17:12:17 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">67@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I think im looking to grab the defined object in the parent class with a syntax similar to this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;parentName.nameOfObjectTimerInstance.CloseAPrimary;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and then that could be passed in a function argument?
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-66</link>
<pubDate>Sat, 17 May 2008 16:09:57 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">66@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I'm not sure wat you are trying to do here. But, from what I understand I came up with these two ideas:&#60;/p&#62;
&#60;p&#62;First you want the string value from the transitin property of ExpandPrimary. Alternately you want to pass the entire ExpandPrimary object.&#60;/p&#62;
&#60;p&#62;Either:&#60;br /&#62;
var ExpandAPrimary:Object = { scaleX:1, scaleY:1, time: 1, transition:&#34;easeOutElastic&#34;, _blur_blurX:0, _blur_blurY:0 };&#60;br /&#62;
var myclock1:ObjectTimer = new ObjectTimer( 1 , 4, 'nut1.png', 84, 41, ExpandAPrimary.transition, left );&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
public function ObjectTimer( _myInTime:Number, _myOutTime:Number, _imageUrl:String, _x:Number, _y:Number, _transition:String, _direction:String);&#60;/p&#62;
&#60;p&#62;// stuff &#60;/p&#62;
&#60;p&#62;Or:&#60;br /&#62;
var ExpandAPrimary:Object = { scaleX:1, scaleY:1, time: 1, transition:&#34;easeOutElastic&#34;, _blur_blurX:0, _blur_blurY:0 };&#60;br /&#62;
var myclock1:ObjectTimer = new ObjectTimer( 1 , 4, 'nut1.png', 84, 41, ExpandAPrimary, left );&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
public function ObjectTimer( _myInTime:Number, _myOutTime:Number, _imageUrl:String, _x:Number, _y:Number, _transition:Object, _direction:String);
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "String Reference to an Object"</title>
<link>http://www.webdevils.com/forum/topic.php?id=22#post-65</link>
<pubDate>Fri, 16 May 2008 19:36:02 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">65@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Ok not even sure if i worded that properly, but i would like to pass a reference to an object via an arguement. &#60;/p&#62;
&#60;p&#62;In my document class i call an external class with a few arguements:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;var myclock1:ObjectTimer = new ObjectTimer(1 , 4, &#38;#39;nut1.png&#38;#39;, 84, 41, &#38;#39;ExpandAPrimary&#38;#39;, left);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;'ExpandAPrimary' is a reference to an object that is defined in the class body of the ObjectTimer class. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;var ExpandAPrimary:Object={scaleX:1,scaleY:1,time: 1,transition:&#38;quot;easeOutElastic&#38;quot;, _blur_blurX:0, _blur_blurY:0};&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;How do a attach the ExpandAPrimary object in the ObjectTimer Class to a global variable such as selectTransition ?&#60;/p&#62;
&#60;p&#62;right now i have this as my constructor function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function ObjectTimer(_myInTime:Number, _myOutTime:Number, _imageUrl:String,_x:Number,_y:Number,_transition:String, _direction:String);

// stuff 

var selectTransition:String = _transition;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but i dont think that's correct. Something to do with Object vs. String? When i trace it - it just outputs the string value. I need to assign the variable to the object that is being referenced via the string, not assign a string value. I also do not want to create the object in the document class, because i'm trying to develop a series of re usable transitions that should be encapsulated within the ObjectTimer class.
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "pass arguements in an eventlistener"</title>
<link>http://www.webdevils.com/forum/topic.php?id=21#post-64</link>
<pubDate>Wed, 14 May 2008 23:00:47 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">64@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I'll try and post these to my site. If you want I can email them to you.
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "pass arguements in an eventlistener"</title>
<link>http://www.webdevils.com/forum/topic.php?id=21#post-63</link>
<pubDate>Wed, 14 May 2008 21:08:29 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">63@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;thanks mitch - i'll take a look at those tomorrow in class
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "pass arguements in an eventlistener"</title>
<link>http://www.webdevils.com/forum/topic.php?id=21#post-62</link>
<pubDate>Wed, 14 May 2008 18:16:02 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">62@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;You can't do that! addEventListener has parameters already defined. You can't just make up some of your own. Not to mention the event is sent from the EventDispatcher object and not from the clip that generated the event. &#60;/p&#62;
&#60;p&#62;What can you do? &#60;/p&#62;
&#60;p&#62;Well, the one connection to the source MovieClip is the event.currentTarget property. If your movie clip stored the values that you want to pass along you can access these via currentTarget. For example if your clip had a property named 'expando' you could access this from your event handler like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;e.currentTarget.expando&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I did this in the XML Slide show example. Look at the on_click handler. Each movie clip button has a property assigned to it named image_url and another named image_desc. I access these via currentTarget with:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;e.currentTarget.image_url&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;A second option is makoing a custom event. Your custom event can support it's own features. Look at the example Simple Scroll bar example. Notice there is a file in the folder named ScrollBarEvent.as. This defines an event object named ScrollBarEvent. Which  allows an instance of SimpleScrollBar to the scroll_value property when it sends the event ScrollBarEvent.UPDATE. &#60;/p&#62;
&#60;p&#62;These files are in the folder mhudson/GDS Pickup/AS3/SimpleScrollBar
&#60;/p&#62;</description>
</item>
<item>
<title>paragonc on "pass arguements in an eventlistener"</title>
<link>http://www.webdevils.com/forum/topic.php?id=21#post-61</link>
<pubDate>Wed, 14 May 2008 16:39:23 +0000</pubDate>
<dc:creator>paragonc</dc:creator>
<guid isPermaLink="false">61@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;i have an eventlistener like&#60;/p&#62;
&#60;p&#62;&#60;code&#62;nutritionA_mc.addEventListener( MouseEvent.MOUSE_OUT, expand_A );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;how do i pass arguments to a function&#60;/p&#62;
&#60;p&#62;so something like &#60;/p&#62;
&#60;p&#62;public function(e:event, clipname:String):void {&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;i've tried &#60;/p&#62;
&#60;p&#62;&#60;code&#62;nutritionA_mc.addEventListener( MouseEvent.MOUSE_OUT, expand_A(&#38;#39;my_mc&#38;#39; );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;but that throws tons of errors
&#60;/p&#62;</description>
</item>
<item>
<title>Dave on "first image to appear in array"</title>
<link>http://www.webdevils.com/forum/topic.php?id=20#post-60</link>
<pubDate>Wed, 14 May 2008 09:48:44 +0000</pubDate>
<dc:creator>Dave</dc:creator>
<guid isPermaLink="false">60@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Ah thanks Mitch! I knew it was something small that was fighting with me!
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Errors in Messages"</title>
<link>http://www.webdevils.com/forum/topic.php?id=19#post-59</link>
<pubDate>Wed, 14 May 2008 05:14:05 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">59@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;You set the Base Class of the Symbol Posting to: Form_Page. This is not the Form. It also does not have all of the clips that the Form_Page class expects to see. Set the Base Class to:&#60;/p&#62;
&#60;p&#62;flash.display.MovieClip
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "first image to appear in array"</title>
<link>http://www.webdevils.com/forum/topic.php?id=20#post-58</link>
<pubDate>Wed, 14 May 2008 05:01:45 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">58@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;I don't see _array anywhere here so that error is either coming from somewhere else. Or, you took out whatever it was that was causing the error. &#60;/p&#62;
&#60;p&#62;TO show the first image just call the show_image() function. This shows the image at image_index, image_index should be 0, right off so that's the first image. &#60;/p&#62;
&#60;pre&#62;package classes.slideshow {
	import flash.display.*;
	import flash.events.*;
	import flash.net.*;
	import classes.assets.Content_Manager4;
	import classes.assets.Button_Group;
	import classes.assets.XMLLoader;
	import classes.assets.ImageLoader;

	public class Slideshow2 extends MovieClip {
		private var image_array:Array;	// An array to hold image urls and descriptions
		private var image_index:uint; 	// a uint to hold the index of the current image

		private var my_cm:Content_Manager4;

		public function Slideshow2() {
			// These objects perform a simple alpha tween.
			var close_tween:Object	= { alpha:0, time:1, transition:&#34;linear&#34; };		// Move the object to y 500 to get it off the stage
			var open_tween:Object	= { alpha:1, time:1, transition:&#34;easeoutback&#34; };// Move the object on to the stage to y 124
			var start_values:Object	= { alpha:0 };								 	// Set the initial alpha to 0 and position the object on the stage

			my_cm = new Content_Manager4( content_mc, open_tween, close_tween, start_values );
			my_cm.addEventListener( Event.INIT, on_init );
			my_cm.addEventListener( &#34;start&#34;, on_start );
			my_cm.addEventListener( ProgressEvent.PROGRESS, on_progress );

			bar_mc.visible = false;

			var my_xml:XMLLoader = new XMLLoader( &#34;xml/slideshow2.xml&#34; ); // { test:12, method:&#34;GET&#34; }
			my_xml.addEventListener( Event.COMPLETE, xml_loaded );

			next_mc.addEventListener( MouseEvent.CLICK, next_image );
			prev_mc.addEventListener( MouseEvent.CLICK, prev_image );

		}

		private function on_start( e:Event ):void {
			bar_mc.visible = true;
		}

		private function on_init( e:Event ):void {
			bar_mc.visible = false;
		}

		private function on_progress( e:ProgressEvent ):void {
			bar_mc.scaleX = e.bytesLoaded / e.bytesTotal;
		}

		private function xml_loaded( e:Event ):void {
			var my_xml:XML
			var image_nodes:XMLList;

			my_xml = new XML( e.target.data );
			my_xml.ignoreWhitespace = true;

			image_array = new Array();	// Make a new array. This needs to be declared as a class variable above
			image_index = 0;			// set image index to 0

			image_nodes = my_xml.child( &#34;image&#34; );

			var count:uint = 0;
			for each ( var p in image_nodes ) {
				var _obj:Object = new Object();					// Make an object to hold image info
				_obj.image_url = p.child( &#34;url&#34; ).toString();	// get the image info
				_obj.image_desc = p.child( &#34;desc&#34; ).toString();
				image_array.push( _obj ); 						// add the object to the image_array

				var _url:String = p.child( &#34;icon&#34; ).toString();			// make an imageloader to hold the icon
				var _il:ImageLoader = new ImageLoader( _url, 20, 20 );
				var _mc = new MovieClip();								// make a movie clip to hold the imageloader
				_mc.my_index = count;									// give each clip an index
				_mc.addChild( _il );	

				var _start_x = 37.0
				var _start_y = 575.0
				var spacing = 25
				var rows = 1

				_mc.x = _start_x + ( Math.floor( count / rows ) * spacing );							// position the movie clip
				_mc.y = _start_y + ( ( count % rows ) * spacing );
				addChild( _mc );

				_mc.addEventListener( MouseEvent.CLICK, on_click );				// add an event listener to the movie clip
				count ++;
			}
			// add your first image here
			show_image(); // This function will sow the image at image_index. It will not activate the first button
		}

		private function on_click( e:MouseEvent ):void {
			image_index = e.currentTarget.my_index	// get the index for this button
			show_image();
		}

		private function show_image():void { // A function to show images. So we don't have to duplicate this code
			var _image_url:String  = image_array[ image_index ].image_url;	// Get the image info based on index
			var _image_desc:String = image_array[ image_index ].image_desc;
			my_cm.add_content( _image_url );
		}

		private function next_image( e:MouseEvent ):void {
			image_index ++;
			if ( image_index == image_array.length ) {
				image_index = 0;
			}
			show_image();
		}

		private function prev_image( e:MouseEvent ):void {
			image_index --;
			if ( image_index &#38;lt; 0 ) {
				image_index = image_array.length;
			}
			show_image();
		}
	}
}
&#60;/pre&#62;</description>
</item>
<item>
<title>Dave on "first image to appear in array"</title>
<link>http://www.webdevils.com/forum/topic.php?id=20#post-57</link>
<pubDate>Wed, 14 May 2008 04:28:23 +0000</pubDate>
<dc:creator>Dave</dc:creator>
<guid isPermaLink="false">57@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hey Mitch, I got the ImageLoader and left and right arrow keys to work from your example but I was having a problem again with the first image to appear. I tried to add an array and it keeps saying 1120: Access of undefined property _array.&#60;/p&#62;
&#60;p&#62;Here's my code: &#60;a href=&#34;http://www.dmkeller.com/other/slideshow_code.rtf&#34;&#62;slideshow_code.rtf&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>JenD on "Errors in Messages"</title>
<link>http://www.webdevils.com/forum/topic.php?id=19#post-56</link>
<pubDate>Tue, 13 May 2008 05:16:21 +0000</pubDate>
<dc:creator>JenD</dc:creator>
<guid isPermaLink="false">56@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hi Mitch Im getting all sorts of errors now, when I tried to fix my files.&#60;br /&#62;
Here they are if you can take a look.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://jenniferderosa.com/jend.zip&#34; rel=&#34;nofollow&#34;&#62;http://jenniferderosa.com/jend.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Jen
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "cycle through image nodes in external xml"</title>
<link>http://www.webdevils.com/forum/topic.php?id=18#post-55</link>
<pubDate>Mon, 12 May 2008 18:30:56 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">55@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Here's what I came up with. I made an array, image_arraym that holds the image information, url and description. I also added another variable image_index that keeps track of which spot we are at in the array. &#60;/p&#62;
&#60;p&#62;Then I added a few functions that advance image_index and use it top access the info from the array. &#60;/p&#62;
&#60;p&#62;There are some sample files in mhudson/GDP Pick up/Flash_PHP_MySQL/XML Slideshow 3 on the server. &#60;/p&#62;
&#60;pre&#62;package {
	import flash.display.*;
	import flash.events.*;
	import flash.net.*;

	public class Main extends MovieClip {
		private var image_array:Array;	// An array to hold image urls and descriptions
		private var image_index:uint; 	// a uint to hold the index of the current image

		private var my_cm:Content_Manager4;

		public function Main() {
			// These objects perform a simple alpha tween.
			var close_tween:Object	= { alpha:0, time:1, transition:&#34;linear&#34; };		// Move the object to y 500 to get it off the stage
			var open_tween:Object	= { alpha:1, time:1, transition:&#34;easeoutback&#34; };// Move the object on to the stage to y 124
			var start_values:Object	= { alpha:0 };								 	// Set the initial alpha to 0 and position the object on the stage

			my_cm = new Content_Manager4( content_mc, open_tween, close_tween, start_values );
			my_cm.addEventListener( Event.INIT, on_init );
			my_cm.addEventListener( &#34;start&#34;, on_start );
			my_cm.addEventListener( ProgressEvent.PROGRESS, on_progress );

			bar_mc.visible = false;

			var my_xml:XMLLoader = new XMLLoader( &#34;slideshow.xml&#34; ); // { test:12, method:&#34;GET&#34; }
			my_xml.addEventListener( Event.COMPLETE, xml_loaded );

			next_mc.addEventListener( MouseEvent.CLICK, next_image );
			prev_mc.addEventListener( MouseEvent.CLICK, prev_image );
		}

		private function on_start( e:Event ):void {
			trace( &#34;Start&#34; );
			bar_mc.visible = true;
		}

		private function on_init( e:Event ):void {
			trace( &#34;Init&#34; );
			bar_mc.visible = false;
		}

		private function on_progress( e:ProgressEvent ):void {
			bar_mc.scaleX = e.bytesLoaded / e.bytesTotal;
		}

		private function xml_loaded( e:Event ):void {
			var my_xml:XML
			var image_nodes:XMLList;

			my_xml = new XML( e.target.data );
			my_xml.ignoreWhitespace = true;

			image_array = new Array();	// Make a new array. This needs to be declared as a class variable above
			image_index = 0;			// set image index to 0

			image_nodes = my_xml.child( &#34;image&#34; );

			var count:uint = 0;
			for each ( var p in image_nodes ) {
				var _obj:Object = new Object();					// Make an object to hold image info
				_obj.image_url = p.child( &#34;url&#34; ).toString();	// get the image info
				_obj.image_desc = p.child( &#34;desc&#34; ).toString();
				image_array.push( _obj ); 						// add the object to the image_array

				var _url:String = p.child( &#34;icon&#34; ).toString();			// make an imageloader to hold the icon
				var _il:ImageLoader = new ImageLoader( _url, 48, 48 );
				var _mc = new MovieClip();								// make a movie clip to hold the imageloader
				_mc.my_index = count;									// give each clip an index
				_mc.addChild( _il );
				_mc.x = 50 + ( count * 55 );							// position the movie clip
				_mc.y = 300;
				addChild( _mc );

				_mc.addEventListener( MouseEvent.CLICK, on_click );		// add an event listener to the movie clip
				count ++;
			}
		}

		private function on_click( e:MouseEvent ):void {
			image_index = e.currentTarget.my_index	// get the index for this button
			show_image();
		}

		private function show_image():void { // A function to show images. So we don't have to duplicate this code
			var _image_url:String  = image_array[ image_index ].image_url;	// Get the image info based on index
			var _image_desc:String = image_array[ image_index ].image_desc;
			my_cm.add_content( _image_url );
		}

		private function next_image( e:MouseEvent ):void {
			image_index ++;
			if ( image_index == image_array.length ) {
				image_index = 0;
			}
			show_image();
		}

		private function prev_image( e:MouseEvent ):void {
			image_index --;
			if ( image_index &#38;lt; 0 ) {
				image_index = image_array.length;
			}
			show_image();
		}
	}
}&#60;/pre&#62;</description>
</item>
<item>
<title>Dave on "cycle through image nodes in external xml"</title>
<link>http://www.webdevils.com/forum/topic.php?id=18#post-54</link>
<pubDate>Sat, 10 May 2008 07:44:58 +0000</pubDate>
<dc:creator>Dave</dc:creator>
<guid isPermaLink="false">54@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Hey Mitch,&#60;/p&#62;
&#60;p&#62;I came home and have been trying to figure out and remember what you told me to do at the end of workshop but I can't quite get a handle on it. Could you help me with how I would go about making the array to cycle through the images in the photos section of the site I'm working on?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.dmkeller.com/flash/mario/mario.html&#34; rel=&#34;nofollow&#34;&#62;http://www.dmkeller.com/flash/mario/mario.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for the help in the workshop by the way and it was good talk to you afterwards also.&#60;/p&#62;
&#60;p&#62;-Dave
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Transition between External SWF's"</title>
<link>http://www.webdevils.com/forum/topic.php?id=15#post-53</link>
<pubDate>Sat, 10 May 2008 06:04:20 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">53@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;If your sound is on the timeline you can do a fade out on a key frame. Similar to the way you set a motion tween, using the property inspector.
&#60;/p&#62;</description>
</item>
<item>
<title>AmirH on "Transition between External SWF's"</title>
<link>http://www.webdevils.com/forum/topic.php?id=15#post-52</link>
<pubDate>Fri, 09 May 2008 17:49:22 +0000</pubDate>
<dc:creator>AmirH</dc:creator>
<guid isPermaLink="false">52@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Ohh wow cool I didnt know you could do that . That sounds like you can do some really cool stuff with it. Ill have to try that out. Thanks a lot Mitch. &#60;/p&#62;
&#60;p&#62;And btw if anyone else is reading this in the future or what not I was having trouble fading out sound in each out animations But I found a way around that What I did was placed &#60;/p&#62;
&#60;p&#62;s = new Sound( );&#60;br /&#62;
s.attachSound(&#34;mysound&#34;);&#60;br /&#62;
s.setVolume(100);&#60;br /&#62;
s.start( 0 , 50000 );&#60;/p&#62;
&#60;p&#62;On the first frame of the whole timeline then&#60;/p&#62;
&#60;p&#62;s.setVolume(95);&#60;br /&#62;
s.setVolume(90); ... so on down to 0 on the last 19 frames of each out animation and then the sound fades out.&#60;/p&#62;
&#60;p&#62;Thanks again Mitch your always a life saver and this site is really a great resource Thank you
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Transition between External SWF's"</title>
<link>http://www.webdevils.com/forum/topic.php?id=15#post-51</link>
<pubDate>Fri, 09 May 2008 17:32:08 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">51@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;If it works, then I wouldn't worry about it. There is no &#34;wrong way&#34;. &#60;/p&#62;
&#60;p&#62;I'm not a fan of LoadMovieNum. This is an outdated method. I would rather use mc.loadMovie(). &#60;/p&#62;
&#60;p&#62;If you load a clip into a movie clip it replaces the contents of that clip. SO it you want to see a transition, you may need to wait for the current clip to finish up before loading a new clip.
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "regex on a URL String"</title>
<link>http://www.webdevils.com/forum/topic.php?id=13#post-50</link>
<pubDate>Fri, 09 May 2008 17:29:06 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">50@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;Goog one. RegExp is a whole language to itself. There is a lot of usefulness there, if you can figure it out.
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "System.totalMemory"</title>
<link>http://www.webdevils.com/forum/topic.php?id=17#post-49</link>
<pubDate>Fri, 09 May 2008 17:27:34 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">49@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;That's a good observation. I'm not really clear on how AS3 works with garbage collection.&#60;/p&#62;
&#60;p&#62;But I do know, if an object has any references it is not eligible and will not be deleted. An object that has listeners or other references that have not been cleaned up, will not be deleted. So if, CM4 removes an item, if that I item has a reference it may not be deleted. &#60;/p&#62;
&#60;p&#62;I'm not sure what to do about this. This will require some research.
&#60;/p&#62;</description>
</item>
<item>
<title>admin on "Clearing Video"</title>
<link>http://www.webdevils.com/forum/topic.php?id=16#post-48</link>
<pubDate>Fri, 09 May 2008 17:22:48 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">48@http://www.webdevils.com/forum/</guid>
<description>&#60;p&#62;IF you are using the FLVPlayback component you need to close the video to really stop it. Otherwise it continues to stream in the background. &#60;/p&#62;
&#60;p&#62;Try: closeVideoPlayer() or close().
&#60;/p&#62;</description>
</item>

</channel>
</rss>
