<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: ]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Mon, 23 Nov 2009 10:20:56 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12346</link><description><![CDATA[is there some reason why the swf uses so much processing power ... it doesnt seem to have a rest point and always stays relatively high.   It works well on my pc but I wonder about others.  At least there should be rest points between the animations when nothing is moving.<br/><br/>
(Comment posted by Josh at 1:07 pm, Wed 3rd Dec 2008)]]></description><author>no@spam.com (Josh)</author><pubDate><![CDATA[Wed, 03 Dec 2008 13:07:21 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12346</guid></item><item><title><![CDATA[Comment #2 (Reply to Comment #1)]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12347</link><description><![CDATA[Josh,

Thanks for posting your question. The only time I ever ran into performance issues with this class is if you do not remove the digitalWarpIn class after using it to load your movie clip. See the digitalWarpIn class is what contains all of those little bitmap-generated effects and if you do you remove that item from the display list after the effect has been used then you will accumulate many loaded movie clips into the memory very fast, seeing that there is approximately 100 small clips generated per item. So, very important, removeChild(myDigitalWarpInClass) when you're all done. I'm going to "upgrade" the warp in class so it does it all for you and you don't have to add/remove it to the display, I'll post the update link here when I'm done OR you can subscribe to my tutorials at www.ascensionsystems.ca/tutorials.<br/><br/>
(Comment posted by Jesse Nicholson at 1:14 pm, Wed 3rd Dec 2008)]]></description><author>no@spam.com (Jesse Nicholson)</author><pubDate><![CDATA[Wed, 03 Dec 2008 13:14:15 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12347</guid></item><item><title><![CDATA[Comment #2 (Reply to Comment #1)]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12348</link><description><![CDATA[Okay, nevermind............ for some reason the author utility said this comment was linked to one of my other tutorials for the digital warp in/warp out class, SO, without looking I just commented based on what I thought the issue would be with that class.. oops. Okay so anyway what the issue would be, is the ENTER_FRAME event for updating the blurFilters being used as well as using the SimpleZSorter class. That's most likely it. SO, what you would do here is simply change the code so that ENTER_FRAME event is only being called whenever you're tweening through the "space". So, for example:

You use the zipTo function to move to each element based on what menu item you click. While this is running, the ENTER_FRAME event is running as well. Go find the ENTER_FRAME event listener and remove it. Leave the ENTER_FRAME function though. On the zipTo code and whatever other code is used to move through the space, do this:

[as]
function zipTo(e:MouseEvent):void
{

addEventListener(Event.ENTER_FRAME, updatePos);

 if(e.target == b1){
  Tweener.addTween(mySpace, {z:-f1.z, x:f1.x - 720, y:f1.y - 700, time:2, onComplete:removeIt});
 }else if(e.target == b2){
  Tweener.addTween(mySpace, {z:-f2.z, x:f2.x - 720, y:f2.y - 700, time:2, onComplete:removeIt});
 }else if(e.target == b3){
  Tweener.addTween(mySpace, {z:-f3.z, x:f3.x - 720, y:f3.y - 700, time:2, onComplete:removeIt});
 }else if(e.target == b4){
  Tweener.addTween(mySpace, {z:-f4.z, x:f4.x - 720, y:f4.y - 700, time:2, onComplete:removeIt});
 }else if(e.target == b5){
  Tweener.addTween(mySpace, {z:-f5.z, x:f5.x - 720, y:f5.y - 700, time:2, onComplete:removeIt});
 }else if(e.target == b6){
  Tweener.addTween(mySpace, {z:-f6.z, x:f6.x - 720, y:f6.y - 700, time:2, onComplete:removeIt});
 }
}

function removeIt():void
{
removeEventListener(Event.ENTER_FRAME, updatePos);
}[/as]

You'll notice I added three things, in the Tweener event parameters I added the "onComplete" parameter and told it to call a function called removeIt. I then wrote that function added in a line of code to remove the event listener for the ENTER_FRAME event. I also put the event listener for the ENTER_FRAME event inside the button function so that it is applied and re-applied every time you "move" through the menu. This will give you that "break" in performance. Hope that helps, thanks for your comment I should have thought of this before!<br/><br/>
(Comment posted by Jesse Nicholson at 1:29 pm, Wed 3rd Dec 2008)]]></description><author>no@spam.com (Jesse Nicholson)</author><pubDate><![CDATA[Wed, 03 Dec 2008 13:29:14 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12348</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12349</link><description><![CDATA[Thanks for the quick response ... I will try it out, what you recommended seems very logical.  Thanks again I love the effect of this, and the tutorial was quite helpful!<br/><br/>
(Comment posted by Josh at 2:33 pm, Wed 3rd Dec 2008)]]></description><author>no@spam.com (Josh)</author><pubDate><![CDATA[Wed, 03 Dec 2008 14:33:18 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12349</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12351</link><description><![CDATA[Brilliant, it rests at zero processor usage now! It frees up juice for other interactions when the z is at rest.  Thanks again for the help. ^_^<br/><br/>
(Comment posted by Josh at 2:51 pm, Wed 3rd Dec 2008)]]></description><author>no@spam.com (Josh)</author><pubDate><![CDATA[Wed, 03 Dec 2008 14:51:29 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12351</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12353</link><description><![CDATA[Seems that moving <code>addEventListener(Even t.ENTER_FRAME, updatePos);</code> into the button function bypasses the blur & sort on the initial rendering when first loading the swf.  Once a button is clicked the updatePos function runs and the blurs & z stay proper from that point on.  

I guess I need to trigger that updatePos once before any buttons are clicked.  Moving that event listener outside of the button burns performance, is there a way to trigger the removeIt function after the first initial updatePos?

When I figure this out I'll post it back.  
I'm attempting to convert this from a menu to a whole interface with the "pages" being within the s1 etc movie clips, changing from a static view to an active area when in focus.<br/><br/>
(Comment posted by Josh at 1:00 am, Thu 4th Dec 2008)]]></description><author>no@spam.com (Josh)</author><pubDate><![CDATA[Thu, 04 Dec 2008 01:00:38 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12353</guid></item><item><title><![CDATA[Comment #7 (Reply to Comment #6)]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12355</link><description><![CDATA[Remember on the fourth page that initial tween that kinda shifts the whole thing into place? Just add the ENTER_FRAME event listener above that line, and then add the same onComplete parameter to the tween. Like this:

addEventListener(Event.ENTER_FRAME, updatePos);
Tweener.addTween(mySpace, {z:-f1.z, x:f1.x - 720, y:f1.y - 700, time:2, onComplete:removeIt});

That'll do it.<br/><br/>
(Comment posted by Jesse at 10:01 am, Thu 4th Dec 2008)]]></description><author>no@spam.com (Jesse)</author><pubDate><![CDATA[Thu, 04 Dec 2008 10:01:06 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12355</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12514</link><description><![CDATA[quick question...I am trying to create a sphere shaped 3d menu...and I can't use tweens because the "geographical" positions of the other buttons cannot be calculated for all possible movements (on roll over each button the sphere moves around it's axis bringing the button to the central view)

so...how can I do this without using motion tweens ?<br/><br/>
(Comment posted by Stefan Padureanu at 6:24 am, Fri 16th Jan 2009)]]></description><author>no@spam.com (Stefan Padureanu)</author><pubDate><![CDATA[Fri, 16 Jan 2009 06:24:55 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment12514</guid></item><item><title><![CDATA[Comment #9 (Reply to Comment #8)]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13531</link><description><![CDATA[You can actually use motion tweens for the roll over event to accomplish exactly what you want.<br/><br/>
(Comment posted by Jesse at 1:50 pm, Sat 3rd Oct 2009)]]></description><author>no@spam.com (Jesse)</author><pubDate><![CDATA[Sat, 03 Oct 2009 13:50:15 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13531</guid></item><item><title><![CDATA[Comment #10]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13527</link><description><![CDATA[Hi!
I've got these listed below errors:
1046: Type was not found or was not a compile-time constant: SimpleZSortVO.
1046: Type was not found or was not a compile-time constant: Matrix3D.
1061: Call to a possibly undefined method getRelativeMatrix3D through a reference with static type flash.geom:Transform.
1180: Call to a possibly undefined method SimpleZSortVO.
1172: Definition flash.geom:Matrix3D could not be found.

I have only flash.geom.matrix namespace. There is none matrix3D!
Have I done something wrong?<br/><br/>
(Comment posted by Andrzej at 1:41 pm, Sat 3rd Oct 2009)]]></description><author>no@spam.com (Andrzej)</author><pubDate><![CDATA[Sat, 03 Oct 2009 13:41:21 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13527</guid></item><item><title><![CDATA[Comment #11]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13528</link><description><![CDATA[1172: Definition flash.geom:Matrix3D could not be found.

I have only flash.geom.matrix

What can I do?<br/><br/>
(Comment posted by Andrzej at 1:43 pm, Sat 3rd Oct 2009)]]></description><author>no@spam.com (Andrzej)</author><pubDate><![CDATA[Sat, 03 Oct 2009 13:43:53 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13528</guid></item><item><title><![CDATA[Comment #12]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13529</link><description><![CDATA[1172: Definition flash.geom:Matrix3D could not be found.

I have only flash.geom.matrix

What can I do?<br/><br/>
(Comment posted by Andrzej at 1:44 pm, Sat 3rd Oct 2009)]]></description><author>no@spam.com (Andrzej)</author><pubDate><![CDATA[Sat, 03 Oct 2009 13:44:29 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13529</guid></item><item><title><![CDATA[Comment #13]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13530</link><description><![CDATA[1172: Definition flash.geom:Matrix3D could not be found.

I have only flash.geom.matrix

What can I do?<br/><br/>
(Comment posted by Andrzej at 1:45 pm, Sat 3rd Oct 2009)]]></description><author>no@spam.com (Andrzej)</author><pubDate><![CDATA[Sat, 03 Oct 2009 13:45:33 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13530</guid></item><item><title><![CDATA[Comment #14 (Reply to Comment #13)]]></title><link>http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13573</link><description><![CDATA[I am sorry for duplicates. Something wrong with my browser perhaps.
I made my own 3d menu on base yours example with FlashCS4 demo version and all works excellent. Great job!<br/><br/>
(Comment posted by Andrzej at 6:05 am, Wed 14th Oct 2009)]]></description><author>no@spam.com (Andrzej)</author><pubDate><![CDATA[Wed, 14 Oct 2009 06:05:07 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/0/1//Page1.html#Comment13573</guid></item></channel></rss>