A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sound

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    91

    Sound

    Check / download sound player with pause button, volume control slider and real time position/duration.

    Maybe someone knows how get a duration/position progress bar?

    Btw. Kusko, where are you? I hope you will return soon with a new version. 3DFA is a great, so please come back :]
    Last edited by 3DH; 06-01-2009 at 08:10 PM.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    46
    amazing...

    can you explain please how did you made the slider volume (i didn't downloaded the .movie yet)
    Don't blame me cuz' my English sucks ) i'm from romania XD

    www.xelubest.ro

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    91
    My english sucks. Better check this tutorial and analyse my code:

    Code:
    muzyka.setVolume(ratio);
    ratio = mySlider.dragger.x;
    /// slider
    mySlider.dragger.onPress = function()
    {
    	this.startDrag(true,0,0, mySlider.line._width,0);
    	this.onEnterFrame = function()
    	{
    		ratio = Math.round(this._x*100/mySlider.line._width);
    		root.getVolume = ratio;
    	}
    }
    mySlider.dragger.onMouseUp = function()
    {
    	this.stopDrag();
    }
    mySlider - Variable (Instant) name of movie "mySlider".
    dragger - Variable name of object (dragger) in movie "mySlider".
    mySlider.line._width - object "line" and his width in mySlider movie.
    Last edited by 3DH; 06-01-2009 at 09:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center