A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How Would i Duplicate a MC in V8 not 6

  1. #1
    Senior Member
    Join Date
    Nov 2006
    Posts
    196

    How Would i Duplicate a MC in V8 not 6

    Hey im wondering how i would make this in action script v8 not v6 this is the v6 code i made my self =)
    :

    PHP Code:
    createEmptyMovieClip("square",i);
    square.lineStyle(1,0x0,80);
    square.beginFill(0x55FF,100);
    square.lineTo(0,25);
    square.lineTo(25,25);
    square.lineTo(25,0);
    square.lineTo(0,0);
    square.endFill();
    onEnterFrame=function(){
        
    Mouse.hide();
        
    onMouseMove=function(){
            
    i++;
            
    square.duplicateMovieClip("square"+i,i,{
                                      
    _x:_xmouse,
                                      
    _y:_ymouse
                                      
    })
        }
        
    square._visible=false;

    but i dont know how to do it in V8 flash V8 is not AS2 as well =).

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    KoolMoves doesn't support AS2 and AS2 isn't required to use the flash 8 features. The only thing you have to change when you want to export your code for flash 8 is add a line in the beginning
    i=0;
    . This is because flash player 6 handles variables that are not initialized before they are used in a different way compared to flash player 8.

  3. #3
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    it Works that was easy thanks wilbert =)

    (yer i know thats why i said flash 8(v8) aint as2);
    Last edited by this.Alex; 12-10-2006 at 04:24 AM.

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