Mask of independent shifts of container object

Hi all

I do pieces of button to use in my GUI factory. I'm having a problem placing my sticker chart w/mask and the border. The mask is not away 0.0 when the tile is moved to 280,10. I can force it to 280,10. I'll be multiples of this and another button in a drop-down with her own mask in a container. I am trying to build in a work-a-round for this feature. Any ideas?

Here is the main part of the miniature class:

public void Thumbnail() {}
the constructor code
makeThumbnail();
}

private function makeThumbnail (): void {}
picMask.width = 80;
picMask.height = 80;
picMask.x = 0;
picMask.y = 0;

PIC.x = 0;
PIC.y = 0;

picHolder.mask = picMask;
picHolder.addChild (pic);

addChild (box);
box.graphics.lineStyle (2, 0 x 000000, 1);
box.graphics.beginFill (0 x 000000, 0);
box.graphics.drawRect (0, 0, 80, 80);
box.graphics.endFill ();
picHolder.x = 0;
picHolder.y = 0;
addChild (picHolder);
}
}

I call the thumbnail of my button class here as the last object added to the button:

var btnThumbnail:Thumbnail = new Thumbnail();

btnThumbnail.x = 280;
btnThumbnail.y = 10;
btnThumbnail.picMask.x = 280; Added to this to force location mask
btnThumbnail.picMask.y = 10;  Added to this to force location mask

btnBody.addChild (btnThumbnail); btnBody is the container containing the button components

//////

Thanks for your time,

Jim

I don't see where your mask is added to the display list, so it will stay at 0,0.  Add to the picHolder, if that's what you want.

Tags: Adobe Animate

Similar Questions

  • get container objects

    OK, so I have this container and a bunch of objects beside that it. some of these objects are fields of textinput, but now for some reason any, that I can't the values stored within these areas, I don't know if it's because I'm not asking the right methods or what. Could someone please explain it to me?

    I have included the code, watched the function named RightSubCalculateSeries to see where I access the fields.

    Thank you guys

    package
    {
        //import qnx.ui.core.Container;
        //import mx.rpc.mxml.Concurrency;
    
        //import qnx.ui.buttons.Button;
        import flash.display.Shape;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.filesystem.File;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
    
        import mx.collections.ArrayList;
    
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.core.*;
        import qnx.ui.data.DataProvider;
        import qnx.ui.display.Image;
        import qnx.ui.listClasses.List;
        import qnx.ui.text.Label;
        import qnx.ui.text.TextInput;
    
        // The following metadata specifies the size and properties of the canvas that
        // this application should occupy on the BlackBerry PlayBook screen.
        [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
        public class ResistorTest extends Sprite
        {
    
            //for the resistor tab
        /*  
    
            private var R1TextField:TextInput;
            private var R2TextField:TextInput;
            private var R3TextField:TextInput;
    
            private var ResistorTab:LabelButton = new LabelButton();
            private var CapacitorTab:LabelButton = new LabelButton();
            */
    
            //=====================================container=====================
            private var RightSub:Container;
            private var MidSub:Container;
            private var LeftSub:Container;
            private var TopSub:Container;
    
            private var myMain:Container;
    
            //++++++++++++++++++++++++++++++++++UI controls+++++++++++++++++++
            //==========================UI title=======================
            private var TitleLabel1:Label;
            private var TitleLabel2:Label;
            private var TitleLabel3:Label;
            private var TitleLabel4:Label; // the title bar
    
            //=============================UI input fields
            //------------Resistor
            private var Resistor1Value:TextInput;
            private var Resistor2Value:TextInput;
            private var Resistor3Value:TextInput;
    
            //-----------Capacitor
            private var Capacitor1Value:TextInput;
            private var Capacitor2Value:TextInput;
            private var Capacitor3Value:TextInput;
    
            //-----------Inductors
            private var Inductor1Value:TextInput;
            private var Inductor2Value:TextInput;
            private var Inductor3Value:TextInput;
    
            //================UI calculate button
            private var RtotalParallal:LabelButton;
            private var RtotalSeries:LabelButton;
    
            private var CtotalParallal:LabelButton;
            private var CtotalSeries:LabelButton;
    
            private var ItotalParallal:LabelButton;
            private var ItotalSeries:LabelButton;
    
            //==================number
            private var R1:Number;
            private var R2:Number;
            private var R3:Number;
            private var sum:Number; 
    
            //====================object counter
            private static var limit:int =3; 
    
            //constructor here
            public function ResistorTest()
            {
                //load background img
                var appBackgroundImage:Image = new Image();
    
                appBackgroundImage.setImage(File.applicationDirectory.resolvePath('BG.jpg').url);
                appBackgroundImage.setSize(1024,600);
                appBackgroundImage.setPosition(0,0);
    
                addChild(appBackgroundImage);
    
                addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage);
                initializeUI();
    
            }
    
            private function initializeUI():void
            {
    
                //===============================container==========================================
                //main container
                myMain = new Container();
                myMain.debugColor = 0xFFCC00;
                myMain.margins = Vector.([30,30,30,30]); //margins for the left, top, right, and bottom edges
                myMain.flow = ContainerFlow.HORIZONTAL; 
    
                addChild(myMain);
    
                // sub container
    
                Make4SubCon();
    
                //add sub containers
                myMain.addChild(RightSub);
                myMain.addChild(MidSub);
                myMain.addChild(LeftSub);
                myMain.addChild(TopSub);
                //======================================================================================
    
                //======================initialize the UI titles
                var labelFormat:TextFormat = new TextFormat();
                labelFormat = new TextFormat();
                labelFormat.size = 22;
                labelFormat.color = 0x00FF00;
    
                addSubContainerTitle();
                //add subcontainer title
                RightSub.addChild(TitleLabel1);
                MidSub.addChild(TitleLabel2);
                LeftSub.addChild(TitleLabel3);
    
                //============================ initialzie the UI body, the fields for entry
                //add three resistors.
    
                addResistorWithTextField(1);
                addResistorWithTextField(2);
                addResistorWithTextField(3);
    
                //insert calculate button
                RtotalParallal = new LabelButton();
                RtotalParallal.addEventListener(MouseEvent.CLICK, calculateParallal); //this should return an int
                RtotalParallal.label = "Calculate Parallal";
    
                RightSub.addChild(RtotalParallal);
    
                RtotalSeries = new LabelButton();
                RtotalSeries.addEventListener(MouseEvent.CLICK, RightSubCalculateSeries); //this should return an int
                RtotalSeries.label = "Calculate Series";
    
                RightSub.addChild(RtotalSeries);
    
                //======================================add three capacitors
                //capacitor 1
                /*var Capacitor1:Label = new Label();
                Capacitor1.format = labelFormat;
                Capacitor1.text = "Capacitor 1:";
                Capacitor1.width = Capacitor1.textWidth + 5;
                Capacitor1.height = Capacitor1.textHeight + 5;
    
                Capacitor1Value = new TextInput();
                Capacitor1Value.width = 80;
                MidSub.addChild(Capacitor1);
                MidSub.addChild(Capacitor1Value);
    
                //capacitor 2
                var Capacitor2:Label = new Label();
                Capacitor2.format = labelFormat;
                Capacitor2.text = "Capacitor 2:";
                Capacitor2.width = Capacitor2.textWidth + 5;
                Capacitor2.height = Capacitor2.textHeight + 5;
    
                Capacitor2Value = new TextInput();
                Capacitor2Value.width = 80;
                MidSub.addChild(Capacitor2);
                MidSub.addChild(Capacitor2Value);
    
                //capacitor 3
                var Capacitor3:Label = new Label();
                Capacitor3.format = labelFormat;
                Capacitor3.text = "Capacitor 3:";
                Capacitor3.width = Capacitor3.textWidth + 5;
                Capacitor3.height = Capacitor3.textHeight + 5;
    
                Capacitor3Value = new TextInput();
                Capacitor3Value.width = 80;
                MidSub.addChild(Capacitor3);
                MidSub.addChild(Capacitor3Value);
    
                //insert calculate button
    
                CtotalParallal = new LabelButton();
                CtotalParallal.addEventListener(MouseEvent.CLICK, calculateSeries); //this should return an int
                CtotalParallal.label = "Calculate Parallal";
    
                MidSub.addChild(CtotalParallal);
    
                CtotalSeries = new LabelButton();
                CtotalSeries.addEventListener(MouseEvent.CLICK, calculateParallal); //this should return an int
                CtotalSeries.label = "Calculate Series";
    
                MidSub.addChild(CtotalSeries);
    
                //======================================add three inductors
                //inductor 1
                var Inductor1:Label = new Label();
                Inductor1.format = labelFormat;
                Inductor1.text = "Inductor 1:";
                Inductor1.width = Inductor1.textWidth + 5;
                Inductor1.height = Inductor1.textHeight + 5;
    
                Inductor1Value = new TextInput();
                Inductor1Value.width = 80;
                LeftSub.addChild(Inductor1);
                LeftSub.addChild(Inductor1Value);
    
                //inductor 2
                var Inductor2:Label = new Label();
                Inductor2.format = labelFormat;
                Inductor2.text = "Inductor 2:";
                Inductor2.width = Inductor2.textWidth + 5;
                Inductor2.height = Inductor2.textHeight + 5;
    
                Inductor2Value = new TextInput();
                Inductor2Value.width = 80;
                LeftSub.addChild(Inductor2);
                LeftSub.addChild(Inductor2Value);
    
                //inductor 3
                var Inductor3:Label = new Label();
                Inductor3.format = labelFormat;
                Inductor3.text = "Inductor 3:";
                Inductor3.width = Inductor3.textWidth + 5;
                Inductor3.height = Inductor3.textHeight + 5;
    
                Inductor3Value = new TextInput();
                Inductor3Value.width = 80;
                LeftSub.addChild(Inductor3);
                LeftSub.addChild(Inductor3Value);
    
                //insert calculate button
    
                ItotalParallal = new LabelButton();
                ItotalParallal.addEventListener(MouseEvent.CLICK, calculateParallal); //this should return an int
                ItotalParallal.label = "Calculate Parallal";
    
                LeftSub.addChild(ItotalParallal);
    
                ItotalSeries = new LabelButton();
                ItotalSeries.addEventListener(MouseEvent.CLICK, calculateSeries ); //this should return an int
                ItotalSeries.label = "Calculate Series";
    
                LeftSub.addChild(ItotalSeries);
            */   
    
            }
    
            private function addResistorWithTextField (i:int): void {
    
                var labelFormat:TextFormat = new TextFormat();
                labelFormat = new TextFormat();
                labelFormat.size = 22;
                labelFormat.color = 0x00FF00;
    
                var Resistor1:Label = new Label();
                Resistor1.format = labelFormat;
                Resistor1.text = "Resistors: " + i;
                Resistor1.width = Resistor1.textWidth + 5;
                Resistor1.height = Resistor1.textHeight + 5;
    
                Resistor1Value = new TextInput();
                Resistor1Value.width = 80;
                RightSub.addChild(Resistor1);
                RightSub.addChild(Resistor1Value);
    
            }
    
            private function addSubContainerTitle():void {
    
                var labelFormat:TextFormat = new TextFormat();
                labelFormat = new TextFormat();
                labelFormat.size = 22;
                labelFormat.color = 0x00FF00;
    
                /*TitleLabel4 = new Label(); //for the top container, not working yet
                TitleLabel4.format = labelFormat;
                TitleLabel4.text = "Equivalent Circuit Calculator";
                TitleLabel4.size=30;
                TitleLabel4.sizeUnit = SizeUnit.PERCENT;
                TitleLabel4.autoSize = TextFieldAutoSize.CENTER;
                TitleLabel4.setSize(TitleLabel1.textWidth, TitleLabel1.textHeight);*/
    
                //TopSub.addChild(TitleLabel4);
    
                TitleLabel1 = new Label();
                TitleLabel1.format = labelFormat;
                TitleLabel1.text = "Resistors (kOhms)";
                TitleLabel1.size=35;
                TitleLabel1.sizeUnit = SizeUnit.PERCENT;
                TitleLabel1.autoSize = TextFieldAutoSize.CENTER;
                TitleLabel1.setSize(TitleLabel1.textWidth, TitleLabel1.textHeight);
    
                TitleLabel2 = new Label();
                TitleLabel2.format = labelFormat;
                TitleLabel2.text = "Capacitors (microF)";
                TitleLabel2.size=35;
                TitleLabel2.sizeUnit = SizeUnit.PERCENT;
                TitleLabel2.autoSize = TextFieldAutoSize.CENTER;
                TitleLabel2.setSize(TitleLabel2.textWidth, TitleLabel2.textHeight);
    
                TitleLabel3 = new Label();
                TitleLabel3.format = labelFormat;
                TitleLabel3.text = "Inductors (microH)";
                TitleLabel3.size=35;
                TitleLabel3.sizeUnit = SizeUnit.PERCENT;
                TitleLabel3.autoSize = TextFieldAutoSize.CENTER;
                TitleLabel3.setSize(TitleLabel3.textWidth, TitleLabel3.textHeight);
            }
    
            private function Make4SubCon ():void {
    
                TopSub = new Container();
                TopSub.debugColor = 0x33ff33;
                TopSub.margins = Vector.([10,10,10,10]);
                TopSub.flow = ContainerFlow.HORIZONTAL;
                TopSub.size = 12;
                TopSub.sizeUnit = SizeUnit.PERCENT;
                TopSub.align = ContainerAlign.MID;
                TopSub.padding = 10;
                TopSub.containment = Containment.DOCK_TOP; 
    
                RightSub = new Container();
                RightSub.debugColor = 0xFF3300;
    
                RightSub.margins = Vector.([10,10,10,10]);
                RightSub.flow = ContainerFlow.VERTICAL;
                RightSub.size = 33;
                RightSub.sizeUnit = SizeUnit.PERCENT;
                RightSub.align = ContainerAlign.MID;
                RightSub.padding = 10;
    
                MidSub = new Container();
                MidSub.debugColor = 0x0033FF;
                MidSub.margins = Vector.([10,10,10,10]);
                MidSub.flow = ContainerFlow.VERTICAL;
                MidSub.size = 33;
                MidSub.sizeUnit = SizeUnit.PERCENT;
                MidSub.align = ContainerAlign.MID;
                MidSub.padding = 10;
    
                LeftSub = new Container();
                LeftSub.debugColor = 0x33FF33;
                LeftSub.margins = Vector.([10,10,10,10]);
                LeftSub.flow = ContainerFlow.VERTICAL;
                LeftSub.size = 34;
                LeftSub.sizeUnit = SizeUnit.PERCENT;
                LeftSub.align = ContainerAlign.MID;
                //LeftSub.containment = Containment.DOCK_BOTTOM;
                LeftSub.padding = 10;
            }
    
            private function RightSubCalculateSeries(event:MouseEvent):void {
    
                var numbers:ArrayList = new ArrayList();
    
                // RightSub.numChildren;
    
                //RightSub.getChildAt();
    
                var i:int = 0;
                var j:int = 0;
                for (j =0; j			 

    You can test the type of object with the keyword "is", i.e.

    If (myVar is TextInput) {}

    Enter the text property and treat it

    }

    You will probably want to set a breakpoint somewhere in your code so that you can pause execution with the variables of interest in the scope, and then make sure your variables in the debugger.  That should help take some of the trial and error out of it.

    The webcast of the week 2 button on the Flash Builder debugging windows, from slide #27:

    http://us.BlackBerry.com/developers/Tablet/Adobe.jsp

    If you have used other debuggers IDE based until it was quite simple.

  • Help make a mask of inverted color of an object

    Relatively new to Illustrator.

    I have a model to work, this example is composed of layers. I'd like to invert the colors (black <>- white) to an area defined by an object (form put in evidence, I called a mask) on the layer top - How can I do this? In this way, the white area within the object becomes black and vice versa. Thank you in advance!help image.jpg

    fill your shape 'mask' white.

    Open the transparency Panel. change its blending mode to "Difference".

  • Outsourcing of a class that contains objects of reflection

    Hello

    I write the code that will show a message object.

    The message object, which implements the Externalizable, contains another object as an instance variable. This internal object has, among other things, a variable of type java.lang.reflect.Method instance.

    I can't get my head around what I would need to do in the message object writeExternal methods method in order to be able to read insert it again into the readExternal corresponding with regard to type of method.

    The previous uses of the Externalizable I coded used only simple objects like int primitives and strings. I have to use ObjectOutput.writeObject and ObjectInput.readObject?

    Thanks in advance for any advice.

    Well, a method is essentially defined by the declaring class, the method name and parameters. all these values are available from the method instance. If you save all these values during serialization, you should be able to get the method again during deserialization.

  • How to put in a table the names of the children in the container object?

    I can't get to a function that will collect the names of children in a container of objects and put them in a table.

    Any ideas?

    For example:

    function collectChildren(container:DisplayObjectContainer):Array {
         var len:int = container.numChildren;
         var array:Array = [];
         for (var i:int = 0; i < len; i++)
         {
              array.push(container.getChildAt(i).name);
         }
         return array;
    }
    
  • Re: Container objects stacked on top of each other instead of a column in ScrollPane

    Hey all,.

    I'm trying to figure out how to throw bodies in the container class works...

    I had my ScrollPane scrolling works, but for some reason, the images I add to my container are stacked on eachother instead of a column of high...

    Here is my code:

    scroller=new ScrollPane();
    scroller.width=1024;
    scroller.height=600;
    this.addChild(scroller);
    
    container=new Container();
    container.flow=ContainerFlow.VERTICAL
    container.align = ContainerAlign.NEAR;
    container.padding = 200;
    scroller.addScrollContent(container);
    
    for each (var photo:Photo in list)
    {
    var url:String='http://farm' + photo.farmId + '.static.flickr.com/' + photo.server + '/' + photo.id + '_' + photo.secret + '_s.jpg';
    var thumb:Thumb=new Thumb(url, photo);
    thumb.addEventListener("allLoaded", position, false, 0, true);
    container.addChild(thumb);
    }
    
    private function position(event:Event=null):void
    {
    container.layout();
    scroller.update();
    }
    

    I thought the tank param should be set, but changing this value does not affect the placement of the children being added to the container.

    I want to load a bunch of images and add them to a container like a column that is drop-down. Simple right?

    Hey,.

    the containers are a bunch of very bad mood. I usually don't like em. I think I came across this question several times. most of the time the reason why they are not have properly is because I don't use the setSize method and set the size of the container. try to set the size and see what happens. Good luck!

    Example:

    container.setSize(1024, 1200);
    
  • Clipping mask, too complex object, cannot use either bitmap

    Hi all

    I'm in Illustrator CS4, trying to make a page that contains the content I want to integrate into a rounded rectangle.  Seems pretty easy.

    I managed to paste content into a rounded rectangle, so far.  Now I have a page that is apparently 'too complex '.  There a lot of transparencies and degraded them and others.  Once I try to do the clipping mask tells me it is very complex and cannot print or work right.  I go ahead anyway, and it seems just white/invisible.

    Then I thought to plans of work could be a way to do this, but I couldn't see how you could make a work plan which is one shape other than a rectangle (I want a rounded rectangle).

    So I thought that if export the bitmap and then rebonding in it, maybe I could integrate the bitmap in the rounded rectangle.  Pain in the butt, but I'm looking for any solution.  But it still works because it says that the selected object must be "a path, a compound shape, a text object or a group of people.  If a bitmap can be used

    Someone had better luck with this?  In CorelDraw, I always just placed objects, regardless of the level of complexity, in a 'container' with no problems.  Certainly, there is a way to do the same thing here.  This drawing is not * that * complex.

    Thanks in advance for your advice!

    Sounds to me as if the rounded rectangle you are trying to use as a clipping mask is not the top-level object.

    I hope it's as simple as that, even when...

    Mike D.

  • Load the object MovieClip in the library in the container

    Hello

    I have a MovieClip in the library with the CloseButtonbinding name. Now, I want to load this MovieClip in a createjs container object:

    var popupObj = new createjs. Container();

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    popupObj.addChild (closeBtn);

    It does not work. When I add it to the stage instead, it works fine:

    var that = this;

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    that.addChild (closeBtn);

    Any ideas?

    It was only a snippet, I add the container to the scene. I use a container, because it has more elements such as shapes and text in:

    var that = this;

    that.createPopup = function() {}

    var popupObj = new createjs. Container();

    popupObj.name = "popup".

    var popupWidth = 260;

    var popupHeight = 140;

    var popupMargin = 14;

    var popupShape = new createjs. Form (new createjs. Graphics ().beginFill("#FFFFFF").drawRoundRect (0,0, popupWidth, popupHeight, 8) .endF ill());

    popupShape.alpha =. 96;

    {popupShape.on ("click", function ()}

    Do nothing, to prevent clicking on parent elements

    });

    var pt1 is new createjs. Text ("Title", "16px Arial", "#333333");

    Pt1.name = "pt1";

    Pt1.x = popupMargin;

    Pt1.y = popupMargin;

    var Pt2 is new createjs. Text ('Content', "" BOLD "14px Arial", "#333333");

    Pt2. Name = "pt2"

    Pt2.x = popupMargin;

    Pt2.y = Math.floor (popupMargin + 30);

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    popupObj.addChild (popupShape);

    popupObj.addChild (pt1);

    popupObj.addChild (pt2);

    popupObj.addChild (popupButton);

    popupObj.addChild (closeBtn);

    popupObj.x = 40;

    popupObj.y = 20;

    that.addChild (popupObj);

    }

    But I found the error. I had to call the function addChild (closeBtn) after that I added the popupShape.

  • Apply the clipping on a group object mask

    Hello

    I have a background and I need to apply a clipping of a group object mask. I can't perform the task that it clips only one object in the group.

    I need to some tips and advice. Please see my screen shot shown below. Thank yor.

    Untitled-3.jpg

    David,

    To be more precise, you can, for a clipping mask,

    (1) create the object in the background to be cut;

    (2) create the clipping objects, such as 3 separate letters (or just three circles or other) and place them as you wish on top of the background object;

    (3) select all letters/objects and object > compound mask > make;

    ((4) ShiftClick the background object or ClickDrag on everything or Ctrl / Cmd + A to select the two 1) and 3) and

    Object > clipping mask > make.

    and an opacity mask.

    (1) create the object in the background to be cut;

    (2) create the masking objects as objects of filling/nostroke in black or white, such as 3 separate live/described letters (or just three circles or other) and place them as you wish on top of the background object;

    (3) select all letters/objects and Ctrl / Cmd + G to group them (with the letters, you can use Object > compound mask > do instead);

    ((4) ShiftClick the background object or ClickDrag on everything or Ctrl / Cmd + A to select the two 1) and 3) and

    Click transparency Launcher (click on the right arrow above) do with with Clip opacity mask and mask invert checked (black letters, mask Invert unchecked for white letters).

  • Mask containing video clips

    Hey guys

    I creates a "shimmer" above an object using a mask as follows:

    Layer 1: mask

    Layer 2: Effect of shimmer with a motion tween

    Layer 3: Object that has the shimmer effect applied to this

    The layer mask is composed of three drawing objects and the shimmer effect behaves exactly as it should either applies only when the objects are.

    However, I have also five video clips on the stage I want the effect of applied shimmer to the - but not when the clip has been clicked. If the answer is simple, create five instances of clip said in the mask and when the user clicks on the instance on the stage, set the visible property of the instance in the false mask or use removeChild...

    Laughing out loud

    Whenever I have add instances of the clip to the mask, the shimmer effect is not applied to them, and yet if I will break them and use them as objects drawn, they work fine (but obviously drawing objects can be animated using AS).

    My question is - is this even possible, and if so, how would I go to do it?

    Thanks in advance

    the contours and all the squares in a new movieclip and claimed that movieclip "_mask"

    If your motion to the effect of shimmer twenn is already in a movieclip call this movieclip "_mask".

    Use then these three lines:

    _MASK.cacheAsBitmap = true;

    _maskee.cacheAsBitmap = true;

    _maskee. Mask = _mask;

    'ActionScript' your mask

    to do this _mask and _maskee must live in 'normal' layers (which are neither mask nor a hidden layer)

    to illustrate the difference:

    This is how a treaty cache mask complex (nested objects / your problem):

    This is how a treaty cache mask complex (nested objects / your solution):

    The scenario looks like this:

  • Never opacity mask is 100% transparent object

    Hello

    I ve you have strange problem with opacity mask.

    I want to object to gradiently from 0% to 100% of transparency - and it works and is displayed correctly - unless I result raster in Photoshop. Then, it looks like the left side of the attached photo - object is never 100% transparent. If I raster via Adobe Acrobat file, the result is correct, as shown on the right side of the image.

    What I am doing wrong?

    Thanks for your help

    Jiri Kafka


    chyba.jpg

    I can easily reproduce the bug, and that's what it's a bug.

    If you copy and paste or even if you place the pdf file and I guess the Illustrator into a photoshop document file and probably open the Illustrator file in Photoshop, you will get the same result, it will not disappear to full transparency.

    But there is a work around which is in the file > export > then open Photoshop or pace that docuent and everything will be as expected.

    You do not have something wrong, it's a bug.

    How happened so long without anyone noticing it is beyond me, and I'd say it's a bug in Photoshop, but it is unlikely that they will admit it

    and therefore export to psd rather than paste, place or opening in Photoshop is the work around.

    Place or open the pdf in Photoshop will not work because of the way translated photoshop mask too thin way so that Illustrator export to psd very well. This is why I call it a problem of Photoshop.

  • Clipping masks and opacity leaving hairline masks light

    I'm running a problem when you use a clipping mask or opacity mask in Illustrator CC 17.1. Either the type of mask leaves a contour slightly around the mask object, creating a noticeable pause in what should be a uniform background. A few details:

    I created a ring in 4 quadrants. Each quadrant contains objects/models which must be isolated from the other. Above the work of each quadrant, I stick it in Place a copy of the form of the quadrant including background colors and stroke are both set to none, the value of race field is empty, is not set to 0. Which meet the same color in the adjacent areas of each quadrant there is a slight balding. These are intended to be transparent, and I don't know why this is happening. When viewing as outlines, all vectors are overlap perfectly in my eyes.

    quadrants1.pngquadrants2.png

    I tried the same thing with simpler forms, as a test and get the same results. In this example of 3 stacked objects, I built forms using form Builder tool (top), mask clipping (the middle one) and mask opacity (bottom):

    mask-test.png

    As you can see, the results are not consistent, but there is certainly some weak lines in each case. The constructor of the form doesn't have a line between black shapes for a reason, but there is a conflict between the colours cyan, where hidden objects stacked meet. At the same time, it is the reverse for the 2 following blocks.

    I read the posts in this forum and others on what is a matter of anti-aliasing, it will not be printed with weak contours, but not all applications of this graph will go to print. I exported files, PDF and various other formats EPS files. I have not noticed any loose in a TIFF file but the library files that I provide to my client will consist of the vector and other raster such as png and jpg files that do not show the low contours. When I place a PDF or EPS in Illustrator or InDesign layout, the hairlines are so that documents sent electronically, unprinted, have these visible lines. They remain also when I place an EPS in Photoshop that is unacceptable for the construction of graphics for the web.

    Can someone tell me if there is a solution to make transitions smoothly between the objects hidden in Illustrator? Or this just an inherent flaw with Illustrator (or maybe my approach to strengthen these graphics)?

    dugost,

    There is nothing wrong in the way you work with masks.

    It is disturbing that you can see the hairlines in a PDF file, png, and JPEG.

    Just to try something that can be stupid: you work in points/pixels, and are the quadrants in integer values (you can see the W and H values in the Transform palette, with integer values for two opposite corner ticked of reference Points and whole)? If this is not the case, what happens if you change to get that?

  • strange objects that cannot be selected

    I don't know yet how to explain this problem because it's so weird and complicated. (Illustrator CS6, Windows 7)

    I work with several documents to HAVE, each containing several work plans. (It is much more effective that way.) Once I have all the work plans looking for the way that they need to look at, I need to break in a single PDF page. To do this I have to save the file first as an AI and check 'save each work plan in a separate file' in to break it up. Normally I open these individual files, and then run the script 'SaveDocsasPDFs '.

    Unfortunately, one of my files is bad. When I open the files only work plan HAVE, I find the illustration of others present work plans in the file. These objects are visible but do not appear in the layers palette. None of the objects have a part that spans the single artboard. They are not part of a group, a compound path, nor a simple mask. Work within the single artboard is part of a clipgroup. If I use the layers palette to mask and unmask this clipgroup, problem objects disappear and the file size becomes smaller when I re-record. This does not happen if I hide and show the layer that the clipgroup is on.

    I guess this explanation is impossible to follow, so here is a link to one of the files so that you can see for yourself. https://DL.dropboxusercontent.com/u/27711153/masks-46.AI

    Can someone explain to me what happens, or how can I avoid having these adjacent objects appear on this file? I don't want to open and close each single work plan file, because I have hundreds of them.

    I appreciate any idea that you can give!

    xtreamPath (unknown) effect seems to be applied to the layer, delete the effect and the objects with the help of it will be will be

  • How to move the mask without the masking area who created

    Im trying to place a box of masking to a certain place where he hides a fraction of an object (myRainBow) and then move the mask without moving the masking area. But the code I did exactly the opposite-> he moves the area of masking with the mask itself.

    My problem in other words:

    I have a nice image, but I want to move the image to a different location on my living room wall. So where I have move the image (at the top, left corner, bottom corner to the Center, etc.) it (the content of the image itself) won't change, only its location of the image in my living room.

    How do with the as3 code, cause I have so far only this and it does not have what I want it to do


    private var masker:Shape = new Shape();
                        private var maskerBoarder:Shape = new Shape();
                        private var container:Sprite = new Sprite();
      
                        private var myRainBowPicture:Sprite = new Sprite(); 
                        private var m:Matrix = new Matrix(); 
    
    
                        public function MainMask()
                        {
                                  if (stage) init();
                                  else addEventListener(Event.ADDED_TO_STAGE, init);
                        }
      
                        private function init(e:Event = null):void
                        {
                                  removeEventListener(Event.ADDED_TO_STAGE, init);
      
                                  this.addChild( container );
      
                                  //create the gradiant
                                  m.createGradientBox( 400, 300, 0, 0, 0);  
                                  myRainBowPicture.graphics.beginGradientFill(GradientType.LINEAR, [ 0xFF, 0xFF00FF, 0xFF0000],  [1, 1, 1], [0x0, 0x7F, 0xFF], m , SpreadMethod.PAD, InterpolationMethod.LINEAR_RGB, 0); 
                                  myRainBowPicture.graphics.drawRect(stage.stageWidth * 0.5 - 200 ,stage.stageHeight * 0.5 - 150, 400, 300); 
                                  myRainBowPicture.graphics.endFill();
                                  addChild(myRainBowPicture); 
      
                                  masker.graphics.beginFill( 0x00ff00 );
                                  masker.graphics.drawRect( 0, 0, 200, 100 );
                                  masker.graphics.endFill();
                                  container.addChild( masker );
      
      
                                  maskerBoarder.graphics.beginFill( 0, 1 );
                                  maskerBoarder.graphics.drawRect( 0, 0, 200, 100 );
                                  maskerBoarder.graphics.beginFill( 0x00ffAA, 0.5 );
                                  maskerBoarder.graphics.drawRect( 2, 2, 194, 96 );
                                  maskerBoarder.graphics.endFill();
                                  maskerBoarder.graphics.endFill();
      
                                  container.addChild( maskerBoarder );
                                  myRainBowPicture.mask = masker
    
    
      
                                  container.addEventListener(MouseEvent.MOUSE_DOWN, onClick)
                                  container.buttonMode = true;
                                  stage.addEventListener(MouseEvent.MOUSE_UP, drop);
                        }
      
                        private function onClick(e:MouseEvent):void
                        {
                                  container.startDrag();
                        }
      
                        private function drop(e:MouseEvent):void
                        {
                                   stopDrag();
                        }
    
    

    The way you describe moving the mask without moving the mask area is not clear, but if your description to move something on the wall, then you have probably just to add the image of the Rainbow and the mask in the same container object and assign slide it / drop in this container.  From what I can make of your code, you just put the mask inside a container and moving from this container.  Try to put this first container inside another breadsticks and the Rainbow and assign the drag / drop to the second.

  • Change the color of the white object

    I am a novice at the FCC. I use 10.2.2. I need colorize a white shirt. The video is in color but it is understandable, there are a few white areas in the scene. I don't want to change between them, just the shirt. I tried the zone and the color of the masks without result. The color mask intercepts other white objects and the mask of area affects too extra objects around the shirt. I thought it might be a way to isolate the mask of colors with an area (so that only the color selected in the selected area is affected), but it is not possible or I'm doing it wrong.

    Anyone have a suggestion for me?

    YYou can use a color mask, and then add a shape mask. Use the shape mask to the exclude the rest of the image.

Maybe you are looking for

  • WD My Book and Airport Extreme

    Hello I'm having a problem using a new WD My Book with Airport Extreme. I was able to format in Mac OS extended (journaled). If connect directly to my iMac (Yosemite) is mounted and time machine asks if I want to use it as a backup drive. However, wh

  • When I allow to share a folder, just not in my network (MShome).

    Hello I use windows xp, when I allow you to share a folder, that it is not in my network (MShome) so I can't map a network drive .please reply.

  • How to activate oem xp pro?

    I have Fujitsu Tablet PC which was very slow.  I tried to format it and reinstall XP OEM CD Fujitsu have me.   He could not install it because it seems that windows could not detect my hard drive.   After trying 3 days to try and do not, someone sugg

  • building firefox operating system error

    Hey, I used to build firefox os for my camera, but I got these error messages. prebuilts/GCC/Linux-x86/Host/x86_64-Linux-glibc2.11-4.6//x86_64-Linux/bin/LD: error: /home/hesham/B2G/out/host/linux-x86/obj32/SHARED_LIBRARIES/libnativehelper_intermediat

  • How can I disable the screensaver

    How do I configuate the screen saver.  Appears watching movies on my PC.