If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    May 2008
    Member #

    I am creating a flash file that duplicates a mc (jclip_mc) every few seconds or so on random places on the screen. This works.
    I would also like to scale the mc depending on where on the screen it appears. If it appears on the upper half, it should scale 50%. On the lower half, no scale. This I can't make to work. The code is below.

    mycount = 0;
    function createjclip_mc() {
    if (mycount<50) {
    _root.jclip_mc.duplicateMovieClip("jclip_mc"+mycou nt,_root.getNextHighestDepth());
    randomX = 500*Math.random() + 100;
    randomY = 300*Math.random() + 100;
    eval("jclip_mc"+mycount)._x = randomX;
    eval("jclip_mc"+mycount)._y = randomY;

    newmcname = ("jclip_mc"+mycount);
    if (randomY < 250) {

    } else {
    } else {
    for(var i = 0;i<50;i++){
    ID = setInterval(createjclip_mc,4000);

    I figured if I do this; newmcname = ("jclip_mc"+mycount);
    to refer to the new mc name in the conditional if/else, it would work, but it doesn't.

    Any help would be greatly appreciated.
    2Shea Creative Graphic Design

    Dull pencils make dull drawings


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 02:11 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: