Solved

Flash MX 04 progress bar

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

809 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