Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: sound problem

  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts

    sound problem

    Whats wrong with my code.. the sound does not work
    PHP Code:
    thanks
    [PHP]
    var 
    bir = new Array(m1m2m3m4m5);
    var 
    hedef = new Array(h1h2h3h4h5);
    var 
    say=0;
    for (
    i=0i<=bir.lengthi++) {
        
    bir[i].i;
        
    bir[i].onPress = function() {
            
    startDrag(this);
            
    this.onEnterFrame = function() {
                if (
    this.hitTest(hedef[this.j])) {
                    
    //.........................
                    
    snd = new Sound(this);
                  
    snd.attachSound("ses1");
                
    this.snd.start();
                
    //..................
                
    unloadMovie(hedef[this.j]);say++;
                
    kutu.text=say*10;
                
                }
            };
        };
        
    bir[i].onRelease = function() {
            
    stopDrag();
        };




    [/PHP]

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Could you load the FLA for us to download and test? I have no idea where to begin with this.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    New Coder
    Join Date
    Jun 2007
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts
    okay .. thanks I solved the problm..deleteing (this) in "this.snd.start()"
    fixed the problem..

  • #4
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your thread, I have met the same problem.
    Really helpful forum


  •  

    Posting Permissions

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