A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Quick: Can a jpeg be moved out of one MC to another one?

Hybrid View

  1. #1
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    look into setMask. Make a movie clip to be used as the mask and then use

    isMaskMc.setMask("maskedMc");
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  2. #2
    Dogs Die In Hot Cars
    Join Date
    Jun 2003
    Location
    Sheboygan, WI
    Posts
    109
    I will monkey around with it in the morning. Thank you for your help
    The Dude Abides

  3. #3
    Dogs Die In Hot Cars
    Join Date
    Jun 2003
    Location
    Sheboygan, WI
    Posts
    109
    I got it to work.

    just the opposite of what you thought but close:

    maskedMc.setMask("MaskMc");

    Here is my working code as of now:

    _global.k = 1;
    function nextPic() {
    clearInterval(setTime1);
    trace(">> k = " + k);
    var loadListener:Object = new Object();

    loadListener.onLoadComplete = function(target_mc:MovieClip):Void {
    trace(">> loadListener.onLoadComplete()");
    target_mc.setMask(_root.picMask);
    _root.picMask.gotoAndPlay(2);
    if (_root.picMask._currentframe = _root.picMask._totalframes) {
    setTime1 = setInterval(nextPic,5000);
    }else if (k > 11) {
    clearInterval(setTime);
    }
    }
    loadListener.onLoadInit = function(target_mc:MovieClip):Void {
    trace(">> loadListener.onLoadInit()");
    }
    if (k < 12) {
    var container:MovieClip = empty.createEmptyMovieClip("container" + k, k);
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(loadListener);
    mcLoader.loadClip("http://www.address/madeup/" + k + ".jpg", "empty.container" + k);
    k++
    clearInterval(setTime);
    }

    }
    The Dude Abides

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