Draggable Progress Bar for swf - as2

Hi there,
I need to add a progress bar/playback controls for a presentation built in AS 2.0 which has such length voice over in it we've decided we need to give the user the ability to see where they are in the timeline and scrub through sections of the presentation. I'm familiar with stop and pause button code in situations like this, but it's the first time I've needed this kind of functionality. Presently, the first part of my project is set up with several scenes and is completely linear. The second section is interactive with swfs loaded into empty movieclips.
I've found a number of references to progress bars online, but they're all for loading content, not for navigating once content is downloaded.
Thanks so much in advance,
Susan

determine the two extremes of your progress bar, say xLow and xHigh, though you could use a vertical scrollbar, too and use y values.  you can then use:
var tl:MovieClip=this;
parameterF(yourdragbar_mc,xLow,1,xHigh,tl._totalframes);
yourdragbar_mc.onPress=function(){
this.startDrag(false,xLow,this._y,xHight,this._y);
this.onEnterFrame=scrollF;
yourdragbar_mc.onRelease=function(){
this.stopDrag();
delete this.onEnterFrame;
function scrollF():Void{
tl.gotoAndStop(Math.round(this.m*this._x+this.b));
function parameterF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Void{
mc.m = (y1-y2)/(x1-x2);
mc.b=y1-mc.m*x1;

Similar Messages

  • Progress bar for animation

    I am trying to make a progress bar for my animation, similar
    to the stock flv players that came with CS3.
    I am controlling a swf file loaded into the 'container'
    movieclip, and I can get the scroll bar to control the movieclip.
    In other words, the animation will jump to the right frames when I
    drag the bar. However, when I put in code to make the progress bar
    follow the action (using a onEnterFrame event handler) It follows
    the animation, but now I can't scroll.
    Question: How do I make my scroll bar stop following the
    action when you click on it to scroll somewhere else???
    Thanks in advance for your help!

    Ok, so i took another crack at it and fixed the action script issues which for some reason half disappeared when i loaded it back up ( Maybe it didn't properly register the change back to AS 3? I resolved the other ones that popped up in it's stead after staring at the code for a bit ). Next a related issue so i'm gonna post it here, but does anyone know how to get the image rotation loop to play while it loads?

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • How to use progress bar for Main and Subsequences in teststand

    HI,
    I have one main sequence in that I am calling different subsequences (Containing many steps and for loop).
    I am trying to use progress bar for this sequence, but my requirement is progressbar is able to show the progress of all the steps containing in Main and subsequences.
    I have developed sequence in that I am able to show the progress for only Main sequence steps not for subsequences steps.
    Is it possible? If yes please let me know the suggestions.
    Thank You

    Hi Santosh
    Here you are
    Greetings
    Juergen
    never Double Click on Submit
    Message Edited by j_dodek on 08-05-2008 08:05 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Progress_ts351.seq ‏52 KB

  • Custom "Draggable" progress bar in Flash

    I have created a custom skin for a Flash video that I wish to use. I currently have a shape tween within an MC that acts as the progress bar for the Flash video. Is there code that will allow me to click and drag that shape tween and control the movie? My movie is embedded within my flash not streamed. Is this possible, or if anyone knows of any good tutorials that would help me achieve this that would be great.
    Cheers-
    Graeme

    you can use any scrollbar tutorial.  instead of scrolling the _x or _y property of a movieclip, you'll be scrolling through the frame numbers that span the timeline that contains your video.
    to look for a tutorial specific to your situation, try using google to search for "flash scrollbar timeline"

  • Problem with a progress bar for downloading attachment

    I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message:
    Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: "Q3w5ilxj2P"
    I found the explanation:
    Certain IMAP servers do not implement the IMAP Partial FETCH
    functionality properly. This problem typically manifests as corrupt
    email attachments when downloading large messages from the IMAP
    server. To workaround this server bug, set the
         "mail.imap.partialfetch"
    property to false. You'll have to set this property in the Properties
    object that you provide to your Session.
    http://java.sun.com/products/javamail/NOTES113.txt
    So I turned off partial fetch:
    Properties props = System.getProperties();
    props.setProperty("mail.store.protocol", "imaps");
    props.setProperty("mail.imaps.partialfetch", "false");
    Session session = Session.getDefaultInstance(props, null);
    Store store = session.getStore("imaps");
    store.connect("imap.gmail.com", "<username>","<password>");this solved the problem ….however the method getInputStream() from the Part class blocks the thread until the attachment is completely downloaded and it is impossible to get the information about the number of bytes which have been already downloaded from mailbox.
    Without this information it is impossible to display the progress bar. So is there a way to obtain this information and display the progress bar?
    Edited by: 911161 on 2012-01-31 10:55

    Try the answer I provided to your post on stackoverflow.com:
    http://stackoverflow.com/questions/9086700/how-to-displaly-progress-bar-for-downloading-attachment

  • Progress bar for movieclip animations

    Hello,
    I have to create a presentation with audio and animation synced - it's about 5 minutes.  It has 5 buttons at the bottom that the user can use to navigate to a particular subject of the presentation.  But I was asked if there could be a progress bar for each subject so that the user could see how far they've gone.  I'm thinking I could have something check to see how far along the audio is and have a bar move along as the audio moves along.
    This seems like a project that's probably been done, if anyone could help that'd be great, thanks!

    I don't deal with sound much, but you should be able to monitor the position property against the duration property much like CL mentioned using the frames.  You would use the ratio of position/duration to determine how far along the playtime is (percent complete), and you can use that value to control the width of a progress bar.
    A progress bar can be as simple as a rectangular strip whose normal width would be the 100% complete size.  You control the width by using the percentage complete times that full width value.  To make it more visually representative of when the end is coming, when you draw that rectangle, include a line border.  But isolate the fill as as the progress bar movieclip.  That way, the border lets you know what the full size is while the fill as a movieclip changes to fill up the outline.  You can also include a textfield if you like to display the percent completion.

  • Progress bar for FLV

    Hi -
    I have a site with some pretty hefty FLV's and I want to show
    the user that they are loading...the progress bar thing.
    So I used the code right out of the livedocs for "Creating a
    progress bar for loading FLV files with Actionscript". I used it
    with their sample FLV and with my FLV and got the same result. I
    saw a progress bar and percent text, I heard the audio, but no
    video. Can anyone help me either fix the livedoc code or use some
    other to get this to work??
    Thanks,
    Josh

    “…but no video.”
    Ok. From the beginning;
    1. CTRL+L to open up the library panel.
    2. On the very top right corner there is an icon. Click on
    it.
    3. A menu will appear and then select “New
    Video”.
    4. Drag this instance from the library onto the stage.
    5. Give it an instance name of “my_video”
    6. Put the code from the livedocs into frame one.
    That should work. If you can actually compile the code with
    nothing on stage and you can hear the audio from that FLV. So that
    means you don’t have a Video instance on stage or incorrect
    instance name. Good luck.

  • Progress Bar for file upload

    Dear sirs...
    i have an ADF UIX page that uploads an ORDVideo file. is it possible to display the progress in the upload operation using a progress bar for example???
    thanks for any help

    Did you get to know how to do it?
    Anuj

  • TS3681 the device displays the Apple logo with no  progress bar for 8 hours until battery run flat.

    My Iphone4 displays the Apple logo with no progress bar for 8 hours until battery went flat this was after i try to make an up date know the  i tunes dosent reconise my phone.
    Can you please help me
    Thank you.

    http://support.apple.com/kb/ht1808

  • HT201263 my iphone 3g Stops responding, showing the Apple logo with no progress bar or a stopped progress bar, for over ten minutes ..plz give me suggusition ?

    Stops responding, showing the Apple logo with no progress bar or a stopped progress bar, for over ten minutes

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Creating Progress Bar for File Upload

    Hi, I'm trying to implement a progress bar indicator for a file upload in WebDynpro, without very good results.
    I'm using a fileupload UI element, a TimerTrigger and a ProgressIndicator UI elements for this purpose.
    It seems that using the fileupload UI element the iview is locked during the file upload, and therefore it prevents for the timer triggered action to be performed (this action updates the progress bar).
    Additionally I havent been able to capture the transfered bytes from the upload. Maybe I'm using the wrong elements?
    How could I achieve this. Has anyone done it?
    I would really appreciate all the help I could get.
    Homer Vargas

    Hi,
    Can anyone please tell me the way to upload file from client system to server.
    The code i have is as follows:-
    Jsp:-
    function saveImage(){
         //projectname.javafilename
         var strStatus = "save";
         document.saveImageForm.action="/irj/servlet/prt/portal/prtroot/TestXML.TextImageLink?frmstatus="+ strStatus;
         document.saveImageForm.method="post";
         document.saveImageForm.submit();     
    <form name="saveImageForm" encrypt="multipart/form-data">
    <table width="388" cellpadding="1" cellspacing="1" bgcolor="#F0F0F0" border='0'>
           <tr>
                 <td><font color="blue" face="verdana" size="2">IMAGE:</font></td><td><input id="image" type="file" name="image" value=""/></td>
         </tr>
    <tr>
         <td><input type="submit" name="submit" value="Submit" onclick="saveImage();"/></td>
         </tr>
    </table>
    </form>
    now i am not getting what to write in java file
    using IPortalComponentRequest.
    Using the jsp file upload in tomcat is working but here it is not working
    please help meee
    Thanks in Advance
    Regards
    Sirisha

  • Progress bar for report?

    Hi there,
    Does anyone have any advice on how to display a progress bar while a report is running (PDF report, web, using Reports 6, OAS)? We have the report output pop up in a new dialog browser window. The window pops up, but depending on the report, sometimes it takes a minute or so before the report output is actually displayed in the window. The users are requesting a progress bar to show them that it's working and how far they are from seeing the output.
    Any ideas? Any built-in functionality? Should I bring Forms into the mix?
    Thanks in advance
    Dave

    user-Rachna wrote:
    I created a dynamic action on 'Before page submit' and showed an alert to see if it works or not. But it doesn't work for my report as the report gets refreshed without submitting the page.
    Here is exactly what I have:
    http://apex.oracle.com/pls/apex/f?p=54687:38:109840028367746
    Thanks.
    It would seem to be an obvious step to create additional dynamic actions on the Before/After Refresh events for the report region to show/hide the plug-in loading frame.

  • Progress bar for unmarshalling?

    Hi all,
    Can anyone give me an idea on how to track unmarshalling with progress bar.
    Here is a situation: I'm unmarsalling XML file to get my working object(s).
    Object obj = unmarshaller.unmarshal(file)Anyway, for big files I would like to present a user with some progressbar which
    will indicate loading progress.
    Is this doable?
    Thanks

    If you are trying to update the progress bar display when your upload is 10%, 20%, , , x% complete, then you have to 'pretend' that the progress bar display corresponds to the percentage completness of your file upload. I believe that there is no other way to get around this without comprimising the speed of your upload.
    Check out the swing forum, I believe there is a lot of discussion on this topic.

  • How to create/set progress bar for loading flash intro

    Hi,
    I am having a falsh intro for my website.
    But its taking time to download and play the intro when we try to access it.
    I have seen many sites with progress bar indicating the status on the downloading of flash items.
    Can anybody please tell me how should I go about this?

    You can make a simple loader, it's a visual cue so your users wait for a moment.
    Try this, get a GIF from one of these site: http://www.google.com/search?hl=en&client=safari&rls=en-us&q=loading+gif&btnG=Se arch
    download it and name it as loader.gif
    add it to you page, and add the following to the page using HTML Snippet:
    <script type='text/javascript'>
    var timerCount = 0;
    var delayTimer = 5; // change this for the duration to show the loader.gif
    var loaderName = 'loader.gif';
    function stopLoader() {
    _imgs = parent.document.getElementsByTagName('img');
    for (ji = 0; ji< _imgs.length; ji++) {
    if (_imgs[ji].src.indexOf(loaderName) != -1) {
    loaderElement = _imgs[ji];
    break;
    if (timerCount == delayTimer) {
    loaderElement.style.visibility = 'hidden';
    clearInterval(_stopLoader);
    timerCount++;
    parent.iWLog(timerCount);
    _stopLoader = setInterval('stopLoader()', 1000);
    </script>
    BTW, here is an example: http://hdl.50webs.com/Sample/Blank.html

Maybe you are looking for

  • Itunes on windows 7 pc not responding

    What can I do about itunes on windows 7 pc not responding?

  • Table headings disappearing in pdf?

    Why are some table headings disappearing when I pdf a Frame 8 file? There is no pattern in the disappearances and each time I pdf the file, a different cell heading disappears. If I create a text box and paste that box over the heading, it shows up f

  • Writing text file in while loop

    Here is my question about writing text data to a file in a while loop...worded best I can. I have an Init case where I have the user choose a file path and name. I take the ref out and then I have data that is being written to the file. The loop will

  • Crystal Report 9.2のサポートプラットフォーム(Windows2003)について

    掲題の件.お教えください. 現在Windows 2000環境でCrystal Report9.2で作成したレポートファイル(rptファイル)を VB6.0から使用し.帳票システムが実現しています. 本システムのOSをWIndows2003 サーバ上で動作させようと考えておりますが. 上記のような使用は.Windows2003サーバ上でサポートされていますでしょうか?

  • SAP Roles problem

    Hej, I have a multiselect with all SAP roles looking like this: I'm trying to store the list of roles in the variable accounts[SAP].activityGroups that represents the roles in the resource, with no success so i want to know how i must store that over