Solved

Flash MX 04 progress bar

Posted on 2003-12-02
5
17,658 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 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

16 Experts available now in Live!

Get 1:1 Help Now