Printing swf error (no alpha channel?)

Hi,
I don't know if this has been covered before but I have tried the following:
Printing to PDF via the print menu from the swf
and
Printing to paper via the print menu from the swf
In both cases, the images that are on screen are PNGs created as a PNG sequence from After Effects.  They contain alpha channels and the background of the swf is non-white.  However the bounding box of the image gets printed as white, so I have  a sequence of overlapping white regions, some of which occlude the image beneath.  With alpha channels on the monitor, this is not apparent, but when on paper or in PDF format the occlusion is clear.  I don't mind the white background; however I cannot deal with the occlusion.  How can I solve this?
Sincerely,
-markerline

Eureka!! That works better than a vacuum cleaner.  Only problem is I was using the AS3 reference and some of the PrintJob examples that were listed threw errors so I had to use the final example:
package
    import flash.printing.PrintJob;
    import flash.display.Sprite;
    public class BasicPrintExample extends Sprite
        var myPrintJob:PrintJob = new PrintJob();
        var mySprite:Sprite = new Sprite();
        mySprite.graphics.beginFill(0x336699);
    mySprite.graphics.drawCircle(100, 100, 50);
        public function BasicPrintExample()
            if (myPrintJob.start()) {
            try {
                myPrintJob.addPage(mySprite);
            catch(e:Error) {
                // handle error
            myPrintJob.send();
I did away with the package and the class and just called the function as a mouse event for a print-button.  I'm not sure why the if(myPrintJob.start()) call works because nowhere am I declaring the print job to start.  I guess that's something that happens automatically?

Similar Messages

  • Smooth conversion of SWF to AVI with Alpha Channel

    today i tried a program which claims the unique program in
    the world can convert
    SWF to AVI with alpha
    channel, i find that this is the best program which can
    synchronization audio and video, and there won't be watermark in
    the middle of your video, i can also use it to capture pictures
    when i play the swf file, it is a good function that i can put the
    picture in my phone

    Hi there Schumi-z!
    Well, it seems many poeple have the very same problem. Let me explain what I have got and what I look for.
    I am working on a simple video editor. This program is to take a video as input, read the video and "chop" it automatically. Taken certain frames to different new videos, from one to 10 or more, according to certain parameters of the frame analized.
    What I have got until today is a way of opening the video, reading it frame by frame, extracting a frame, analize it. But I'm yet to develop a way to write new videos taking a group of this previously separated frames.
    I would like to know, if you are trying to solve the same or similar problem which in any time it envolves writing a new video file, so we can work together and solve this problem as soon as possible.
    This work is also a part of my research to complete my thesis work. It would be an honor to have a quote mentioning someone from around the world.
    Well, I hope to hear from you soon.
    Have a nice day

  • Tiff files with Alpha Channels do not display or print correctly...

    I have Tiff files that have been edited in Photoshop that do not display correctly. As far as I can tell this is caused by the existence of Alpha channels in the channels panel in PS. When the files are imported to Aperture, they only display information from either the alpha channel or a layer using that alpha channel as a mask.
    If this is true, what are people doing about it. This cant be acceptable???
    Are there any work arounds and is apple addressing this problem?
    Can anyone else confirm this?
    I am using Aperture 1.1.2, OS 10.4.7 and PS CS. on a Dual 2GHz Power PC G5 with 4.5 GB RAM
    Please note, these are NOT .psd files. I have read and am aware of some psd compatibility issues, and have checked the maximize compatibility in PS.
    -Sol

    Thank you for your response, I am trying to figure out what to do differently when we re-create the PDF so we don't have font issues when we combine. I don't want to keep recreating the problem, I am looking for a solution. Why does this happen? What settings do I tell other to apply on their Acrobat? Is the a font issue in Adobe? I found this on a Google search on the internet and can't seem to get it to work on XI PRO.
      Embedding fonts into Acrobat 9 through Distiller:
    Launch Acrobat.
    Choose Advanced > Print Production > Acrobat Distiller.
    Select Standard in Default settings.
    Go to Settings and select Edit Adobe PDF Settings.
    Select Fonts and in the font source window select the fonts you want to Add.
    Click Save As and then OK.

  • SWF doesn't play with alpha channel

    I have a 500Kb FLV file that plays as a progressive download through a 12Kb SWF. This FLV was encoded using On2 VP6 codec to maintain alpha data. This is a logo animation for a website so it is essential that the video plays with alpha channel intact. Just to make sure my animation had an alpha channel, I brought it into After Effects to test with a colored background behind it and sure enough, the alpha channel was there, perfect!
    Now in Dreamweaver, when I tested, the FLV plays through the SWF, as it should. However, there is a white square around my video now and the alpha channel is lost.
    I even made sure to select Wmode "transparent" and double-checked my code and saw that I had the correct tag <param name="wmode" value="transparent"/>
    View my site at http://www.customchromefx.com
    I have played many embedded SWF's with alpha's before. I think the FLV still has the alpha, and the problem is in the SWF that plays the FLV that is giving me the white box? Is there a way around this, perhaps a transparent SWF player or something? Thank you for viewing...

    Okay, so I figured out a way to make my compressed FLV video play with alpha.
    I imported into Flash. Checked the box to "Embed FLV in SWF" and clicked next, and Finish. I made sure the stage area and FPS was set to the same settings as the FLV video.
    In publish settings I used Flash 9,then un-checked compress movie and Published. This new SWF maintained the same file size as the FLV, while also playing with the alpha channel.
    I then imported the SWF into Dreamweaver, and set Wmode to "transparent." 
    I now have a 45 second video (originally a 115Mb quicktime) squeezed down to a measly 500Kb SWF that also has an alpha channel. Sweet!

  • Alpha Channel errors

    Hello,
    I'm working with some uncompressed Quicktimes in Final Cut 6 that have built in alpha channels, but they are not working properly when placed over other footage in my timeline. I just get a black background where the video from the track below should be appearing.
    The strange thing is I've used these exact same quicktime's successfully in Final Cut 5, but now they aren't working. Also, when I view the clips alpha channel in the preview window the alpha channel displays correctly.
    Does anyone know what's going on?

    I'm just guessing... but in maybe it has something to do with your settings in the canvas window. Those three buttons across the top of the window- click on the one on the right (looks like a little square thingy) and make sure you have alpha + RGB selected. Maybe that'll do it.

  • How can I see the alpha channel in the channels palette?

    Hello, mi format plugin loads a rgba image. I see it with transparency, that's ok, but when I go to the channels tab I only see 4 items (RGB, Red, Green and Blue).
    How can I see the alpha channel of my file in the channel tab?
    Thanks!

    OK, something must be wrong... but I don't find it!
    That's my whole code (resumed). I ommit some code (saving file code (not used) or main function, where I only call te "DoSomething" functions. You can see that I use layers. The DoReadContinue function is only used to show the preview.
    In the DoReadStart function I set the parameters for the layers (and the preview), and I fill the "data" and "layerName" params in the DoReadLayerContinue function. I hope you can understand the code!
    const int32 IMAGE_DEPTH = 32;
    SPBasicSuite * sSPBasic = NULL;
    SPPluginRef gPluginRef = NULL;
    FormatRecord * gFormatRecord = NULL;
    intptr_t * gMxiInfoHandle = NULL;
    MXIInfo* gMxiInfo = NULL;
    int16 * gResult = NULL;
    #define gCountResources gFormatRecord->resourceProcs->countProc
    #define gGetResources   gFormatRecord->resourceProcs->getProc
    #define gAddResource    gFormatRecord->resourceProcs->addProc
    CmaxwellMXI* cMax;
    static void DoReadPrepare (void){
        gFormatRecord->maxData = 0;
    static void DoReadStart(void){
        char header[2];
        ReadScriptParamsOnRead (); // override params here
      if (*gResult != noErr) return;
        // Read the file header
        *gResult = SetFPos (gFormatRecord->dataFork, fsFromStart, 0);
        if (*gResult != noErr) return;
        ReadSome (sizeof( header ) * 2, &header);
        if (*gResult != noErr) return;
      // Check the magic number for avoid no-mxi files
        int headerID = CheckIdentifier (header);
        if( headerID != HEADER_MXI ) *gResult = formatCannotRead;
      if (*gResult != noErr) return;
      // The file is OK. Let's continue to obtain the data of the image.
      cMax = new CmaxwellMXI( 0 );
      strlen((char*)gFormatRecord->fileSpec->name);
      gMxiInfo->filename = _strdup((char *)gFormatRecord->fileSpec->name + 1);
      bool res = cMax->getMXIIInfo(
                    (const char*)gMxiInfo->filename,
                    gMxiInfo->width, gMxiInfo->height,
                    gMxiInfo->burn, gMxiInfo->monitorGamma, gMxiInfo->iso,
                    gMxiInfo->shutter, gMxiInfo->fStop, gMxiInfo->intensity,
                    gMxiInfo->scattering,
                    gMxiInfo->nMultilightChannels, gMxiInfo->lightNamesList,
                    gMxiInfo->availableBuffersMask,
                    gMxiInfo->widthPreview, gMxiInfo->heightPreview,
                    gMxiInfo->bufferPreview);
      if(!res) return;
      // Check the available extra buffers
      int count = 0;
      if( gMxiInfo->availableBuffersMask & CmaxwellMXI::ALPHA_BUFFER ){
        // We will use that string to obtain later the desired extra buffer.
        gMxiInfo->extraBuffersList[count] = "ALPHA";
        gMxiInfo->hasAlpha = true;
        count++;
      else{
        gMxiInfo->hasAlpha = false;
      gMxiInfo->nExtraBuffers = count;
      switch( IMAGE_DEPTH ){
      case 8:
          gMxiInfo->mode = plugInModeRGBColor;
          break;
      case 16:
          gMxiInfo->mode = plugInModeRGB48;
          break;
      case 32:
          gMxiInfo->mode = plugInModeRGB48; //96 gives me an error
          break;
      // SET UP THE DOCUMENT BASIC PARAMETERS.
      VPoint imageSize;
      if( gFormatRecord->openForPreview ){
        // Preview always RGB8.
        imageSize.v = gMxiInfo->heightPreview;
        imageSize.h = gMxiInfo->widthPreview;
        gFormatRecord->depth = 8;
        gFormatRecord->imageMode = plugInModeRGBColor;
        gFormatRecord->planes = 3;
        gFormatRecord->loPlane = 0;
        gFormatRecord->hiPlane = 2;
        gFormatRecord->colBytes = 3;
        gFormatRecord->rowBytes = imageSize.h * gFormatRecord->planes;
        gFormatRecord->planeBytes = 1;
      else{
        // Configure the layers. All RGBA32.
        imageSize.v = gMxiInfo->height;
        imageSize.h = gMxiInfo->width;
        gFormatRecord->depth = IMAGE_DEPTH;
        gFormatRecord->imageMode = gMxiInfo->mode;
        gFormatRecord->layerData =
            2 + gMxiInfo->nMultilightChannels + gMxiInfo->nExtraBuffers;
        gFormatRecord->planes = 4; // RGBA.
        gFormatRecord->loPlane = 0;
        gFormatRecord->hiPlane = 3;
        gFormatRecord->planeBytes = IMAGE_DEPTH >> 3;
        gFormatRecord->rowBytes = imageSize.h * gFormatRecord->planes * ( IMAGE_DEPTH >> 3 );
        gFormatRecord->colBytes = gFormatRecord->planes * ( IMAGE_DEPTH >> 3 );
        gFormatRecord->transparencyPlane = 3;
        gFormatRecord->transparencyMatting = 1;
        gFormatRecord->blendMode = PIBlendLinearDodge;
        gFormatRecord->isVisible = true;
      SetFormatImageSize(imageSize);
      gFormatRecord->imageHRes = FixRatio(72, 1);
      gFormatRecord->imageVRes = FixRatio(72, 1);
      VRect theRect;
      theRect.left = 0;
      theRect.right = imageSize.h;
      theRect.top = 0;
      theRect.bottom = imageSize.v;
      SetFormatTheRect(theRect);
      // No resources for now.
      if (sPSHandle->New != NULL) gFormatRecord->imageRsrcData = sPSHandle->New(0);
      gFormatRecord->imageRsrcSize = 0;
        return;  
    /// Called for prewiew only.
    static void DoReadContinue (void){
        // Dispose of the image resource data if it exists.
        DisposeImageResources ();
      if( gFormatRecord->openForPreview ){   
        VPoint imageSize = GetFormatImageSize();
        gFormatRecord->data = gMxiInfo->bufferPreview;
          if (*gResult == noErr) *gResult = gFormatRecord->advanceState();
        if( gFormatRecord->data != NULL ){
          delete[] (Crgb8*)gMxiInfo->bufferPreview;
          gMxiInfo->bufferPreview = NULL;
          gFormatRecord->data = NULL;
      // De momento nos olvidamos de los icc profiles [TODO]
        //DoReadICCProfile ();
    static void DoReadFinish (void)
        // Dispose of the image resource data if it exists.
        DisposeImageResources ();
        WriteScriptParamsOnRead (); // should be different for read/write
      // write a history comment
        AddComment ();
      // Clean some memory.
      if( gMxiInfo->lightNamesList != NULL ){
        for( unsigned int i = 0; i < gMxiInfo->nMultilightChannels; i++){
          if( gMxiInfo->lightNamesList[i] != NULL ){
            delete[] gMxiInfo->lightNamesList[i];
            gMxiInfo->lightNamesList[i] = NULL;
        delete[] gMxiInfo->lightNamesList;
        gMxiInfo->lightNamesList = NULL;
      if( gMxiInfo->bufferPreview != NULL ){
        delete[] gMxiInfo->bufferPreview;
        gMxiInfo->bufferPreview = NULL;
      if( gMxiInfo->filename != NULL ){
        delete[] gMxiInfo->filename;
        gMxiInfo->filename = NULL;
      if( cMax != NULL ){
        delete cMax;
        cMax = NULL;
    static void DoReadLayerStart(void){
      // empty
    static void DoReadLayerContinue (void){
      int32 done;
        int32 total;
      VPoint imageSize = GetFormatImageSize();
      // Set the progress bar data
      done = gFormatRecord->layerData + 1;
      total = gMxiInfo->nMultilightChannels + gMxiInfo->nExtraBuffers + 2;
      // Dispose of the image resource data if it exists.
      DisposeImageResources ();
      uint32 bufferSize = imageSize.v * gFormatRecord->rowBytes;
      int nPixels = gMxiInfo->width * gMxiInfo->height;
      char* lightName = NULL;
      // SET THE BLACK BACKGROUND
      if( gFormatRecord->layerData == 0 ){
        gFormatRecord->data = (void*)new byte[bufferSize];
        for( int i = 0; i < nPixels; i++ ){
          ((float*)gFormatRecord->data)[ i * 4 ]     =
          ((float*)gFormatRecord->data)[ i * 4 + 1 ] =
          ((float*)gFormatRecord->data)[ i * 4 + 2 ] = 0.0;
          ((float*)gFormatRecord->data)[ i * 4 + 3 ] = 1.0;
        // Set the layer name.
        gFormatRecord->layerName = new uint16[64];
        gFormatRecord->layerName[0] = 'B';
        gFormatRecord->layerName[1] = 'a';
        gFormatRecord->layerName[2] = 'c';
        gFormatRecord->layerName[3] = 'k';
        gFormatRecord->layerName[4] = 'g';
        gFormatRecord->layerName[5] = 'r';
        gFormatRecord->layerName[6] = 'o';
        gFormatRecord->layerName[7] = 'u';
        gFormatRecord->layerName[8] = 'n';
        gFormatRecord->layerName[9] = 'd';
        gFormatRecord->layerName[10] = '\0';
      // LOAD THE LIGHT LAYERS
      else if( gFormatRecord->layerData < gMxiInfo->nMultilightChannels + 1 ){
        void* lightBuffer = NULL;
        void* alphaBuffer = NULL;
        byte foob;
        dword food;
        // Get the light buffer.
        bool res = cMax->getLightBuffer(
                               (char*)gMxiInfo->filename,
                               gFormatRecord->layerData - 1, IMAGE_DEPTH,
                               lightBuffer,
                               gMxiInfo->width, gMxiInfo->height, lightName);
        if(!res){
          *gResult = readErr;
          return;
        if( gMxiInfo->hasAlpha ){
          // Get the alpha buffer.
          res = cMax->getExtraBuffer(
                                (char*)gMxiInfo->filename,
                                "ALPHA", IMAGE_DEPTH, alphaBuffer,
                                food, food, foob);
          if(!res){
            *gResult = readErr;
            return;
        else{
          alphaBuffer = (void*)new float[ gMxiInfo->width * gMxiInfo->height * 3 ];
          for( int i = 0; i < nPixels; i++ ){
            // Only need to set the red channel.
            ((float*)alphaBuffer)[ i * 3 ] = 1.0;
        // Put them together.
        gFormatRecord->data = (void*)new byte[bufferSize];
        for( int i = 0; i < nPixels; i++ ){
          ((float*)gFormatRecord->data)[ i * 4 ]     = ((float*)lightBuffer)[ i * 3 ];
          ((float*)gFormatRecord->data)[ i * 4 + 1 ] = ((float*)lightBuffer)[ i * 3 + 1 ];
          ((float*)gFormatRecord->data)[ i * 4 + 2 ] = ((float*)lightBuffer)[ i * 3 + 2 ];
          ((float*)gFormatRecord->data)[ i * 4 + 3 ] = ((float*)alphaBuffer)[ i * 3 ];
        delete[] (float*)lightBuffer;
        delete[] (float*)alphaBuffer;
        // Set the layer name.
      //LOAD THE EXTRA CHANNELS
      if( ... ){
      //READ THE RENDER BUFFER
      if( ... ){
      // User can abort.
      if (gFormatRecord->abortProc()){
          *gResult = userCanceledErr;
          return;
      // Commit the layer.
      if (*gResult == noErr) *gResult = gFormatRecord->advanceState();
      // Update the progress bar.
      (*gFormatRecord->progressProc)( done, total );
      // Free memory.
      if( gFormatRecord->data != NULL ){
        delete[] (float*)gFormatRecord->data;
        gFormatRecord->data = NULL;
      if( lightName != NULL ){
        delete[] lightName;
        lightName = NULL;
    static void DoReadLayerFinish (void)
      // Nothing to do.
    And that's the image that I obtain loading a 8 layer image:
    The layers have transparency (when I set "transparencyPlane" to  -1, or 0, or 1, or 2, or 3, or 4....., I got the same result!). The blending mode is still "normal". I had set it to "linear dodge" The "isVisible" param works OK.
    Alpha 1 is still black.
    Is possible that I need to set something in the .r file? I had to add "FormatLayerSupport { doesSupportFormatLayers }," to manage layers, for instance.

  • Can no longer import QT files with alpha channel

    I have been using these client supplied QT with alpha channel files just fine for weeks, then all of a sudden, after a crash the other day, I was unable to open sequences with these files and exoprt them, the exporter would just freeze.  the clips played in the timeline, but VERY sluggish.
    On the reccomendation of a few posts around here, I removed the clips from the project, and now I cannot import them back in, I get a "the importer reported a generic error" message.  I am able to open in QT pro and export to a new file that will import to PPro, but I lose the alpha channel.
    As always, I'm up against a deadline and any help would be greatly appreciated.
    I have installed QT 7.07, no help.
    I'm on a windows 7 machine running CS master collection 5.0, Quad core AMD with 8 gig RAM.
    These files worked fine just days ago!!!!
    BTW, I just switched over to Premiere a few months ago and to honest I can't understand how anyone would stick with this buggy software, as a professional I've never used anything this bad before.

    Welcome to the forum.
    Try these.  Attempt to re-import after each one:
    Clean the media cache database via Edit | Preferences | Media
    If step 2 doesn't work, then find all the .qtindex, .mpgindex, .cfa and .pek files associated with the media that's supposed to be in your project and delete them.  Then clean the media cache database again.
    Launch Pr and while it's launching, hold down the Alt + Shift keys until the Welcome screen appears.  Alt resets your preferences and Shift resets the plug-in cache.
    To address the other issues you say you've been having with Pr, you should start a different thread (or threads).  Coming from other editors, there may be a difference in the way Pr does things that produce unexpected results that may be seen as bugs.  More serious issues, such as crashes, can often be caused by 3rd-party hardware like AJA, Matrox or BlackMagic and the associated drivers.  Outdated or incorrect drivers for audio and video cards can also cause problems.  I recommend that you start troubleshooting those areas first.
    Other issues may have workarounds.  If you have serious, reproducible problems that have no workaround, then please file bug reports here:
    Adobe - Feature Request/Bug Report Form
    -Jeff

  • Better Alpha channel handling

    I've asked for this a lot: alpha channel saving with PS is terrible, and could use an update. And today, I was embarrassed by a bug that caused our game engine to perform poorly as a result of the way Photoshop handles the alpha channel.
    The bug: make a 1024x1024 canvas, give it an opaque alpha channel (100% white, every pixel), then Image Size it down to something smaller, like 128x128. Now look at your alpha channel: grey pixels all along the border. ARRGGGHHH!!!1!1! It interpolated, I'm sure, using black alpha outside the canvas that doesn't actually exist, changing, in a powerful, fundamental way, the nature of the alpha channel. Video cards care about this stuff: 99.9% opaque is not 100% opaque. This is terrible.
    The request: That PS intelligently offer better defaults when saving an image with an alpha. Right now, it offers, "What was the last bit depth you saved an image to?" Regardless of the fact that the previous image may have no relationship to the following image being saved, the default offering is always "what I did last time". This enables very easy pruning of alpha channels that should be there, or adding opaque alpha channels that shouldn't be there, bloating the file size.
    I'd like PS to determine if an alpha channel is present, and base its default choice on that. If one is present, default to 32-bits. If an alpha channel si not present, default to 24-bits. That easy.
    If multiple alpha channels are present, I'd like a dropdown menu to pick which one I want. Right now, if you save a PSD with multiple alpha channels to a 32-bit TGA, it throws all alpha channels away, and saves the image with a solidly opaque alpha channel, the choice no one asked for.
    For texture work, or works where the graphics card is the destination, not the printed page, this cavalier handling of alpha channels is definitely not sustainable.
    I'd love to never have to ask for this again.

    Generally speaking the resize of an image on a layer in which the canvas is exactly the size of the data will result in transparency peeking in around the edge (i.e., I'm agreeing with you here, just using Photoshop terms).  I've always thought this was kind of poorly thought-out too.  As you say, the algorithm must default to using 0 vs., say, replicating (or "clamping") to the alpha of the pixels right on the edge.
    I suppose theoretically, the thinking is that if you were to EXPAND the canvas, the area around the image would be transparent anyway, and a subsequent resampling would then have the same result as the above.
    Knowing this, one way to work around the problem would be to create a slightly larger image, then Canvas Size it down to your intended resolution.  That way there's layer data beyond the edges with which the resizing algorithm can work.  I realize that's probably not a practical solution in general, but a trick to keep up your sleeve if you really do need that 128 x 128 image with alpha solid to the edge.
    -Noel

  • Photoshop CS6 using javaScript to truncate alpha channel name

    Hello,
    I'm a production artist and I work with PSD files that were created in Adobe Scene7 Image Authoring Tool. These PSDs contain a background layer along with 1-20 alpha channels. My script has to make a new blank layer for every alpha channel in the document. Then it fills the new layer with light gray. So far, my code accomplishes this. However, I'd like to apply the name of the alpha channel to the layer, but I need the name to be truncated. Every alpha channel starts with one or more characters followed by a backslash and then finishes with one or more characters. Here's an example:
    An alpha channel might be named:  Floor\floor
    In this example I need my layer name to be just:  floor. This means all character to the left of the backslash, including the backslash itself needs to be discarded. I was using the subSring() statement to do this. When I try to step through the code, line by line in ExtendScript, I immediately get an error that says Unterminated String Constant and Line 31 of my code is highlighted. I suspect it doesn't like the way I wrote the backslash character, although I surrounded it in double quotes to define it as a string.
    Can anyone tell me why I'm getting this error?
    Below is my code with lots of comments to walk you through the process. I wrote where the error occurs in red type.
    I'm new to JavaScript so I'm not sure my while loop is accurate.
    #target photoshop
    // The #target photoshop makes the script run in PS.
    // declare variable to contain the active document
    var myDoc=app.activeDocument;
    // declare variable to contain the number of alpha channels, excluding the RGB channels
    var alphaChan = myDoc.channels.length - 3;
    alert(alphaChan + " alpha channels exist");
    // create loop to make new layers based on number of alpha channels, fill layer with gray and apply alpha channel name to new layer
    for (a=0 ; a<alphaChan ; a+=1){
    // make new blank layer
    myDoc.artLayers.add();
    // fill blank layer with gray
    var color = new SolidColor();
    color.rgb.red = 161;
    color.rgb.green = 161;
    color.rgb.blue= 161;
    myDoc.selection.fill(color);
    //variable stores alpha channel name
    var alphaName = myDoc.channels[3+a];
    // variable stores lenght of alpha channel name
    var lz = alphaName.length;
    // declare index variable to initialize position of 1st  character of alpha channel name
    var x= 0 ;
    // truncate alpha channel name by removing all characters preceding the "\" symbol
    while (alphaName.subString(x) != "\"){          (ExtendScript gives an error for this line and highlights the backslash and surrounding quotation marks)
        alphaName = alphaName.subString((x+1),z);
        x+=1;
        z-=1;
    return alphaName;
    // remove the backslash from alpha channel name
    alphaName = alphaName.subString((x+1),z);
    //  apply truncated alpha channel name to corresponding layer
    myDoc.artLayers[a].name = alphaName;

    while (alphaName.subString(x) != "\"){ 
    should be
    while (alphaName.subString(x) != "\\"){ 

  • Making a PDF with an image that has both spot colour channel and alpha channel

    Hi I have a logo that was supplied to us as a PSD it has a transparent background, it also has a pantone colour channel. I have made a alpha channel from the transparent background as well.
    The graphic looks fine in InDesign (alpha channel selected in the import options), ie the background is transparent.
    But when we try to make a Hi Res PDF the result is that the graphic is on a solid white background.
    If I go back to the PSD and merge the spot channel with so that it is just CMYK and try again the PDF is fine, but we obviously loose the spot colour.
    How do you make a PDF with a transparent PSD that has a spot colour?

    You know that annoying response from support staff? "We cannot replicate your issue". Well....
    I created a PSD in CS5, with a bunch of process stuff, then loaded a spot color channel and painted in some pawprints using Pantone 172C:
    Saved this as a PSD file, default settings (maximize compatibility on, but it doesn't make any difference in this situation).
    Created a new InDesign document in CS5, added a gradient and some text, then placed the PSD.  ID understands the PSD has an inbuilt background so there's no need to bother with a dedicated alpha mask:
    Exported from ID using the High Quality Print option (PDF/1.4, which keeps the live transparency):
    Re-exported to PDF/X-1a (based on PDF/1.3 which flattens transparency) - looks exactly the same. In all cases the spot channel is intact and the see-through regions of the PSD are maintained.

  • Alpha channel in HTML5 format

    Hi all,
    I use Captivate 7 Subscription Edition on Windows Home Premium 64bit , and
    I have a problem with alpha channel and html5.
    I often make projects importing videos with alpha channel   (transparent background).
    When I decide to publish my   projects in Flash (SWF) all works smoothly without problems, but when I check the HTML format the alpha channel doesn't work anymore. In fact in the publishing process Captivate opens the Media Encoder to transform the videos from FLV to   H.264 (.MP4) format. When I go to see the SCORM in HTML5 the videos doesn't have anymore alpha channel and other times they neither don't show anything, just audio works...
    I read on internet that the H.264 format doesn't support   alpha channel but I can't find any other solution to make it work in a captivate SCORM 1.2 in HTML5 format.
    Can someone give me a workaround or a solution??
    I need the HTML5 format to make our company projects work on   mobile devices (such as Ipad, Iphone, Android, etc).
    Roberto.
    P.S. I found this jquery library:  https://code.google.com/p/jquery-seethru/ the problem is that I can't make it work with the SCORM and   don't know if it really can work...

    You've found the answer - h.264 doesn't support alpha channels (which I find a bit silly).
    So the only real option you then have is .FLV...but if you need to deliver to mobile, then FLV won't work...
    So then seems like your only option is to layer in the background within the video, export that as .MP4/h.264, then bring that in to the CP project and match it up as best you can with the rest of the background.
    -E

  • Alpha channel videos problem on AIR 3.8 beta Android

    Hi, I've found a strange behavior on the beta 3.8 SDK. When I load and play a FLV video with alpha channel it becomes completely black, but if I re-load it, it shows well. This does not happen on applications created with the release, 3.7 version of the SDK.

    I think I am encountering the same issue with Air 3.8. Although I am not using the alpha channel and the video is a quicktime (.mov),
    the video appears black (I can hear the audio playing).
    I cannot switch back to 3.7 because that gave a error uploading the apk to the new google play console because of signing issues,
    the upload issues were fixed in 3.8.

  • Alpha channel data with layered format plugin

    I have a layered format plugin and I am trying to write the alpha channel information separately. I have set up channelPortProcs and I am attempting to read the pixel data with readPixelsProc. The issue is that even though the readPixelsProc function doesn't return any errors the rectangle that is supposed to store the rectangle that was actually read is a 0x0 rectangle. I can't seem to find why this would be or what I might be doing wrong. Here's what I have so far:
    // set up the pixel buffer
    int32 bufferSize = imSize.h*imSize.v;
    Ptr pixelData = sPSBuffer->New( &bufferSize, bufferSize );
    if (pixelData == NULL)
         *gResult = memFullErr;
         return;
    // Define the source and destination rectangles
    ReadChannelDesc *alphaChannel = gFormatRecord->documentInfo->alphaChannels;
    PIChannelPort port = alphaChannel->port;
    PSScaling scale;
    scale.sourceRect = scale.destinationRect = alphaChannel->bounds;
    VRect destRect = scale.sourceRect;
    // Set up the descriptor for reading pixel data
    VRect wroteRect = {0};
    PixelMemoryDesc dest = {0};
    dest.rowBits = imSize.h*alphaChannel->depth;
    dest.colBits = alphaChannel->depth;
    dest.depth = alphaChannel->depth;
    dest.data = pixelData;
    // Put the pixel data into the buffer
    *gResult = gFormatRecord->channelPortProcs->readPixelsProc(port,&scale, &destRect, &dest, &wroteRect);
    if(*gResult != noErr)
         return;
    The alpha channel gives me the proper name, but I just can't get the data associated with it. Thanks.

    I am still trying to find a solution to this.  The propChannelName is read only and the documentInfo structure is NULL when reading.  Any suggestions?

  • NSBitmapImageRep - how can I remove or reverse an alpha channel from tiff?

    Below is some code I cobbled together to save a square preview of an image. I am looking to figure out how to remove or inverse an alpha channel mask from a tiff image, and could really use some help....
    // I have been using 256.0 and 0.4 for the last 2 arguments, though feel free test with whatever.
    - (NSString *)savePreview: (NSString *)filePath: (NSString *)saveFilePath: (NSString *)previewSize: (NSString *)compressionRatio {
    NS_DURING
    NSAutoreleasePool *memoryPool = [[NSAutoreleasePool alloc] init];
    NSImage *myImage = [[NSImage alloc] initWithContentsOfFile: filePath];
    if (myImage == nil) {
    [myImage release];
    NSLog(@"! Error loading image");
    return @"! Error loading image";
    NSImageRep *myRep = [[myImage representations] objectAtIndex: 0];
    float hres = [myRep pixelsWide]/[myImage size].width;
    float vres = [myRep pixelsHigh]/[myImage size].height;
    float newWidth = [previewSize floatValue];
    float newHeight = newWidth;
    NSImage *thumbImage = [[NSImage alloc] initWithSize: NSMakeSize(newWidth, newHeight)];
    NSAffineTransform *at = [NSAffineTransform transform];
    [myImage setScalesWhenResized: YES];
    float heightFactor = newHeight/[myImage size].height;
    float widthFactor = newWidth/[myImage size].width;
    float scale;
    if(heightFactor > widthFactor) {
    scale = widthFactor;
    } else {
    scale = heightFactor;
    [at scaleBy: scale];
    [thumbImage lockFocus];
    [[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationHigh]; // NSImageInterpolationNone, NSImageInterpolationLow, NSImageInterpolationHigh
    [myImage setSize: [at transformSize: [myImage size]]];
    [myImage compositeToPoint: NSMakePoint((newWidth-[myImage size].width)/2 , (newHeight-[myImage size].height)/2) operation: NSCompositeCopy];
    NSBitmapImageRep *bitmapImageRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect: NSMakeRect(0, 0, [thumbImage size].width, [thumbImage size].height)];
    [thumbImage unlockFocus];
    [myImage release];
    [thumbImage release];
    NSData *bitmapData = nil;
    NSNumber *factor = [NSNumber numberWithFloat: [compressionRatio floatValue]]; // The compression factor. Used only for JPEG files. The value is a float between 0.0 and 1.0, with 0.0 being the lowest and 1.0 being the highest. It’s set when reading in and used when writing out.
    NSDictionary *props = [NSDictionary dictionaryWithObject: factor forKey: NSImageCompressionFactor];
    bitmapData = [bitmapImageRep representationUsingType: NSJPEGFileType properties: props];
    [bitmapData writeToFile: saveFilePath atomically: YES];
    [bitmapImageRep release];
    [memoryPool release];
    return @"YES";
    NS_HANDLER
    NSLog(@"Exception occured : %@", localException);
    return @"NO";
    NS_ENDHANDLER
    }

    <bump>

  • Can't export with alpha channel - Again!!!,

    So, I have an intro that is designed as an overlay of the incoming video. The objects move out the way to reveal the video underneath. BUT, when I export the sequence the resulting movie has black in the background.
    Now, I had this issue several months ago, and after tons of research and trial and error, all of a sudden it worked when I came back to Motion on another project. No explanation. It just worked.
    Usually, I have the background set to Transparent and then export using Lossless and Alpha. Works fine. Well, not today. I've changed every export setting under the sun trying variations of Lossless with Alpha and also tried the Animation codec. No luck.
    So, what is going on? Any thoughts?

    Thanks for your help Patrick. I tell ya, I can't believe what's going on. As I said, this project until today has not caused me any issues what-so-ever. The other six sessions are totally fine. I also created a quick project with the same settings added text - then exported using the same settings I've used before, and it exports with the proper alpha channel.
    Yet, I rebooted the Mac, made sure to delete old versions in the trash can and everything. Still, no alpha.
    To keep moving forward, I literally had to use a color key in FCP to cut out the background color.
    Crazy!

Maybe you are looking for

  • Apple Airport Extreme Base Station for PPPoE, DHCP and NAT with ActionTec DSL modem

    I just spent several hours trying to track down proper instructions for setting up my Apple AEBS to do the PPPoE, DHCP and NAT while connected to an ActionTec M1000 (no wireless module).  It turns out my initial set ups on both devices were correct,

  • Purchased App disappeared after Syncing.

    I've purchased a Newsstand(RSS Reader) App from the itunes in iphone. and I've used it for a while and oneday after I synced, it was gone, from my iphone And the PC Itunes. Only record that shows I had the software is my purchase history. I didn't ma

  • How to record a presentation in Media Player

    I am playing a presentation in Media Player that sounds fine on the PC speakers. I am trying to record portions of this presentation for my Captivate project. I have two choices in C4 for audio input -- microphone or line in. I figured Line In but ne

  • Photoshop wont allow me to create a 3d extrusion or mesh layer

    Daniel Montgomery Jun 8, 2014 9:51 AM (in response to Daniel Montgomery) Ok, I wasn't able to take a snip shot of the 3d drop down menu.... when i do select the 3d tab, new 3d extrusion and from selected layer and new mesh from layer are both highlig

  • Podcast: Listeners also subscribed panel not present

    Hi, I have a fortnightly podcast Called Tektronic. http://itunes.apple.com/gb/podcast/tektronic-the-beginning/id486329726 We have be getting quiet a lot downloads each month but still do not have the 'Listeners also subscribed to' panel on the podcas