dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: setInterval problem

  1. #1
    Member
    Join Date
    May 2006
    Posts
    48

    setInterval problem

    Hý u all,
    is it possible that set interval gives strange results in internet explorer? Maybe I'm the onlyone who didn't know jet!!!!!

    I have a movieclip that u can drag around. While the user drags it around if the movieclip x and y coordinates are x>200, y>400, the set interval should call a function. In internet explorer it calls the function only onRelease of the movieclip instead of during is dragged around.


    tell me anything about it
    salta

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    some code would be nice
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Member
    Join Date
    May 2006
    Posts
    48
    ok, sorry..

    Code:
    function ismoving(){
    	position = my_Mc._x+100;
    	caso();
    }
    function caso(){
    		if (position>300){
    		moveit();
    		}
    }
    function moveit(){
    	ball_Mc._x=300;
    	clearInterval (myInterval);
    }
    myInterval = setInterval (ismoving,10);

  4. #4
    Member
    Join Date
    May 2006
    Posts
    48
    I forgot the my_Mc code..

    my_Mc.onPress=function(){
    my_Mc.startDrag();
    }
    my_Mc.onRelease=function(){
    stopDrag();
    }

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