Solved

Flash MX 04 progress bar

Posted on 2003-12-02
5
17,671 Views
Last Modified: 2012-06-21
After dragging and dropping a progress bar in the stage, what and how do I add in the actions box in order for it to work? I'm using it with a movie clip which is on a different level. All I need it to do is measure the percent loaded for me.

The Flash help center is terrible! It tells you what components are, but not how to use them.


Thank you!

Nathan Heck
0
Comment
Question by:Naterator
5 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9861198
It should be something like this:

listener = {path:this};
listener.complete = function()
{
      trace("MOVIECLIP LOADED")
};
progressbar_instance.mode = "polled";
progressbar_instance.source = your_movieclip;
progressbar_instance.addEventListener("complete", this.listener);
0
 

Author Comment

by:Naterator
ID: 9871489
This still doesnt help me. I need to start from the beginning. I am not that familiar with Flash MX's set up,escpecially in dealing with action script. I typically have used Flash 5.

I have a movie clip in scene 2. In scene one I placed the progress bar. Is this correct? I want it to read the movie and adjust its precentage accordingly. I tried adding the action script I was sent in my first answer, however, it keeps telling me I need an event handler.

As I was saying, I'm still getting used to the fact that there is not an option between normal and expert mode in Flash anylonger. Normally, I would just use normal mode which did not require you to write code.

0
 
LVL 27

Accepted Solution

by:
negatyve earned 250 total points
ID: 9873263
If you are not trying to preload only the movieclip, but the entire movie, then:

• correctly place your progressbar in the first frame of scene 1
• assign the progressbar an instance name, ie "progressbar_instance"
• write this code on the same frame:

stop();
listener = {path:this};
listener.complete = function()
{
    this.path.play();
};
progressbar_instance.mode = "polled";
progressbar_instance.source = _root;
progressbar_instance.addEventListener("complete", listener);
0
 

Expert Comment

by:rorodiazvillar
ID: 10540742
How can I jump from one scene to another within a simbol, like a buttons. I'm using flash mx, and can't make the gotoAndPlay ("intro") work.
0
 

Expert Comment

by:MatrixII2004
ID: 12441860
Sothink Glanda 2004 provides some preloader components. To use it, you just need to drag and drop it, without writing any actions.

http://www.sothink.com/campaigns/glanda.php3.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now