ScaleMode.NONE results in clipping/masking of SWFs

I'm loading an SWFElement into my player and when the LayoutMetadata is set to ScaleMode.NONE with left, right, top, and bottom attributes set to 0, the SWF does not fill the stage like I would expect when setting L,R,T,B to 0. Setting the LayoutMetadata's width or height forces the media element to scale.
What I'd like to do is not have the SWF clipped or masked off at it's bounds. It appears that if I load a 300x400 SWF into a player that's 500x600, with attributes L,R,T,B set to 0 and ScaleMode to NONE the SWF sits at the top left of the player and anything in the swf that sits outside it's original 300x400 area is invisible. But if I load this swf into the player using a Loader and add it as a child to the stage (not the MediaContainer) it is not clipped. Is the LayoutRenderer clipping it? I don't see anywhere in the OSMF classes where masking is happening.

Making this change solved the problem for SWFElements loaded into the player as media, but if I try to add metadata to it and load it as a plugin it still clips. Removing the addMetadataValue from the swf plugin resource data removes the clipping issue:
var resource:MediaResourceBase = new URLResource(url);
resource.addMetadataValue(SocialPlugin.NS_SOCIAL_SETTINGS, socialSettings);
socialElement = factory.createMediaElement(resource);
Does that make any sense?

Similar Messages

  • [svn:fx-trunk] 11641: A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks , not just alpha masks.

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Printing Clipping Masks

    I am trying to print  a large tiled set of images.  i can generate the images I want to print using Clipping Masks. However when I save the file, I cannot find a format where only the clipped image is saved.  Right now I get the entire artboard, and sometimes more, with the clipped area as the only non-blank portion.  I just want an eps  file of the clipped portion.  I used to be able to do this with CS2, but I can 't find how to do it in CS6.
    can anyone help me do this?
    Thanks,
    Dave

    Monika,
    For your interest, it appears that my problem stemmed from changes in Illustartor. 
    I have Illustrator CS3 on another computer and when I take a file with a clipping mask and Save As an EPS, it results in a file with only the image.  With CS6, it appears that it always saves  the full artboard,so you have to reduce the art board first and place your clipped mask on it to get just the image saved.
    thanks for all your help.
    Dave

  • Clipping Masks and Opacity Masks leaving slight hairline

    I'm running into a problem when using a clipping mask or opacity mask in Illustrator CC 17.1. Either type of mask leaves a slight outline around the masking object, creating a noticeable break in what should be a uniform background. Some details:
    I've created a ring in 4 quadrants. Each quadrant contains patterns/objects that need to be isolated from one another. Over top of the artwork of each quadrant, I Paste In Place a copy of the quadrant's shape whose colours for background and stroke are both set to none, the stroke value field is blank, not set to 0. Where the same colour in the adjacent areas of each quadrant meet there is a faint hairline. These are meant to be seamless and I don't know why this is happening. When viewing as Outlines, all vectors are overlapping perfectly to my eye.
    I've tried the same thing with simpler shapes as a test and get the same results. In this example of 3 stacked objects, I built the shapes using the (top) Shape Builder tool, (middle) clipping mask and (bottom) opacity mask:
    As you can see, the results are inconsistent but there are definitely faint lines in each case. The Shape Builder does not have a line between the black shapes for some reason yet there's one between the cyan colours where the stacked masked objects meet. Meanwhile it's the reverse situation for the 2 following blocks.
    I've read posts in this forum and others about this being an anti-aliasing issue, that it won't print with the faint outlines, but not every application of this graphic will be going to print. I've exported EPS files, PDFs and various other formats. I didn't notice any hairlines in a TIFF but the library of files I will be providing to my client will consist of vector and other raster files like PNGs and JPGs that do show the faint outlines. When I place a PDF or EPS into an Illustrator or InDesign layout, the hairlines remain so that documents sent electronically, not printed, have these noticeable lines. They also remain when I place an EPS into Photoshop which is unacceptable for building graphics for the web.
    Can anyone tell me if there's a solution for making seamless transitions between masked objects in Illustrator? Or this just an inherent flaw with Illustrator (or perhaps my approach to building these graphics)?

    Well it's good to know I'm not approaching building my graphics in the wrong way, haha. I'm working in picas actually, I didn't think the type of units would make any difference.
    I'm not quite sure I follow what you're suggesting (perhaps too much BBQ on the brain right now) but some points are on whole values and some aren't. I'm not sure how I could change those to whole values and maintain proper geometric proportions, though.
    Some additional info:
    1. Just saved PDF and EPS copies. Both show the hairlines in the following: QuickLook, Reader, Preview, when placed into Illustrator / InDesign / Photoshop, and when opened directly in Photoshop (with the exception of the EPS). Only the EPS opened directly with Photoshop was free of the hairlines.
    2. When exporting to JPG and PNG, using the Type Optimized setting retains hairlines but they disappear if Art Optimized is chosen. So that's one little trick I just learned.
    So there are ways that I can save them without hairlines, that's great. But once I distribute PDFs and EPS files for the client/third parties to place into publications for electronic distribution the hairlines will appear in those documents. I could ask them to place hi-res raster files instead but it doesn't give them the flexibility that vector graphics afford.
    Is there a similar option to 'Art Optimized' I'm overlooking when exporting PDFs and EPS files? As a test, under EPS Options > Transparency I tried both the High Resolution and For Complex Art presets and it didn't make any difference.

  • I can't get clipping mask to work

    I'm adding stars to the sky.  I did this by making a custom brush and painting on a blank layer above my image layer.  To make it look more realistic I want to add a bit of color.  So I add a Hue/Saturation adjustment layer and colorize to get the desired hue.  This is where I run into trouble.  I only want the adjustment layer to affect the stars I painted on and not the rest of the image so I apply a clipping mask to the Hue/Saturation layer (which is directly above my stars layer.)  When I do this the color disappears completely and does not affect any part of the image.  Any ideas why this isn't working?  I also had the same problem when I applied a Brightness/Contrast adjustment layer.  I have Photoshop CC (same issue is present in both the 2014 and previous versions) for Mac.

    This is my desired end effect.  I worked around it by creating a layer mask from the stars layer but the clipping mask not working is still an issue.
    I created new Hue/Saturation layers and put them above the stars layer.  The adjustment layer changes the color of the entire image including the stars. 
    Once I clip the layers none of the image is affected, not even the stars, when it should be affecting only the stars. 

  • Clipping Mask not working

    Okay, so I am EXTREMELY new to this (I started about an hour ago!) I am trying to make a clipping mask with the mask being the outline of France and the image inside the French flag. Here are the steps I've taken so far:
    File>New
    Open>Silhouette of France (photo)
    Image trace as silhouette>Expand.
    Drag in to new file.
    Open>French flag (photo)
    Drag in to new file and put in separate layer to the silhouette.
    Place the silhouette on top of the French flag, select all, make clipping mask.
    Then everything goes white!! I can still see the outline, paths etc. of the silhouette but I just don't understand what I'm doing wrong! If someone could explain it to me in layman's terms that would be amazing because I really don't know what I'm doing!
    I'll include the pictures I am using and the end result I keep getting...

    SoBo,
    The France parts seem to be a Group rather than a Compound Path. It would be better if you could expand the Layer(s) completely, also expanding the Group.
    As I said, an Opacity Mask may be more forgiving, and work with a Group.
    I took the France parts to have no stroke and a white fill, if not, you may give it one (or a black fill), then (the Invert Mask suggested in post #2 was based on a black fill, sorry):
    1) Select the two parts of France and Object>Group or Object>Compound Mask>Make;
    2) Select all and in the Appearance palette flyout click Make Opacity Mask with Clip ticked and Invert Mask unticked (ticked if the fill is black).
    From the OP:
    Drag in to new file and put in separate layer to the silhouette.
    To have it in the same layer, just have one Layer and File>Place the flag image into it, then the France image, and take it from there.

  • Help with Illustrator Clipping Mask!

    Hi,
    I am trying to make a clipping mask over a alot of vectors (to be specific, have made an envelope design so am trying to use the template/evenlope outline as the clipping path) however when ever I try to create the clipping mask - command 7 - all the vectors inside are deleted mostly or half dissapear.
    I have tried;
    Making sure the clipping path is the top layer in the layers panel
    Ungrouping the vectors and selecting individually to mask all together
    Putting all into a new document and clipping
    Seperating the clipping path and what I want to clip into differnt layers
    None of the above has worked as yet, I have done this plenty of times before but am not sure what I am over looking. I am using CS5 on a mac.
    Thanks for anyones help!
    here is what I am trying to do; I need all of the vecotrs to be masked by the envelope outline.

    I you are using a template in AI CS 4 or 5 then it is possible thgat the template is an artboard which you cannot use as a clipping mask.
    You would have to draw a rectaangle to the size of the enevelope template and use that rectangle path as a clipping mask.
    Ok! Besides from that possibility if yiou are printing an envelope withy objects that have to be clipped to the edge of the front of the enevelope that is not a very good idea.
    Even if you are printing and then converting the envelope it is a bad idea as you8 would definitely need a bleed and that would wrap around to the back of the envelope and in a nott so pretty way.
    OK so say you are using an inkjet that can print on an envelope and it can even successfu8lly print it with a bleed feature the way thoise  bleed features have to work is that they enlarge the art slightly and so whyat every you design and create will be enlarge and trying to figure that out is not going to be very easy.

  • Automatically create clipping masks

    Hello,
    I was watching this amazing video -
    https://www.youtube.com/watch?v=ebVFXphyJqw
    - and I noticed, that flash has a feature, that seems to automatically create clipping masks.
    She starts using these at 1:45. She draws blue paths and applies gradients to shapes that use the blue paths but also underlying art.
    I haven't figured out a quick way in illustrator to do it like this. (Draw path - divide - livepaint - new fill can produce such results, but thats too complicated for quick shading...)
    Also there is a feature right at the beginning, where she erases segments of circular paths. They are exactly cut at the intersection points. Of course there are scissors and snapping in AI, but that method flash seems to offer looks much more convenient.
    Maybe those functions are burrowed in some side menus in AI... I mean, I have Flash CS6, but I feel much more comfortable in AI.
    If you know these features, especially the auto clipping mask thing, please tell me
    -Andrej

    Wow, the draw inside mode was also new to me. So much to learn!
    It's a pity that it does not create merged clipping groups when having two objects selected simultaneously upon entering drawing inside mode.
    I have not figured out, how to use the shapebuilder tool with single paths yet.
    But I did try out the Pathfinder's outline operation. It seems to give me the seperated strokes I demanded.
    Thanks for your help again Monika.
    -Andrej

  • Why are all paths in Clipping Masks and Compound Paths?

    When I open up previous versions of Illustrator files (i.e. CS5), why are all of my paths messed up. Every object is embedded in a Clipping Mask, paths are compounded and in most cases type on a path is expanded into multiple non-editable objects. This causes complete redesign. This is terrible.

    Because Illustrator accessed the PDF part of the file.
    ---> this points to corrupt files.
    How were those files transferred to your computer? Are they on a server?
    How old are they?
    Which versions were they created in?
    Did you already try to restart (the computer)?
    Any plugins installed?

  • How do you inverse a clipping mask

    I'm working on a tshirt and can only use 3 colors (Green, Black and Yellow).  If you look at the attached image, I need to make the brown color that is inside of the squirrel mask out the items behind it (corn stalks, rectangle and part of the "R" in "Corn Maze".  The tshirt will be grey so once the Clipping Mask is applied, it will allow the grey tshirt to become the color for the squirrel. 
    The problem I'm running into is if I duplicate the squirrel and use him as a clipping mask, it does the opposite of what I'm trying to accomplish.  I need to mask out everything inside the squirrel, not everything outside the squirrel.  In photoshop, I could just inverse the selection.  Not sure how to inverse a Clipping Mask. 
    Any help would be greatly appreciated.

    [scott w] wrote:
    Monika Gause wrote:
    Then it would be about how I would pronounce it, anyway ;-)
    Wouldn't that W sound like a V?
    In German: yes. But non when I#m trying the skquawirrrrrel in English ;-)
    @Students:
    Everything needs to be grouped:
    For just the squirrel (not its nose or other details) you set the fill to opacity 0
    Sorry for the German panels:
    Aussehen = Appearance
    Ebenen = Layers

  • Why SDK always generates non-drop-frame clips?

    I've created a sequence in Premiere: NTSC DV, Codec: DV NTSC, 29.97fps, 720x480, Drop-Frame Timecode.
    When I try to render a clip with MXF OP1a preset file (DV25 NTSC) by SDK, it always generates non-drop-frame clip.
    If I use 'File->Export->Media...' with same preset file, it's drop-frame exactely.
    'Drop-frame' seems to be an option from sequence and there is no place to config it in preset settings dialog.
    How can I generate drop-frame clip by SDK (exporter controller)?

    I also meet the same problem.
    I have created a 'Export Controller' plug-in. when export media using this plug-in, and choose the preset 'DV 25 NTSC', MXF OP1a.
    Confirm that sequence setting is 29.97 drop-frame.
    But export mxf file is always NDF.
    However, using Export->Media, and choose MXF OP1a  +  DV 25 NTSC, will export DF mxf file.
    Could you help to double check it?
    I have check from code,  it will get correct result (DF or NDF) after call function 'GetTimecodeDropFrame' in 'Sequence Info Suite' , so what's the problem would be?
    Thanks,
    Iris

  • Cropping vs Clipping Masks etc.

    I'm a graphic designer more familiar with photoshop but I'm starting to familiarize myself a lot more with illlustrator lately.  I just been having trouble with the correct way to crop things in illustrator using pathfinder or a clipping mask.   I have attached an image of what I'm trying to do, just tried a bunch of things but not getting the result I want.  I basically want to crop the curved paths to the rectangular box below.  Can someone give me a detailed description of how to go about this?  I did use a blend to create the curved line pattern but I already expanded it to separate objects, I just can't seem to get any desired results using the pathfinder pallete.  I also have a lot of trouble using clipping mask because illustrator has all it's crazy group and I always get errors when trying to make clipping masks.  Any advice would be much appreciated!
    [IMG]http://img.photobucket.com/albums/v258/stalsby/packagedesign.jpg[/IMG]

    For my part you are welcome, stalsbee. Steve is an hour later than I (or not), so when I stopped posting about 00.14 AM yesterday, he posted here until 23.39 PM.
    By the way, if you are in a scathing mood (or just tire of selecting the parts outside the Bounding Box of the Clipping Path, or wish to reduce the (file) size for export) you may use the Clipping Mask destructively (always save (a copy of) the artwork before destroying it):
    1) With the Clipping Mask selected, you may Transparency dropdown>Multiply (or whatever else than Normal);
    2) Object>Flatten Transparency (just keep the defaults).

  • Clipping Mask issues

    I'm trying to create a clipping mask with a few things i made in autocad and brought into illustrator (copy/pasted or done as an eps, same results).
    the bottom layer is a pattern i created, again, in autocad and live paint bucketed to give it color.
    the top layer is a shape i created in autocad. and my shape, it's really just a bunch of lines.
    ctrl+7, and it all just disappears. i know it's not the bottom layer, i've already clip masked with that pattern with numbers.
    the only thing i can think of is that illustrator isn't as precise as autocad and the place where two lines come together to make a point, well they actually don't in illustrator.
    any tips/tricks i should know to solve my issue? i can send the .ai file to whoever if they think they have the magic touch.

    Adam,
    Who can clip with a bunch of lines, even after grouping them?
    What happens if you join the lines into a closed shape and Ctrl+7?

  • Access child clips of loded SWF

    I have a class (Main.as) that uses a Loader object to load an
    external SWF in to the root of my main app. I then want to pass a
    reference to the loaded SWF to another class in my main app so that
    it can access clips on the main timeline of the loaded SWF.
    Currently I use a Loader to load the SWF with a handler for
    EVENT.INIT, in the INIT handler I send the Loader object to another
    class using Event.target.loader.
    The second class receives the Loader object and it is here
    that I want to use addChild to add a Shape to the loaded SWF and
    set it as a mask on a clip on the SWFs timeline. I thought I was
    getting there using:
    loaderObject.content["clipName"].parent.addChild(maskShape;
    but when this runs I get a #1010: A term is undefined and has
    no properties.
    I am pretty new to AS3 so am quite likely going about this in
    a pretty kak handed way so if anyone has any ideas in general on
    accessing the child clips and properties of externally loaded SWF
    files I would love to hear them.
    Thanks a lot all

    loaderObject.content is the main timeline of your loaded swf.
    if clipName is a child of that main timeline,
    loaderObject.content["clipName"] will reference that child.
    therefore, loaderObject.content["clipName"].parent will
    reference you external swf's main timeline. and then you are trying
    to add maskShape to your external swf's main timeline.
    where's maskShape? that needs to be accessible to the class
    that's executing your code (and it's clearly not, or you wouldn't
    receive that error).
    but beyond that error, i think you're doing things you don't
    intend.

  • Hi! How to remove clipping mask in multiplу boxes on page?

    I need to remove more than 300 clipping masks that created in InDesign Clipping Path by Detect Edges
    Will be glad any advice for decreasing time of this process ))

    You can script it. This AppleScript (OSX only) would remove all of the clipping paths in the active document:
    tell application "Adobe InDesign CC 2014"
        set clipping type of clipping path of all graphics of active document to none
    end tell

Maybe you are looking for