Begin Fill merge with another fill

Hi all.
Got a problem.
In the below example (if you paste into a new fla with AS3)
you will see that the two squares sit on top of each other. This is
not what I want for a few reasons. I am makeing a brush type tool
that needs to update the shape every time the mouse moves etc.
Is there a way I can make the fill merge with the last fill
rather than sitting on top like a layer. (Surely there must be a
way)
If not can you suggest a way I can do somehting similar. It
is not possible to redraw every fill every time as it would slow
down very quickly.
I goal is to have the user use a square brush. (If a round
brush I would simply use the lineTo to do it quite easily)
var shapeClip:Shape=new Shape();
addChild(shapeClip);
with(shapeClip)
graphics.lineStyle(.25,0x000000,0);
graphics.beginFill(0xFF0000,.5);
graphics.moveTo(10,10);
graphics.lineTo(50,10);
graphics.lineTo(50,50);
graphics.lineTo(10,50);
graphics.lineTo(10,10);
graphics.endFill();
graphics.beginFill(0xFF0000,.5);
graphics.moveTo(30,30);
graphics.lineTo(70,30);
graphics.lineTo(70,70);
graphics.lineTo(30,70);
graphics.lineTo(30,30);
graphics.endFill();
}

Hmm. I've done a lot of investigation and I'm pulling my hair
out with this one.
Surely therre must be a way to merge two shapes
together?

Similar Messages

  • Company is merging with another company. How do I add other company's Bonjour/Messenger buddy list to our company's Bonjour/Messenger buddy list?

    So the company I work for is merging with another company. Our company already has an internal Bonjour/Messages set up so that we can all communicate to each other. The company that we're merging with has the same.
    How do I merge their Bonjour/Messenger Buddy List with our Bonjour/Messenger Buddy List so it's all in one list?
    Much thanks!!!

    Hi,
    It will depend how and where the other computers are.
    Broadly speaking any Mac computer on the same LAN using iChat or Messages with the Bonjour account enabled will see all the other Macs (The app reads the computer User's Contacts App (Address Book) My Card and broadcasts the name)
    This works up to the point you go beyond 255 computers or devices.
    The router will have one IP allowing for 255 devices to be connected.
    To state this another way.
    The Bonjour account in Messages or iChat is a self connecting, self populating Buddy list.
    Your Name is read from the Address Book on older systems or the Contacts app in Mountain Lion and above  at the one called the My Card and this is broadcast as your "Screen Name".
    You see the names in the Buddy list that correspond to other peoples My Card.
    On this iMac I am using I am "Ralph Johns"
    On my G4 tower I am "Ralph G4" and on my laptop I am "Ralph MacBook Pro"
    This means if I hook up the three using Bonjour I know which is which.
    (As an aside this also allows me to separate them out on AIM and Jabber lists as well as I have the My Card for this computer and Address Cards for each others)
    7:51 pm      Friday; February 14, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to best take sections from one document to merge with another Indesign document

    I am looking for most efficient way to take a section from one document to merge with a section from another document?  We have a book that needs updating, taking a section from one document to merge into another.  We have typically copied and paste each page, but there are 20+ pages involved.  Does anyone have a better way?

    Open both documents.
    With source document active, In pages panel, select pages that are to be copied to the destination document
    Right Click (or use panel menu) and select Move Pages ...
    Double check that correct page range is noted
    Select destination document
    select where in document pages should appear (beginning, end, after or before page X)

  • Newly created "Faces" disappearing or merging with another "Face."

    Overall, I was fairly pleased with the accuracy of Faces. And after an exhaustive amount of time I had all my Faces setup, or so I thought.
    I noticed upon relaunch my friend Audrey's Face had disappeared. I then went to her husband (who looks distinctly different) and her pictures were under his face. The only thing I could think of is when I filled in her name, full name and email I used the same email address for both people. Perhaps the files are being coded with that conflicting information and Faces is confused and doesn't know where to place them. So a day later I went back and straightened it out putting her Faces in her own group. But then it did it again, only this time "Russ" her husband disappeared and his pictures were under her face.
    The only other thing I can think of is a conflict with Facebook. I do remember uploading a picture and having to fix a few tags when the image was in Facebook. I'm wondering if Facebook was sending back bad information to that photo that was confusing the entire Face group. Other than that I'm at a loss.
    I've rebuild the iPhoto databases selecting all the available options to ensure a good clean file. But that didn't fix this problem.
    So since this appears to be a bug I won't bother trying to fix the two Faces again until it's fixed. Does anyone know if I can disable Faces or have some sort of control over how it operates? I'd like to disable it without losing the Face groups already created so it doesn't screw up another group with this bug.

    I had the same problem with having previously named and labeled faces over-ridden and given other names. But I'm not using facebook, so it has nothing to do with that. I have spent hours and hours fixing my faces albums, just to have the names changed and put in different albums the next time I look at them. What in the world could I be doing wrong?

  • My bank merged with another bank and each time I logon a window from them tells me my browser has security concerns and needs to be updatedneeds to be updated.

    I've attempted to update my browser and it tells me I'm up to date. But the "Looks like you're using an older version of Firefox" remains on the screen after update attempt.
    I'm using Windows XP....is that causing the problem?

    Your user agent identifies you as Firefox 28 on Windows NT 4
    *Mozilla/5.0 (Windows NT 4.0; rv:28.0) Gecko/20100101 Firefox/28.0
    Make sure that you do not run Firefox in compatibility mode.
    You can open the Properties of the Firefox desktop shortcut via the right-click context menu and check the "Compatibility" tab.
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    See this for issues with the user agent:
    *https://support.mozilla.org/kb/Finding+your+Firefox+version
    *https://support.mozilla.org/kb/websites-say-firefox-outdated-or-incompatible
    If you really run Firefox 28 then you need to update to the latest release.
    You can find the full version of the current Firefox 35.0 release in all languages and for all Operating Systems here:
    *https://www.mozilla.org/en-US/firefox/all/

  • HT5621 When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    You cannot merge Apple IDs but you can go to Settings > iCloud and 'Delete Account'.  When prompted to turn off documents and data, choose the only option which is Delete from my iPhone, but on the other prompt for Contacts, Calendars, etc you can choose 'Keep on my iPhone'  Then once the Account is Deleted form the iPhone, log back in with the correct Apple ID and choose Merge when prompted.  This will merge your data from this iPhone with that iCloud account effectively putting your devices on the same account.

  • I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    You do not merge libraries.
    iDevices sync to one and only one computer.
    If you want a single library, you manually move the content from one library to another... all content will still be associated with the Apple ID it was acquired with.

  • Device is already sync'd with another user account - Do I want to Replace or Merge?

    same issue with 3gs / ipad / itouch ... when go to sync with computer receive message saying that device is already sync'd with another user account - Do I want to Replace or Merge?
    what's going on?
    the only thing I did was change my password on Itunes store via the computer (because it won't remember it since 10. upgrade!)
    thanks

    Is someone else using the PC and iTunes?
    Create another user for the PC with your name, and try syncing that way.
    This way it wont conflic with the other user.

  • When I merge one project with another, Aperture for some strange reason, randomly scrambles the photos from the project being merged, instead of keeping them in the order they were shot. What can I do to fix this?

    When I merge one project with another, Aperture 3 randomly scrambles the photos of the project being merged, instead of keeping them in the chronological order that I shot them in. What can I do to correct this?

    The photos have just been dumped into a new home and need to be told how to be arranged.  Go to the top left of the browser view for the merged project and select the desired sort order from the drop-down and they'll all sort according to that setting.

  • Replacing a special character in a string with another string

    Hi
    I need to replace a special character in a string with another string.
    Say there is a string -  "abc's def's are alphabets"
    and i need to replace all the ' (apostrophe) with &apos& ..which should look like as below
    "abc&apos&s def&apos&s are alphabets" .
    Kindly let me know how this requirement can be met.
    Regards
    Sukumari

    REPLACE
    Syntax Forms
    Pattern-based replacement
    1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]
    pattern
              IN [section_of] dobj WITH new
              [IN {BYTE|CHARACTER} MODE]
              [{RESPECTING|IGNORING} CASE]
              [REPLACEMENT COUNT rcnt]
              { {[REPLACEMENT OFFSET roff]
                 [REPLACEMENT LENGTH rlen]}
              | [RESULTS result_tab|result_wa] }.
    Position-based replacement
    2. REPLACE SECTION [OFFSET off] [LENGTH len] OF dobj WITH new
                      [IN {BYTE|CHARACTER} MODE].
    Effect
    This statement replaces characters or bytes of the variable dobj by characters or bytes of the data object new. Here, position-based and pattern-based replacement are possible.
    When the replacement is executed, an interim result without a length limit is implicitly generated and the interim result is transferred to the data object dobj. If the length of the interim result is longer than the length of dobj, the data is cut off on the right in the case of data objects of fixed length. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or hexadecimal zeroes. Data objects of variable length are adjusted. If data is cut off to the right when the interim result is assigned, sy-subrc is set to 2.
    In the case of character string processing, the closing spaces are taken into account for data objects dobj of fixed length; they are not taken into account in the case of new.
    System fields
    sy-subrc Meaning
    0 The specified section or subsequence was replaced by the content of new and the result is available in full in dobj.
    2 The specified section or subsequence was replaced in dobj by the contents of new and the result of the replacement was cut off to the right.
    4 The subsequence in sub_string was not found in dobj in the pattern-based search.
    8 The data objects sub_string and new contain double-byte characters that cannot be interpreted.
    Note
    These forms of the statement REPLACE replace the following obsolete form:
    REPLACE sub_string WITH
    Syntax
    REPLACE sub_string WITH new INTO dobj
            [IN {BYTE|CHARACTER} MODE]
            [LENGTH len].
    Extras:
    1. ... IN {BYTE|CHARACTER} MODE
    2. ... LENGTH len
    Effect
    This statement searches through a byte string or character string dobj for the subsequence specified in sub_string and replaces the first byte or character string in dobj that matches sub_string with the contents of the data object new.
    The memory areas of sub_string and new must not overlap, otherwise the result is undefined. If sub_string is an empty string, the point before the first character or byte of the search area is found and the content of new is inserted before the first character.
    During character string processing, the closing blank is considered for data objects dobj, sub_string and new of type c, d, n or t.
    System Fields
    sy-subrc Meaning
    0 The subsequence in sub_string was replaced in the target field dobj with the content of new.
    4 The subsequence in sub_string could not be replaced in the target field dobj with the contents of new.
    Note
    This variant of the statement REPLACE will be replaced, beginning with Release 6.10, with a new variant.
    Addition 1
    ... IN {BYTE|CHARACTER} MODE
    Effect
    The optional addition IN {BYTE|CHARACTER} MODE determines whether byte or character string processing will be executed. If the addition is not specified, character string processing is executed. Depending on the processing type, the data objects sub_string, new, and dobj must be byte or character type.
    Addition 2
    ... LENGTH len
    Effect
    If the addition LENGTH is not specified, all the data objects involved are evaluated in their entire length. If the addition LENGTH is specified, only the first len bytes or characters of sub_string are used for the search. For len, a data object of the type i is expected.
    If the length of the interim result is longer than the length of dobj, data objects of fixed length will be cut off to the right. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or with hexadecimal 0. Data objects of variable length are adapted.
    Example
    After the replacements, text1 contains the complete content "I should know that you know", while text2 has the cut-off content "I should know that".
    DATA:   text1      TYPE string       VALUE 'I know you know',
            text2(18)  TYPE c LENGTH 18  VALUE 'I know you know',
            sub_string TYPE string       VALUE 'know',
            new        TYPE string       VALUE 'should know that'.
    REPLACE sub_string WITH new INTO text1.
    REPLACE sub_string WITH new INTO text2.

  • Rman incremental level 1 merge with level 0

    from my reading of the rman backup document, it seems the merger incremental level 1to level 0 for recover only apply to merge with image copy, not the backupset. Is that true? However, such backup scheme will create a huge backup image copy, almost fill up my assigned backup depository directory. Is the following script works as merging with level 0 ?
    {backup as compressed backupset incremental level 1 for recover of tag 'bk$LEVEL0' database;}
    It run without error and created a very small incr file size, but not sure it has the same meaning of "for recover of copy" as in other document.

    If that is true, why we need to create an incremental level 0 backupset as the base for recover? I have one compressed backupset level 0 at beginning, then incremental level 1 for recover. with the "recover of copy with tag", it seems to create a redundant full backup. Also Iam confused, The "recover of copy with tag" is actually an image copy of the full backupset or the image copy of the original database.
    My script as for full backup at beginning
    { backup as compressed backupset incremental level 0 cumulative device type disk tag 'Baanbk$LEVEL0' database; }
    then incremental
    { backup as compressed backupset incremental level 1 for recover of  tag 'Baanbk$LEVEL0' database; }
    Should I modify the full backupset script?

  • How to replace one variable with another in large number of queries

    Hello guys!
    I have this situation: our company needs to use one variable instead of another for certain amount of queries.
    Is there some way to automatically replace one variable with another for a certain characteristic in big number of queries ( like 150 - 200 ) ? Doing this manually would take lots of time)
    Apreciate your help!

    you could try (at your own risk) the following:
    1. search the technical id (ELTUID) of your variable in table RSZELTDIR
    2. see where this variable is used in table RSZELTXREF (by filling RSZELTDIR-ELTUIID in RSZELTXREF-TELTUID)
    3. add similar entries for your new variable
    4. delete the entries for the old variable (they're part of the key, so you can't simply "change" them)

  • Seeing held material document with another user I.D.

    Hi Experts,
                      I am new to this forum. My query is - Is it possible to see a material document in the held list of MIGO screen if the document has been held up with some other user I.D. I held up a goods issue document from MIGO screen and i can see that document in held list of MIGO screen with same user I.D. But when i am entering MIGO with another user I.D. this document is not showing up in the held list. How can i see it in held data list of the MIGO screen with the second user I.D. ?
    Regards
    Sm.

    >
    Sm wrote:
    > Hi Jeyakanthan,
    >                            If it is not possible to see it with the other i.d., will it be possible to post it in the held format if the material document number is there? i tried to do the posting of the material document created and held with another user i.d., system is allowing to post but the document does not appear in the held format, i had to re-fill all the fields before posting it. Is it standard SAP behaviour ? Can i somehow get the filled-in and held up MIGO document with my i.d. and then post it?
    >
    > Regards
    > Sm.
    Certain information can't be holded like excise details
    For more details Click 'i" help in migo screen How to work with this transaction --->Hold and Manage Data
    or
    Search for SAP notes in component MM-IM-GR-MIGO

  • Batch replace color with another color

    Hi,
    I would desperately need some assistance in trying to accomplish batch editing of ai-files via JavaScript.
    What I would need to do, is go through a number (many!) of files, find items with certain swatch color (referenced by its name), and replace the item-fill with another swatch-color (also referenced by its name). Then save the document with another name.
    Other parts I have managed to do, except find/compare/modify the fill color of an item.
    I have gone through these forums and tried a number of things to a point where I am currently very confused and frustrated 
    Some details (if it helps any), I'm using Illustrator CS3 and JavaScript.
    Here's the closest where I got with trying to find a certain color and eventually changing it:
    #target illustrator
    var sourceFile, findColor, replaceColor;
    sourceFile = new File().openDlg('Please select your Illustrator file…');
    open(sourceFile);
    var docRef = app.activeDocument;
    findColor = docRef.swatches.getByName("vih");
    // replaceColor not yet used anywhere
    replaceColor = docRef.swatches.getByName("sin");
    for(var obj = docRef.pageItems.length - 1; obj >= 0; obj--) {
        if(docRef.pageItems[obj].fillColor == findColor) {
            alert("Match found"); //It never seems to get here, so my comparison clearly is not working?
        else {
            alert ("No specified color found!");
    docRef.close();
    (and yes, I'm completely new with java-scripting, so even this is constructed from bits of sample-scripts and other scripts found from these forums)
    Please, I would really appreciate any help, this can't really be such a difficult task to do... can it?
    BR,
    Johanna

    I only tried a very basic test in my case ALL path items were filled with various CMYK swatches and the swap did take place so the comparison did work. I would suspect that you have a path item that contains NO fill so any of its properties would be undefined. You can also include this in your code too. This should work for both filled and stroked path items in CMYK art.
    #target illustrator
    var docRef = app.activeDocument;
    with (docRef) {
    var findColor = swatches.getByName('vih').color;
    var replaceColor = swatches.getByName('sin').color;
    for (var i = 0; i < pathItems.length; i++) {
    if (pathItems[i].filled == true) {
    with (pathItems[i].fillColor) {
    if (cyan == findColor.cyan && magenta == findColor.magenta && yellow == findColor.yellow && black == findColor.black) {
    $.writeln('True');
    cyan = replaceColor.cyan, magenta = replaceColor.magenta, yellow = replaceColor.yellow, black = replaceColor.black;
    } else {
    $.writeln('False');
    if (pathItems[i].stroked == true) {
    with (pathItems[i].strokeColor) {
    if (cyan == findColor.cyan && magenta == findColor.magenta && yellow == findColor.yellow && black == findColor.black) {
    $.writeln('True');
    cyan = replaceColor.cyan, magenta = replaceColor.magenta, yellow = replaceColor.yellow, black = replaceColor.black;
    } else {
    $.writeln('False');
    //saveAs(filePath, saveOptions)

  • When I use my brush tool, it works fine unless I overlap the brush with another brush stroke.

    When I use my brush tool, it works fine unless I overlap the brush with another brush stroke. When that happens it turns bright red. How do I fix this and turn it back to the default setting?

    I was all ready to say you have fill turned down until I got to the bit about it turning red.  Does this happen on a new document with a single layer, or only on multi layer documents?  So like cp says...  brush or layer mode most probably.  I did wonder about Quick mask though.

Maybe you are looking for