A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Duped MCs not inheriting BLEND

Hybrid View

  1. #1
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793

    Duped MCs not inheriting BLEND

    OK. Let's say you have an MC and it is set to 50% alpha and a color tint. If you duplicate this MC through AS, the newly created MCs will have inherited those alpha, tint settings (and more).

    However, now we have BLEND settings. Duplicating an MC with a blend setting results in the new MCs having their blend set to NORMAL!

    Is this a bug, oversight, or intentional?

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    There are a couple of things not duplicated since long time. It's easy to solve: Create the effect with AS and then add the effect back with AS. Here is an example. Make a movieclip and call it clip.
    PHP Code:
    import flash.filters.BlurFilter;
    var 
    blurX:Number 30;
    var 
    blurY:Number 30;
    var 
    quality:Number 3;
    var 
    filter:BlurFilter = new BlurFilter(blurXblurYquality);
    var 
    filterArray:Array = new Array();
    filterArray.push(filter);
    clip.filters filterArray;
    duplicateMovieClip("clip""clip1"1);
    clip1._x 200;
    clip1.filters filterArray
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Yup, I know you can set it after the fact. Your example is with filters. What about something as simple as MC.blendmode = x; Don't you think a duplicated MC should at least inherit the blendmode? It inherits alpha, so why not blendmode?

    Anyways, no biggie. Here's what I did:

    http://www.flashkit.com/board/showth...80#post3410680
    Last edited by Ray Beez; 10-03-2005 at 05:10 PM.

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    It's not important what I think . The fact that it is not there may mean there will be Flash 9.
    Personally I think as long as you can add these effects afterwards using scripts I don't see any problem. It's a bit inconvenient but solvable.
    - The right of the People to create Flash movies shall not be infringed. -

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