Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flash MX 04 progress bar

Posted on 2003-12-02
5
Medium Priority
?
17,705 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

670 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