Advertisement

05.29.2008 at 01:26AM PDT, ID: 23440683
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Is this a bug in Flash's TransitionManager Class?

Asked by lynx03 in Macromedia Flash

Tags: , , ,

Hi,

Not sure whether this is a bug in Flash AS3's TransitionManager class, or I'm missing something here which is preventing me from accomplishing some effect.

Frame 1.
- circle movie clip is on stage.
- debug dynamic text called "output" is on stage.
- script as per snippet below, which basically fades the circle in, issuing "done" to the output text when done, and forwarding the playhead to Frame 2.

Frame 2 - 20.
- circle is tweened (via timeline, not via script) from Frame 2 to 20, basically made skinny. Anim stops at Frame 20 (stop is issued on Frame 20).
- output dynamic text is on stage, and on entry in Frame 2, output.text is set to "tweening" so we know where we are.

Now, we should see the circle fade in, and then going skinny. Output text will correspondingly say "done" and "tweening".

What we actually see however, is circle fade in, and then remain unchanged. Output text does change from "done" to "tweening" - meaning Frames 2- 20 are playing, but the circle is not moving.

Is there some obscure thing I'm missing here?

I've included the fla file (just rename it from *.xls to *.fla after you download - EE won't accept *.fla files).

Feel free to suggest alternative means of accomplishing the fade in (e.g. using the TWEEN class - not sure how to use it) so that Frames 2-20 will actually work (i.e. circle will go skinny). Accomplishing Frames 2-20 via scripts is not really an option as this is a simplification of something more complex I'm trying to accomplish on the timeline.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
stop();
 
import fl.transitions.*;
import fl.transitions.easing.*;
 
var trans:TransitionManager = new TransitionManager(circle);
trans.addEventListener("allTransitionsInDone", forward);
trans.startTransition({type:Fade, direction:Transition.IN, duration:4, easing:Strong.easeOut});
 
//TransitionManager.start(smartTag, {type:Fade, direction:Transition.IN, duration:2, easing:Strong.easeOut});
 
function forward(e:Event):void
{
	output.text = "done";
	gotoAndPlay(2);
 
}
Attachments:
 
Rename this to *.fla after you download.
 
[+][-]06.19.2008 at 01:55AM PDT, ID: 21820422

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: Adobe, Flash CS3, 9.0, ActionScript 3.0
Sign Up Now!
Solution Provided By: blue-genie
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.20.2008 at 02:19AM PDT, ID: 21829443

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628