Show progress through AC3

Hi
I've been having a hard time for some days now trying to make a progressbar in AC3. I searched the web and tried several different approaches and attempts but nothing works.
I hope I can get some input from here now...
The main portion of the applicataion is working. It's only when I try to use AC3 to control the jumps in the timeline the problem occours.
This is my AC3-code:
import flash.events.*;
import flash.display.Loader;
stop();
addEventListener(Event.ENTER_FRAME, myFunction);
var p_loader:URLLoader=new URLLoader();
//addChild(p_loader);
function myFunction(evt:Event){
    kirupatxt.text = "TESTING";
    removeEventListener(Event.ENTER_FRAME,myFunction);
    var bytes = p_loader.bytesTotal;//evt.bytesTotal();
   trace("bytes_total: "+ bytes);
   trace("inside 'myFunction' in Preloader 1");
    var bytes_loaded = p_loader.bytesLoaded;
   trace("bytes_loaded: "+ bytes_loaded);
    if (bytes_loaded == bytes){
        kirupatxt.text = "movie loaded";
        gotoAndPlay("scene1");
   trace("inside 'myFunction' in Preloader 5");
    }else{
        this.kirupatxt.text = "loading (" + bytes_loaded + "/" + bytes +")";
        gotoAndStop("preloader");
As I run the code all the trace-statements is printed. But the bytes is 0 all the time. I guess this has something to do with the main problem. I tried to simulate the download-process, but in this way not even the "kirupatxt.text = "TESTING";" is printed in my dynamic textfield.
As my cody shows I've been trying to solve the problem in different ways of debugging.
If somebody is able to provide some help here I'd be VERY thankfull!
Thanks in advance.

Ah, yes of course. Briliant! Thanks a lot ;-)
Now I get something printed to the screen during a simulated download.
I have 2 different problems, though.
I thought that p_loader should be added to the scene? But if I do that an error is produced. Is that because the variable only should be added if it's a graphical item in the display?
The last thing is that although my application aparently works as intended now then I still get an error (several times) during run. The error is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at projectName_fla::MainTimeline/myFunction()
I have no idea why this error occours. All the function does is to print the load-information from the LoaderInfo - which works. After that the scene jumps to another place in the timeline - which works correctly, too. To debug the function I put ":void" after the function but that didn't have any effect at all.
Ah, I just tried the "Debug->Debug Movie" and it turns out that the error is produced in the line:
this.kirupatxt.text = "initializing";
as I expected. Howcome this line produces an error while the line does not produce an error if the simulated download is in progress? And howcome this line keeps on producing several instances of the error even when the active area changes to a completely different place in the timeline?

Similar Messages

  • How do you use the status column to show progress of a step in an OI?

    Hi everyone,
    I was just doing a little browsing and noticed the picture at the top of the http://www.ni.com/teststand/ web page.  It shows a progress bar in the status column of a step being executed.
    I have several applications where this would be a very useful addition.  I use the progress bar at the bottom of the OI and sequence editor regularly, but would very much like to show progress of an individual step in the status column.  It would be particularly useful where you turn the tracing off into a sequence but want to see that progress is being made through the steps within it...
    Anyone know how to do this?  I have been unsuccessful in trying to find examples....
    Cheers,
    Barry

    James,
    I believe your answer to Bazza's question also applies to my situation, but I wasn't sure so I thought I would ask.  I am working on a custom TestStand operator interface in LabVIEW using the UI controls.  I would like it to behave as closely as possible to the old Test Executive.  Specifically, I would like the operator to be able to see the contents of the sequence file, interact with them, and see the execution results all in the same view.  Is that possible?  In other words, can I display and interact with a sequence file (display the sequence steps, run selected steps, loop selected steps, etc.) and display the sequence's execution results (including tracing) in the same SequenceView control or do I have to use 2 of them?
    Thanks,
    Ryan Wright

  • Feature Request - Bring back the show progress bar

    Just in case Verizon is looking for suggestions here, can you please bring back the progress bar that was behind the start/end times in the guide? In the current guide, there is no quick graphical cue to represent how much time has progressed in the selected show. Yes, you can look at the start, end, and current times, but when browsing through shows that start/end at different times, it really slows browsing down.
    I've uploaded two images to illustrate the issue.
    The first image below is a screenshot of the v1.9 guide. The second image is a mock-up that shows the feature that I am talking about. Note the progress bar for the currently selected show in the guide that appears behind the start and end times ("7:35 AM - 9:30 AM" on the right side of the screen, in the middle).
    This was available in the previous guide, but was omitted in 1.9. It is a very useful feature. Please bring it back.
    (NOTE: The white progress bar at the top of the screen does NOT represent the progress through the show selected in the guide. It just shows the current time.)

    shadow715 wrote:
    The first image below is a screenshot of the v1.9 guide. The second image is a mock-up that shows the feature that I am talking about. Note the progress bar for the currently selected show in the guide that appears behind the start and end times ("7:35 AM - 9:30 AM" on the right side of the screen, in the middle).
    This was available in the previous guide, but was omitted in 1.9. It is a very useful feature. Please bring it back.
    (NOTE: The white progress bar at the top of the screen does NOT represent the progress through the show selected in the guide. It just shows the current time.)
    I'm sorry, but I just do not see the benefit of the elapsed time thing you propose. What difference does it make to see some kind of indicator how far into the program you are? You can't change where you are, you are there, period.
    But if you really, really want to know:
    1) Just look at the start time and end time shown in the current program in the middle, and look at the TOD shown at the top, and estimate where you are.
    - or -
    2) Hit the Info button once and see a bar that definitively shows how far in you are.
    Could you please explain why you think having that feature is so useful? I just don't see it.
    Thanks.
    Justin
    FiOS TV, Internet, and phone user
    QIP7232, QIP7100-P2, IMG 1.9A
    Keller, TX 76248

  • Showing Progress of DB App

    Hi,
    My application is doing something along the following lines......
    - Reads a number of records from a database table into a result set using SELECT statment.
    - Do some processing on the records....
    - Write them back to another database.
    -> Repeats with more tables.
    I want to represent the state of the application using JProgressBar.
    Is it only possible to show the progress through the number of tables (i.e. calculate the value for the JProgressBar by 'current table x / total tables y', or can I show this more accurately by monitoring the number of records to be read and written?
    I hope this is clear.
    Thanks!

    To do that, you would have to count the number of records to read/write (SELECT COUNT) before you select themm and use that in your calculation. This may make your app a little slower, but from my experience, users generally prefer watching a bar do something for X time rather than have it finish in X-n time.

  • ITunes 11 Not Displaying Song Playing or Progress Through Song (Mac)

    I'm using a 2008 MacBook Pro running OS X 10.8 Mountain Lion. I updated to iTunes 11 a few months back and since then I haven't been able to see the current song's information - for example the song title, artist's name, and progress through the song - at the top of iTunes while it's playing. Is this a new feature of iTunes 11 or is there some way I can adjust my setting to show the current song again?

    That's consistent with trouble with the Segoe UI fonts on your system.
    If you're using Windows XP or Windows Vista, try Vortical's technique from the following post:
    Re: iTunes 10.1 Missing Text
    But if you're using Windows 7, try itunesTRK's suggestion from the following post:
    menu bar invisible

  • Problem in showing progress image and status message.

    Hi, friends,
    I have file upload program in which when user uploads the file
    i want to show animated progress file
    i.e. ( circle.gif )
    when upload finishes it should display message :
    File < file name > uploaded successfully.
    How do i achieve it ?
    since when i am uploading file , image is displayed but
    due to upload process image is hanged up and did not showing
    animation.
    Kindly solve the above problem.
    i post my some code here.
    ============================
    javascript part is here
    function showProgress()
            document.getElementById('imgprogress').style.display = "";
         document.getElementById('imgprogress').style.visibility="";
        function completedupload()
         document.getElementById('progress').style.display = "";
         document.getElementById('progress').style.visibility="";
    <div id="imgprogress" style="display:none; visibility:hidden;"><img src="images/circle.gif"></div>
                                                      <div id="progress" style="display:none; visibility:hidden;"><%= status %></div>
                                                      <div id="" style="display:none; visibility:hidden; "><img src="images/circle.gif" width="21" height="21"></div>since it is not working good.
    please provide me good solution for this.
    i need exactly following :
    when user gives big file to upload it shows progress as animated image
    and upload process finished up, it should remove image and display status message like " File Upload completed. "

    I know this is an old topic, but I found the solution and thought I'd share it! By default, a JList only has 1 visible row. To allow the number of rows to expand dynamically, throw this in.
    this.imageList.setVisibleRowCount(-1);My code looks like this. It centers each image and centers the text under the image and wraps images horizontally.
        ListCellRenderer renderer = new ImageListCellRenderer();
        this.imageList.setCellRenderer(renderer);
        DefaultListModel listModel = new DefaultListModel();
        this.imageList.setVisibleRowCount(-1);
        this.imageList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
        this.imageList.setModel(listModel);and the renderer
    public class ImageListCellRenderer extends DefaultListCellRenderer { 
      public Component getListCellRendererComponent(JList list, Object value, int
          index, boolean isSelected, boolean hasFocus) {
        JLabel label = (JLabel)super.getListCellRendererComponent(list, value,
            index, isSelected, hasFocus);
        if (value instanceof File) {
          File imageFile = (File)value;
          String path = imageFile.getAbsolutePath();
          Image image = Toolkit.getDefaultToolkit().getImage(path);
          image = image.getScaledInstance(100, 100, Image.SCALE_DEFAULT);
          ImageIcon imageIcon = new ImageIcon(image);
          label.setIcon(imageIcon);
          label.setText(path.substring(path.lastIndexOf(File.separatorChar) + 1));
          label.setVerticalTextPosition(SwingConstants.BOTTOM);
          label.setHorizontalAlignment(SwingConstants.CENTER);
          label.setHorizontalTextPosition(SwingConstants.CENTER);
        else {
          label.setIcon(null);
        return label;
    }I need to work on this to improve performance, but it works!

  • How to show progress bar in miniplayer?

    How to show progress bar in miniplayer? I play a lot of music podcasts and it would be very helpful if anyone could help me bring that feature back.

    i answered here:
    http://forum.java.sun.com/thread.jspa?messageID=9739423&#9739423

  • Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Your feed is at http://blacktribbles.podomatic.com/rss2.xml
    When subscribed to in iTunes the recent episodes show, but the Store hasn't updated for some time.
    There appears to be an issue with the feed. In the episode 'WRESTLING MARCH MADNESS: Final Bracket & Championship' of 31st March you will find in the 'description' tag the following line:
    4. KURT ANGLE
    At the end of this line is an invisible character which seems to be wrecking the feed - although it works OK when suscribing in iTunes it won't load in a browser (and I also found the feed very slow to load, which won't help matters with the Store)
    This sort of thing usually happens when you paste text in from a word processing application and manage to include one of the invisible control characters. I don't know how easy it will be do do it in Podomatic but you should delete that entire line and retype it to remove this charter.
    You should keep an eye on the time it takes the feed to be accessed - if there is a long enough delay (and it was quite some seconds when I tried) the Store may well timeout and fail to read it. At the moment it's showing a cached version from the last time it was able to read it.

  • How to show progress during a long Render call

    My effect computes values from all frames in a layer much like Warp Stabilizer does. I set a flag and do this when necessary in my Render function. The user controls when to analyze by clicking a button in the effect UI.
    It can take from a few seconds to over a minute depending on the layer, so I need to show progress to the user.
    In After Effects I can use the progress bar, and put text in the info panel from within the Render proc; but I'd like to find a better way to show progress.
    Indicidentally, neither of these two thing seem to works in Premiere Pro.
    Warp Stabilizer shows progress to the left of the Analyze button in its effects window, but I can's seem to do this from within Render.
    Any ideas?

    Try the Top Menu or Menu button on the dvd player remote. That usually returns to the start of the dvd.

  • XML access through AC3

    Hello to all of you!
    I'm new in Flash, so i would like some help here....
    I'm trying to build a User Interface (SWF) and provide it to my customers in order to have access (easely) and they can change the data (images & Texts) of an XML driven photo Gallery.
    After i load the XML in Flash(CS4),  i can 'trace'  the nodes at the output panel but when i'm editing new data the changes are not "saved"...
    The Files look like this:
    gallery.xml
    fla
    <?xml version="1.0" encoding="utf-8"?>
    <objects>
       <picture_path>pictures/1.jpg</picture_path>
       <thumb_path>thumbs/1.jpg</thumb_path>
       <picture_desc> abcdefgabcdefg </picture_desc>
       <picture_title>  ABC  </picture_title>
       <picture_path>pictures/2.jpg</picture_path>
       <thumb_path>thumbs/2.jpg</thumb_path>
       <picture_desc> abcdefgabcdefg </picture_desc>
       <picture_title>   </picture_title>
       <picture_path>pictures/3.jpg</picture_path>
       <thumb_path>thumbs/3.jpg</thumb_path>
       <picture_desc>  abcdefgabcdefg  </picture_desc>
       <picture_title> ABCDEFG </picture_title>
    </objects>
    var captionsXMLLoader:URLLoader = new URLLoader();
    captionsXMLLoader.load(new URLRequest("gallery.xml"));
    captionsXMLLoader.addEventListener(Event.COMPLETE, captionsXMLLoadedHandler);
    function captionsXMLLoadedHandler(eventObj:Event):void {
           var captionsXML = new XML(eventObj.currentTarget.data);
           trace(captionsXML.picture_title[2]);                // -> ABCDEFG
      //  ( This line should change the data of XML ? )
           captionsXML.picture_title[2] = "Bla Bla Bla Bla...";
           trace(captionsXML.picture_title[2]);                // -> Bla Bla Bla Bla...
    My problem is that i can't change the data in the XML through AC3 . Is this possible ?
    Please some help here !!!

    You'll primarily need to find out how to pass data from Flash to PHP.  The PHP can be used to manage formatting the data into xml (if you like), and to save the file.  For functions relative to PHP, Google works for me by using "PHP" along with whatever terms best suit the functionality I'm looking for.
    For passing data to a PHP file, look into using the URLVariables class and the URLLoader class.  If you Google "AS3 and PHP" and similar terminology you may find a tutorial.  You might try checking www.gotoandlearn.com for a tutorial that is along these lines.

  • Show progress bar before loading the applet or application

    hi ,
    My application size is large and take some time to load . Now i want that to show progress bar . how can i do this .Please Help me
    sorry for my english.
    Thanks

    Do everything in a seperate thread. Create a progress bar in the main thread, then create a new thread for initializing your app. Once the init is done, hide the progress bar and make your app visible.

  • Show progress bar while executing scp command in linux

    I am being trying to execute scp command throug java frames, I want to know is there any way to show progress when i am copying a file to another system.
    The scp command shows the progress in command prompt can i implement that on the jprogressbar.
    thanx in advance.

    I am being trying to execute scp command throug java frames, I want to know is there any way to show progress when i am copying a file to another system.
    The scp command shows the progress in command prompt can i implement that on the jprogressbar.
    thanx in advance.

  • Firefox Downloads (in classic or new download window) does not show progress or downloads

    I noticed that when I download anyhitng that the download window (classic and new) windows do not show progress anymore, do not show files downloaded, nor give me anything to right-click and go to that folder, in which it was saved. I had it fixed for 1 day, until it started to lose the files the next day.
    I only see the arrow turning green, with no result within the downloadswindow.
    I had done the following:
    1. In the Location bar, type about:config and press Enter.
    o The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
    2. In the Search field, type browser.download.manager.scanWhenDone.
    3. Double-click on the browser.download.manager.scanWhenDone setting to change its value to false.
    You can set the Boolean pref browser.download.useToolkitUI to true on the about:config page to restore the classic Download Manager window.
    Yet this problem still continues.

    '''Try the Firefox SafeMode''' to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#w_safe-mode-window_2 Troubleshoot Firefox issues using Firefox SafeMode]
    When in Safe Mode... <br />
    * The status of plug-ins is not affected.
    * Custom preferences are not affected.
    * All extensions are disabled.
    * The default theme is used, without a persona.
    * userChrome.css and userContent.css are ignored.
    * The default toolbar layout is used.
    * The JIT Javascript compiler is disabled.
    * Hardware acceleration is disabled.
    * You can open the Firefox 15.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes <br />
    Or it might be caused by Hardware Acceleration.
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • How to show progress bar

    how to show progress bar

    This gets asked about 100 times a day, especially when you get people posting it multiple times - learn to use the search facility, or at least Google. It's really not that hard.
    Type "java progress bar" into Google and hit "I'm feeling lucky" - the answer is there.

  • Make task befor send mail. Use of "Show Progress" and Exception

    Hello,
    Could I handle Send Event of MailItem in a way that Outlook understand it.
    I want to do a long task before sending the mail. The user musn't be block. I wish Outlook display the task when user click on "Show progress" I have two choise actualy:
    - I cancel upload while my task ending.
    - I make a new thread were i do all the process and finally call the mailItem send method
    The first seems to work pretty well. But it need the user wait to the end of the process before send. As it didn't block the user to write read others mail it could be a solution.
    I prefered the second one who don't change the user experience. But i have many problem to do it :
    - How to apeared in "Show progress"
    - Exception raise when i send a (draft)mailItem show in preview pane.
    Thanks.

    That is how Outlook Object Model works. Prior to Outlook 2013, some things would work on secondary threads, but sometimes they would blow up in a really spectacular fashion. So in Outlook 2013 Microsoft made a decision to raise an exception immediately as
    soon as Outlook detects that one of its objects is used on a thread other than the primary Outlook thread.
    This applies to the COM addins only of course since when your code is running inside the outlook.exe process. If you are out-of-proc, all calls will be marshaled to the main Outlook thread anyway, which negates the whole purpose of using multiple threads
    to begin with.
    Only Extended MAPI (C++ or Delphi) can be safely used on a secondary thread. You can also use the
    RDO family of objects in
    Redemption - it wraps Extended MAPI and can be safely used on a secondary thread from any language. See also
    http://www.dimastr.com/redemption/faq.htm#Threads
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

Maybe you are looking for