dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tricky one this! rotate a movieclip! help :)

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    3

    Tricky one this! rotate a movieclip! help :)

    Hi guys first post so be kind!

    Finding my feet with flash CS3 and need a little help rotating a some movie clips:

    example code below:

    }
    end_holder._visible = false;
    scope.createEmptyMovieClip("back_img",0);
    scope.createEmptyMovieClip("card_holder",1);
    scope.createEmptyMovieClip("end_holder",2);
    end_holder._x=Stage.width/2
    end_holder._y=Stage.height/2;
    end_holder.attachMovie("endMovie","endMovie",0);
    end_holder._visible = false;
    ShuffleCards();
    loadIMG(a_bg[Math.floor(Math.random()*bgNum)],back_img);
    card_holder._x = 690
    card_holder._y = 250
    back_img._x = 690
    back_img._y = 250

    }

  2. #2
    Junior Member
    Join Date
    Apr 2009
    Posts
    3
    that went well! I forgot to add I want to rotate

    scope.createEmptyMovieClip("back_img",0);
    scope.createEmptyMovieClip("card_holder",1);
    scope.createEmptyMovieClip("end_holder",2);

    Can I use something like this

    myMC._rotation += 15;

    as you can see I am no expert! thanks guys!

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    3

    typical!

    Ok I managed to figure it out myself!!

    }
    end_holder._visible = false;
    scope.createEmptyMovieClip("back_img",0);
    scope.createEmptyMovieClip("card_holder",1);
    scope.createEmptyMovieClip("end_holder",2);
    end_holder._x=Stage.width/2
    end_holder._y=Stage.height/2;
    end_holder.attachMovie("endMovie","endMovie",0);
    end_holder._visible = false;
    ShuffleCards();
    loadIMG(a_bg[Math.floor(Math.random()*bgNum)],back_img);
    card_holder._x = 690
    card_holder._y = 250
    back_img._x = 690
    back_img._y = 250
    back_img._rotation += 90;
    card_holder._rotation += 90;

    }


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