Hi, I need help with my flash mp3 player

Hi, I need help with my mp3 player, I wan't to add the pause button... Can you help me?

I created the button I added btn_pause and it won't work.

function soundStatus() {}

var amountLoaded = _root.sound_mc.sound_obj.getBytesLoaded () / _root.sound_mc.sound_obj.getBytesTotal ();

_root. Loader.loadBar._width = amountLoaded * 260;

duration = _root.sound_mc.sound_obj.duration;

position = _root.sound_mc.sound_obj.position;

_root.playHead._x = position / duration * 272 + 5;

}

btn_play.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.songStarter (songfile [song_nr]);

};

btn_pause.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.sound_obj.pause ();

};

btn_stop.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.sound_obj. Stop();

};

btn_fw.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

(song_nr == songfile.length - 1)? _Global.song_nr = 0: _global.song_nr ++;

_root.sound_mc.songStarter (songfile [song_nr]);

};

btn_rev.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

(song_nr == 0)? _Global.song_nr = songfile. Length-1:-_global.song_nr;

_root.sound_mc.songStarter (songfile [song_nr]);

};

< proposed by the mod to as3 - kglad >

:

function soundStatus() {}

var amountLoaded = _root.sound_mc.sound_obj.getBytesLoaded () / _root.sound_mc.sound_obj.getBytesTotal ();

_root. Loader.loadBar._width = amountLoaded * 260;

duration = _root.sound_mc.sound_obj.duration;

position = _root.sound_mc.sound_obj.position;

_root.playHead._x = position / duration * 272 + 5;

}

btn_play.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.songStarter (songfile [song_nr]);

};

btn_pause.onRelease = function() {}

clearInterval (timeInterval);  you must re - set interval when the unpause button is clicked

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.sound_obj. Stop()

};

{btn_unpause.onRelease = Function ()}

This._parent.sound_mc.sound_obj. Start(position/1000);

}

btn_stop.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

This._parent.sound_mc.sound_obj. Stop();

};

btn_fw.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

(song_nr == songfile.length - 1)? _Global.song_nr = 0: _global.song_nr ++;

_root.sound_mc.songStarter (songfile [song_nr]);

};

btn_rev.onRelease = function() {}

clearInterval (timeInterval);

_root.timeDisplay_txt. Text = "00:00 / 00:00 ';

(song_nr == 0)? _Global.song_nr = songfile. Length-1:-_global.song_nr;

_root.sound_mc.songStarter (songfile [song_nr]);

};

Tags: Adobe Animate

Similar Questions

  • MAC OS 10.6.8 using Safari 5.1 need help with Adobe Flash update

    Hello-

    Recently, Adobe Flash installed an icon in my system preferences and when I click the icon it has several tabs.  It allows updates automatically check.  It is said it will install the latest version of Flash without having to remove the previous version, but I've never said that a newer version is available, unless I have click "check now".  Although "Check updates automatically" is checked, I don't know where he tells me a newer version is available.  In addition, there was 5 "new versions" available since this icon has been installed in the system Prefeences, I only found on newer versions when I clicked on "check now".  If I read that with this new way to install the Mac final version of Flash requires not me to uninstall the previous version of Flash how we installed the latest version of Flash?  Is it in an email?

    Because it tells me that there is a newer version of Flash unless I click on "Check now" must still do the way I used to install the latest version of flash?  (The path in front of this icon was added to the system preferences)?

    I would appreciate help with update Flash to the latest version.  I used to uninstall the old version, restart the browser and download the latest version and install it.  He always worked find, but that was before there was an Adobe icon in my system preferences.

    Here are the instructions to uninstall and install the Flash drive on Mac:

    Uninstall Flash Player | Mac OS

    Setup instructions for Mac OS

    This link will give you updates for the two betas and release version updates.  In fact, whenever we update the player you should be notified.

    Thank you

    Chris

  • need help with loading Flash on Apple Mac Mini

    Lost my username, password & I am unable to load flash version 8 or better, totally computer illiterate & need HELP!

    Hi Michael,

    Please see what userid & password I need to install Flash Player?.

    --

    Maria

  • Need help with simple flash keys

    So I need help either direct tutorial or someone to point me in the direction of something useful.

    What I'm trying to do, is create 3 clickable flash buttons which all have a link to a small box. I want these buttons to make the text appear in the box when clicked. I want the box to be a Virgin until a button is clicked.

    EXAMPLE OF

    _______________
    | TEXT HERE |
    |                          |
    |_______________|
    ___     ___     ___
    |__|     |__|     |___|

    Thank you very much in advance.

    Strike what I said about the code being fine.  It is not (my eyes just woke up).  This is a correct coding for the way you had it.  To have the button share the same function of handler you need another approach that tests for which the button is clicked.  Instead of this approach, below I show each button has its own manager function...

    Stop();
    BTN1.addEventListener (MouseEvent.Click, mouseClick1);
    function mouseClick1(event:MouseEvent):void
    {
    gotoAndStop (2);
    }

    Btn2.addEventListener (MouseEvent.Click, mouseClick2);

    function mouseClick2(event:MouseEvent):void
    {
    gotoAndStop (3);
    }

    BTN3.addEventListener (MouseEvent.Click, mouseClick3);

    function mouseClick3(event:MouseEvent):void
    {
    gotoAndStop (4);
    }

  • Need help with a Flash component in Director

    Hello Board,

    I use the combo box component Flash for a drop-down list because I'm more familiar with Director Flash, but my job requires my work incorporated to the Director for the full application.

    In any case, I use the Flash Combo Box component in my film, some options send events to the Director and others control the animation Flash itself. Anyway, the film works very well when the SWF is run on its own, but it blocks Director when I try in there.

    I use Flash 8 professional and Director MX2004 with the 10.1 update.
    Any suggestions? Worst case I can use a pull down menu in Director, but I have no idea how to do so I am at a very low level of use Lingo, I want to avoid it if I can.

    You need the 10.1.1 update. Be sure to read the documentation. This
    update requires some effort to install.

    --
    Rob
    _______
    Rob Dillon
    Adobe Community Expert
    http://www.DDG-designs.com
    412-243-9119.

    http://www.Macromedia.com/software/trial/

  • Need help with my Flash file

    My continuous flash file in a loop at the end of my stop ignoring and defer orders.

    It works perfectly until the last frame/command. I want it loop to the first image, and for this, but then the movie will not properly there after. Is there anyone who can help me with this file, please?

    Thanks for your time.

    Here's what the file looks like

    http://safarianimals.freeiz.com/2010_FHNRZ_Header.html

    Here is the swf file

    http://safarianimals.freeiz.com/2010_FHNRZ_Header.swf

    Here you can download the original FLA file

    http://CID-04caffbb2769932f.SkyDrive.live.com/self.aspx/Flash%20HELP/2010 ^ _FHNRZ ^ _Header.f the

    Thanks for the help

    Here ya go Linda.  This has proved to be a little more work than I anticipated, but not too bad.  This is because I thought I was just able to enter and change what you had, but I didn't understand how you did, or really know anything on the as2, so I just redid it.  Images are resized and I think it does what you want.  Take a peek.  Everything is controlled by AS3, there is nothing on the stage of the timeline.

    I did a lot of comments, but let me know if you need any help to understand the logic and flow to tweak it for your own use.

    Here is the HTML link:

    http://www.GTCC.edu/distance/learning_objects/Flash/test/Linda/2010_FHNRZ_HeaderCS3_IQ.htm l

    The SWF file:

    http://www.GTCC.edu/distance/learning_objects/Flash/test/Linda/2010_FHNRZ_HeaderCS3_IQ.swf

    The CS3 fla file:

    http://www.GTCC.edu/distance/learning_objects/Flash/test/Linda/2010_FHNRZ_HeaderCS3_IQ.fla

  • Need help with a flash animation

    I'm doing a flash banner with an image on the right that is covered with blinds and open when the page loads. Then, on the left side of the banner, I have a text I want to fade once the image load and stops.

    I don't have a clue as to what I'm doing wrong, I can get the photo for loads and stores to open, but when I try to add the text to fade in I don't have my photo, although the text fade works very well.

    Can someone here please give me advice on this issue? I'm pretty new to Flash and I have been work ing have sound for 3 days with no luck. Any help would be greatly appreciated.

    Thank you

    S.

    The problem with the text appears not all to do with you set the movieclip alpha to 0%.  Not in the movieclip, but the movieclip itself.  Ditto for the xray icon, except you who have as a graphic symbol instead of a movieclip.  For this game while living in an image, you will need to change it to a movieclip symbol.

    To get the text to play after the blinds (just a minor criticism, I would speed up the blinds), you'll want to add code in the framework where you added the stop in the animation of blinds.  You will also need to assign names to instance for the clips of text in the properties panel, but also to place a stop(); in their first frames (on the inside).

    Let's say you name them upperText and lowerText.  Then, the code that you add at the end of the animation of blinds (as part of the judgment) would be...

    _parent.upperText.play ();

    _parent.lowerText.play ();

    The part "_parent" which is used to target the timeline which is containing the element doing the command, which basically means that it is the guy inside the Lampshade saying the guy outside the Lampshade to do something.

    You probably want to add stops at the ends of text and animations.

    If you want to have the first trigger the second text, then take you that second line above and place it in the last frame of the first animation of text instead of the blinds animation.

    Note that, on occasion, undeterminably, that code above does not work for some strange reason... the animation plays in the next frame and stops... so if you run into that, just put a play(); in the second frame to help push along.

    PS GotoandPlay would actually gotoAndPlay and for the above code, you can replace play(); with gotoAndPlay (2);

  • Need help with CC Flash and ActionScript 3

    Hello

    In serious trouble find how to add a tag to click for ad servers when you use CC Flash and ActionScript 3. Can anyone help or point me in the right direction?

    Thank you!

    See if the following can help.  If not, show what you have tried and does not work...

    Flash "clickTAG" tutorial - learn how to build "clickTAG" active Flash banners with click location capability!

  • Desperately need help with the Flash tool bone

    Hello, I recently started to animate with flash and I have a very annoying problem with the BONE tool. I can't apply the bone to Jpeg etc. I import my images for flash and have tried to make the symbols etc., the only thing that worked it is breaking apart. Then when I use the BONE tool it cuts the image on the screen

    PIC of the problem

    1.jpg

    2.jpg

    Trying to animate his arm, no luck. Is there something im missing?

    If it's important, specifications and software:

    Adobe Master Collection CS5.5 commercial version

    I7 2600 k 3.7 Ghz

    16 GB RAM DDR3

    Config Raid 6 to HARD drive

    GTX 580 x 2

    Thanks in advance, Karl

    No, he just put in place and make sure that test the various movements of the arm before you start to create poses for the frame. If you take a look at the example file (using clips), you will see that the symbol is slightly overlap at the level of the joint and the transformation point is also at the level of the joint. If you want your figure to change when you move it then your image must not be bitmap and vector.

  • Need help with a flash form

    Hello

    I have a customer who would like a form like this, http://www.plus.approvedprintingcompanies.co.UK/UK/questionnaire6/UK-companies.aspx?gclid= CI_ku7L5850CFU0B4wodDDjIIw # 

    I guess it is Flash, I really know a bit about Dreamweaver and have managed to design a site with this. I don't know anything about Flash, although I have the program. I am able to easily create a form similar to this one, and then apply it in Dreamweaver?

    I know how to create a form in dreamweaver and then once that he argued, it is sent to an e-mail address. But this form looks like it is in individual pages, or it works in the same way?

    Can someone tell me if I can create something like this and place in dreamweaver? And there at - it a tutorial that I can use?

    This form is not a Flash design.  I can't tell you how to design, but you can look at the source code of the page to see it.

  • A2107A new user needs help with a new media player

    Hi please can anyone suggest a good player to install on my Ideapad A2107A as a built-in custom plays several popular formats such as MKV and some others.i have installed free VLC Player, but I use potplayer on my PC which is excellent and will play all formats, I need... only it is not listed in the application listed , but only "DAUM" is (responsible for the coding of potplayer) I need to use the player in the Portugal where access to broadband is not very good... I'm going on vacation that's why I bought my Lenovo... Thanks a lot for all the help on this topic

    Hi, adrian631330

    Welcome to Lenovo community Fourms!

    I think you can see this Post.

    http://forums.Lenovo.com/T5/IdeaPad-IdeaTab-Slate-tablets/A1-the-best-video-players/m-p/648187/highl...

    You might just find the right App for you!

    Hope this helps,

  • Need help with coding for HTML5 with emergency Flash video

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 with emergency Flash video. Not sure if the coding is correct. Do I need any other JavaScript etc.?

    code.jpg

    Another thing is that you don't have to include SWF as aid manual if you provide all 3 ogv, webm & mp4 video formats as one of these formats will certainly be played in any browser that is fully compatible HTML5.

    Still one thing you could do if you don't mind hosting your video on Youtube is to get an embed code for Youtube - in this way, you don't have to convert all the files. YouTube will do it for you and it will play on devices of HTML5 as well as supports Flash player of relief for devices that cannot play HTML5.

  • Need help with Flash - really basic!

    Hi, I really need help with Flash and quick. I have to create an auto-run cd, but before I can create that, I have to make everything works! I took a class in College Flash, which up to 1 1/2 ago so im kind of knowledge missing!

    My first problem is as follows:
    I have the homepage, and it contains a button English and french.
    When you click on buttons, it brings you to the next page, either resourcesFr or resourcesEn.
    I tried to use the loadMovie script but and it works but the new page loads on the home page you can still see the English/french under buttons. How can I fix? I know its simple but I am short on time... Should I still use the loadMovie script?

    My other problem is that im trying to have another button to link to a folder. Use the script for getURL for this as well?

    Help!

    I was able to solve my problem... it was only the forward slash that were in the wrong way... so the correct code is:

    on (release) {}
    DRV = _url.substr (8.1);
    getURL (drv + ": / English/brochures");
    }

    Only took me 5 days... I think I need to buy a script book action! Laughing out loud

  • Need help with windows defender. all my files folders pictures everythiing disappeared and I find myself with this black screen and it is not all good: o)

    Need help with windows defender. all my files folders pictures everythiing disappeared and I find myself with this black screen and it is not all good: o)

    I don't know why vista windows no longer charge, or when the files and folders disappeared

    How Windows Defender is on this problem?

    Follow these steps to try to solve your problems of boot.

     

     

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Data recovery:

    1. slave of your hard drive in another computer and read/save your data out there.

    2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.

    3 Alternatively, use Knoppix Live CD to recover data:

    http://www.Knopper.NET/Knoppix/index-en.html

    Download/save the file Knoppix Live CD ISO above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://isorecorder.alexfeinman.com/isorecorder.htm

    Download the Vista software from the link above.

    After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.

    Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.

    Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.

    Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.

    When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.

    Click on the icons of hard drive to open and to understand which drive is which.

    Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).

    Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.

    See you soon.

    Mick Murphy - Microsoft partner

  • Need help with video scrolling

    Hello

    I need help with a project. Subsequently, I want is that a webcam controls the position of the mouse and the mouse position

    control of a video. But I would like the part where the mouse position controls the video.

    So, if the mouse is on the left on your screen, the video will be on the first image and when you move, you're the mouse for

    the right to the video play as a result traffic. and stop when the mouse is completely right.

    Effectivly the scrolles from the mouse through the video. It must be on the x-axis.

    I'm not that formilliar with flash, so any help would be great

    THX!

    Thijs

    what you need to do, is to designate a rectangle where users can use their mouse to scroll through the video.  If this rectangle has instance name bar, you can use:

    var m, b:Number;

    var lastSeek:int = getTimer();

    flv_pb.addEventListener (MetadataEvent.METADATA_RECEIVED, f);

    bar.addEventListener (MouseEvent.MOUSE_MOVE, moveF);

    function f(e:MetadataEvent):void {}

    paramF (0,0,stage.stageWidth,e.info.duration);

    }

    function moveF(e:MouseEvent):void {}

    {if (getTimer () - lastSeek > 1000)}

    flv_pb. Seek(m*e.stageX+b);

    lastSeek = getTimer();

    flv_pb. Play();

    }

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m = (y2 - y1) / (x 1 - x 2);

    b = y1 - m * x 1;

    }

Maybe you are looking for